public class AWSCloudHSMAsyncClient extends AWSCloudHSMClient implements AWSCloudHSMAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
LOGGING_AWS_REQUEST_METRIC| 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,
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,
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,
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,
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.
|
createHapg, createHsm, createLunaClient, deleteHapg, deleteHsm, deleteLunaClient, describeHapg, describeHsm, describeHsm, describeLunaClient, describeLunaClient, getCachedResponseMetadata, getConfig, listAvailableZones, listAvailableZones, listHapgs, listHapgs, listHsms, listHsms, listLunaClients, listLunaClients, modifyHapg, modifyHsm, modifyLunaClientaddRequestHandler, addRequestHandler, configureRegion, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHapg, createHsm, createLunaClient, deleteHapg, deleteHsm, deleteLunaClient, describeHapg, describeHsm, describeHsm, describeLunaClient, describeLunaClient, getCachedResponseMetadata, getConfig, listAvailableZones, listAvailableZones, listHapgs, listHapgs, listHsms, listHsms, listLunaClients, listLunaClients, modifyHapg, modifyHsm, modifyLunaClient, setEndpoint, setRegionpublic 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).
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, 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, 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, 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, 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 ExecutorService getExecutorService()
public Future<CreateHapgResult> createHapgAsync(CreateHapgRequest request)
AWSCloudHSMAsyncCreates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
createHapgAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the CreateHapgRequest action.public Future<CreateHapgResult> createHapgAsync(CreateHapgRequest request, AsyncHandler<CreateHapgRequest,CreateHapgResult> asyncHandler)
AWSCloudHSMAsyncCreates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
createHapgAsync in interface AWSCloudHSMAsyncrequest - 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 Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request)
AWSCloudHSMAsyncCreates an uninitialized HSM instance. Running this command provisions an HSM appliance and will result in charges to your AWS account for the HSM.
createHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the CreateHsm action.public Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request, AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
AWSCloudHSMAsyncCreates an uninitialized HSM instance. Running this command provisions an HSM appliance and will result in charges to your AWS account for the HSM.
createHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the CreateHsm 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 Future<CreateLunaClientResult> createLunaClientAsync(CreateLunaClientRequest request)
AWSCloudHSMAsyncCreates an HSM client.
createLunaClientAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the CreateLunaClient action.public Future<CreateLunaClientResult> createLunaClientAsync(CreateLunaClientRequest request, AsyncHandler<CreateLunaClientRequest,CreateLunaClientResult> asyncHandler)
AWSCloudHSMAsyncCreates an HSM client.
createLunaClientAsync in interface AWSCloudHSMAsyncrequest - 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 Future<DeleteHapgResult> deleteHapgAsync(DeleteHapgRequest request)
AWSCloudHSMAsyncDeletes a high-availability partition group.
deleteHapgAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the DeleteHapg action.public Future<DeleteHapgResult> deleteHapgAsync(DeleteHapgRequest request, AsyncHandler<DeleteHapgRequest,DeleteHapgResult> asyncHandler)
AWSCloudHSMAsyncDeletes a high-availability partition group.
deleteHapgAsync in interface AWSCloudHSMAsyncrequest - 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 Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request)
AWSCloudHSMAsyncDeletes an HSM. Once complete, this operation cannot be undone and your key material cannot be recovered.
deleteHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the DeleteHsm action.public Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request, AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
AWSCloudHSMAsyncDeletes an HSM. Once complete, this operation cannot be undone and your key material cannot be recovered.
deleteHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the DeleteHsm 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 Future<DeleteLunaClientResult> deleteLunaClientAsync(DeleteLunaClientRequest request)
AWSCloudHSMAsyncDeletes a client.
deleteLunaClientAsync in interface AWSCloudHSMAsyncpublic Future<DeleteLunaClientResult> deleteLunaClientAsync(DeleteLunaClientRequest request, AsyncHandler<DeleteLunaClientRequest,DeleteLunaClientResult> asyncHandler)
AWSCloudHSMAsyncDeletes a client.
deleteLunaClientAsync in interface AWSCloudHSMAsyncasyncHandler - 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<DescribeHapgResult> describeHapgAsync(DescribeHapgRequest request)
AWSCloudHSMAsyncRetrieves information about a high-availability partition group.
describeHapgAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the DescribeHapg action.public Future<DescribeHapgResult> describeHapgAsync(DescribeHapgRequest request, AsyncHandler<DescribeHapgRequest,DescribeHapgResult> asyncHandler)
AWSCloudHSMAsyncRetrieves information about a high-availability partition group.
describeHapgAsync in interface AWSCloudHSMAsyncrequest - 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 Future<DescribeHsmResult> describeHsmAsync(DescribeHsmRequest request)
AWSCloudHSMAsyncRetrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
describeHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the DescribeHsm action.public Future<DescribeHsmResult> describeHsmAsync(DescribeHsmRequest request, AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
AWSCloudHSMAsyncRetrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
describeHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the DescribeHsm 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 Future<DescribeHsmResult> describeHsmAsync()
describeHsmAsync in interface AWSCloudHSMAsyncdescribeHsmAsync(DescribeHsmRequest)public Future<DescribeHsmResult> describeHsmAsync(AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
describeHsmAsync in interface AWSCloudHSMAsyncdescribeHsmAsync(DescribeHsmRequest,
com.amazonaws.handlers.AsyncHandler)public Future<DescribeLunaClientResult> describeLunaClientAsync(DescribeLunaClientRequest request)
AWSCloudHSMAsyncRetrieves information about an HSM client.
describeLunaClientAsync in interface AWSCloudHSMAsyncpublic Future<DescribeLunaClientResult> describeLunaClientAsync(DescribeLunaClientRequest request, AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
AWSCloudHSMAsyncRetrieves information about an HSM client.
describeLunaClientAsync in interface AWSCloudHSMAsyncasyncHandler - 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<DescribeLunaClientResult> describeLunaClientAsync()
describeLunaClientAsync in interface AWSCloudHSMAsyncdescribeLunaClientAsync(DescribeLunaClientRequest)public Future<DescribeLunaClientResult> describeLunaClientAsync(AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
describeLunaClientAsync in interface AWSCloudHSMAsyncdescribeLunaClientAsync(DescribeLunaClientRequest,
com.amazonaws.handlers.AsyncHandler)public Future<GetConfigResult> getConfigAsync(GetConfigRequest request)
AWSCloudHSMAsyncGets the configuration files necessary to connect to all high availability partition groups the client is associated with.
getConfigAsync in interface AWSCloudHSMAsyncpublic Future<GetConfigResult> getConfigAsync(GetConfigRequest request, AsyncHandler<GetConfigRequest,GetConfigResult> asyncHandler)
AWSCloudHSMAsyncGets the configuration files necessary to connect to all high availability partition groups the client is associated with.
getConfigAsync in interface AWSCloudHSMAsyncasyncHandler - 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<ListAvailableZonesResult> listAvailableZonesAsync(ListAvailableZonesRequest request)
AWSCloudHSMAsyncLists the Availability Zones that have available AWS CloudHSM capacity.
listAvailableZonesAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the ListAvailableZones action.public Future<ListAvailableZonesResult> listAvailableZonesAsync(ListAvailableZonesRequest request, AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
AWSCloudHSMAsyncLists the Availability Zones that have available AWS CloudHSM capacity.
listAvailableZonesAsync in interface AWSCloudHSMAsyncrequest - 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 Future<ListAvailableZonesResult> listAvailableZonesAsync()
listAvailableZonesAsync in interface AWSCloudHSMAsynclistAvailableZonesAsync(ListAvailableZonesRequest)public Future<ListAvailableZonesResult> listAvailableZonesAsync(AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
listAvailableZonesAsync in interface AWSCloudHSMAsynclistAvailableZonesAsync(ListAvailableZonesRequest,
com.amazonaws.handlers.AsyncHandler)public Future<ListHapgsResult> listHapgsAsync(ListHapgsRequest request)
AWSCloudHSMAsyncLists 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 AWSCloudHSMAsyncpublic Future<ListHapgsResult> listHapgsAsync(ListHapgsRequest request, AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
AWSCloudHSMAsyncLists 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 AWSCloudHSMAsyncasyncHandler - 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<ListHapgsResult> listHapgsAsync()
listHapgsAsync in interface AWSCloudHSMAsynclistHapgsAsync(ListHapgsRequest)public Future<ListHapgsResult> listHapgsAsync(AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
listHapgsAsync in interface AWSCloudHSMAsynclistHapgsAsync(ListHapgsRequest,
com.amazonaws.handlers.AsyncHandler)public Future<ListHsmsResult> listHsmsAsync(ListHsmsRequest request)
AWSCloudHSMAsyncRetrieves 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 AWSCloudHSMAsyncpublic Future<ListHsmsResult> listHsmsAsync(ListHsmsRequest request, AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
AWSCloudHSMAsyncRetrieves 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 AWSCloudHSMAsyncasyncHandler - 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<ListHsmsResult> listHsmsAsync()
listHsmsAsync in interface AWSCloudHSMAsynclistHsmsAsync(ListHsmsRequest)public Future<ListHsmsResult> listHsmsAsync(AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
listHsmsAsync in interface AWSCloudHSMAsynclistHsmsAsync(ListHsmsRequest, com.amazonaws.handlers.AsyncHandler)public Future<ListLunaClientsResult> listLunaClientsAsync(ListLunaClientsRequest request)
AWSCloudHSMAsyncLists 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 AWSCloudHSMAsyncpublic Future<ListLunaClientsResult> listLunaClientsAsync(ListLunaClientsRequest request, AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
AWSCloudHSMAsyncLists 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 AWSCloudHSMAsyncasyncHandler - 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<ListLunaClientsResult> listLunaClientsAsync()
listLunaClientsAsync in interface AWSCloudHSMAsynclistLunaClientsAsync(ListLunaClientsRequest)public Future<ListLunaClientsResult> listLunaClientsAsync(AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
listLunaClientsAsync in interface AWSCloudHSMAsynclistLunaClientsAsync(ListLunaClientsRequest,
com.amazonaws.handlers.AsyncHandler)public Future<ModifyHapgResult> modifyHapgAsync(ModifyHapgRequest request)
AWSCloudHSMAsyncModifies an existing high-availability partition group.
modifyHapgAsync in interface AWSCloudHSMAsyncpublic Future<ModifyHapgResult> modifyHapgAsync(ModifyHapgRequest request, AsyncHandler<ModifyHapgRequest,ModifyHapgResult> asyncHandler)
AWSCloudHSMAsyncModifies an existing high-availability partition group.
modifyHapgAsync in interface AWSCloudHSMAsyncasyncHandler - 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<ModifyHsmResult> modifyHsmAsync(ModifyHsmRequest request)
AWSCloudHSMAsyncModifies an HSM.
modifyHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the ModifyHsm action.public Future<ModifyHsmResult> modifyHsmAsync(ModifyHsmRequest request, AsyncHandler<ModifyHsmRequest,ModifyHsmResult> asyncHandler)
AWSCloudHSMAsyncModifies an HSM.
modifyHsmAsync in interface AWSCloudHSMAsyncrequest - Contains the inputs for the ModifyHsm 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 Future<ModifyLunaClientResult> modifyLunaClientAsync(ModifyLunaClientRequest request)
AWSCloudHSMAsyncModifies 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 AWSCloudHSMAsyncpublic Future<ModifyLunaClientResult> modifyLunaClientAsync(ModifyLunaClientRequest request, AsyncHandler<ModifyLunaClientRequest,ModifyLunaClientResult> asyncHandler)
AWSCloudHSMAsyncModifies 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 AWSCloudHSMAsyncasyncHandler - 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 AWSCloudHSMshutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.