Class AWSCloudHSMAsyncClient
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceClient
-
- com.amazonaws.services.cloudhsm.AWSCloudHSMClient
-
- com.amazonaws.services.cloudhsm.AWSCloudHSMAsyncClient
-
- All Implemented Interfaces:
AWSCloudHSM,AWSCloudHSMAsync
@ThreadSafe public class AWSCloudHSMAsyncClient extends AWSCloudHSMClient implements AWSCloudHSMAsync
Interface for accessing CloudHSM asynchronously. Each asynchronous method will return a Java Future object representing the asynchronous operation; overloads which accept anAsyncHandlercan be used to receive notification when an asynchronous operation completes.AWS CloudHSM Service
-
-
Field Summary
-
Fields inherited from class com.amazonaws.services.cloudhsm.AWSCloudHSMClient
configFactory
-
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
-
-
Constructor Summary
Constructors Constructor 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(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(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(ClientConfiguration clientConfiguration)Constructs a new asynchronous client to invoke service methods on CloudHSM.
-
Method Summary
-
Methods inherited from class com.amazonaws.services.cloudhsm.AWSCloudHSMClient
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
-
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.cloudhsm.AWSCloudHSM
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
-
-
-
-
Constructor Detail
-
AWSCloudHSMAsyncClient
public AWSCloudHSMAsyncClient()
Constructs a new asynchronous client to invoke service methods on CloudHSM. 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).
-
AWSCloudHSMAsyncClient
public AWSCloudHSMAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on CloudHSM. 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 CloudHSM (ex: proxy settings, retry counts, etc).- See Also:
DefaultAWSCredentialsProviderChain,Executors.newFixedThreadPool(int)
-
AWSCloudHSMAsyncClient
public AWSCloudHSMAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on CloudHSM 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:
Executors.newFixedThreadPool(int)
-
AWSCloudHSMAsyncClient
public 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. 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.
-
AWSCloudHSMAsyncClient
public 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.- 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.
-
AWSCloudHSMAsyncClient
public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on CloudHSM 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:
Executors.newFixedThreadPool(int)
-
AWSCloudHSMAsyncClient
public 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.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:
DefaultAWSCredentialsProviderChain,Executors.newFixedThreadPool(int)
-
AWSCloudHSMAsyncClient
public 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. 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.
-
AWSCloudHSMAsyncClient
public 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.- 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 Detail
-
getExecutorService
public ExecutorService 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.
-
addTagsToResourceAsync
public Future<AddTagsToResourceResult> addTagsToResourceAsync(AddTagsToResourceRequest request)
Description copied from interface:AWSCloudHSMAsyncAdds 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.
- Specified by:
addTagsToResourceAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the AddTagsToResource operation returned by the service.
-
addTagsToResourceAsync
public Future<AddTagsToResourceResult> addTagsToResourceAsync(AddTagsToResourceRequest request, AsyncHandler<AddTagsToResourceRequest,AddTagsToResourceResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncAdds 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.
- Specified by:
addTagsToResourceAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 AddTagsToResource operation returned by the service.
-
createHapgAsync
public Future<CreateHapgResult> createHapgAsync(CreateHapgRequest request)
Description copied from interface:AWSCloudHSMAsyncCreates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
- Specified by:
createHapgAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the CreateHapgRequest action.- Returns:
- A Java Future containing the result of the CreateHapg operation returned by the service.
-
createHapgAsync
public Future<CreateHapgResult> createHapgAsync(CreateHapgRequest request, AsyncHandler<CreateHapgRequest,CreateHapgResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncCreates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
- Specified by:
createHapgAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the CreateHapg operation returned by the service.
-
createHsmAsync
public Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request)
Description copied from interface:AWSCloudHSMAsyncCreates 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.- Specified by:
createHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the CreateHsm operation.- Returns:
- A Java Future containing the result of the CreateHsm operation returned by the service.
-
createHsmAsync
public Future<CreateHsmResult> createHsmAsync(CreateHsmRequest request, AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncCreates 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.- Specified by:
createHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the CreateHsm operation returned by the service.
-
createLunaClientAsync
public Future<CreateLunaClientResult> createLunaClientAsync(CreateLunaClientRequest request)
Description copied from interface:AWSCloudHSMAsyncCreates an HSM client.
- Specified by:
createLunaClientAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the CreateLunaClient action.- Returns:
- A Java Future containing the result of the CreateLunaClient operation returned by the service.
-
createLunaClientAsync
public Future<CreateLunaClientResult> createLunaClientAsync(CreateLunaClientRequest request, AsyncHandler<CreateLunaClientRequest,CreateLunaClientResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncCreates an HSM client.
- Specified by:
createLunaClientAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the CreateLunaClient operation returned by the service.
-
deleteHapgAsync
public Future<DeleteHapgResult> deleteHapgAsync(DeleteHapgRequest request)
Description copied from interface:AWSCloudHSMAsyncDeletes a high-availability partition group.
- Specified by:
deleteHapgAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the DeleteHapg action.- Returns:
- A Java Future containing the result of the DeleteHapg operation returned by the service.
-
deleteHapgAsync
public Future<DeleteHapgResult> deleteHapgAsync(DeleteHapgRequest request, AsyncHandler<DeleteHapgRequest,DeleteHapgResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncDeletes a high-availability partition group.
- Specified by:
deleteHapgAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the DeleteHapg operation returned by the service.
-
deleteHsmAsync
public Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request)
Description copied from interface:AWSCloudHSMAsyncDeletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.
- Specified by:
deleteHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the DeleteHsm operation.- Returns:
- A Java Future containing the result of the DeleteHsm operation returned by the service.
-
deleteHsmAsync
public Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest request, AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncDeletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.
- Specified by:
deleteHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the DeleteHsm operation returned by the service.
-
deleteLunaClientAsync
public Future<DeleteLunaClientResult> deleteLunaClientAsync(DeleteLunaClientRequest request)
Description copied from interface:AWSCloudHSMAsyncDeletes a client.
- Specified by:
deleteLunaClientAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the DeleteLunaClient operation returned by the service.
-
deleteLunaClientAsync
public Future<DeleteLunaClientResult> deleteLunaClientAsync(DeleteLunaClientRequest request, AsyncHandler<DeleteLunaClientRequest,DeleteLunaClientResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncDeletes a client.
- Specified by:
deleteLunaClientAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 DeleteLunaClient operation returned by the service.
-
describeHapgAsync
public Future<DescribeHapgResult> describeHapgAsync(DescribeHapgRequest request)
Description copied from interface:AWSCloudHSMAsyncRetrieves information about a high-availability partition group.
- Specified by:
describeHapgAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the DescribeHapg action.- Returns:
- A Java Future containing the result of the DescribeHapg operation returned by the service.
-
describeHapgAsync
public Future<DescribeHapgResult> describeHapgAsync(DescribeHapgRequest request, AsyncHandler<DescribeHapgRequest,DescribeHapgResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncRetrieves information about a high-availability partition group.
- Specified by:
describeHapgAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeHapg operation returned by the service.
-
describeHsmAsync
public Future<DescribeHsmResult> describeHsmAsync(DescribeHsmRequest request)
Description copied from interface:AWSCloudHSMAsyncRetrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
- Specified by:
describeHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the DescribeHsm operation.- Returns:
- A Java Future containing the result of the DescribeHsm operation returned by the service.
-
describeHsmAsync
public Future<DescribeHsmResult> describeHsmAsync(DescribeHsmRequest request, AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncRetrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
- Specified by:
describeHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeHsm operation returned by the service.
-
describeHsmAsync
public Future<DescribeHsmResult> describeHsmAsync()
Simplified method form for invoking the DescribeHsm operation.- Specified by:
describeHsmAsyncin interfaceAWSCloudHSMAsync- See Also:
describeHsmAsync(DescribeHsmRequest)
-
describeHsmAsync
public Future<DescribeHsmResult> describeHsmAsync(AsyncHandler<DescribeHsmRequest,DescribeHsmResult> asyncHandler)
Simplified method form for invoking the DescribeHsm operation with an AsyncHandler.- Specified by:
describeHsmAsyncin interfaceAWSCloudHSMAsync- See Also:
describeHsmAsync(DescribeHsmRequest, com.amazonaws.handlers.AsyncHandler)
-
describeLunaClientAsync
public Future<DescribeLunaClientResult> describeLunaClientAsync(DescribeLunaClientRequest request)
Description copied from interface:AWSCloudHSMAsyncRetrieves information about an HSM client.
- Specified by:
describeLunaClientAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the DescribeLunaClient operation returned by the service.
-
describeLunaClientAsync
public Future<DescribeLunaClientResult> describeLunaClientAsync(DescribeLunaClientRequest request, AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncRetrieves information about an HSM client.
- Specified by:
describeLunaClientAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 DescribeLunaClient operation returned by the service.
-
describeLunaClientAsync
public Future<DescribeLunaClientResult> describeLunaClientAsync()
Simplified method form for invoking the DescribeLunaClient operation.- Specified by:
describeLunaClientAsyncin interfaceAWSCloudHSMAsync- See Also:
describeLunaClientAsync(DescribeLunaClientRequest)
-
describeLunaClientAsync
public Future<DescribeLunaClientResult> describeLunaClientAsync(AsyncHandler<DescribeLunaClientRequest,DescribeLunaClientResult> asyncHandler)
Simplified method form for invoking the DescribeLunaClient operation with an AsyncHandler.- Specified by:
describeLunaClientAsyncin interfaceAWSCloudHSMAsync- See Also:
describeLunaClientAsync(DescribeLunaClientRequest, com.amazonaws.handlers.AsyncHandler)
-
getConfigAsync
public Future<GetConfigResult> getConfigAsync(GetConfigRequest request)
Description copied from interface:AWSCloudHSMAsyncGets the configuration files necessary to connect to all high availability partition groups the client is associated with.
- Specified by:
getConfigAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the GetConfig operation returned by the service.
-
getConfigAsync
public Future<GetConfigResult> getConfigAsync(GetConfigRequest request, AsyncHandler<GetConfigRequest,GetConfigResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncGets the configuration files necessary to connect to all high availability partition groups the client is associated with.
- Specified by:
getConfigAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 GetConfig operation returned by the service.
-
listAvailableZonesAsync
public Future<ListAvailableZonesResult> listAvailableZonesAsync(ListAvailableZonesRequest request)
Description copied from interface:AWSCloudHSMAsyncLists the Availability Zones that have available AWS CloudHSM capacity.
- Specified by:
listAvailableZonesAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the ListAvailableZones action.- Returns:
- A Java Future containing the result of the ListAvailableZones operation returned by the service.
-
listAvailableZonesAsync
public Future<ListAvailableZonesResult> listAvailableZonesAsync(ListAvailableZonesRequest request, AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncLists the Availability Zones that have available AWS CloudHSM capacity.
- Specified by:
listAvailableZonesAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the ListAvailableZones operation returned by the service.
-
listAvailableZonesAsync
public Future<ListAvailableZonesResult> listAvailableZonesAsync()
Simplified method form for invoking the ListAvailableZones operation.- Specified by:
listAvailableZonesAsyncin interfaceAWSCloudHSMAsync- See Also:
listAvailableZonesAsync(ListAvailableZonesRequest)
-
listAvailableZonesAsync
public Future<ListAvailableZonesResult> listAvailableZonesAsync(AsyncHandler<ListAvailableZonesRequest,ListAvailableZonesResult> asyncHandler)
Simplified method form for invoking the ListAvailableZones operation with an AsyncHandler.- Specified by:
listAvailableZonesAsyncin interfaceAWSCloudHSMAsync- See Also:
listAvailableZonesAsync(ListAvailableZonesRequest, com.amazonaws.handlers.AsyncHandler)
-
listHapgsAsync
public Future<ListHapgsResult> listHapgsAsync(ListHapgsRequest request)
Description copied from interface: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.
- Specified by:
listHapgsAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the ListHapgs operation returned by the service.
-
listHapgsAsync
public Future<ListHapgsResult> listHapgsAsync(ListHapgsRequest request, AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
Description copied from interface: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.
- Specified by:
listHapgsAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 ListHapgs operation returned by the service.
-
listHapgsAsync
public Future<ListHapgsResult> listHapgsAsync()
Simplified method form for invoking the ListHapgs operation.- Specified by:
listHapgsAsyncin interfaceAWSCloudHSMAsync- See Also:
listHapgsAsync(ListHapgsRequest)
-
listHapgsAsync
public Future<ListHapgsResult> listHapgsAsync(AsyncHandler<ListHapgsRequest,ListHapgsResult> asyncHandler)
Simplified method form for invoking the ListHapgs operation with an AsyncHandler.- Specified by:
listHapgsAsyncin interfaceAWSCloudHSMAsync- See Also:
listHapgsAsync(ListHapgsRequest, com.amazonaws.handlers.AsyncHandler)
-
listHsmsAsync
public Future<ListHsmsResult> listHsmsAsync(ListHsmsRequest request)
Description copied from interface: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.
- Specified by:
listHsmsAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the ListHsms operation returned by the service.
-
listHsmsAsync
public Future<ListHsmsResult> listHsmsAsync(ListHsmsRequest request, AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
Description copied from interface: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.
- Specified by:
listHsmsAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 ListHsms operation returned by the service.
-
listHsmsAsync
public Future<ListHsmsResult> listHsmsAsync()
Simplified method form for invoking the ListHsms operation.- Specified by:
listHsmsAsyncin interfaceAWSCloudHSMAsync- See Also:
listHsmsAsync(ListHsmsRequest)
-
listHsmsAsync
public Future<ListHsmsResult> listHsmsAsync(AsyncHandler<ListHsmsRequest,ListHsmsResult> asyncHandler)
Simplified method form for invoking the ListHsms operation with an AsyncHandler.- Specified by:
listHsmsAsyncin interfaceAWSCloudHSMAsync- See Also:
listHsmsAsync(ListHsmsRequest, com.amazonaws.handlers.AsyncHandler)
-
listLunaClientsAsync
public Future<ListLunaClientsResult> listLunaClientsAsync(ListLunaClientsRequest request)
Description copied from interface: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.
- Specified by:
listLunaClientsAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the ListLunaClients operation returned by the service.
-
listLunaClientsAsync
public Future<ListLunaClientsResult> listLunaClientsAsync(ListLunaClientsRequest request, AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
Description copied from interface: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.
- Specified by:
listLunaClientsAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 ListLunaClients operation returned by the service.
-
listLunaClientsAsync
public Future<ListLunaClientsResult> listLunaClientsAsync()
Simplified method form for invoking the ListLunaClients operation.- Specified by:
listLunaClientsAsyncin interfaceAWSCloudHSMAsync- See Also:
listLunaClientsAsync(ListLunaClientsRequest)
-
listLunaClientsAsync
public Future<ListLunaClientsResult> listLunaClientsAsync(AsyncHandler<ListLunaClientsRequest,ListLunaClientsResult> asyncHandler)
Simplified method form for invoking the ListLunaClients operation with an AsyncHandler.- Specified by:
listLunaClientsAsyncin interfaceAWSCloudHSMAsync- See Also:
listLunaClientsAsync(ListLunaClientsRequest, com.amazonaws.handlers.AsyncHandler)
-
listTagsForResourceAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
Description copied from interface:AWSCloudHSMAsyncReturns a list of all tags for the specified AWS CloudHSM resource.
- Specified by:
listTagsForResourceAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
-
listTagsForResourceAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncReturns a list of all tags for the specified AWS CloudHSM resource.
- Specified by:
listTagsForResourceAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 ListTagsForResource operation returned by the service.
-
modifyHapgAsync
public Future<ModifyHapgResult> modifyHapgAsync(ModifyHapgRequest request)
Description copied from interface:AWSCloudHSMAsyncModifies an existing high-availability partition group.
- Specified by:
modifyHapgAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the ModifyHapg operation returned by the service.
-
modifyHapgAsync
public Future<ModifyHapgResult> modifyHapgAsync(ModifyHapgRequest request, AsyncHandler<ModifyHapgRequest,ModifyHapgResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncModifies an existing high-availability partition group.
- Specified by:
modifyHapgAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 ModifyHapg operation returned by the service.
-
modifyHsmAsync
public Future<ModifyHsmResult> modifyHsmAsync(ModifyHsmRequest request)
Description copied from interface:AWSCloudHSMAsyncModifies 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.
- Specified by:
modifyHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
request- Contains the inputs for the ModifyHsm operation.- Returns:
- A Java Future containing the result of the ModifyHsm operation returned by the service.
-
modifyHsmAsync
public Future<ModifyHsmResult> modifyHsmAsync(ModifyHsmRequest request, AsyncHandler<ModifyHsmRequest,ModifyHsmResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncModifies 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.
- Specified by:
modifyHsmAsyncin interfaceAWSCloudHSMAsync- Parameters:
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.- Returns:
- A Java Future containing the result of the ModifyHsm operation returned by the service.
-
modifyLunaClientAsync
public Future<ModifyLunaClientResult> modifyLunaClientAsync(ModifyLunaClientRequest request)
Description copied from interface:AWSCloudHSMAsyncModifies the certificate used by the client.
This action can potentially start a workflow to install the new certificate on the client's HSMs.
- Specified by:
modifyLunaClientAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the ModifyLunaClient operation returned by the service.
-
modifyLunaClientAsync
public Future<ModifyLunaClientResult> modifyLunaClientAsync(ModifyLunaClientRequest request, AsyncHandler<ModifyLunaClientRequest,ModifyLunaClientResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncModifies the certificate used by the client.
This action can potentially start a workflow to install the new certificate on the client's HSMs.
- Specified by:
modifyLunaClientAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 ModifyLunaClient operation returned by the service.
-
removeTagsFromResourceAsync
public Future<RemoveTagsFromResourceResult> removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request)
Description copied from interface:AWSCloudHSMAsyncRemoves 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.
- Specified by:
removeTagsFromResourceAsyncin interfaceAWSCloudHSMAsync- Returns:
- A Java Future containing the result of the RemoveTagsFromResource operation returned by the service.
-
removeTagsFromResourceAsync
public Future<RemoveTagsFromResourceResult> removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request, AsyncHandler<RemoveTagsFromResourceRequest,RemoveTagsFromResourceResult> asyncHandler)
Description copied from interface:AWSCloudHSMAsyncRemoves 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.
- Specified by:
removeTagsFromResourceAsyncin interfaceAWSCloudHSMAsyncasyncHandler- 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 RemoveTagsFromResource 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:
shutdownin interfaceAWSCloudHSM- Overrides:
shutdownin classAmazonWebServiceClient
-
-