@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCloudHSMV2AsyncClient extends AWSCloudHSMV2Client implements AWSCloudHSMV2Async
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
For more information about AWS CloudHSM, see AWS CloudHSM and the AWS CloudHSM User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSCloudHSMV2AsyncClientBuilder |
asyncBuilder() |
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest request)
Creates a new AWS CloudHSM cluster.
|
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest request,
AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
Creates a new AWS CloudHSM cluster.
|
Future<CreateHsmResult> |
createHsmAsync(CreateHsmRequest request)
Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
|
Future<CreateHsmResult> |
createHsmAsync(CreateHsmRequest request,
AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest request)
Deletes the specified AWS CloudHSM cluster.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest request,
AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
Deletes the specified AWS CloudHSM cluster.
|
Future<DeleteHsmResult> |
deleteHsmAsync(DeleteHsmRequest request)
Deletes the specified HSM.
|
Future<DeleteHsmResult> |
deleteHsmAsync(DeleteHsmRequest request,
AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
Deletes the specified HSM.
|
Future<DescribeBackupsResult> |
describeBackupsAsync(DescribeBackupsRequest request)
Gets information about backups of AWS CloudHSM clusters.
|
Future<DescribeBackupsResult> |
describeBackupsAsync(DescribeBackupsRequest request,
AsyncHandler<DescribeBackupsRequest,DescribeBackupsResult> asyncHandler)
Gets information about backups of AWS CloudHSM clusters.
|
Future<DescribeClustersResult> |
describeClustersAsync(DescribeClustersRequest request)
Gets information about AWS CloudHSM clusters.
|
Future<DescribeClustersResult> |
describeClustersAsync(DescribeClustersRequest request,
AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler)
Gets information about AWS CloudHSM clusters.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<InitializeClusterResult> |
initializeClusterAsync(InitializeClusterRequest request)
Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority
(CA) and the CA's root certificate.
|
Future<InitializeClusterResult> |
initializeClusterAsync(InitializeClusterRequest request,
AsyncHandler<InitializeClusterRequest,InitializeClusterResult> asyncHandler)
Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority
(CA) and the CA's root certificate.
|
Future<ListTagsResult> |
listTagsAsync(ListTagsRequest request)
Gets a list of tags for the specified AWS CloudHSM cluster.
|
Future<ListTagsResult> |
listTagsAsync(ListTagsRequest request,
AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
Gets a list of tags for the specified AWS CloudHSM cluster.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request)
Adds or overwrites one or more tags for the specified AWS CloudHSM cluster.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Adds or overwrites one or more tags for the specified AWS CloudHSM cluster.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Removes the specified tag or tags from the specified AWS CloudHSM cluster.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes the specified tag or tags from the specified AWS CloudHSM cluster.
|
builder, createCluster, createHsm, deleteCluster, deleteHsm, describeBackups, describeClusters, getCachedResponseMetadata, initializeCluster, listTags, tagResource, untagResource
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCluster, createHsm, deleteCluster, deleteHsm, describeBackups, describeClusters, getCachedResponseMetadata, initializeCluster, listTags, tagResource, untagResource
public static AWSCloudHSMV2AsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request)
AWSCloudHSMV2Async
Creates a new AWS CloudHSM cluster.
createClusterAsync
in interface AWSCloudHSMV2Async
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
AWSCloudHSMV2Async
Creates a new AWS CloudHSM cluster.
createClusterAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request)
AWSCloudHSMV2Async
Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
createHsmAsync
in interface AWSCloudHSMV2Async
public Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request, AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
AWSCloudHSMV2Async
Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
createHsmAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request)
AWSCloudHSMV2Async
Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm.
deleteClusterAsync
in interface AWSCloudHSMV2Async
public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
AWSCloudHSMV2Async
Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm.
deleteClusterAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request)
AWSCloudHSMV2Async
Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters.
deleteHsmAsync
in interface AWSCloudHSMV2Async
public Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request, AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
AWSCloudHSMV2Async
Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters.
deleteHsmAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeBackupsResult> describeBackupsAsync(DescribeBackupsRequest request)
AWSCloudHSMV2Async
Gets information about backups of AWS CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the backups.
When the response contains only a subset of backups, it includes a NextToken
value. Use this value
in a subsequent DescribeBackups
request to get more backups. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more backups to get.
describeBackupsAsync
in interface AWSCloudHSMV2Async
public Future<DescribeBackupsResult> describeBackupsAsync(DescribeBackupsRequest request, AsyncHandler<DescribeBackupsRequest,DescribeBackupsResult> asyncHandler)
AWSCloudHSMV2Async
Gets information about backups of AWS CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the backups.
When the response contains only a subset of backups, it includes a NextToken
value. Use this value
in a subsequent DescribeBackups
request to get more backups. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more backups to get.
describeBackupsAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest request)
AWSCloudHSMV2Async
Gets information about AWS CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the clusters.
When the response contains only a subset of clusters, it includes a NextToken
value. Use this value
in a subsequent DescribeClusters
request to get more clusters. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more clusters to get.
describeClustersAsync
in interface AWSCloudHSMV2Async
public Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest request, AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler)
AWSCloudHSMV2Async
Gets information about AWS CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the clusters.
When the response contains only a subset of clusters, it includes a NextToken
value. Use this value
in a subsequent DescribeClusters
request to get more clusters. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more clusters to get.
describeClustersAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<InitializeClusterResult> initializeClusterAsync(InitializeClusterRequest request)
AWSCloudHSMV2Async
Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.
initializeClusterAsync
in interface AWSCloudHSMV2Async
public Future<InitializeClusterResult> initializeClusterAsync(InitializeClusterRequest request, AsyncHandler<InitializeClusterRequest,InitializeClusterResult> asyncHandler)
AWSCloudHSMV2Async
Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.
initializeClusterAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsResult> listTagsAsync(ListTagsRequest request)
AWSCloudHSMV2Async
Gets a list of tags for the specified AWS CloudHSM cluster.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When
the response contains only a subset of tags, it includes a NextToken
value. Use this value in a
subsequent ListTags
request to get more tags. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more tags to get.
listTagsAsync
in interface AWSCloudHSMV2Async
public Future<ListTagsResult> listTagsAsync(ListTagsRequest request, AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
AWSCloudHSMV2Async
Gets a list of tags for the specified AWS CloudHSM cluster.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When
the response contains only a subset of tags, it includes a NextToken
value. Use this value in a
subsequent ListTags
request to get more tags. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more tags to get.
listTagsAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSCloudHSMV2Async
Adds or overwrites one or more tags for the specified AWS CloudHSM cluster.
tagResourceAsync
in interface AWSCloudHSMV2Async
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSCloudHSMV2Async
Adds or overwrites one or more tags for the specified AWS CloudHSM cluster.
tagResourceAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSCloudHSMV2Async
Removes the specified tag or tags from the specified AWS CloudHSM cluster.
untagResourceAsync
in interface AWSCloudHSMV2Async
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSCloudHSMV2Async
Removes the specified tag or tags from the specified AWS CloudHSM cluster.
untagResourceAsync
in interface AWSCloudHSMV2Async
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSCloudHSMV2
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.