public class IotDataClient extends Object
Modifier | Constructor and Description |
---|---|
|
IotDataClient()
Default Constructor.
|
|
IotDataClient(LambdaClient lambdaClient)
Constructor with customized lambda client.
|
protected |
IotDataClient(LambdaClient lambdaClient,
GreengrassLogger greengrassLogger)
Constructor with customized lambda client.
|
Modifier and Type | Method and Description |
---|---|
DeleteThingShadowResult |
deleteThingShadow(DeleteThingShadowRequest request)
Delete a thing shadow.
|
GetThingShadowResult |
getThingShadow(GetThingShadowRequest request)
Get a thing shadow.
|
PublishResult |
publish(PublishRequest request)
Publish payload to a certain topic via IPC.
|
UpdateThingShadowResult |
updateThingShadow(UpdateThingShadowRequest request)
Update a thing shadow.
|
public IotDataClient()
public IotDataClient(LambdaClient lambdaClient)
lambdaClient
- a lambda clientprotected IotDataClient(LambdaClient lambdaClient, GreengrassLogger greengrassLogger)
lambdaClient
- a lambda clientgreengrassLogger
- a Greengrass Loggerpublic GetThingShadowResult getThingShadow(GetThingShadowRequest request) throws GGIotDataException
request
- get shadow request objectGGIotDataException
- thrown when get request failedpublic UpdateThingShadowResult updateThingShadow(UpdateThingShadowRequest request) throws GGIotDataException
request
- update shadow request objectGGIotDataException
- thrown when update request failedpublic DeleteThingShadowResult deleteThingShadow(DeleteThingShadowRequest request) throws GGIotDataException
request
- delete shadow request objectGGIotDataException
- thrown when delete request failedpublic PublishResult publish(PublishRequest request) throws GGIotDataException, GGLambdaException
request
- publish request objectGGIotDataException
- thrown when publish request invalidGGLambdaException
- thrown when publish request cannot invoke the router lambda