@ThreadSafe public class AWSCloudHSMAsyncClient extends AWSCloudHSMClient implements AWSCloudHSMAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_THREAD_POOL_SIZE |
private java.util.concurrent.ExecutorService |
executorService |
configFactory
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AWSCloudHSMAsyncClient()
Constructs a new asynchronous client to invoke service methods on
CloudHSM.
|
AWSCloudHSMAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the specified AWS account credentials.
|
AWSCloudHSMAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the specified AWS account credentials, executor service,
and client configuration options.
|
AWSCloudHSMAsyncClient(AWSCredentials awsCredentials,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the specified AWS account credentials and executor
service.
|
AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the specified AWS account credentials provider.
|
AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the provided AWS account credentials provider and client
configuration options.
|
AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the specified AWS account credentials provider, executor
service, and client configuration options.
|
AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudHSM using the specified AWS account credentials provider and
executor service.
|
AWSCloudHSMAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
CloudHSM.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<AddTagsToResourceResult> |
addTagsToResourceAsync(AddTagsToResourceRequest request)
Adds or overwrites one or more tags for the specified AWS CloudHSM
resource.
|
java.util.concurrent.Future<AddTagsToResourceResult> |
addTagsToResourceAsync(AddTagsToResourceRequest request,
AsyncHandler<AddTagsToResourceRequest,AddTagsToResourceResult> asyncHandler)
Adds or overwrites one or more tags for the specified AWS CloudHSM
resource.
|
java.util.concurrent.Future<CreateHapgResult> |
createHapgAsync(CreateHapgRequest request)
Creates a high-availability partition group.
|
java.util.concurrent.Future<CreateHapgResult> |
createHapgAsync(CreateHapgRequest request,
AsyncHandler<CreateHapgRequest,CreateHapgResult> asyncHandler)
Creates a high-availability partition group.
|
java.util.concurrent.Future<CreateHsmResult> |
createHsmAsync(CreateHsmRequest request)
Creates an uninitialized HSM instance.
|
java.util.concurrent.Future<CreateHsmResult> |
createHsmAsync(CreateHsmRequest request,
AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
Creates an uninitialized HSM instance.
|
java.util.concurrent.Future<CreateLunaClientResult> |
createLunaClientAsync(CreateLunaClientRequest request)
Creates an HSM client.
|
java.util.concurrent.Future<CreateLunaClientResult> |
createLunaClientAsync(CreateLunaClientRequest request,
AsyncHandler<CreateLunaClientRequest,CreateLunaClientResult> asyncHandler)
Creates an HSM client.
|
java.util.concurrent.Future<DeleteHapgResult> |
deleteHapgAsync(DeleteHapgRequest request)
Deletes a high-availability partition group.
|
java.util.concurrent.Future<DeleteHapgResult> |
deleteHapgAsync(DeleteHapgRequest request,
AsyncHandler<DeleteHapgRequest,DeleteHapgResult> asyncHandler)
Deletes a high-availability partition group.
|
java.util.concurrent.Future<DeleteHsmResult> |
deleteHsmAsync(DeleteHsmRequest request)
Deletes an HSM.
|
java.util.concurrent.Future<DeleteHsmResult> |
deleteHsmAsync(DeleteHsmRequest request,
AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
Deletes an HSM.
|
java.util.concurrent.Future<DeleteLunaClientResult> |
deleteLunaClientAsync(DeleteLunaClientRequest request)
Deletes a client.
|
java.util.concurrent.Future<DeleteLunaClientResult> |
deleteLunaClientAsync(DeleteLunaClientRequest request,
AsyncHandler<DeleteLunaClientRequest,DeleteLunaClientResult> asyncHandler)
Deletes a client.
|
java.util.concurrent.Future<DescribeHapgResult> |
describeHapgAsync(DescribeHapgRequest request)
Retrieves information about a high-availability partition group.
|
java.util.concurrent.Future<DescribeHapgResult> |
describeHapgAsync(DescribeHapgRequest request,
AsyncHandler<DescribeHapgRequest,DescribeHapgResult> asyncHandler)
Retrieves information about a high-availability partition group.
|
java.util.concurrent.Future<DescribeHsmResult> |
describeHsmAsync()
Simplified method form for invoking the DescribeHsm operation.
|
java.util.concurrent.Future<DescribeHsmResult> |
describeHsmAsync(AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
Simplified method form for invoking the DescribeHsm operation with an
AsyncHandler.
|
java.util.concurrent.Future<DescribeHsmResult> |
describeHsmAsync(DescribeHsmRequest request)
Retrieves information about an HSM.
|
java.util.concurrent.Future<DescribeHsmResult> |
describeHsmAsync(DescribeHsmRequest request,
AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
Retrieves information about an HSM.
|
java.util.concurrent.Future<DescribeLunaClientResult> |
describeLunaClientAsync()
Simplified method form for invoking the DescribeLunaClient operation.
|
java.util.concurrent.Future<DescribeLunaClientResult> |
describeLunaClientAsync(AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
Simplified method form for invoking the DescribeLunaClient operation with
an AsyncHandler.
|
java.util.concurrent.Future<DescribeLunaClientResult> |
describeLunaClientAsync(DescribeLunaClientRequest request)
Retrieves information about an HSM client.
|
java.util.concurrent.Future<DescribeLunaClientResult> |
describeLunaClientAsync(DescribeLunaClientRequest request,
AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
Retrieves information about an HSM client.
|
java.util.concurrent.Future<GetConfigResult> |
getConfigAsync(GetConfigRequest request)
Gets the configuration files necessary to connect to all high
availability partition groups the client is associated with.
|
java.util.concurrent.Future<GetConfigResult> |
getConfigAsync(GetConfigRequest request,
AsyncHandler<GetConfigRequest,GetConfigResult> asyncHandler)
Gets the configuration files necessary to connect to all high
availability partition groups the client is associated with.
|
java.util.concurrent.ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async
requests.
|
java.util.concurrent.Future<ListAvailableZonesResult> |
listAvailableZonesAsync()
Simplified method form for invoking the ListAvailableZones operation.
|
java.util.concurrent.Future<ListAvailableZonesResult> |
listAvailableZonesAsync(AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
Simplified method form for invoking the ListAvailableZones operation with
an AsyncHandler.
|
java.util.concurrent.Future<ListAvailableZonesResult> |
listAvailableZonesAsync(ListAvailableZonesRequest request)
Lists the Availability Zones that have available AWS CloudHSM capacity.
|
java.util.concurrent.Future<ListAvailableZonesResult> |
listAvailableZonesAsync(ListAvailableZonesRequest request,
AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
Lists the Availability Zones that have available AWS CloudHSM capacity.
|
java.util.concurrent.Future<ListHapgsResult> |
listHapgsAsync()
Simplified method form for invoking the ListHapgs operation.
|
java.util.concurrent.Future<ListHapgsResult> |
listHapgsAsync(AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
Simplified method form for invoking the ListHapgs operation with an
AsyncHandler.
|
java.util.concurrent.Future<ListHapgsResult> |
listHapgsAsync(ListHapgsRequest request)
Lists the high-availability partition groups for the account.
|
java.util.concurrent.Future<ListHapgsResult> |
listHapgsAsync(ListHapgsRequest request,
AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
Lists the high-availability partition groups for the account.
|
java.util.concurrent.Future<ListHsmsResult> |
listHsmsAsync()
Simplified method form for invoking the ListHsms operation.
|
java.util.concurrent.Future<ListHsmsResult> |
listHsmsAsync(AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
Simplified method form for invoking the ListHsms operation with an
AsyncHandler.
|
java.util.concurrent.Future<ListHsmsResult> |
listHsmsAsync(ListHsmsRequest request)
Retrieves the identifiers of all of the HSMs provisioned for the current
customer.
|
java.util.concurrent.Future<ListHsmsResult> |
listHsmsAsync(ListHsmsRequest request,
AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
Retrieves the identifiers of all of the HSMs provisioned for the current
customer.
|
java.util.concurrent.Future<ListLunaClientsResult> |
listLunaClientsAsync()
Simplified method form for invoking the ListLunaClients operation.
|
java.util.concurrent.Future<ListLunaClientsResult> |
listLunaClientsAsync(AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
Simplified method form for invoking the ListLunaClients operation with an
AsyncHandler.
|
java.util.concurrent.Future<ListLunaClientsResult> |
listLunaClientsAsync(ListLunaClientsRequest request)
Lists all of the clients.
|
java.util.concurrent.Future<ListLunaClientsResult> |
listLunaClientsAsync(ListLunaClientsRequest request,
AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
Lists all of the clients.
|
java.util.concurrent.Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Returns a list of all tags for the specified AWS CloudHSM resource.
|
java.util.concurrent.Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Returns a list of all tags for the specified AWS CloudHSM resource.
|
java.util.concurrent.Future<ModifyHapgResult> |
modifyHapgAsync(ModifyHapgRequest request)
Modifies an existing high-availability partition group.
|
java.util.concurrent.Future<ModifyHapgResult> |
modifyHapgAsync(ModifyHapgRequest request,
AsyncHandler<ModifyHapgRequest,ModifyHapgResult> asyncHandler)
Modifies an existing high-availability partition group.
|
java.util.concurrent.Future<ModifyHsmResult> |
modifyHsmAsync(ModifyHsmRequest request)
Modifies an HSM.
|
java.util.concurrent.Future<ModifyHsmResult> |
modifyHsmAsync(ModifyHsmRequest request,
AsyncHandler<ModifyHsmRequest,ModifyHsmResult> asyncHandler)
Modifies an HSM.
|
java.util.concurrent.Future<ModifyLunaClientResult> |
modifyLunaClientAsync(ModifyLunaClientRequest request)
Modifies the certificate used by the client.
|
java.util.concurrent.Future<ModifyLunaClientResult> |
modifyLunaClientAsync(ModifyLunaClientRequest request,
AsyncHandler<ModifyLunaClientRequest,ModifyLunaClientResult> asyncHandler)
Modifies the certificate used by the client.
|
java.util.concurrent.Future<RemoveTagsFromResourceResult> |
removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request)
Removes one or more tags from the specified AWS CloudHSM resource.
|
java.util.concurrent.Future<RemoveTagsFromResourceResult> |
removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request,
AsyncHandler<RemoveTagsFromResourceRequest,RemoveTagsFromResourceResult> asyncHandler)
Removes one or more tags from the specified AWS CloudHSM resource.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
addTagsToResource, createHapg, createHsm, createLunaClient, deleteHapg, deleteHsm, deleteLunaClient, describeHapg, describeHsm, describeHsm, describeLunaClient, describeLunaClient, getCachedResponseMetadata, getConfig, listAvailableZones, listAvailableZones, listHapgs, listHapgs, listHsms, listHsms, listLunaClients, listLunaClients, listTagsForResource, modifyHapg, modifyHsm, modifyLunaClient, removeTagsFromResource
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTagsToResource, createHapg, createHsm, createLunaClient, deleteHapg, deleteHsm, deleteLunaClient, describeHapg, describeHsm, describeHsm, describeLunaClient, describeLunaClient, getCachedResponseMetadata, getConfig, listAvailableZones, listAvailableZones, listHapgs, listHapgs, listHsms, listHsms, listLunaClients, listLunaClients, listTagsForResource, modifyHapg, modifyHsm, modifyLunaClient, removeTagsFromResource, setEndpoint, setRegion
private static final int DEFAULT_THREAD_POOL_SIZE
private final java.util.concurrent.ExecutorService executorService
public AWSCloudHSMAsyncClient()
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).
DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSCloudHSMAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client
connects to CloudHSM (ex: proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSCloudHSMAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)
public AWSCloudHSMAsyncClient(AWSCredentials awsCredentials, java.util.concurrent.ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AWSCloudHSMAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider, java.util.concurrent.ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public java.util.concurrent.ExecutorService getExecutorService()
public java.util.concurrent.Future<AddTagsToResourceResult> addTagsToResourceAsync(AddTagsToResourceRequest request)
AWSCloudHSMAsync
Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
Each tag consists of a key and a value. Tag keys must be unique to each resource.
addTagsToResourceAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<AddTagsToResourceResult> addTagsToResourceAsync(AddTagsToResourceRequest request, AsyncHandler<AddTagsToResourceRequest,AddTagsToResourceResult> asyncHandler)
AWSCloudHSMAsync
Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
Each tag consists of a key and a value. Tag keys must be unique to each resource.
addTagsToResourceAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<CreateHapgResult> createHapgAsync(CreateHapgRequest request)
AWSCloudHSMAsync
Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
createHapgAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the CreateHapgRequest action.public java.util.concurrent.Future<CreateHapgResult> createHapgAsync(CreateHapgRequest request, AsyncHandler<CreateHapgRequest,CreateHapgResult> asyncHandler)
AWSCloudHSMAsync
Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
createHapgAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the CreateHapgRequest action.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 java.util.concurrent.Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request)
AWSCloudHSMAsync
Creates an uninitialized HSM instance.
There is an upfront fee charged for each HSM instance that you create with the CreateHsm operation. If you accidentally provision an HSM and want to request a refund, delete the instance using the DeleteHsm operation, go to the AWS Support Center, create a new case, and select Account and Billing Support.
It can take up to 20 minutes to create and provision an HSM. You can
monitor the status of the HSM with the DescribeHsm operation. The
HSM is ready to be initialized when the status changes to
RUNNING
.
createHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the CreateHsm operation.public java.util.concurrent.Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request, AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
AWSCloudHSMAsync
Creates an uninitialized HSM instance.
There is an upfront fee charged for each HSM instance that you create with the CreateHsm operation. If you accidentally provision an HSM and want to request a refund, delete the instance using the DeleteHsm operation, go to the AWS Support Center, create a new case, and select Account and Billing Support.
It can take up to 20 minutes to create and provision an HSM. You can
monitor the status of the HSM with the DescribeHsm operation. The
HSM is ready to be initialized when the status changes to
RUNNING
.
createHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the CreateHsm operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<CreateLunaClientResult> createLunaClientAsync(CreateLunaClientRequest request)
AWSCloudHSMAsync
Creates an HSM client.
createLunaClientAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the CreateLunaClient action.public java.util.concurrent.Future<CreateLunaClientResult> createLunaClientAsync(CreateLunaClientRequest request, AsyncHandler<CreateLunaClientRequest,CreateLunaClientResult> asyncHandler)
AWSCloudHSMAsync
Creates an HSM client.
createLunaClientAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the CreateLunaClient action.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 java.util.concurrent.Future<DeleteHapgResult> deleteHapgAsync(DeleteHapgRequest request)
AWSCloudHSMAsync
Deletes a high-availability partition group.
deleteHapgAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DeleteHapg action.public java.util.concurrent.Future<DeleteHapgResult> deleteHapgAsync(DeleteHapgRequest request, AsyncHandler<DeleteHapgRequest,DeleteHapgResult> asyncHandler)
AWSCloudHSMAsync
Deletes a high-availability partition group.
deleteHapgAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DeleteHapg action.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 java.util.concurrent.Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request)
AWSCloudHSMAsync
Deletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.
deleteHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DeleteHsm operation.public java.util.concurrent.Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request, AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
AWSCloudHSMAsync
Deletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.
deleteHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DeleteHsm operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DeleteLunaClientResult> deleteLunaClientAsync(DeleteLunaClientRequest request)
AWSCloudHSMAsync
Deletes a client.
deleteLunaClientAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<DeleteLunaClientResult> deleteLunaClientAsync(DeleteLunaClientRequest request, AsyncHandler<DeleteLunaClientRequest,DeleteLunaClientResult> asyncHandler)
AWSCloudHSMAsync
Deletes a client.
deleteLunaClientAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<DescribeHapgResult> describeHapgAsync(DescribeHapgRequest request)
AWSCloudHSMAsync
Retrieves information about a high-availability partition group.
describeHapgAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DescribeHapg action.public java.util.concurrent.Future<DescribeHapgResult> describeHapgAsync(DescribeHapgRequest request, AsyncHandler<DescribeHapgRequest,DescribeHapgResult> asyncHandler)
AWSCloudHSMAsync
Retrieves information about a high-availability partition group.
describeHapgAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DescribeHapg action.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 java.util.concurrent.Future<DescribeHsmResult> describeHsmAsync(DescribeHsmRequest request)
AWSCloudHSMAsync
Retrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
describeHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DescribeHsm operation.public java.util.concurrent.Future<DescribeHsmResult> describeHsmAsync(DescribeHsmRequest request, AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
AWSCloudHSMAsync
Retrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
describeHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the DescribeHsm operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeHsmResult> describeHsmAsync()
describeHsmAsync
in interface AWSCloudHSMAsync
describeHsmAsync(DescribeHsmRequest)
public java.util.concurrent.Future<DescribeHsmResult> describeHsmAsync(AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
describeHsmAsync
in interface AWSCloudHSMAsync
describeHsmAsync(DescribeHsmRequest,
com.amazonaws.handlers.AsyncHandler)
public java.util.concurrent.Future<DescribeLunaClientResult> describeLunaClientAsync(DescribeLunaClientRequest request)
AWSCloudHSMAsync
Retrieves information about an HSM client.
describeLunaClientAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<DescribeLunaClientResult> describeLunaClientAsync(DescribeLunaClientRequest request, AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
AWSCloudHSMAsync
Retrieves information about an HSM client.
describeLunaClientAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<DescribeLunaClientResult> describeLunaClientAsync()
describeLunaClientAsync
in interface AWSCloudHSMAsync
describeLunaClientAsync(DescribeLunaClientRequest)
public java.util.concurrent.Future<DescribeLunaClientResult> describeLunaClientAsync(AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
describeLunaClientAsync
in interface AWSCloudHSMAsync
describeLunaClientAsync(DescribeLunaClientRequest,
com.amazonaws.handlers.AsyncHandler)
public java.util.concurrent.Future<GetConfigResult> getConfigAsync(GetConfigRequest request)
AWSCloudHSMAsync
Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.
getConfigAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<GetConfigResult> getConfigAsync(GetConfigRequest request, AsyncHandler<GetConfigRequest,GetConfigResult> asyncHandler)
AWSCloudHSMAsync
Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.
getConfigAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<ListAvailableZonesResult> listAvailableZonesAsync(ListAvailableZonesRequest request)
AWSCloudHSMAsync
Lists the Availability Zones that have available AWS CloudHSM capacity.
listAvailableZonesAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the ListAvailableZones action.public java.util.concurrent.Future<ListAvailableZonesResult> listAvailableZonesAsync(ListAvailableZonesRequest request, AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
AWSCloudHSMAsync
Lists the Availability Zones that have available AWS CloudHSM capacity.
listAvailableZonesAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the ListAvailableZones action.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 java.util.concurrent.Future<ListAvailableZonesResult> listAvailableZonesAsync()
listAvailableZonesAsync
in interface AWSCloudHSMAsync
listAvailableZonesAsync(ListAvailableZonesRequest)
public java.util.concurrent.Future<ListAvailableZonesResult> listAvailableZonesAsync(AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
listAvailableZonesAsync
in interface AWSCloudHSMAsync
listAvailableZonesAsync(ListAvailableZonesRequest,
com.amazonaws.handlers.AsyncHandler)
public java.util.concurrent.Future<ListHapgsResult> listHapgsAsync(ListHapgsRequest request)
AWSCloudHSMAsync
Lists the high-availability partition groups for the account.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.
listHapgsAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<ListHapgsResult> listHapgsAsync(ListHapgsRequest request, AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
AWSCloudHSMAsync
Lists the high-availability partition groups for the account.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.
listHapgsAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<ListHapgsResult> listHapgsAsync()
listHapgsAsync
in interface AWSCloudHSMAsync
listHapgsAsync(ListHapgsRequest)
public java.util.concurrent.Future<ListHapgsResult> listHapgsAsync(AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
listHapgsAsync
in interface AWSCloudHSMAsync
listHapgsAsync(ListHapgsRequest,
com.amazonaws.handlers.AsyncHandler)
public java.util.concurrent.Future<ListHsmsResult> listHsmsAsync(ListHsmsRequest request)
AWSCloudHSMAsync
Retrieves the identifiers of all of the HSMs provisioned for the current customer.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.
listHsmsAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<ListHsmsResult> listHsmsAsync(ListHsmsRequest request, AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
AWSCloudHSMAsync
Retrieves the identifiers of all of the HSMs provisioned for the current customer.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.
listHsmsAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<ListHsmsResult> listHsmsAsync()
listHsmsAsync
in interface AWSCloudHSMAsync
listHsmsAsync(ListHsmsRequest)
public java.util.concurrent.Future<ListHsmsResult> listHsmsAsync(AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
listHsmsAsync
in interface AWSCloudHSMAsync
listHsmsAsync(ListHsmsRequest, com.amazonaws.handlers.AsyncHandler)
public java.util.concurrent.Future<ListLunaClientsResult> listLunaClientsAsync(ListLunaClientsRequest request)
AWSCloudHSMAsync
Lists all of the clients.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.
listLunaClientsAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<ListLunaClientsResult> listLunaClientsAsync(ListLunaClientsRequest request, AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
AWSCloudHSMAsync
Lists all of the clients.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.
listLunaClientsAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<ListLunaClientsResult> listLunaClientsAsync()
listLunaClientsAsync
in interface AWSCloudHSMAsync
listLunaClientsAsync(ListLunaClientsRequest)
public java.util.concurrent.Future<ListLunaClientsResult> listLunaClientsAsync(AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
listLunaClientsAsync
in interface AWSCloudHSMAsync
listLunaClientsAsync(ListLunaClientsRequest,
com.amazonaws.handlers.AsyncHandler)
public java.util.concurrent.Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSCloudHSMAsync
Returns a list of all tags for the specified AWS CloudHSM resource.
listTagsForResourceAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSCloudHSMAsync
Returns a list of all tags for the specified AWS CloudHSM resource.
listTagsForResourceAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<ModifyHapgResult> modifyHapgAsync(ModifyHapgRequest request)
AWSCloudHSMAsync
Modifies an existing high-availability partition group.
modifyHapgAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<ModifyHapgResult> modifyHapgAsync(ModifyHapgRequest request, AsyncHandler<ModifyHapgRequest,ModifyHapgResult> asyncHandler)
AWSCloudHSMAsync
Modifies an existing high-availability partition group.
modifyHapgAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<ModifyHsmResult> modifyHsmAsync(ModifyHsmRequest request)
AWSCloudHSMAsync
Modifies an HSM.
This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.
modifyHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the ModifyHsm operation.public java.util.concurrent.Future<ModifyHsmResult> modifyHsmAsync(ModifyHsmRequest request, AsyncHandler<ModifyHsmRequest,ModifyHsmResult> asyncHandler)
AWSCloudHSMAsync
Modifies an HSM.
This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.
modifyHsmAsync
in interface AWSCloudHSMAsync
request
- Contains the inputs for the ModifyHsm operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ModifyLunaClientResult> modifyLunaClientAsync(ModifyLunaClientRequest request)
AWSCloudHSMAsync
Modifies the certificate used by the client.
This action can potentially start a workflow to install the new certificate on the client's HSMs.
modifyLunaClientAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<ModifyLunaClientResult> modifyLunaClientAsync(ModifyLunaClientRequest request, AsyncHandler<ModifyLunaClientRequest,ModifyLunaClientResult> asyncHandler)
AWSCloudHSMAsync
Modifies the certificate used by the client.
This action can potentially start a workflow to install the new certificate on the client's HSMs.
modifyLunaClientAsync
in interface AWSCloudHSMAsync
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 java.util.concurrent.Future<RemoveTagsFromResourceResult> removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request)
AWSCloudHSMAsync
Removes one or more tags from the specified AWS CloudHSM resource.
To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource.
removeTagsFromResourceAsync
in interface AWSCloudHSMAsync
public java.util.concurrent.Future<RemoveTagsFromResourceResult> removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request, AsyncHandler<RemoveTagsFromResourceRequest,RemoveTagsFromResourceResult> asyncHandler)
AWSCloudHSMAsync
Removes one or more tags from the specified AWS CloudHSM resource.
To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource.
removeTagsFromResourceAsync
in interface AWSCloudHSMAsync
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 AWSCloudHSM
shutdown
in class AmazonWebServiceClient