public class AbstractAWSIotAsync extends AbstractAWSIot implements AWSIotAsync
AWSIotAsync
. Convenient method forms pass
through to the corresponding overload that takes a request object and an
AsyncHandler
, which throws an UnsupportedOperationException
.acceptCertificateTransfer, attachPrincipalPolicy, attachThingPrincipal, cancelCertificateTransfer, createCertificateFromCsr, createKeysAndCertificate, createPolicy, createPolicyVersion, createThing, createTopicRule, deleteCertificate, deletePolicy, deletePolicyVersion, deleteThing, deleteTopicRule, describeCertificate, describeEndpoint, describeThing, detachPrincipalPolicy, detachThingPrincipal, disableTopicRule, enableTopicRule, getCachedResponseMetadata, getLoggingOptions, getPolicy, getPolicyVersion, getTopicRule, listCertificates, listPolicies, listPolicyVersions, listPrincipalPolicies, listPrincipalThings, listThingPrincipals, listThings, listTopicRules, rejectCertificateTransfer, replaceTopicRule, setDefaultPolicyVersion, setEndpoint, setLoggingOptions, setRegion, shutdown, transferCertificate, updateCertificate, updateThing
equals, 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, disableTopicRule, enableTopicRule, getCachedResponseMetadata, getLoggingOptions, getPolicy, getPolicyVersion, getTopicRule, listCertificates, listPolicies, listPolicyVersions, listPrincipalPolicies, listPrincipalThings, listThingPrincipals, listThings, listTopicRules, rejectCertificateTransfer, replaceTopicRule, setDefaultPolicyVersion, setEndpoint, setLoggingOptions, setRegion, shutdown, transferCertificate, updateCertificate, updateThing
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.
You can create multiple certificates in a batch by creating a directory and copying multiple .csr files into that directory and 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 OSX, 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 filename 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 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"
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.
You can create multiple certificates in a batch by creating a directory and copying multiple .csr files into that directory and 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 OSX, 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 filename 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 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"
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. 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 delete an existing version using DeletePolicyVersion before you create a new version.
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 that the policy is attached to.
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. 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 delete an existing version using DeletePolicyVersion before you create a new version.
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 that the policy is attached to.
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 or if its status is set to ACTIVE. To delete a certificate, first detach all policies using the DetachPrincipalPolicy API. Next use the UpdateCertificate API to set the certificate to the INACTIVE status.
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 or if its status is set to ACTIVE. To delete a certificate, first detach all policies using the DetachPrincipalPolicy API. Next use the UpdateCertificate API to set the certificate to the INACTIVE status.
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 and/or it is attached to any certificate.
To delete a policy, delete all non-default versions of the policy using the DeletePolicyVersion API, detach the policy from any certificate using the DetachPrincipalPolicy API, and then use the DeletePolicy API to delete the policy.
When a policy is deleted using DeletePolicy, 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 and/or it is attached to any certificate.
To delete a policy, delete all non-default versions of the policy using the DeletePolicyVersion API, detach the policy from any certificate using the DetachPrincipalPolicy API, and then use the DeletePolicy API to delete the policy.
When a policy is deleted using DeletePolicy, 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. 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.
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. 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.
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 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.
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 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.
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<Void> disableTopicRuleAsync(DisableTopicRuleRequest request)
AWSIotAsync
Disables the specified rule
disableTopicRuleAsync
in interface AWSIotAsync
request
- The input for the DisableTopicRuleRequest operation.public Future<Void> disableTopicRuleAsync(DisableTopicRuleRequest request, AsyncHandler<DisableTopicRuleRequest,Void> asyncHandler)
AWSIotAsync
Disables the specified rule
disableTopicRuleAsync
in interface AWSIotAsync
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.public Future<Void> enableTopicRuleAsync(EnableTopicRuleRequest request)
AWSIotAsync
Enables the specified rule.
enableTopicRuleAsync
in interface AWSIotAsync
request
- The input for the EnableTopicRuleRequest operation.public Future<Void> enableTopicRuleAsync(EnableTopicRuleRequest request, AsyncHandler<EnableTopicRuleRequest,Void> asyncHandler)
AWSIotAsync
Enables the specified rule.
enableTopicRuleAsync
in interface AWSIotAsync
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.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 version of the specified policy as the policy's default (operative) version. This action affects all certificates that the policy is attached to. To list the principals the policy is attached to, use the ListPrincipalPolicy API.
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 version of the specified policy as the policy's default (operative) version. This action affects all certificates that the policy is attached to. To list the principals the policy is attached to, use the ListPrincipalPolicy API.
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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.