Class AWSIotAsyncClient

  • All Implemented Interfaces:
    AWSIot, AWSIotAsync

    @ThreadSafe
    public class AWSIotAsyncClient
    extends AWSIotClient
    implements AWSIotAsync
    Interface for accessing AWS IoT asynchronously. Each asynchronous method will return a Java Future object representing the asynchronous operation; overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes.

    AWS IoT

    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.

    • Constructor Detail

      • AWSIotAsyncClient

        public AWSIotAsyncClient()
        Constructs a new asynchronous client to invoke service methods on AWS IoT. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        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).

        See Also:
        DefaultAWSCredentialsProviderChain, Executors.newFixedThreadPool(int)
      • AWSIotAsyncClient

        public AWSIotAsyncClient​(ClientConfiguration clientConfiguration)
        Constructs a new asynchronous client to invoke service methods on AWS IoT. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        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().

        Parameters:
        clientConfiguration - The client configuration options controlling how this client connects to AWS IoT (ex: proxy settings, retry counts, etc).
        See Also:
        DefaultAWSCredentialsProviderChain, Executors.newFixedThreadPool(int)
      • AWSIotAsyncClient

        public AWSIotAsyncClient​(AWSCredentials awsCredentials)
        Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials.

        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).

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
        See Also:
        Executors.newFixedThreadPool(int)
      • AWSIotAsyncClient

        public 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. Default client settings will be used.
        Parameters:
        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.
      • AWSIotAsyncClient

        public 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.
        Parameters:
        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.
      • AWSIotAsyncClient

        public AWSIotAsyncClient​(AWSCredentialsProvider awsCredentialsProvider)
        Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials provider. Default client settings will be used.

        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).

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        See Also:
        Executors.newFixedThreadPool(int)
      • AWSIotAsyncClient

        public 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.

        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().

        Parameters:
        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).
        See Also:
        DefaultAWSCredentialsProviderChain, Executors.newFixedThreadPool(int)
      • AWSIotAsyncClient

        public 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. Default client settings will be used.
        Parameters:
        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.
      • AWSIotAsyncClient

        public 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.
        Parameters:
        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.
    • Method Detail

      • getExecutorService

        public ExecutorService getExecutorService()
        Returns the executor service used by this client to execute async requests.
        Returns:
        The executor service used by this client to execute async requests.
      • cancelCertificateTransferAsync

        public Future<CancelCertificateTransferResult> cancelCertificateTransferAsync​(CancelCertificateTransferRequest request)
        Description copied from interface: 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. After the destination account has accepted the transfer, the transfer cannot be cancelled.

        After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.

        Specified by:
        cancelCertificateTransferAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CancelCertificateTransfer operation.
        Returns:
        A Java Future containing the result of the CancelCertificateTransfer operation returned by the service.
      • cancelCertificateTransferAsync

        public Future<CancelCertificateTransferResult> cancelCertificateTransferAsync​(CancelCertificateTransferRequest request,
                                                                                      AsyncHandler<CancelCertificateTransferRequest,​CancelCertificateTransferResult> asyncHandler)
        Description copied from interface: 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. After the destination account has accepted the transfer, the transfer cannot be cancelled.

        After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.

        Specified by:
        cancelCertificateTransferAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CancelCertificateTransfer operation returned by the service.
      • createCertificateFromCsrAsync

        public Future<CreateCertificateFromCsrResult> createCertificateFromCsrAsync​(CreateCertificateFromCsrRequest request)
        Description copied from interface: 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.

        You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs.

        Assuming a set of CSRs are located inside of the directory my-csr-directory:

        >

        On Linux and OS X, the command is:

        $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

        This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr AWS CLI command to create a certificate for the corresponding CSR.

        The aws iot create-certificate-from-csr part of the command can also be run in parallel to speed up the certificate creation process:

        $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

        On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is:

        > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_}

        On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is:

        > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path"

        Specified by:
        createCertificateFromCsrAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CreateCertificateFromCsr operation.
        Returns:
        A Java Future containing the result of the CreateCertificateFromCsr operation returned by the service.
      • createCertificateFromCsrAsync

        public Future<CreateCertificateFromCsrResult> createCertificateFromCsrAsync​(CreateCertificateFromCsrRequest request,
                                                                                    AsyncHandler<CreateCertificateFromCsrRequest,​CreateCertificateFromCsrResult> asyncHandler)
        Description copied from interface: 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.

        You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs.

        Assuming a set of CSRs are located inside of the directory my-csr-directory:

        >

        On Linux and OS X, the command is:

        $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

        This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr AWS CLI command to create a certificate for the corresponding CSR.

        The aws iot create-certificate-from-csr part of the command can also be run in parallel to speed up the certificate creation process:

        $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

        On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is:

        > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_}

        On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is:

        > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path"

        Specified by:
        createCertificateFromCsrAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CreateCertificateFromCsr operation returned by the service.
      • createKeysAndCertificateAsync

        public Future<CreateKeysAndCertificateResult> createKeysAndCertificateAsync​(CreateKeysAndCertificateRequest request)
        Description copied from interface: 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, so it is important to keep it in a secure location.

        Specified by:
        createKeysAndCertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CreateKeysAndCertificate operation.
        Returns:
        A Java Future containing the result of the CreateKeysAndCertificate operation returned by the service.
      • createKeysAndCertificateAsync

        public Future<CreateKeysAndCertificateResult> createKeysAndCertificateAsync​(CreateKeysAndCertificateRequest request,
                                                                                    AsyncHandler<CreateKeysAndCertificateRequest,​CreateKeysAndCertificateResult> asyncHandler)
        Description copied from interface: 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, so it is important to keep it in a secure location.

        Specified by:
        createKeysAndCertificateAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CreateKeysAndCertificate operation returned by the service.
      • createPolicyAsync

        public Future<CreatePolicyResult> createPolicyAsync​(CreatePolicyRequest request)
        Description copied from interface: 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.

        Specified by:
        createPolicyAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CreatePolicy operation.
        Returns:
        A Java Future containing the result of the CreatePolicy operation returned by the service.
      • createPolicyAsync

        public Future<CreatePolicyResult> createPolicyAsync​(CreatePolicyRequest request,
                                                            AsyncHandler<CreatePolicyRequest,​CreatePolicyResult> asyncHandler)
        Description copied from interface: 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.

        Specified by:
        createPolicyAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CreatePolicy operation returned by the service.
      • createPolicyVersionAsync

        public Future<CreatePolicyVersionResult> createPolicyVersionAsync​(CreatePolicyVersionRequest request)
        Description copied from interface: AWSIotAsync

        Creates a new version of the specified AWS IoT policy. To update a policy, create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must use DeletePolicyVersion to delete an existing version before you create a new one.

        Optionally, you can set the new version as the policy's default version. The default version is the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

        Specified by:
        createPolicyVersionAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CreatePolicyVersion operation.
        Returns:
        A Java Future containing the result of the CreatePolicyVersion operation returned by the service.
      • createPolicyVersionAsync

        public Future<CreatePolicyVersionResult> createPolicyVersionAsync​(CreatePolicyVersionRequest request,
                                                                          AsyncHandler<CreatePolicyVersionRequest,​CreatePolicyVersionResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Creates a new version of the specified AWS IoT policy. To update a policy, create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must use DeletePolicyVersion to delete an existing version before you create a new one.

        Optionally, you can set the new version as the policy's default version. The default version is the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

        Specified by:
        createPolicyVersionAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CreatePolicyVersion operation returned by the service.
      • createThingAsync

        public Future<CreateThingResult> createThingAsync​(CreateThingRequest request)
        Description copied from interface: AWSIotAsync

        Creates a thing in the Thing Registry.

        Specified by:
        createThingAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CreateThing operation.
        Returns:
        A Java Future containing the result of the CreateThing operation returned by the service.
      • createThingAsync

        public Future<CreateThingResult> createThingAsync​(CreateThingRequest request,
                                                          AsyncHandler<CreateThingRequest,​CreateThingResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Creates a thing in the Thing Registry.

        Specified by:
        createThingAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CreateThing operation returned by the service.
      • createTopicRuleAsync

        public Future<CreateTopicRuleResult> createTopicRuleAsync​(CreateTopicRuleRequest request)
        Description copied from interface: AWSIotAsync

        Creates a rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

        Specified by:
        createTopicRuleAsync in interface AWSIotAsync
        Parameters:
        request - The input for the CreateTopicRule operation.
        Returns:
        A Java Future containing the result of the CreateTopicRule operation returned by the service.
      • createTopicRuleAsync

        public Future<CreateTopicRuleResult> createTopicRuleAsync​(CreateTopicRuleRequest request,
                                                                  AsyncHandler<CreateTopicRuleRequest,​CreateTopicRuleResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Creates a rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

        Specified by:
        createTopicRuleAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the CreateTopicRule operation returned by the service.
      • deleteCertificateAsync

        public Future<DeleteCertificateResult> deleteCertificateAsync​(DeleteCertificateRequest request)
        Description copied from interface: AWSIotAsync

        Deletes the specified certificate.

        A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

        Specified by:
        deleteCertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DeleteCertificate operation.
        Returns:
        A Java Future containing the result of the DeleteCertificate operation returned by the service.
      • deleteCertificateAsync

        public Future<DeleteCertificateResult> deleteCertificateAsync​(DeleteCertificateRequest request,
                                                                      AsyncHandler<DeleteCertificateRequest,​DeleteCertificateResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Deletes the specified certificate.

        A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

        Specified by:
        deleteCertificateAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DeleteCertificate operation returned by the service.
      • deletePolicyAsync

        public Future<DeletePolicyResult> deletePolicyAsync​(DeletePolicyRequest request)
        Description copied from interface: AWSIotAsync

        Deletes the specified policy.

        A policy cannot be deleted if it has non-default versions or it is attached to any certificate.

        To delete a policy, use the DeletePolicyVersion API to delete all non-default versions of the policy; use the DetachPrincipalPolicy API to detach the policy from any certificate; and then use the DeletePolicy API to delete the policy.

        When a policy is deleted using DeletePolicy, its default version is deleted with it.

        Specified by:
        deletePolicyAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DeletePolicy operation.
        Returns:
        A Java Future containing the result of the DeletePolicy operation returned by the service.
      • deletePolicyAsync

        public Future<DeletePolicyResult> deletePolicyAsync​(DeletePolicyRequest request,
                                                            AsyncHandler<DeletePolicyRequest,​DeletePolicyResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Deletes the specified policy.

        A policy cannot be deleted if it has non-default versions or it is attached to any certificate.

        To delete a policy, use the DeletePolicyVersion API to delete all non-default versions of the policy; use the DetachPrincipalPolicy API to detach the policy from any certificate; and then use the DeletePolicy API to delete the policy.

        When a policy is deleted using DeletePolicy, its default version is deleted with it.

        Specified by:
        deletePolicyAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DeletePolicy operation returned by the service.
      • deletePolicyVersionAsync

        public Future<DeletePolicyVersionResult> deletePolicyVersionAsync​(DeletePolicyVersionRequest request)
        Description copied from interface: AWSIotAsync

        Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

        Specified by:
        deletePolicyVersionAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DeletePolicyVersion operation.
        Returns:
        A Java Future containing the result of the DeletePolicyVersion operation returned by the service.
      • deletePolicyVersionAsync

        public Future<DeletePolicyVersionResult> deletePolicyVersionAsync​(DeletePolicyVersionRequest request,
                                                                          AsyncHandler<DeletePolicyVersionRequest,​DeletePolicyVersionResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

        Specified by:
        deletePolicyVersionAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DeletePolicyVersion operation returned by the service.
      • deleteThingAsync

        public Future<DeleteThingResult> deleteThingAsync​(DeleteThingRequest request)
        Description copied from interface: AWSIotAsync

        Deletes the specified thing from the Thing Registry.

        Specified by:
        deleteThingAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DeleteThing operation.
        Returns:
        A Java Future containing the result of the DeleteThing operation returned by the service.
      • deleteThingAsync

        public Future<DeleteThingResult> deleteThingAsync​(DeleteThingRequest request,
                                                          AsyncHandler<DeleteThingRequest,​DeleteThingResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Deletes the specified thing from the Thing Registry.

        Specified by:
        deleteThingAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DeleteThing operation returned by the service.
      • deleteTopicRuleAsync

        public Future<DeleteTopicRuleResult> deleteTopicRuleAsync​(DeleteTopicRuleRequest request,
                                                                  AsyncHandler<DeleteTopicRuleRequest,​DeleteTopicRuleResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Deletes the specified rule.

        Specified by:
        deleteTopicRuleAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DeleteTopicRule operation returned by the service.
      • describeEndpointAsync

        public Future<DescribeEndpointResult> describeEndpointAsync​(DescribeEndpointRequest request)
        Description copied from interface: AWSIotAsync

        Returns a unique endpoint specific to the AWS account making the call. You specify the following URI when updating state information for your thing: https://endpoint/things/thingName/shadow.

        Specified by:
        describeEndpointAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DescribeEndpoint operation.
        Returns:
        A Java Future containing the result of the DescribeEndpoint operation returned by the service.
      • describeEndpointAsync

        public Future<DescribeEndpointResult> describeEndpointAsync​(DescribeEndpointRequest request,
                                                                    AsyncHandler<DescribeEndpointRequest,​DescribeEndpointResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Returns a unique endpoint specific to the AWS account making the call. You specify the following URI when updating state information for your thing: https://endpoint/things/thingName/shadow.

        Specified by:
        describeEndpointAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DescribeEndpoint operation returned by the service.
      • describeThingAsync

        public Future<DescribeThingResult> describeThingAsync​(DescribeThingRequest request)
        Description copied from interface: AWSIotAsync

        Gets information about the specified thing.

        Specified by:
        describeThingAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DescribeThing operation.
        Returns:
        A Java Future containing the result of the DescribeThing operation returned by the service.
      • describeThingAsync

        public Future<DescribeThingResult> describeThingAsync​(DescribeThingRequest request,
                                                              AsyncHandler<DescribeThingRequest,​DescribeThingResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Gets information about the specified thing.

        Specified by:
        describeThingAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the DescribeThing operation returned by the service.
      • disableTopicRuleAsync

        public Future<DisableTopicRuleResult> disableTopicRuleAsync​(DisableTopicRuleRequest request,
                                                                    AsyncHandler<DisableTopicRuleRequest,​DisableTopicRuleResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Disables the specified rule.

        Specified by:
        disableTopicRuleAsync in interface AWSIotAsync
        Parameters:
        request - The input for the DisableTopicRuleRequest 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.
        Returns:
        A Java Future containing the result of the DisableTopicRule operation returned by the service.
      • enableTopicRuleAsync

        public Future<EnableTopicRuleResult> enableTopicRuleAsync​(EnableTopicRuleRequest request,
                                                                  AsyncHandler<EnableTopicRuleRequest,​EnableTopicRuleResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Enables the specified rule.

        Specified by:
        enableTopicRuleAsync in interface AWSIotAsync
        Parameters:
        request - The input for the EnableTopicRuleRequest 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.
        Returns:
        A Java Future containing the result of the EnableTopicRule operation returned by the service.
      • getPolicyAsync

        public Future<GetPolicyResult> getPolicyAsync​(GetPolicyRequest request)
        Description copied from interface: AWSIotAsync

        Gets information about the specified policy with the policy document of the default version.

        Specified by:
        getPolicyAsync in interface AWSIotAsync
        Parameters:
        request - The input for the GetPolicy operation.
        Returns:
        A Java Future containing the result of the GetPolicy operation returned by the service.
      • getPolicyAsync

        public Future<GetPolicyResult> getPolicyAsync​(GetPolicyRequest request,
                                                      AsyncHandler<GetPolicyRequest,​GetPolicyResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Gets information about the specified policy with the policy document of the default version.

        Specified by:
        getPolicyAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the GetPolicy operation returned by the service.
      • getPolicyVersionAsync

        public Future<GetPolicyVersionResult> getPolicyVersionAsync​(GetPolicyVersionRequest request,
                                                                    AsyncHandler<GetPolicyVersionRequest,​GetPolicyVersionResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Gets information about the specified policy version.

        Specified by:
        getPolicyVersionAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the GetPolicyVersion operation returned by the service.
      • getRegistrationCodeAsync

        public Future<GetRegistrationCodeResult> getRegistrationCodeAsync​(GetRegistrationCodeRequest request,
                                                                          AsyncHandler<GetRegistrationCodeRequest,​GetRegistrationCodeResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Gets a registration code used to register a CA certificate with AWS IoT.

        Specified by:
        getRegistrationCodeAsync in interface AWSIotAsync
        Parameters:
        request - The input to the GetRegistrationCode 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.
        Returns:
        A Java Future containing the result of the GetRegistrationCode operation returned by the service.
      • getTopicRuleAsync

        public Future<GetTopicRuleResult> getTopicRuleAsync​(GetTopicRuleRequest request)
        Description copied from interface: AWSIotAsync

        Gets information about the specified rule.

        Specified by:
        getTopicRuleAsync in interface AWSIotAsync
        Parameters:
        request - The input for the GetTopicRule operation.
        Returns:
        A Java Future containing the result of the GetTopicRule operation returned by the service.
      • getTopicRuleAsync

        public Future<GetTopicRuleResult> getTopicRuleAsync​(GetTopicRuleRequest request,
                                                            AsyncHandler<GetTopicRuleRequest,​GetTopicRuleResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Gets information about the specified rule.

        Specified by:
        getTopicRuleAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the GetTopicRule operation returned by the service.
      • listCACertificatesAsync

        public Future<ListCACertificatesResult> listCACertificatesAsync​(ListCACertificatesRequest request)
        Description copied from interface: AWSIotAsync

        Lists the CA certificates registered for your AWS account.

        The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

        Specified by:
        listCACertificatesAsync in interface AWSIotAsync
        Parameters:
        request - Input for the ListCACertificates operation.
        Returns:
        A Java Future containing the result of the ListCACertificates operation returned by the service.
      • listCACertificatesAsync

        public Future<ListCACertificatesResult> listCACertificatesAsync​(ListCACertificatesRequest request,
                                                                        AsyncHandler<ListCACertificatesRequest,​ListCACertificatesResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Lists the CA certificates registered for your AWS account.

        The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

        Specified by:
        listCACertificatesAsync in interface AWSIotAsync
        Parameters:
        request - Input for the ListCACertificates 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.
        Returns:
        A Java Future containing the result of the ListCACertificates operation returned by the service.
      • listCertificatesAsync

        public Future<ListCertificatesResult> listCertificatesAsync​(ListCertificatesRequest request)
        Description copied from interface: AWSIotAsync

        Lists the certificates registered in your AWS account.

        The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

        Specified by:
        listCertificatesAsync in interface AWSIotAsync
        Parameters:
        request - The input for the ListCertificates operation.
        Returns:
        A Java Future containing the result of the ListCertificates operation returned by the service.
      • listCertificatesAsync

        public Future<ListCertificatesResult> listCertificatesAsync​(ListCertificatesRequest request,
                                                                    AsyncHandler<ListCertificatesRequest,​ListCertificatesResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Lists the certificates registered in your AWS account.

        The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

        Specified by:
        listCertificatesAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the ListCertificates operation returned by the service.
      • listPoliciesAsync

        public Future<ListPoliciesResult> listPoliciesAsync​(ListPoliciesRequest request,
                                                            AsyncHandler<ListPoliciesRequest,​ListPoliciesResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Lists your policies.

        Specified by:
        listPoliciesAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the ListPolicies operation returned by the service.
      • listPolicyVersionsAsync

        public Future<ListPolicyVersionsResult> listPolicyVersionsAsync​(ListPolicyVersionsRequest request,
                                                                        AsyncHandler<ListPolicyVersionsRequest,​ListPolicyVersionsResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Lists the versions of the specified policy, and identifies the default version.

        Specified by:
        listPolicyVersionsAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the ListPolicyVersions operation returned by the service.
      • listThingsAsync

        public Future<ListThingsResult> listThingsAsync​(ListThingsRequest request)
        Description copied from interface: AWSIotAsync

        Lists your things. You can pass an AttributeName or AttributeValue to filter your things (for example, "ListThings where AttributeName=Color and AttributeValue=Red").

        Specified by:
        listThingsAsync in interface AWSIotAsync
        Parameters:
        request - The input for the ListThings operation.
        Returns:
        A Java Future containing the result of the ListThings operation returned by the service.
      • listThingsAsync

        public Future<ListThingsResult> listThingsAsync​(ListThingsRequest request,
                                                        AsyncHandler<ListThingsRequest,​ListThingsResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Lists your things. You can pass an AttributeName or AttributeValue to filter your things (for example, "ListThings where AttributeName=Color and AttributeValue=Red").

        Specified by:
        listThingsAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the ListThings operation returned by the service.
      • listTopicRulesAsync

        public Future<ListTopicRulesResult> listTopicRulesAsync​(ListTopicRulesRequest request,
                                                                AsyncHandler<ListTopicRulesRequest,​ListTopicRulesResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Lists the rules for the specific topic.

        Specified by:
        listTopicRulesAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the ListTopicRules operation returned by the service.
      • registerCACertificateAsync

        public Future<RegisterCACertificateResult> registerCACertificateAsync​(RegisterCACertificateRequest request)
        Description copied from interface: AWSIotAsync

        Registers a CA certificate with AWS IoT. This CA certificate can then be used to sign device certificates, which can be then registered with AWS IoT. You can register up to 10 CA certificates per AWS account that have the same subject field and public key. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate API.

        Specified by:
        registerCACertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input to the RegisterCACertificate operation.
        Returns:
        A Java Future containing the result of the RegisterCACertificate operation returned by the service.
      • registerCACertificateAsync

        public Future<RegisterCACertificateResult> registerCACertificateAsync​(RegisterCACertificateRequest request,
                                                                              AsyncHandler<RegisterCACertificateRequest,​RegisterCACertificateResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Registers a CA certificate with AWS IoT. This CA certificate can then be used to sign device certificates, which can be then registered with AWS IoT. You can register up to 10 CA certificates per AWS account that have the same subject field and public key. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate API.

        Specified by:
        registerCACertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input to the RegisterCACertificate 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.
        Returns:
        A Java Future containing the result of the RegisterCACertificate operation returned by the service.
      • registerCertificateAsync

        public Future<RegisterCertificateResult> registerCertificateAsync​(RegisterCertificateRequest request)
        Description copied from interface: AWSIotAsync

        Registers a device certificate with AWS IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

        Specified by:
        registerCertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input to the RegisterCertificate operation.
        Returns:
        A Java Future containing the result of the RegisterCertificate operation returned by the service.
      • registerCertificateAsync

        public Future<RegisterCertificateResult> registerCertificateAsync​(RegisterCertificateRequest request,
                                                                          AsyncHandler<RegisterCertificateRequest,​RegisterCertificateResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Registers a device certificate with AWS IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

        Specified by:
        registerCertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input to the RegisterCertificate 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.
        Returns:
        A Java Future containing the result of the RegisterCertificate operation returned by the service.
      • rejectCertificateTransferAsync

        public Future<RejectCertificateTransferResult> rejectCertificateTransferAsync​(RejectCertificateTransferRequest request)
        Description copied from interface: AWSIotAsync

        Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

        To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

        This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.

        Specified by:
        rejectCertificateTransferAsync in interface AWSIotAsync
        Parameters:
        request - The input for the RejectCertificateTransfer operation.
        Returns:
        A Java Future containing the result of the RejectCertificateTransfer operation returned by the service.
      • rejectCertificateTransferAsync

        public Future<RejectCertificateTransferResult> rejectCertificateTransferAsync​(RejectCertificateTransferRequest request,
                                                                                      AsyncHandler<RejectCertificateTransferRequest,​RejectCertificateTransferResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

        To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

        This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.

        Specified by:
        rejectCertificateTransferAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the RejectCertificateTransfer operation returned by the service.
      • replaceTopicRuleAsync

        public Future<ReplaceTopicRuleResult> replaceTopicRuleAsync​(ReplaceTopicRuleRequest request)
        Description copied from interface: AWSIotAsync

        Replaces the specified rule. You must specify all parameters for the new rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

        Specified by:
        replaceTopicRuleAsync in interface AWSIotAsync
        Parameters:
        request - The input for the ReplaceTopicRule operation.
        Returns:
        A Java Future containing the result of the ReplaceTopicRule operation returned by the service.
      • replaceTopicRuleAsync

        public Future<ReplaceTopicRuleResult> replaceTopicRuleAsync​(ReplaceTopicRuleRequest request,
                                                                    AsyncHandler<ReplaceTopicRuleRequest,​ReplaceTopicRuleResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Replaces the specified rule. You must specify all parameters for the new rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

        Specified by:
        replaceTopicRuleAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the ReplaceTopicRule operation returned by the service.
      • setDefaultPolicyVersionAsync

        public Future<SetDefaultPolicyVersionResult> setDefaultPolicyVersionAsync​(SetDefaultPolicyVersionRequest request)
        Description copied from interface: AWSIotAsync

        Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy API.

        Specified by:
        setDefaultPolicyVersionAsync in interface AWSIotAsync
        Parameters:
        request - The input for the SetDefaultPolicyVersion operation.
        Returns:
        A Java Future containing the result of the SetDefaultPolicyVersion operation returned by the service.
      • setDefaultPolicyVersionAsync

        public Future<SetDefaultPolicyVersionResult> setDefaultPolicyVersionAsync​(SetDefaultPolicyVersionRequest request,
                                                                                  AsyncHandler<SetDefaultPolicyVersionRequest,​SetDefaultPolicyVersionResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy API.

        Specified by:
        setDefaultPolicyVersionAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the SetDefaultPolicyVersion operation returned by the service.
      • transferCertificateAsync

        public Future<TransferCertificateResult> transferCertificateAsync​(TransferCertificateRequest request)
        Description copied from interface: 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. You can use the UpdateCertificate API to deactivate it.

        The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.

        Specified by:
        transferCertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input for the TransferCertificate operation.
        Returns:
        A Java Future containing the result of the TransferCertificate operation returned by the service.
      • transferCertificateAsync

        public Future<TransferCertificateResult> transferCertificateAsync​(TransferCertificateRequest request,
                                                                          AsyncHandler<TransferCertificateRequest,​TransferCertificateResult> asyncHandler)
        Description copied from interface: 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. You can use the UpdateCertificate API to deactivate it.

        The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.

        Specified by:
        transferCertificateAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the TransferCertificate operation returned by the service.
      • updateCertificateAsync

        public Future<UpdateCertificateResult> updateCertificateAsync​(UpdateCertificateRequest request)
        Description copied from interface: AWSIotAsync

        Updates the status of the specified certificate. This operation is idempotent.

        Moving a certificate from the ACTIVE state (including REVOKED) will not disconnect currently connected devices, but these devices will be unable to reconnect.

        The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.

        Specified by:
        updateCertificateAsync in interface AWSIotAsync
        Parameters:
        request - The input for the UpdateCertificate operation.
        Returns:
        A Java Future containing the result of the UpdateCertificate operation returned by the service.
      • updateCertificateAsync

        public Future<UpdateCertificateResult> updateCertificateAsync​(UpdateCertificateRequest request,
                                                                      AsyncHandler<UpdateCertificateRequest,​UpdateCertificateResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Updates the status of the specified certificate. This operation is idempotent.

        Moving a certificate from the ACTIVE state (including REVOKED) will not disconnect currently connected devices, but these devices will be unable to reconnect.

        The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.

        Specified by:
        updateCertificateAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the UpdateCertificate operation returned by the service.
      • updateThingAsync

        public Future<UpdateThingResult> updateThingAsync​(UpdateThingRequest request)
        Description copied from interface: AWSIotAsync

        Updates the data for a thing.

        Specified by:
        updateThingAsync in interface AWSIotAsync
        Parameters:
        request - The input for the UpdateThing operation.
        Returns:
        A Java Future containing the result of the UpdateThing operation returned by the service.
      • updateThingAsync

        public Future<UpdateThingResult> updateThingAsync​(UpdateThingRequest request,
                                                          AsyncHandler<UpdateThingRequest,​UpdateThingResult> asyncHandler)
        Description copied from interface: AWSIotAsync

        Updates the data for a thing.

        Specified by:
        updateThingAsync in interface AWSIotAsync
        Parameters:
        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.
        Returns:
        A Java Future containing the result of the UpdateThing operation returned by the service.
      • shutdown

        public void shutdown()
        Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
        Specified by:
        shutdown in interface AWSIot
        Overrides:
        shutdown in class AmazonWebServiceClient