@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface IotDataPlaneAsyncClient extends SdkClient
builder() method.
AWS IoT-Data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. It implements a broker for applications and things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a persistent representation of your things and their state in the AWS cloud.
Find the endpoint address for actions in the AWS IoT data plane by running this CLI command:
aws iot describe-endpoint --endpoint-type iot:Data-ATS
The service name used by AWS Signature Version 4 to sign requests is: iotdevicegateway.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static IotDataPlaneAsyncClient create()
IotDataPlaneAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static IotDataPlaneAsyncClientBuilder builder()
IotDataPlaneAsyncClient.default CompletableFuture<DeleteThingShadowResponse> deleteThingShadow(DeleteThingShadowRequest deleteThingShadowRequest)
Deletes the shadow for the specified thing.
For more information, see DeleteThingShadow in the AWS IoT Developer Guide.
deleteThingShadowRequest - The input for the DeleteThingShadow operation.default CompletableFuture<DeleteThingShadowResponse> deleteThingShadow(Consumer<DeleteThingShadowRequest.Builder> deleteThingShadowRequest)
Deletes the shadow for the specified thing.
For more information, see DeleteThingShadow in the AWS IoT Developer Guide.
This is a convenience which creates an instance of the DeleteThingShadowRequest.Builder avoiding the need
to create one manually via DeleteThingShadowRequest.builder()
deleteThingShadowRequest - A Consumer that will call methods on DeleteThingShadowRequest.Builder to create a request.
The input for the DeleteThingShadow operation.default CompletableFuture<GetThingShadowResponse> getThingShadow(GetThingShadowRequest getThingShadowRequest)
Gets the shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide.
getThingShadowRequest - The input for the GetThingShadow operation.default CompletableFuture<GetThingShadowResponse> getThingShadow(Consumer<GetThingShadowRequest.Builder> getThingShadowRequest)
Gets the shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide.
This is a convenience which creates an instance of the GetThingShadowRequest.Builder avoiding the need to
create one manually via GetThingShadowRequest.builder()
getThingShadowRequest - A Consumer that will call methods on GetThingShadowRequest.Builder to create a request.
The input for the GetThingShadow operation.default CompletableFuture<ListNamedShadowsForThingResponse> listNamedShadowsForThing(ListNamedShadowsForThingRequest listNamedShadowsForThingRequest)
Lists the shadows for the specified thing.
listNamedShadowsForThingRequest - default CompletableFuture<ListNamedShadowsForThingResponse> listNamedShadowsForThing(Consumer<ListNamedShadowsForThingRequest.Builder> listNamedShadowsForThingRequest)
Lists the shadows for the specified thing.
This is a convenience which creates an instance of the ListNamedShadowsForThingRequest.Builder avoiding
the need to create one manually via ListNamedShadowsForThingRequest.builder()
listNamedShadowsForThingRequest - A Consumer that will call methods on ListNamedShadowsForThingRequest.Builder to create a
request.default CompletableFuture<PublishResponse> publish(PublishRequest publishRequest)
Publishes state information.
For more information, see HTTP Protocol in the AWS IoT Developer Guide.
publishRequest - The input for the Publish operation.default CompletableFuture<PublishResponse> publish(Consumer<PublishRequest.Builder> publishRequest)
Publishes state information.
For more information, see HTTP Protocol in the AWS IoT Developer Guide.
This is a convenience which creates an instance of the PublishRequest.Builder avoiding the need to create
one manually via PublishRequest.builder()
publishRequest - A Consumer that will call methods on PublishRequest.Builder to create a request. The input
for the Publish operation.default CompletableFuture<UpdateThingShadowResponse> updateThingShadow(UpdateThingShadowRequest updateThingShadowRequest)
Updates the shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide.
updateThingShadowRequest - The input for the UpdateThingShadow operation.default CompletableFuture<UpdateThingShadowResponse> updateThingShadow(Consumer<UpdateThingShadowRequest.Builder> updateThingShadowRequest)
Updates the shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide.
This is a convenience which creates an instance of the UpdateThingShadowRequest.Builder avoiding the need
to create one manually via UpdateThingShadowRequest.builder()
updateThingShadowRequest - A Consumer that will call methods on UpdateThingShadowRequest.Builder to create a request.
The input for the UpdateThingShadow operation.Copyright © 2021. All rights reserved.