public class AWSIotAsyncClient extends AWSIotClient implements AWSIotAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS IoT is in beta and is subject to change
AWS IoT provides secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate with, configure rules for data processing and integration with other services, organize resources associated with each thing (Thing Registry), configure logging, and create and manage policies and credentials to authenticate things.
For more information about how AWS IoT works, see the Developer Guide.
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AWSIotAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWS
IoT.
|
AWSIotAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the specified AWS account credentials.
|
AWSIotAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the specified AWS account credentials, executor service, and client
configuration options.
|
AWSIotAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the specified AWS account credentials and executor service.
|
AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the specified AWS account credentials provider.
|
AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the provided AWS account credentials provider and client
configuration options.
|
AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the specified AWS account credentials provider, executor service,
and client configuration options.
|
AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS IoT
using the specified AWS account credentials provider and executor
service.
|
AWSIotAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
IoT.
|
acceptCertificateTransfer, attachPrincipalPolicy, attachThingPrincipal, cancelCertificateTransfer, createCertificateFromCsr, createKeysAndCertificate, createPolicy, createPolicyVersion, createThing, createTopicRule, deleteCertificate, deletePolicy, deletePolicyVersion, deleteThing, deleteTopicRule, describeCertificate, describeEndpoint, describeThing, detachPrincipalPolicy, detachThingPrincipal, getCachedResponseMetadata, getLoggingOptions, getPolicy, getPolicyVersion, getTopicRule, listCertificates, listPolicies, listPolicyVersions, listPrincipalPolicies, listPrincipalThings, listThingPrincipals, listThings, listTopicRules, rejectCertificateTransfer, replaceTopicRule, setDefaultPolicyVersion, setLoggingOptions, transferCertificate, updateCertificate, updateThing
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptCertificateTransfer, attachPrincipalPolicy, attachThingPrincipal, cancelCertificateTransfer, createCertificateFromCsr, createKeysAndCertificate, createPolicy, createPolicyVersion, createThing, createTopicRule, deleteCertificate, deletePolicy, deletePolicyVersion, deleteThing, deleteTopicRule, describeCertificate, describeEndpoint, describeThing, detachPrincipalPolicy, detachThingPrincipal, getCachedResponseMetadata, getLoggingOptions, getPolicy, getPolicyVersion, getTopicRule, listCertificates, listPolicies, listPolicyVersions, listPrincipalPolicies, listPrincipalThings, listThingPrincipals, listThings, listTopicRules, rejectCertificateTransfer, replaceTopicRule, setDefaultPolicyVersion, setEndpoint, setLoggingOptions, setRegion, transferCertificate, updateCertificate, updateThing
public AWSIotAsyncClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
public AWSIotAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client
connects to AWS IoT (ex: proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSIotAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)
public AWSIotAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AWSIotAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AWSIotAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public ExecutorService getExecutorService()
public Future<Void> acceptCertificateTransferAsync(AcceptCertificateTransferRequest request)
AWSIotAsync
Accepts a pending certificate transfer. The default state of the certificate is INACTIVE.
To check for pending certificate transfers, call ListCertificates to enumerate your certificates.
acceptCertificateTransferAsync
in interface AWSIotAsync
request
- The input for the AcceptCertificateTransfer operation.public Future<Void> acceptCertificateTransferAsync(AcceptCertificateTransferRequest request, AsyncHandler<AcceptCertificateTransferRequest,Void> asyncHandler)
AWSIotAsync
Accepts a pending certificate transfer. The default state of the certificate is INACTIVE.
To check for pending certificate transfers, call ListCertificates to enumerate your certificates.
acceptCertificateTransferAsync
in interface AWSIotAsync
request
- The input for the AcceptCertificateTransfer operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> attachPrincipalPolicyAsync(AttachPrincipalPolicyRequest request)
AWSIotAsync
Attaches the specified policy to the specified principal (certificate or other credential).
attachPrincipalPolicyAsync
in interface AWSIotAsync
request
- The input for the AttachPrincipalPolicy operation.public Future<Void> attachPrincipalPolicyAsync(AttachPrincipalPolicyRequest request, AsyncHandler<AttachPrincipalPolicyRequest,Void> asyncHandler)
AWSIotAsync
Attaches the specified policy to the specified principal (certificate or other credential).
attachPrincipalPolicyAsync
in interface AWSIotAsync
request
- The input for the AttachPrincipalPolicy operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<AttachThingPrincipalResult> attachThingPrincipalAsync(AttachThingPrincipalRequest request)
AWSIotAsync
Attaches the specified principal to the specified thing.
attachThingPrincipalAsync
in interface AWSIotAsync
request
- The input for the AttachThingPrincipal operation.public Future<AttachThingPrincipalResult> attachThingPrincipalAsync(AttachThingPrincipalRequest request, AsyncHandler<AttachThingPrincipalRequest,AttachThingPrincipalResult> asyncHandler)
AWSIotAsync
Attaches the specified principal to the specified thing.
attachThingPrincipalAsync
in interface AWSIotAsync
request
- The input for the AttachThingPrincipal operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> cancelCertificateTransferAsync(CancelCertificateTransferRequest request)
AWSIotAsync
Cancels a pending transfer for the specified certificate.
Note Only the transfer source account can use this operation to cancel a transfer (transfer destinations can use RejectCertificateTransfer instead). After transfer, AWS IoT returns the certificate to the source account in the INACTIVE state. Once the destination account has accepted the transfer, the transfer may no longer be cancelled.
After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.
cancelCertificateTransferAsync
in interface AWSIotAsync
request
- The input for the CancelCertificateTransfer operation.public Future<Void> cancelCertificateTransferAsync(CancelCertificateTransferRequest request, AsyncHandler<CancelCertificateTransferRequest,Void> asyncHandler)
AWSIotAsync
Cancels a pending transfer for the specified certificate.
Note Only the transfer source account can use this operation to cancel a transfer (transfer destinations can use RejectCertificateTransfer instead). After transfer, AWS IoT returns the certificate to the source account in the INACTIVE state. Once the destination account has accepted the transfer, the transfer may no longer be cancelled.
After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.
cancelCertificateTransferAsync
in interface AWSIotAsync
request
- The input for the CancelCertificateTransfer operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateCertificateFromCsrResult> createCertificateFromCsrAsync(CreateCertificateFromCsrRequest request)
AWSIotAsync
Creates an X.509 certificate using the specified certificate signing request.
Note Reusing the same certificate signing request (CSR) results in a distinct certificate.
createCertificateFromCsrAsync
in interface AWSIotAsync
request
- The input for the CreateCertificateFromCsr operation.public Future<CreateCertificateFromCsrResult> createCertificateFromCsrAsync(CreateCertificateFromCsrRequest request, AsyncHandler<CreateCertificateFromCsrRequest,CreateCertificateFromCsrResult> asyncHandler)
AWSIotAsync
Creates an X.509 certificate using the specified certificate signing request.
Note Reusing the same certificate signing request (CSR) results in a distinct certificate.
createCertificateFromCsrAsync
in interface AWSIotAsync
request
- The input for the CreateCertificateFromCsr operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateKeysAndCertificateResult> createKeysAndCertificateAsync(CreateKeysAndCertificateRequest request)
AWSIotAsync
Creates a 2048 bit RSA key pair and issues an X.509 certificate using the issued public key.
Note This is the only time AWS IoT issues the private key for this certificate. It is important to keep track of the private key.
createKeysAndCertificateAsync
in interface AWSIotAsync
request
- The input for the CreateKeysAndCertificate operation.public Future<CreateKeysAndCertificateResult> createKeysAndCertificateAsync(CreateKeysAndCertificateRequest request, AsyncHandler<CreateKeysAndCertificateRequest,CreateKeysAndCertificateResult> asyncHandler)
AWSIotAsync
Creates a 2048 bit RSA key pair and issues an X.509 certificate using the issued public key.
Note This is the only time AWS IoT issues the private key for this certificate. It is important to keep track of the private key.
createKeysAndCertificateAsync
in interface AWSIotAsync
request
- The input for the CreateKeysAndCertificate operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreatePolicyResult> createPolicyAsync(CreatePolicyRequest request)
AWSIotAsync
Creates an AWS IoT policy.
The created policy is the default version for the policy. This operation creates a policy version with a version identifier of 1 and sets 1 as the policy's default version.
createPolicyAsync
in interface AWSIotAsync
request
- The input for the CreatePolicy operation.public Future<CreatePolicyResult> createPolicyAsync(CreatePolicyRequest request, AsyncHandler<CreatePolicyRequest,CreatePolicyResult> asyncHandler)
AWSIotAsync
Creates an AWS IoT policy.
The created policy is the default version for the policy. This operation creates a policy version with a version identifier of 1 and sets 1 as the policy's default version.
createPolicyAsync
in interface AWSIotAsync
request
- The input for the CreatePolicy operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreatePolicyVersionResult> createPolicyVersionAsync(CreatePolicyVersionRequest request)
AWSIotAsync
Creates a new version of the specified AWS IoT policy.
createPolicyVersionAsync
in interface AWSIotAsync
request
- The input for the CreatePolicyVersion operation.public Future<CreatePolicyVersionResult> createPolicyVersionAsync(CreatePolicyVersionRequest request, AsyncHandler<CreatePolicyVersionRequest,CreatePolicyVersionResult> asyncHandler)
AWSIotAsync
Creates a new version of the specified AWS IoT policy.
createPolicyVersionAsync
in interface AWSIotAsync
request
- The input for the CreatePolicyVersion operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateThingResult> createThingAsync(CreateThingRequest request)
AWSIotAsync
Creates a thing in the thing registry.
createThingAsync
in interface AWSIotAsync
request
- The input for the CreateThing operation.public Future<CreateThingResult> createThingAsync(CreateThingRequest request, AsyncHandler<CreateThingRequest,CreateThingResult> asyncHandler)
AWSIotAsync
Creates a thing in the thing registry.
createThingAsync
in interface AWSIotAsync
request
- The input for the CreateThing operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> createTopicRuleAsync(CreateTopicRuleRequest request)
AWSIotAsync
Creates a rule.
createTopicRuleAsync
in interface AWSIotAsync
request
- The input for the CreateTopicRule operation.public Future<Void> createTopicRuleAsync(CreateTopicRuleRequest request, AsyncHandler<CreateTopicRuleRequest,Void> asyncHandler)
AWSIotAsync
Creates a rule.
createTopicRuleAsync
in interface AWSIotAsync
request
- The input for the CreateTopicRule operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> deleteCertificateAsync(DeleteCertificateRequest request)
AWSIotAsync
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy attached to it. To delete a certificate, first detach all policies using the DetachPrincipalPolicy operation.
In addition, a certificate cannot be deleted if it is in ACTIVE status. To delete a certificate, first change the status to INACTIVE using the UpdateCertificate operation.
deleteCertificateAsync
in interface AWSIotAsync
request
- The input for the DeleteCertificate operation.public Future<Void> deleteCertificateAsync(DeleteCertificateRequest request, AsyncHandler<DeleteCertificateRequest,Void> asyncHandler)
AWSIotAsync
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy attached to it. To delete a certificate, first detach all policies using the DetachPrincipalPolicy operation.
In addition, a certificate cannot be deleted if it is in ACTIVE status. To delete a certificate, first change the status to INACTIVE using the UpdateCertificate operation.
deleteCertificateAsync
in interface AWSIotAsync
request
- The input for the DeleteCertificate operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> deletePolicyAsync(DeletePolicyRequest request)
AWSIotAsync
Deletes the specified policy.
A policy cannot be deleted if:
- it has non-default versions
- it is attached to any certificate
To delete a policy:
- First delete all the non-default versions of the policy using the DeletePolicyVersion API.
- Detach it from any certificate using the DetachPrincipalPolicy API.
When a policy is deleted, its default version is deleted with it.
deletePolicyAsync
in interface AWSIotAsync
request
- The input for the DeletePolicy operation.public Future<Void> deletePolicyAsync(DeletePolicyRequest request, AsyncHandler<DeletePolicyRequest,Void> asyncHandler)
AWSIotAsync
Deletes the specified policy.
A policy cannot be deleted if:
- it has non-default versions
- it is attached to any certificate
To delete a policy:
- First delete all the non-default versions of the policy using the DeletePolicyVersion API.
- Detach it from any certificate using the DetachPrincipalPolicy API.
When a policy is deleted, its default version is deleted with it.
deletePolicyAsync
in interface AWSIotAsync
request
- The input for the DeletePolicy operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> deletePolicyVersionAsync(DeletePolicyVersionRequest request)
AWSIotAsync
Deletes the specified version of the specified policy. The default version of the policy cannot be deleted.
To delete the default version use the DeletePolicy API or mark the policy as non-default and then delete it.
deletePolicyVersionAsync
in interface AWSIotAsync
request
- The input for the DeletePolicyVersion operation.public Future<Void> deletePolicyVersionAsync(DeletePolicyVersionRequest request, AsyncHandler<DeletePolicyVersionRequest,Void> asyncHandler)
AWSIotAsync
Deletes the specified version of the specified policy. The default version of the policy cannot be deleted.
To delete the default version use the DeletePolicy API or mark the policy as non-default and then delete it.
deletePolicyVersionAsync
in interface AWSIotAsync
request
- The input for the DeletePolicyVersion operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteThingResult> deleteThingAsync(DeleteThingRequest request)
AWSIotAsync
Deletes the specified thing from the Thing Registry.
deleteThingAsync
in interface AWSIotAsync
request
- The input for the DeleteThing operation.public Future<DeleteThingResult> deleteThingAsync(DeleteThingRequest request, AsyncHandler<DeleteThingRequest,DeleteThingResult> asyncHandler)
AWSIotAsync
Deletes the specified thing from the Thing Registry.
deleteThingAsync
in interface AWSIotAsync
request
- The input for the DeleteThing operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> deleteTopicRuleAsync(DeleteTopicRuleRequest request)
AWSIotAsync
Deletes the specified rule.
deleteTopicRuleAsync
in interface AWSIotAsync
request
- The input for the DeleteTopicRule operation.public Future<Void> deleteTopicRuleAsync(DeleteTopicRuleRequest request, AsyncHandler<DeleteTopicRuleRequest,Void> asyncHandler)
AWSIotAsync
Deletes the specified rule.
deleteTopicRuleAsync
in interface AWSIotAsync
request
- The input for the DeleteTopicRule operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeCertificateResult> describeCertificateAsync(DescribeCertificateRequest request)
AWSIotAsync
Gets information about the specified certificate.
describeCertificateAsync
in interface AWSIotAsync
request
- The input for the DescribeCertificate operation.public Future<DescribeCertificateResult> describeCertificateAsync(DescribeCertificateRequest request, AsyncHandler<DescribeCertificateRequest,DescribeCertificateResult> asyncHandler)
AWSIotAsync
Gets information about the specified certificate.
describeCertificateAsync
in interface AWSIotAsync
request
- The input for the DescribeCertificate operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEndpointResult> describeEndpointAsync(DescribeEndpointRequest request)
AWSIotAsync
Returns a unique URL specific to the AWS account making the call. The URL points to the AWS IoT data plane endpoint. The customer-specific endpoint should be provided to all data plane operations.
describeEndpointAsync
in interface AWSIotAsync
request
- The input for the DescribeEndpoint operation.public Future<DescribeEndpointResult> describeEndpointAsync(DescribeEndpointRequest request, AsyncHandler<DescribeEndpointRequest,DescribeEndpointResult> asyncHandler)
AWSIotAsync
Returns a unique URL specific to the AWS account making the call. The URL points to the AWS IoT data plane endpoint. The customer-specific endpoint should be provided to all data plane operations.
describeEndpointAsync
in interface AWSIotAsync
request
- The input for the DescribeEndpoint operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeThingResult> describeThingAsync(DescribeThingRequest request)
AWSIotAsync
Gets information about the specified thing.
describeThingAsync
in interface AWSIotAsync
request
- The input for the DescribeThing operation.public Future<DescribeThingResult> describeThingAsync(DescribeThingRequest request, AsyncHandler<DescribeThingRequest,DescribeThingResult> asyncHandler)
AWSIotAsync
Gets information about the specified thing.
describeThingAsync
in interface AWSIotAsync
request
- The input for the DescribeThing operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> detachPrincipalPolicyAsync(DetachPrincipalPolicyRequest request)
AWSIotAsync
Removes the specified policy from the specified certificate.
detachPrincipalPolicyAsync
in interface AWSIotAsync
request
- The input for the DetachPrincipalPolicy operation.public Future<Void> detachPrincipalPolicyAsync(DetachPrincipalPolicyRequest request, AsyncHandler<DetachPrincipalPolicyRequest,Void> asyncHandler)
AWSIotAsync
Removes the specified policy from the specified certificate.
detachPrincipalPolicyAsync
in interface AWSIotAsync
request
- The input for the DetachPrincipalPolicy operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetachThingPrincipalResult> detachThingPrincipalAsync(DetachThingPrincipalRequest request)
AWSIotAsync
Detaches the specified principal from the specified thing.
detachThingPrincipalAsync
in interface AWSIotAsync
request
- The input for the DetachThingPrincipal operation.public Future<DetachThingPrincipalResult> detachThingPrincipalAsync(DetachThingPrincipalRequest request, AsyncHandler<DetachThingPrincipalRequest,DetachThingPrincipalResult> asyncHandler)
AWSIotAsync
Detaches the specified principal from the specified thing.
detachThingPrincipalAsync
in interface AWSIotAsync
request
- The input for the DetachThingPrincipal operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetLoggingOptionsResult> getLoggingOptionsAsync(GetLoggingOptionsRequest request)
AWSIotAsync
Gets the logging options.
getLoggingOptionsAsync
in interface AWSIotAsync
request
- The input for the GetLoggingOptions operation.public Future<GetLoggingOptionsResult> getLoggingOptionsAsync(GetLoggingOptionsRequest request, AsyncHandler<GetLoggingOptionsRequest,GetLoggingOptionsResult> asyncHandler)
AWSIotAsync
Gets the logging options.
getLoggingOptionsAsync
in interface AWSIotAsync
request
- The input for the GetLoggingOptions operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetPolicyResult> getPolicyAsync(GetPolicyRequest request)
AWSIotAsync
Gets information about the specified policy with the policy document of the default version.
getPolicyAsync
in interface AWSIotAsync
request
- The input for the GetPolicy operation.public Future<GetPolicyResult> getPolicyAsync(GetPolicyRequest request, AsyncHandler<GetPolicyRequest,GetPolicyResult> asyncHandler)
AWSIotAsync
Gets information about the specified policy with the policy document of the default version.
getPolicyAsync
in interface AWSIotAsync
request
- The input for the GetPolicy operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetPolicyVersionResult> getPolicyVersionAsync(GetPolicyVersionRequest request)
AWSIotAsync
Gets information about the specified policy version.
getPolicyVersionAsync
in interface AWSIotAsync
request
- The input for the GetPolicyVersion operation.public Future<GetPolicyVersionResult> getPolicyVersionAsync(GetPolicyVersionRequest request, AsyncHandler<GetPolicyVersionRequest,GetPolicyVersionResult> asyncHandler)
AWSIotAsync
Gets information about the specified policy version.
getPolicyVersionAsync
in interface AWSIotAsync
request
- The input for the GetPolicyVersion operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetTopicRuleResult> getTopicRuleAsync(GetTopicRuleRequest request)
AWSIotAsync
Gets information about the specified rule.
getTopicRuleAsync
in interface AWSIotAsync
request
- The input for the GetTopicRule operation.public Future<GetTopicRuleResult> getTopicRuleAsync(GetTopicRuleRequest request, AsyncHandler<GetTopicRuleRequest,GetTopicRuleResult> asyncHandler)
AWSIotAsync
Gets information about the specified rule.
getTopicRuleAsync
in interface AWSIotAsync
request
- The input for the GetTopicRule operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListCertificatesResult> listCertificatesAsync(ListCertificatesRequest request)
AWSIotAsync
Lists your certificates.
The results are paginated with a default page size of 25. You can retrieve additional results using the returned marker.
listCertificatesAsync
in interface AWSIotAsync
request
- The input for the ListCertificates operation.public Future<ListCertificatesResult> listCertificatesAsync(ListCertificatesRequest request, AsyncHandler<ListCertificatesRequest,ListCertificatesResult> asyncHandler)
AWSIotAsync
Lists your certificates.
The results are paginated with a default page size of 25. You can retrieve additional results using the returned marker.
listCertificatesAsync
in interface AWSIotAsync
request
- The input for the ListCertificates operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPoliciesResult> listPoliciesAsync(ListPoliciesRequest request)
AWSIotAsync
Lists your policies.
listPoliciesAsync
in interface AWSIotAsync
request
- The input for the ListPolicies operation.public Future<ListPoliciesResult> listPoliciesAsync(ListPoliciesRequest request, AsyncHandler<ListPoliciesRequest,ListPoliciesResult> asyncHandler)
AWSIotAsync
Lists your policies.
listPoliciesAsync
in interface AWSIotAsync
request
- The input for the ListPolicies operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPolicyVersionsResult> listPolicyVersionsAsync(ListPolicyVersionsRequest request)
AWSIotAsync
Lists the versions of the specified policy, and identifies the default version.
listPolicyVersionsAsync
in interface AWSIotAsync
request
- The input for the ListPolicyVersions operation.public Future<ListPolicyVersionsResult> listPolicyVersionsAsync(ListPolicyVersionsRequest request, AsyncHandler<ListPolicyVersionsRequest,ListPolicyVersionsResult> asyncHandler)
AWSIotAsync
Lists the versions of the specified policy, and identifies the default version.
listPolicyVersionsAsync
in interface AWSIotAsync
request
- The input for the ListPolicyVersions operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPrincipalPoliciesResult> listPrincipalPoliciesAsync(ListPrincipalPoliciesRequest request)
AWSIotAsync
Lists the policies attached to the specified principal. If you use an Amazon Cognito identity, the ID needs to be in Amazon Cognito Identity format.
listPrincipalPoliciesAsync
in interface AWSIotAsync
request
- The input for the ListPrincipalPolicies operation.public Future<ListPrincipalPoliciesResult> listPrincipalPoliciesAsync(ListPrincipalPoliciesRequest request, AsyncHandler<ListPrincipalPoliciesRequest,ListPrincipalPoliciesResult> asyncHandler)
AWSIotAsync
Lists the policies attached to the specified principal. If you use an Amazon Cognito identity, the ID needs to be in Amazon Cognito Identity format.
listPrincipalPoliciesAsync
in interface AWSIotAsync
request
- The input for the ListPrincipalPolicies operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPrincipalThingsResult> listPrincipalThingsAsync(ListPrincipalThingsRequest request)
AWSIotAsync
Lists the things associated with the specified principal.
listPrincipalThingsAsync
in interface AWSIotAsync
request
- The input for the ListPrincipalThings operation.public Future<ListPrincipalThingsResult> listPrincipalThingsAsync(ListPrincipalThingsRequest request, AsyncHandler<ListPrincipalThingsRequest,ListPrincipalThingsResult> asyncHandler)
AWSIotAsync
Lists the things associated with the specified principal.
listPrincipalThingsAsync
in interface AWSIotAsync
request
- The input for the ListPrincipalThings operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListThingPrincipalsResult> listThingPrincipalsAsync(ListThingPrincipalsRequest request)
AWSIotAsync
Lists the principals associated with the specified thing.
listThingPrincipalsAsync
in interface AWSIotAsync
request
- The input for the ListThingPrincipal operation.public Future<ListThingPrincipalsResult> listThingPrincipalsAsync(ListThingPrincipalsRequest request, AsyncHandler<ListThingPrincipalsRequest,ListThingPrincipalsResult> asyncHandler)
AWSIotAsync
Lists the principals associated with the specified thing.
listThingPrincipalsAsync
in interface AWSIotAsync
request
- The input for the ListThingPrincipal operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListThingsResult> listThingsAsync(ListThingsRequest request)
AWSIotAsync
Lists your things. You can pass an AttributeName and/or AttributeValue to filter your things. For example: "ListThings where AttributeName=Color and AttributeValue=Red"
listThingsAsync
in interface AWSIotAsync
request
- The input for the ListThings operation.public Future<ListThingsResult> listThingsAsync(ListThingsRequest request, AsyncHandler<ListThingsRequest,ListThingsResult> asyncHandler)
AWSIotAsync
Lists your things. You can pass an AttributeName and/or AttributeValue to filter your things. For example: "ListThings where AttributeName=Color and AttributeValue=Red"
listThingsAsync
in interface AWSIotAsync
request
- The input for the ListThings operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTopicRulesResult> listTopicRulesAsync(ListTopicRulesRequest request)
AWSIotAsync
Lists the rules for the specific topic.
listTopicRulesAsync
in interface AWSIotAsync
request
- The input for the ListTopicRules operation.public Future<ListTopicRulesResult> listTopicRulesAsync(ListTopicRulesRequest request, AsyncHandler<ListTopicRulesRequest,ListTopicRulesResult> asyncHandler)
AWSIotAsync
Lists the rules for the specific topic.
listTopicRulesAsync
in interface AWSIotAsync
request
- The input for the ListTopicRules operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> rejectCertificateTransferAsync(RejectCertificateTransferRequest request)
AWSIotAsync
Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANFER to INACTIVE.
To check for pending certificate transfers, call ListCertificates to enumerate your certificates.
This operation can only be called by the transfer destination. Once called, the certificate will be returned to the source's account in the INACTIVE state.
rejectCertificateTransferAsync
in interface AWSIotAsync
request
- The input for the RejectCertificateTransfer operation.public Future<Void> rejectCertificateTransferAsync(RejectCertificateTransferRequest request, AsyncHandler<RejectCertificateTransferRequest,Void> asyncHandler)
AWSIotAsync
Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANFER to INACTIVE.
To check for pending certificate transfers, call ListCertificates to enumerate your certificates.
This operation can only be called by the transfer destination. Once called, the certificate will be returned to the source's account in the INACTIVE state.
rejectCertificateTransferAsync
in interface AWSIotAsync
request
- The input for the RejectCertificateTransfer operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> replaceTopicRuleAsync(ReplaceTopicRuleRequest request)
AWSIotAsync
Replaces the specified rule. You must specify all parameters for the new rule.
replaceTopicRuleAsync
in interface AWSIotAsync
request
- The input for the ReplaceTopicRule operation.public Future<Void> replaceTopicRuleAsync(ReplaceTopicRuleRequest request, AsyncHandler<ReplaceTopicRuleRequest,Void> asyncHandler)
AWSIotAsync
Replaces the specified rule. You must specify all parameters for the new rule.
replaceTopicRuleAsync
in interface AWSIotAsync
request
- The input for the ReplaceTopicRule operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> setDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest request)
AWSIotAsync
Sets the specified policy version as the default for the specified policy.
setDefaultPolicyVersionAsync
in interface AWSIotAsync
request
- The input for the SetDefaultPolicyVersion operation.public Future<Void> setDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest request, AsyncHandler<SetDefaultPolicyVersionRequest,Void> asyncHandler)
AWSIotAsync
Sets the specified policy version as the default for the specified policy.
setDefaultPolicyVersionAsync
in interface AWSIotAsync
request
- The input for the SetDefaultPolicyVersion operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> setLoggingOptionsAsync(SetLoggingOptionsRequest request)
AWSIotAsync
Sets the logging options.
setLoggingOptionsAsync
in interface AWSIotAsync
request
- The input for the SetLoggingOptions operation.public Future<Void> setLoggingOptionsAsync(SetLoggingOptionsRequest request, AsyncHandler<SetLoggingOptionsRequest,Void> asyncHandler)
AWSIotAsync
Sets the logging options.
setLoggingOptionsAsync
in interface AWSIotAsync
request
- The input for the SetLoggingOptions operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TransferCertificateResult> transferCertificateAsync(TransferCertificateRequest request)
AWSIotAsync
Transfers the specified certificate to the specified AWS account.
You can cancel the transfer until it is acknowledged by the recipient.
No notification is sent to the transfer destination's account, it is up to the caller to notify the transfer target.
The certificate being transferred must not be in the ACTIVE state. It can be deactivated using the UpdateCertificate API.
The certificate must not have any policies attached to it. These can be detached using the DetachPrincipalPolicy API.
transferCertificateAsync
in interface AWSIotAsync
request
- The input for the TransferCertificate operation.public Future<TransferCertificateResult> transferCertificateAsync(TransferCertificateRequest request, AsyncHandler<TransferCertificateRequest,TransferCertificateResult> asyncHandler)
AWSIotAsync
Transfers the specified certificate to the specified AWS account.
You can cancel the transfer until it is acknowledged by the recipient.
No notification is sent to the transfer destination's account, it is up to the caller to notify the transfer target.
The certificate being transferred must not be in the ACTIVE state. It can be deactivated using the UpdateCertificate API.
The certificate must not have any policies attached to it. These can be detached using the DetachPrincipalPolicy API.
transferCertificateAsync
in interface AWSIotAsync
request
- The input for the TransferCertificate operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> updateCertificateAsync(UpdateCertificateRequest request)
AWSIotAsync
Updates the status of the specified certificate. This operation is idempotent.
Moving a cert from the ACTIVE state (including REVOKED) will NOT disconnect currently-connected devices, although these devices will be unable to reconnect.
The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.
updateCertificateAsync
in interface AWSIotAsync
request
- The input for the UpdateCertificate operation.public Future<Void> updateCertificateAsync(UpdateCertificateRequest request, AsyncHandler<UpdateCertificateRequest,Void> asyncHandler)
AWSIotAsync
Updates the status of the specified certificate. This operation is idempotent.
Moving a cert from the ACTIVE state (including REVOKED) will NOT disconnect currently-connected devices, although these devices will be unable to reconnect.
The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.
updateCertificateAsync
in interface AWSIotAsync
request
- The input for the UpdateCertificate operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateThingResult> updateThingAsync(UpdateThingRequest request)
AWSIotAsync
Updates the data for a thing.
updateThingAsync
in interface AWSIotAsync
request
- The input for the UpdateThing operation.public Future<UpdateThingResult> updateThingAsync(UpdateThingRequest request, AsyncHandler<UpdateThingRequest,UpdateThingResult> asyncHandler)
AWSIotAsync
Updates the data for a thing.
updateThingAsync
in interface AWSIotAsync
request
- The input for the UpdateThing operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by
getExecutorService().awaitTermination()
prior to calling this
method.shutdown
in interface AWSIot
shutdown
in class AmazonWebServiceClient
Copyright © 2015. All rights reserved.