Class AWSIotAsyncClient
- All Implemented Interfaces:
AWSIot
,AWSIotAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
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.
-
Field Summary
Fields inherited from class com.amazonaws.services.iot.AWSIotClient
configFactory
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on AWS IoT.AWSIotAsyncClient
(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials.AWSIotAsyncClient
(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials provider.AWSIotAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on AWS IoT using the provided AWS account credentials provider and client configuration options.AWSIotAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials provider, executor service, and client configuration options.AWSIotAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials provider and executor service.AWSIotAsyncClient
(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials, executor service, and client configuration options.AWSIotAsyncClient
(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on AWS IoT using the specified AWS account credentials and executor service.AWSIotAsyncClient
(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on AWS IoT. -
Method Summary
Modifier and TypeMethodDescriptionAccepts a pending certificate transfer.acceptCertificateTransferAsync
(AcceptCertificateTransferRequest request, AsyncHandler<AcceptCertificateTransferRequest, AcceptCertificateTransferResult> asyncHandler) Accepts a pending certificate transfer.Attaches the specified policy to the specified principal (certificate or other credential).attachPrincipalPolicyAsync
(AttachPrincipalPolicyRequest request, AsyncHandler<AttachPrincipalPolicyRequest, AttachPrincipalPolicyResult> asyncHandler) Attaches the specified policy to the specified principal (certificate or other credential).Attaches the specified principal to the specified thing.attachThingPrincipalAsync
(AttachThingPrincipalRequest request, AsyncHandler<AttachThingPrincipalRequest, AttachThingPrincipalResult> asyncHandler) Attaches the specified principal to the specified thing.Cancels a pending transfer for the specified certificate.cancelCertificateTransferAsync
(CancelCertificateTransferRequest request, AsyncHandler<CancelCertificateTransferRequest, CancelCertificateTransferResult> asyncHandler) Cancels a pending transfer for the specified certificate.Creates an X.509 certificate using the specified certificate signing request.createCertificateFromCsrAsync
(CreateCertificateFromCsrRequest request, AsyncHandler<CreateCertificateFromCsrRequest, CreateCertificateFromCsrResult> asyncHandler) Creates an X.509 certificate using the specified certificate signing request.Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key.createKeysAndCertificateAsync
(CreateKeysAndCertificateRequest request, AsyncHandler<CreateKeysAndCertificateRequest, CreateKeysAndCertificateResult> asyncHandler) Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key.createPolicyAsync
(CreatePolicyRequest request) Creates an AWS IoT policy.createPolicyAsync
(CreatePolicyRequest request, AsyncHandler<CreatePolicyRequest, CreatePolicyResult> asyncHandler) Creates an AWS IoT policy.Creates a new version of the specified AWS IoT policy.createPolicyVersionAsync
(CreatePolicyVersionRequest request, AsyncHandler<CreatePolicyVersionRequest, CreatePolicyVersionResult> asyncHandler) Creates a new version of the specified AWS IoT policy.createThingAsync
(CreateThingRequest request) Creates a thing in the Thing Registry.createThingAsync
(CreateThingRequest request, AsyncHandler<CreateThingRequest, CreateThingResult> asyncHandler) Creates a thing in the Thing Registry.Creates a rule.createTopicRuleAsync
(CreateTopicRuleRequest request, AsyncHandler<CreateTopicRuleRequest, CreateTopicRuleResult> asyncHandler) Creates a rule.Deletes a registered CA certificate.deleteCACertificateAsync
(DeleteCACertificateRequest request, AsyncHandler<DeleteCACertificateRequest, DeleteCACertificateResult> asyncHandler) Deletes a registered CA certificate.Deletes the specified certificate.deleteCertificateAsync
(DeleteCertificateRequest request, AsyncHandler<DeleteCertificateRequest, DeleteCertificateResult> asyncHandler) Deletes the specified certificate.deletePolicyAsync
(DeletePolicyRequest request) Deletes the specified policy.deletePolicyAsync
(DeletePolicyRequest request, AsyncHandler<DeletePolicyRequest, DeletePolicyResult> asyncHandler) Deletes the specified policy.Deletes the specified version of the specified policy.deletePolicyVersionAsync
(DeletePolicyVersionRequest request, AsyncHandler<DeletePolicyVersionRequest, DeletePolicyVersionResult> asyncHandler) Deletes the specified version of the specified policy.Deletes a CA certificate registration code.deleteRegistrationCodeAsync
(DeleteRegistrationCodeRequest request, AsyncHandler<DeleteRegistrationCodeRequest, DeleteRegistrationCodeResult> asyncHandler) Deletes a CA certificate registration code.deleteThingAsync
(DeleteThingRequest request) Deletes the specified thing from the Thing Registry.deleteThingAsync
(DeleteThingRequest request, AsyncHandler<DeleteThingRequest, DeleteThingResult> asyncHandler) Deletes the specified thing from the Thing Registry.Deletes the specified rule.deleteTopicRuleAsync
(DeleteTopicRuleRequest request, AsyncHandler<DeleteTopicRuleRequest, DeleteTopicRuleResult> asyncHandler) Deletes the specified rule.Describes a registered CA certificate.describeCACertificateAsync
(DescribeCACertificateRequest request, AsyncHandler<DescribeCACertificateRequest, DescribeCACertificateResult> asyncHandler) Describes a registered CA certificate.Gets information about the specified certificate.describeCertificateAsync
(DescribeCertificateRequest request, AsyncHandler<DescribeCertificateRequest, DescribeCertificateResult> asyncHandler) Gets information about the specified certificate.Returns a unique endpoint specific to the AWS account making the call.describeEndpointAsync
(DescribeEndpointRequest request, AsyncHandler<DescribeEndpointRequest, DescribeEndpointResult> asyncHandler) Returns a unique endpoint specific to the AWS account making the call.describeThingAsync
(DescribeThingRequest request) Gets information about the specified thing.describeThingAsync
(DescribeThingRequest request, AsyncHandler<DescribeThingRequest, DescribeThingResult> asyncHandler) Gets information about the specified thing.Removes the specified policy from the specified certificate.detachPrincipalPolicyAsync
(DetachPrincipalPolicyRequest request, AsyncHandler<DetachPrincipalPolicyRequest, DetachPrincipalPolicyResult> asyncHandler) Removes the specified policy from the specified certificate.Detaches the specified principal from the specified thing.detachThingPrincipalAsync
(DetachThingPrincipalRequest request, AsyncHandler<DetachThingPrincipalRequest, DetachThingPrincipalResult> asyncHandler) Detaches the specified principal from the specified thing.Disables the specified rule.disableTopicRuleAsync
(DisableTopicRuleRequest request, AsyncHandler<DisableTopicRuleRequest, DisableTopicRuleResult> asyncHandler) Disables the specified rule.Enables the specified rule.enableTopicRuleAsync
(EnableTopicRuleRequest request, AsyncHandler<EnableTopicRuleRequest, EnableTopicRuleResult> asyncHandler) Enables the specified rule.Returns the executor service used by this client to execute async requests.Gets the logging options.getLoggingOptionsAsync
(GetLoggingOptionsRequest request, AsyncHandler<GetLoggingOptionsRequest, GetLoggingOptionsResult> asyncHandler) Gets the logging options.getPolicyAsync
(GetPolicyRequest request) Gets information about the specified policy with the policy document of the default version.getPolicyAsync
(GetPolicyRequest request, AsyncHandler<GetPolicyRequest, GetPolicyResult> asyncHandler) Gets information about the specified policy with the policy document of the default version.Gets information about the specified policy version.getPolicyVersionAsync
(GetPolicyVersionRequest request, AsyncHandler<GetPolicyVersionRequest, GetPolicyVersionResult> asyncHandler) Gets information about the specified policy version.Gets a registration code used to register a CA certificate with AWS IoT.getRegistrationCodeAsync
(GetRegistrationCodeRequest request, AsyncHandler<GetRegistrationCodeRequest, GetRegistrationCodeResult> asyncHandler) Gets a registration code used to register a CA certificate with AWS IoT.getTopicRuleAsync
(GetTopicRuleRequest request) Gets information about the specified rule.getTopicRuleAsync
(GetTopicRuleRequest request, AsyncHandler<GetTopicRuleRequest, GetTopicRuleResult> asyncHandler) Gets information about the specified rule.Lists the CA certificates registered for your AWS account.listCACertificatesAsync
(ListCACertificatesRequest request, AsyncHandler<ListCACertificatesRequest, ListCACertificatesResult> asyncHandler) Lists the CA certificates registered for your AWS account.Lists the certificates registered in your AWS account.listCertificatesAsync
(ListCertificatesRequest request, AsyncHandler<ListCertificatesRequest, ListCertificatesResult> asyncHandler) Lists the certificates registered in your AWS account.List the device certificates signed by the specified CA certificate.listCertificatesByCAAsync
(ListCertificatesByCARequest request, AsyncHandler<ListCertificatesByCARequest, ListCertificatesByCAResult> asyncHandler) List the device certificates signed by the specified CA certificate.listPoliciesAsync
(ListPoliciesRequest request) Lists your policies.listPoliciesAsync
(ListPoliciesRequest request, AsyncHandler<ListPoliciesRequest, ListPoliciesResult> asyncHandler) Lists your policies.Lists the versions of the specified policy, and identifies the default version.listPolicyVersionsAsync
(ListPolicyVersionsRequest request, AsyncHandler<ListPolicyVersionsRequest, ListPolicyVersionsResult> asyncHandler) Lists the versions of the specified policy, and identifies the default version.Lists the policies attached to the specified principal.listPrincipalPoliciesAsync
(ListPrincipalPoliciesRequest request, AsyncHandler<ListPrincipalPoliciesRequest, ListPrincipalPoliciesResult> asyncHandler) Lists the policies attached to the specified principal.Lists the things associated with the specified principal.listPrincipalThingsAsync
(ListPrincipalThingsRequest request, AsyncHandler<ListPrincipalThingsRequest, ListPrincipalThingsResult> asyncHandler) Lists the things associated with the specified principal.Lists the principals associated with the specified thing.listThingPrincipalsAsync
(ListThingPrincipalsRequest request, AsyncHandler<ListThingPrincipalsRequest, ListThingPrincipalsResult> asyncHandler) Lists the principals associated with the specified thing.listThingsAsync
(ListThingsRequest request) Lists your things.listThingsAsync
(ListThingsRequest request, AsyncHandler<ListThingsRequest, ListThingsResult> asyncHandler) Lists your things.listTopicRulesAsync
(ListTopicRulesRequest request) Lists the rules for the specific topic.listTopicRulesAsync
(ListTopicRulesRequest request, AsyncHandler<ListTopicRulesRequest, ListTopicRulesResult> asyncHandler) Lists the rules for the specific topic.Registers a CA certificate with AWS IoT.registerCACertificateAsync
(RegisterCACertificateRequest request, AsyncHandler<RegisterCACertificateRequest, RegisterCACertificateResult> asyncHandler) Registers a CA certificate with AWS IoT.Registers a device certificate with AWS IoT.registerCertificateAsync
(RegisterCertificateRequest request, AsyncHandler<RegisterCertificateRequest, RegisterCertificateResult> asyncHandler) Registers a device certificate with AWS IoT.Rejects a pending certificate transfer.rejectCertificateTransferAsync
(RejectCertificateTransferRequest request, AsyncHandler<RejectCertificateTransferRequest, RejectCertificateTransferResult> asyncHandler) Rejects a pending certificate transfer.Replaces the specified rule.replaceTopicRuleAsync
(ReplaceTopicRuleRequest request, AsyncHandler<ReplaceTopicRuleRequest, ReplaceTopicRuleResult> asyncHandler) Replaces the specified rule.Sets the specified version of the specified policy as the policy's default (operative) version.setDefaultPolicyVersionAsync
(SetDefaultPolicyVersionRequest request, AsyncHandler<SetDefaultPolicyVersionRequest, SetDefaultPolicyVersionResult> asyncHandler) Sets the specified version of the specified policy as the policy's default (operative) version.Sets the logging options.setLoggingOptionsAsync
(SetLoggingOptionsRequest request, AsyncHandler<SetLoggingOptionsRequest, SetLoggingOptionsResult> asyncHandler) Sets the logging options.void
shutdown()
Shuts down the client, releasing all managed resources.Transfers the specified certificate to the specified AWS account.transferCertificateAsync
(TransferCertificateRequest request, AsyncHandler<TransferCertificateRequest, TransferCertificateResult> asyncHandler) Transfers the specified certificate to the specified AWS account.Updates a registered CA certificate.updateCACertificateAsync
(UpdateCACertificateRequest request, AsyncHandler<UpdateCACertificateRequest, UpdateCACertificateResult> asyncHandler) Updates a registered CA certificate.Updates the status of the specified certificate.updateCertificateAsync
(UpdateCertificateRequest request, AsyncHandler<UpdateCertificateRequest, UpdateCertificateResult> asyncHandler) Updates the status of the specified certificate.updateThingAsync
(UpdateThingRequest request) Updates the data for a thing.updateThingAsync
(UpdateThingRequest request, AsyncHandler<UpdateThingRequest, UpdateThingResult> asyncHandler) Updates the data for a thing.Methods inherited from class com.amazonaws.services.iot.AWSIotClient
acceptCertificateTransfer, attachPrincipalPolicy, attachThingPrincipal, cancelCertificateTransfer, createCertificateFromCsr, createKeysAndCertificate, createPolicy, createPolicyVersion, createThing, createTopicRule, deleteCACertificate, deleteCertificate, deletePolicy, deletePolicyVersion, deleteRegistrationCode, deleteThing, deleteTopicRule, describeCACertificate, describeCertificate, describeEndpoint, describeThing, detachPrincipalPolicy, detachThingPrincipal, disableTopicRule, enableTopicRule, getCachedResponseMetadata, getLoggingOptions, getPolicy, getPolicyVersion, getRegistrationCode, getTopicRule, listCACertificates, listCertificates, listCertificatesByCA, listPolicies, listPolicyVersions, listPrincipalPolicies, listPrincipalThings, listThingPrincipals, listThings, listTopicRules, registerCACertificate, registerCertificate, rejectCertificateTransfer, replaceTopicRule, setDefaultPolicyVersion, setLoggingOptions, transferCertificate, updateCACertificate, updateCertificate, updateThing
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amazonaws.services.iot.AWSIot
acceptCertificateTransfer, attachPrincipalPolicy, attachThingPrincipal, cancelCertificateTransfer, createCertificateFromCsr, createKeysAndCertificate, createPolicy, createPolicyVersion, createThing, createTopicRule, deleteCACertificate, deleteCertificate, deletePolicy, deletePolicyVersion, deleteRegistrationCode, deleteThing, deleteTopicRule, describeCACertificate, describeCertificate, describeEndpoint, describeThing, detachPrincipalPolicy, detachThingPrincipal, disableTopicRule, enableTopicRule, getCachedResponseMetadata, getLoggingOptions, getPolicy, getPolicyVersion, getRegistrationCode, getTopicRule, listCACertificates, listCertificates, listCertificatesByCA, listPolicies, listPolicyVersions, listPrincipalPolicies, listPrincipalThings, listThingPrincipals, listThings, listTopicRules, registerCACertificate, registerCertificate, rejectCertificateTransfer, replaceTopicRule, setDefaultPolicyVersion, setEndpoint, setLoggingOptions, setRegion, transferCertificate, updateCACertificate, updateCertificate, updateThing
-
Constructor Details
-
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).
-
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 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:
-
AWSIotAsyncClient
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:
-
AWSIotAsyncClient
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
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:
-
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:
-
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 Details
-
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.
-
acceptCertificateTransferAsync
public Future<AcceptCertificateTransferResult> acceptCertificateTransferAsync(AcceptCertificateTransferRequest request) Description copied from interface: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.
- Specified by:
acceptCertificateTransferAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the AcceptCertificateTransfer operation.- Returns:
- A Java Future containing the result of the AcceptCertificateTransfer operation returned by the service.
-
acceptCertificateTransferAsync
public Future<AcceptCertificateTransferResult> acceptCertificateTransferAsync(AcceptCertificateTransferRequest request, AsyncHandler<AcceptCertificateTransferRequest, AcceptCertificateTransferResult> asyncHandler) Description copied from interface: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.
- Specified by:
acceptCertificateTransferAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the AcceptCertificateTransfer operation returned by the service.
-
attachPrincipalPolicyAsync
public Future<AttachPrincipalPolicyResult> attachPrincipalPolicyAsync(AttachPrincipalPolicyRequest request) Description copied from interface:AWSIotAsync
Attaches the specified policy to the specified principal (certificate or other credential).
- Specified by:
attachPrincipalPolicyAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the AttachPrincipalPolicy operation.- Returns:
- A Java Future containing the result of the AttachPrincipalPolicy operation returned by the service.
-
attachPrincipalPolicyAsync
public Future<AttachPrincipalPolicyResult> attachPrincipalPolicyAsync(AttachPrincipalPolicyRequest request, AsyncHandler<AttachPrincipalPolicyRequest, AttachPrincipalPolicyResult> asyncHandler) Description copied from interface:AWSIotAsync
Attaches the specified policy to the specified principal (certificate or other credential).
- Specified by:
attachPrincipalPolicyAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the AttachPrincipalPolicy operation returned by the service.
-
attachThingPrincipalAsync
public Future<AttachThingPrincipalResult> attachThingPrincipalAsync(AttachThingPrincipalRequest request) Description copied from interface:AWSIotAsync
Attaches the specified principal to the specified thing.
- Specified by:
attachThingPrincipalAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the AttachThingPrincipal operation.- Returns:
- A Java Future containing the result of the AttachThingPrincipal operation returned by the service.
-
attachThingPrincipalAsync
public Future<AttachThingPrincipalResult> attachThingPrincipalAsync(AttachThingPrincipalRequest request, AsyncHandler<AttachThingPrincipalRequest, AttachThingPrincipalResult> asyncHandler) Description copied from interface:AWSIotAsync
Attaches the specified principal to the specified thing.
- Specified by:
attachThingPrincipalAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the AttachThingPrincipal operation returned by the service.
-
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Creates a thing in the Thing Registry.
- Specified by:
createThingAsync
in interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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.
-
deleteCACertificateAsync
public Future<DeleteCACertificateResult> deleteCACertificateAsync(DeleteCACertificateRequest request) Description copied from interface:AWSIotAsync
Deletes a registered CA certificate.
- Specified by:
deleteCACertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- Input for the DeleteCACertificate operation.- Returns:
- A Java Future containing the result of the DeleteCACertificate operation returned by the service.
-
deleteCACertificateAsync
public Future<DeleteCACertificateResult> deleteCACertificateAsync(DeleteCACertificateRequest request, AsyncHandler<DeleteCACertificateRequest, DeleteCACertificateResult> asyncHandler) Description copied from interface:AWSIotAsync
Deletes a registered CA certificate.
- Specified by:
deleteCACertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- Input for the DeleteCACertificate 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 DeleteCACertificate operation returned by the service.
-
deleteCertificateAsync
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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.
-
deleteRegistrationCodeAsync
public Future<DeleteRegistrationCodeResult> deleteRegistrationCodeAsync(DeleteRegistrationCodeRequest request) Description copied from interface:AWSIotAsync
Deletes a CA certificate registration code.
- Specified by:
deleteRegistrationCodeAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DeleteRegistrationCode operation.- Returns:
- A Java Future containing the result of the DeleteRegistrationCode operation returned by the service.
-
deleteRegistrationCodeAsync
public Future<DeleteRegistrationCodeResult> deleteRegistrationCodeAsync(DeleteRegistrationCodeRequest request, AsyncHandler<DeleteRegistrationCodeRequest, DeleteRegistrationCodeResult> asyncHandler) Description copied from interface:AWSIotAsync
Deletes a CA certificate registration code.
- Specified by:
deleteRegistrationCodeAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DeleteRegistrationCode 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 DeleteRegistrationCode operation returned by the service.
-
deleteThingAsync
Description copied from interface:AWSIotAsync
Deletes the specified thing from the Thing Registry.
- Specified by:
deleteThingAsync
in interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Deletes the specified rule.
- Specified by:
deleteTopicRuleAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DeleteTopicRule operation.- Returns:
- A Java Future containing the result of the DeleteTopicRule 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 interfaceAWSIotAsync
- 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.
-
describeCACertificateAsync
public Future<DescribeCACertificateResult> describeCACertificateAsync(DescribeCACertificateRequest request) Description copied from interface:AWSIotAsync
Describes a registered CA certificate.
- Specified by:
describeCACertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DescribeCACertificate operation.- Returns:
- A Java Future containing the result of the DescribeCACertificate operation returned by the service.
-
describeCACertificateAsync
public Future<DescribeCACertificateResult> describeCACertificateAsync(DescribeCACertificateRequest request, AsyncHandler<DescribeCACertificateRequest, DescribeCACertificateResult> asyncHandler) Description copied from interface:AWSIotAsync
Describes a registered CA certificate.
- Specified by:
describeCACertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DescribeCACertificate 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 DescribeCACertificate operation returned by the service.
-
describeCertificateAsync
public Future<DescribeCertificateResult> describeCertificateAsync(DescribeCertificateRequest request) Description copied from interface:AWSIotAsync
Gets information about the specified certificate.
- Specified by:
describeCertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DescribeCertificate operation.- Returns:
- A Java Future containing the result of the DescribeCertificate operation returned by the service.
-
describeCertificateAsync
public Future<DescribeCertificateResult> describeCertificateAsync(DescribeCertificateRequest request, AsyncHandler<DescribeCertificateRequest, DescribeCertificateResult> asyncHandler) Description copied from interface:AWSIotAsync
Gets information about the specified certificate.
- Specified by:
describeCertificateAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeCertificate operation returned by the service.
-
describeEndpointAsync
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Gets information about the specified thing.
- Specified by:
describeThingAsync
in interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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.
-
detachPrincipalPolicyAsync
public Future<DetachPrincipalPolicyResult> detachPrincipalPolicyAsync(DetachPrincipalPolicyRequest request) Description copied from interface:AWSIotAsync
Removes the specified policy from the specified certificate.
- Specified by:
detachPrincipalPolicyAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DetachPrincipalPolicy operation.- Returns:
- A Java Future containing the result of the DetachPrincipalPolicy operation returned by the service.
-
detachPrincipalPolicyAsync
public Future<DetachPrincipalPolicyResult> detachPrincipalPolicyAsync(DetachPrincipalPolicyRequest request, AsyncHandler<DetachPrincipalPolicyRequest, DetachPrincipalPolicyResult> asyncHandler) Description copied from interface:AWSIotAsync
Removes the specified policy from the specified certificate.
- Specified by:
detachPrincipalPolicyAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DetachPrincipalPolicy operation returned by the service.
-
detachThingPrincipalAsync
public Future<DetachThingPrincipalResult> detachThingPrincipalAsync(DetachThingPrincipalRequest request) Description copied from interface:AWSIotAsync
Detaches the specified principal from the specified thing.
- Specified by:
detachThingPrincipalAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DetachThingPrincipal operation.- Returns:
- A Java Future containing the result of the DetachThingPrincipal operation returned by the service.
-
detachThingPrincipalAsync
public Future<DetachThingPrincipalResult> detachThingPrincipalAsync(DetachThingPrincipalRequest request, AsyncHandler<DetachThingPrincipalRequest, DetachThingPrincipalResult> asyncHandler) Description copied from interface:AWSIotAsync
Detaches the specified principal from the specified thing.
- Specified by:
detachThingPrincipalAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DetachThingPrincipal operation returned by the service.
-
disableTopicRuleAsync
Description copied from interface:AWSIotAsync
Disables the specified rule.
- Specified by:
disableTopicRuleAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the DisableTopicRuleRequest operation.- Returns:
- A Java Future containing the result of the DisableTopicRule 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Enables the specified rule.
- Specified by:
enableTopicRuleAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the EnableTopicRuleRequest operation.- Returns:
- A Java Future containing the result of the EnableTopicRule 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 interfaceAWSIotAsync
- 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.
-
getLoggingOptionsAsync
Description copied from interface:AWSIotAsync
Gets the logging options.
- Specified by:
getLoggingOptionsAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the GetLoggingOptions operation.- Returns:
- A Java Future containing the result of the GetLoggingOptions operation returned by the service.
-
getLoggingOptionsAsync
public Future<GetLoggingOptionsResult> getLoggingOptionsAsync(GetLoggingOptionsRequest request, AsyncHandler<GetLoggingOptionsRequest, GetLoggingOptionsResult> asyncHandler) Description copied from interface:AWSIotAsync
Gets the logging options.
- Specified by:
getLoggingOptionsAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the GetLoggingOptions operation returned by the service.
-
getPolicyAsync
Description copied from interface:AWSIotAsync
Gets information about the specified policy with the policy document of the default version.
- Specified by:
getPolicyAsync
in interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Gets information about the specified policy version.
- Specified by:
getPolicyVersionAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the GetPolicyVersion operation.- Returns:
- A Java Future containing the result of the GetPolicyVersion 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 interfaceAWSIotAsync
- 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) Description copied from interface:AWSIotAsync
Gets a registration code used to register a CA certificate with AWS IoT.
- Specified by:
getRegistrationCodeAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input to the GetRegistrationCode operation.- Returns:
- A Java Future containing the result of the GetRegistrationCode 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Gets information about the specified rule.
- Specified by:
getTopicRuleAsync
in interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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.
-
listCertificatesByCAAsync
public Future<ListCertificatesByCAResult> listCertificatesByCAAsync(ListCertificatesByCARequest request) Description copied from interface:AWSIotAsync
List the device certificates signed by the specified CA certificate.
- Specified by:
listCertificatesByCAAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input to the ListCertificatesByCA operation.- Returns:
- A Java Future containing the result of the ListCertificatesByCA operation returned by the service.
-
listCertificatesByCAAsync
public Future<ListCertificatesByCAResult> listCertificatesByCAAsync(ListCertificatesByCARequest request, AsyncHandler<ListCertificatesByCARequest, ListCertificatesByCAResult> asyncHandler) Description copied from interface:AWSIotAsync
List the device certificates signed by the specified CA certificate.
- Specified by:
listCertificatesByCAAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input to the ListCertificatesByCA 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 ListCertificatesByCA operation returned by the service.
-
listPoliciesAsync
Description copied from interface:AWSIotAsync
Lists your policies.
- Specified by:
listPoliciesAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the ListPolicies operation.- Returns:
- A Java Future containing the result of the ListPolicies 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Lists the versions of the specified policy, and identifies the default version.
- Specified by:
listPolicyVersionsAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the ListPolicyVersions operation.- Returns:
- A Java Future containing the result of the ListPolicyVersions 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 interfaceAWSIotAsync
- 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.
-
listPrincipalPoliciesAsync
public Future<ListPrincipalPoliciesResult> listPrincipalPoliciesAsync(ListPrincipalPoliciesRequest request) Description copied from interface:AWSIotAsync
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.
- Specified by:
listPrincipalPoliciesAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the ListPrincipalPolicies operation.- Returns:
- A Java Future containing the result of the ListPrincipalPolicies operation returned by the service.
-
listPrincipalPoliciesAsync
public Future<ListPrincipalPoliciesResult> listPrincipalPoliciesAsync(ListPrincipalPoliciesRequest request, AsyncHandler<ListPrincipalPoliciesRequest, ListPrincipalPoliciesResult> asyncHandler) Description copied from interface:AWSIotAsync
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.
- Specified by:
listPrincipalPoliciesAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the ListPrincipalPolicies operation returned by the service.
-
listPrincipalThingsAsync
public Future<ListPrincipalThingsResult> listPrincipalThingsAsync(ListPrincipalThingsRequest request) Description copied from interface:AWSIotAsync
Lists the things associated with the specified principal.
- Specified by:
listPrincipalThingsAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the ListPrincipalThings operation.- Returns:
- A Java Future containing the result of the ListPrincipalThings operation returned by the service.
-
listPrincipalThingsAsync
public Future<ListPrincipalThingsResult> listPrincipalThingsAsync(ListPrincipalThingsRequest request, AsyncHandler<ListPrincipalThingsRequest, ListPrincipalThingsResult> asyncHandler) Description copied from interface:AWSIotAsync
Lists the things associated with the specified principal.
- Specified by:
listPrincipalThingsAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the ListPrincipalThings operation returned by the service.
-
listThingPrincipalsAsync
public Future<ListThingPrincipalsResult> listThingPrincipalsAsync(ListThingPrincipalsRequest request) Description copied from interface:AWSIotAsync
Lists the principals associated with the specified thing.
- Specified by:
listThingPrincipalsAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the ListThingPrincipal operation.- Returns:
- A Java Future containing the result of the ListThingPrincipals operation returned by the service.
-
listThingPrincipalsAsync
public Future<ListThingPrincipalsResult> listThingPrincipalsAsync(ListThingPrincipalsRequest request, AsyncHandler<ListThingPrincipalsRequest, ListThingPrincipalsResult> asyncHandler) Description copied from interface:AWSIotAsync
Lists the principals associated with the specified thing.
- Specified by:
listThingPrincipalsAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the ListThingPrincipals operation returned by the service.
-
listThingsAsync
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Lists the rules for the specific topic.
- Specified by:
listTopicRulesAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the ListTopicRules operation.- Returns:
- A Java Future containing the result of the ListTopicRules 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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.
-
setLoggingOptionsAsync
Description copied from interface:AWSIotAsync
Sets the logging options.
- Specified by:
setLoggingOptionsAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input for the SetLoggingOptions operation.- Returns:
- A Java Future containing the result of the SetLoggingOptions operation returned by the service.
-
setLoggingOptionsAsync
public Future<SetLoggingOptionsResult> setLoggingOptionsAsync(SetLoggingOptionsRequest request, AsyncHandler<SetLoggingOptionsRequest, SetLoggingOptionsResult> asyncHandler) Description copied from interface:AWSIotAsync
Sets the logging options.
- Specified by:
setLoggingOptionsAsync
in interfaceAWSIotAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the SetLoggingOptions 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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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.
-
updateCACertificateAsync
public Future<UpdateCACertificateResult> updateCACertificateAsync(UpdateCACertificateRequest request) Description copied from interface:AWSIotAsync
Updates a registered CA certificate.
- Specified by:
updateCACertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input to the UpdateCACertificate operation.- Returns:
- A Java Future containing the result of the UpdateCACertificate operation returned by the service.
-
updateCACertificateAsync
public Future<UpdateCACertificateResult> updateCACertificateAsync(UpdateCACertificateRequest request, AsyncHandler<UpdateCACertificateRequest, UpdateCACertificateResult> asyncHandler) Description copied from interface:AWSIotAsync
Updates a registered CA certificate.
- Specified by:
updateCACertificateAsync
in interfaceAWSIotAsync
- Parameters:
request
- The input to the UpdateCACertificate 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 UpdateCACertificate operation returned by the service.
-
updateCertificateAsync
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 interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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
Description copied from interface:AWSIotAsync
Updates the data for a thing.
- Specified by:
updateThingAsync
in interfaceAWSIotAsync
- 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 interfaceAWSIotAsync
- 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 callgetExecutorService().shutdown()
followed bygetExecutorService().awaitTermination()
prior to calling this method.- Specified by:
shutdown
in interfaceAWSIot
- Overrides:
shutdown
in classAmazonWebServiceClient
-