@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSCloudHSMV2Async extends AWSCloudHSMV2
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSCloudHSMV2Async
instead.
For more information about CloudHSM, see CloudHSM and the CloudHSM User Guide.
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<CopyBackupToRegionResult> |
copyBackupToRegionAsync(CopyBackupToRegionRequest copyBackupToRegionRequest)
Copy an CloudHSM cluster backup to a different region.
|
Future<CopyBackupToRegionResult> |
copyBackupToRegionAsync(CopyBackupToRegionRequest copyBackupToRegionRequest,
AsyncHandler<CopyBackupToRegionRequest,CopyBackupToRegionResult> asyncHandler)
Copy an CloudHSM cluster backup to a different region.
|
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest createClusterRequest)
Creates a new CloudHSM cluster.
|
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest createClusterRequest,
AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
Creates a new CloudHSM cluster.
|
Future<CreateHsmResult> |
createHsmAsync(CreateHsmRequest createHsmRequest)
Creates a new hardware security module (HSM) in the specified CloudHSM cluster.
|
Future<CreateHsmResult> |
createHsmAsync(CreateHsmRequest createHsmRequest,
AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
Creates a new hardware security module (HSM) in the specified CloudHSM cluster.
|
Future<DeleteBackupResult> |
deleteBackupAsync(DeleteBackupRequest deleteBackupRequest)
Deletes a specified CloudHSM backup.
|
Future<DeleteBackupResult> |
deleteBackupAsync(DeleteBackupRequest deleteBackupRequest,
AsyncHandler<DeleteBackupRequest,DeleteBackupResult> asyncHandler)
Deletes a specified CloudHSM backup.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest deleteClusterRequest)
Deletes the specified CloudHSM cluster.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest deleteClusterRequest,
AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
Deletes the specified CloudHSM cluster.
|
Future<DeleteHsmResult> |
deleteHsmAsync(DeleteHsmRequest deleteHsmRequest)
Deletes the specified HSM.
|
Future<DeleteHsmResult> |
deleteHsmAsync(DeleteHsmRequest deleteHsmRequest,
AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
Deletes the specified HSM.
|
Future<DeleteResourcePolicyResult> |
deleteResourcePolicyAsync(DeleteResourcePolicyRequest deleteResourcePolicyRequest)
Deletes an CloudHSM resource policy.
|
Future<DeleteResourcePolicyResult> |
deleteResourcePolicyAsync(DeleteResourcePolicyRequest deleteResourcePolicyRequest,
AsyncHandler<DeleteResourcePolicyRequest,DeleteResourcePolicyResult> asyncHandler)
Deletes an CloudHSM resource policy.
|
Future<DescribeBackupsResult> |
describeBackupsAsync(DescribeBackupsRequest describeBackupsRequest)
Gets information about backups of CloudHSM clusters.
|
Future<DescribeBackupsResult> |
describeBackupsAsync(DescribeBackupsRequest describeBackupsRequest,
AsyncHandler<DescribeBackupsRequest,DescribeBackupsResult> asyncHandler)
Gets information about backups of CloudHSM clusters.
|
Future<DescribeClustersResult> |
describeClustersAsync(DescribeClustersRequest describeClustersRequest)
Gets information about CloudHSM clusters.
|
Future<DescribeClustersResult> |
describeClustersAsync(DescribeClustersRequest describeClustersRequest,
AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler)
Gets information about CloudHSM clusters.
|
Future<GetResourcePolicyResult> |
getResourcePolicyAsync(GetResourcePolicyRequest getResourcePolicyRequest)
Retrieves the resource policy document attached to a given resource.
|
Future<GetResourcePolicyResult> |
getResourcePolicyAsync(GetResourcePolicyRequest getResourcePolicyRequest,
AsyncHandler<GetResourcePolicyRequest,GetResourcePolicyResult> asyncHandler)
Retrieves the resource policy document attached to a given resource.
|
Future<InitializeClusterResult> |
initializeClusterAsync(InitializeClusterRequest initializeClusterRequest)
Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority
(CA) and the CA's root certificate.
|
Future<InitializeClusterResult> |
initializeClusterAsync(InitializeClusterRequest initializeClusterRequest,
AsyncHandler<InitializeClusterRequest,InitializeClusterResult> asyncHandler)
Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority
(CA) and the CA's root certificate.
|
Future<ListTagsResult> |
listTagsAsync(ListTagsRequest listTagsRequest)
Gets a list of tags for the specified CloudHSM cluster.
|
Future<ListTagsResult> |
listTagsAsync(ListTagsRequest listTagsRequest,
AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
Gets a list of tags for the specified CloudHSM cluster.
|
Future<ModifyBackupAttributesResult> |
modifyBackupAttributesAsync(ModifyBackupAttributesRequest modifyBackupAttributesRequest)
Modifies attributes for CloudHSM backup.
|
Future<ModifyBackupAttributesResult> |
modifyBackupAttributesAsync(ModifyBackupAttributesRequest modifyBackupAttributesRequest,
AsyncHandler<ModifyBackupAttributesRequest,ModifyBackupAttributesResult> asyncHandler)
Modifies attributes for CloudHSM backup.
|
Future<ModifyClusterResult> |
modifyClusterAsync(ModifyClusterRequest modifyClusterRequest)
Modifies CloudHSM cluster.
|
Future<ModifyClusterResult> |
modifyClusterAsync(ModifyClusterRequest modifyClusterRequest,
AsyncHandler<ModifyClusterRequest,ModifyClusterResult> asyncHandler)
Modifies CloudHSM cluster.
|
Future<PutResourcePolicyResult> |
putResourcePolicyAsync(PutResourcePolicyRequest putResourcePolicyRequest)
Creates or updates an CloudHSM resource policy.
|
Future<PutResourcePolicyResult> |
putResourcePolicyAsync(PutResourcePolicyRequest putResourcePolicyRequest,
AsyncHandler<PutResourcePolicyRequest,PutResourcePolicyResult> asyncHandler)
Creates or updates an CloudHSM resource policy.
|
Future<RestoreBackupResult> |
restoreBackupAsync(RestoreBackupRequest restoreBackupRequest)
Restores a specified CloudHSM backup that is in the
PENDING_DELETION state. |
Future<RestoreBackupResult> |
restoreBackupAsync(RestoreBackupRequest restoreBackupRequest,
AsyncHandler<RestoreBackupRequest,RestoreBackupResult> asyncHandler)
Restores a specified CloudHSM backup that is in the
PENDING_DELETION state. |
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest tagResourceRequest)
Adds or overwrites one or more tags for the specified CloudHSM cluster.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest tagResourceRequest,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Adds or overwrites one or more tags for the specified CloudHSM cluster.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest untagResourceRequest)
Removes the specified tag or tags from the specified CloudHSM cluster.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest untagResourceRequest,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes the specified tag or tags from the specified CloudHSM cluster.
|
copyBackupToRegion, createCluster, createHsm, deleteBackup, deleteCluster, deleteHsm, deleteResourcePolicy, describeBackups, describeClusters, getCachedResponseMetadata, getResourcePolicy, initializeCluster, listTags, modifyBackupAttributes, modifyCluster, putResourcePolicy, restoreBackup, shutdown, tagResource, untagResource
Future<CopyBackupToRegionResult> copyBackupToRegionAsync(CopyBackupToRegionRequest copyBackupToRegionRequest)
Copy an CloudHSM cluster backup to a different region.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
copyBackupToRegionRequest
- Future<CopyBackupToRegionResult> copyBackupToRegionAsync(CopyBackupToRegionRequest copyBackupToRegionRequest, AsyncHandler<CopyBackupToRegionRequest,CopyBackupToRegionResult> asyncHandler)
Copy an CloudHSM cluster backup to a different region.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
copyBackupToRegionRequest
- 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.Future<CreateClusterResult> createClusterAsync(CreateClusterRequest createClusterRequest)
Creates a new CloudHSM cluster.
Cross-account use: Yes. To perform this operation with an CloudHSM backup in a different AWS account, specify the full backup ARN in the value of the SourceBackupId parameter.
createClusterRequest
- Future<CreateClusterResult> createClusterAsync(CreateClusterRequest createClusterRequest, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
Creates a new CloudHSM cluster.
Cross-account use: Yes. To perform this operation with an CloudHSM backup in a different AWS account, specify the full backup ARN in the value of the SourceBackupId parameter.
createClusterRequest
- 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.Future<CreateHsmResult> createHsmAsync(CreateHsmRequest createHsmRequest)
Creates a new hardware security module (HSM) in the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Service account.
createHsmRequest
- Future<CreateHsmResult> createHsmAsync(CreateHsmRequest createHsmRequest, AsyncHandler<CreateHsmRequest,CreateHsmResult> asyncHandler)
Creates a new hardware security module (HSM) in the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Service account.
createHsmRequest
- 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.Future<DeleteBackupResult> deleteBackupAsync(DeleteBackupRequest deleteBackupRequest)
Deletes a specified CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
deleteBackupRequest
- Future<DeleteBackupResult> deleteBackupAsync(DeleteBackupRequest deleteBackupRequest, AsyncHandler<DeleteBackupRequest,DeleteBackupResult> asyncHandler)
Deletes a specified CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
deleteBackupRequest
- 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.Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest deleteClusterRequest)
Deletes the specified CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
deleteClusterRequest
- Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest deleteClusterRequest, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
Deletes the specified CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
deleteClusterRequest
- 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.Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest deleteHsmRequest)
Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters.
Cross-account use: No. You cannot perform this operation on an CloudHSM hsm in a different Amazon Web Services account.
deleteHsmRequest
- Future<DeleteHsmResult> deleteHsmAsync(DeleteHsmRequest deleteHsmRequest, AsyncHandler<DeleteHsmRequest,DeleteHsmResult> asyncHandler)
Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters.
Cross-account use: No. You cannot perform this operation on an CloudHSM hsm in a different Amazon Web Services account.
deleteHsmRequest
- 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.Future<DeleteResourcePolicyResult> deleteResourcePolicyAsync(DeleteResourcePolicyRequest deleteResourcePolicyRequest)
Deletes an CloudHSM resource policy. Deleting a resource policy will result in the resource being unshared and removed from any RAM resource shares. Deleting the resource policy attached to a backup will not impact any clusters created from that backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
deleteResourcePolicyRequest
- Future<DeleteResourcePolicyResult> deleteResourcePolicyAsync(DeleteResourcePolicyRequest deleteResourcePolicyRequest, AsyncHandler<DeleteResourcePolicyRequest,DeleteResourcePolicyResult> asyncHandler)
Deletes an CloudHSM resource policy. Deleting a resource policy will result in the resource being unshared and removed from any RAM resource shares. Deleting the resource policy attached to a backup will not impact any clusters created from that backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
deleteResourcePolicyRequest
- 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.Future<DescribeBackupsResult> describeBackupsAsync(DescribeBackupsRequest describeBackupsRequest)
Gets information about backups of CloudHSM clusters. Lists either the backups you own or the backups shared with you when the Shared parameter is true.
This is a paginated operation, which means that each response might contain only a subset of all the backups.
When the response contains only a subset of backups, it includes a NextToken
value. Use this value
in a subsequent DescribeBackups
request to get more backups. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more backups to get.
Cross-account use: Yes. Customers can describe backups in other Amazon Web Services accounts that are shared with them.
describeBackupsRequest
- Future<DescribeBackupsResult> describeBackupsAsync(DescribeBackupsRequest describeBackupsRequest, AsyncHandler<DescribeBackupsRequest,DescribeBackupsResult> asyncHandler)
Gets information about backups of CloudHSM clusters. Lists either the backups you own or the backups shared with you when the Shared parameter is true.
This is a paginated operation, which means that each response might contain only a subset of all the backups.
When the response contains only a subset of backups, it includes a NextToken
value. Use this value
in a subsequent DescribeBackups
request to get more backups. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more backups to get.
Cross-account use: Yes. Customers can describe backups in other Amazon Web Services accounts that are shared with them.
describeBackupsRequest
- 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.Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest describeClustersRequest)
Gets information about CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the clusters.
When the response contains only a subset of clusters, it includes a NextToken
value. Use this value
in a subsequent DescribeClusters
request to get more clusters. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more clusters to get.
Cross-account use: No. You cannot perform this operation on CloudHSM clusters in a different Amazon Web Services account.
describeClustersRequest
- Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest describeClustersRequest, AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler)
Gets information about CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the clusters.
When the response contains only a subset of clusters, it includes a NextToken
value. Use this value
in a subsequent DescribeClusters
request to get more clusters. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more clusters to get.
Cross-account use: No. You cannot perform this operation on CloudHSM clusters in a different Amazon Web Services account.
describeClustersRequest
- 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.Future<GetResourcePolicyResult> getResourcePolicyAsync(GetResourcePolicyRequest getResourcePolicyRequest)
Retrieves the resource policy document attached to a given resource.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
getResourcePolicyRequest
- Future<GetResourcePolicyResult> getResourcePolicyAsync(GetResourcePolicyRequest getResourcePolicyRequest, AsyncHandler<GetResourcePolicyRequest,GetResourcePolicyResult> asyncHandler)
Retrieves the resource policy document attached to a given resource.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
getResourcePolicyRequest
- 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.Future<InitializeClusterResult> initializeClusterAsync(InitializeClusterRequest initializeClusterRequest)
Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
initializeClusterRequest
- Future<InitializeClusterResult> initializeClusterAsync(InitializeClusterRequest initializeClusterRequest, AsyncHandler<InitializeClusterRequest,InitializeClusterResult> asyncHandler)
Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
initializeClusterRequest
- 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.Future<ListTagsResult> listTagsAsync(ListTagsRequest listTagsRequest)
Gets a list of tags for the specified CloudHSM cluster.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When
the response contains only a subset of tags, it includes a NextToken
value. Use this value in a
subsequent ListTags
request to get more tags. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more tags to get.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
listTagsRequest
- Future<ListTagsResult> listTagsAsync(ListTagsRequest listTagsRequest, AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
Gets a list of tags for the specified CloudHSM cluster.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When
the response contains only a subset of tags, it includes a NextToken
value. Use this value in a
subsequent ListTags
request to get more tags. When you receive a response with no
NextToken
(or an empty or null value), that means there are no more tags to get.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
listTagsRequest
- 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.Future<ModifyBackupAttributesResult> modifyBackupAttributesAsync(ModifyBackupAttributesRequest modifyBackupAttributesRequest)
Modifies attributes for CloudHSM backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
modifyBackupAttributesRequest
- Future<ModifyBackupAttributesResult> modifyBackupAttributesAsync(ModifyBackupAttributesRequest modifyBackupAttributesRequest, AsyncHandler<ModifyBackupAttributesRequest,ModifyBackupAttributesResult> asyncHandler)
Modifies attributes for CloudHSM backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
modifyBackupAttributesRequest
- 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.Future<ModifyClusterResult> modifyClusterAsync(ModifyClusterRequest modifyClusterRequest)
Modifies CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
modifyClusterRequest
- Future<ModifyClusterResult> modifyClusterAsync(ModifyClusterRequest modifyClusterRequest, AsyncHandler<ModifyClusterRequest,ModifyClusterResult> asyncHandler)
Modifies CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
modifyClusterRequest
- 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.Future<PutResourcePolicyResult> putResourcePolicyAsync(PutResourcePolicyRequest putResourcePolicyRequest)
Creates or updates an CloudHSM resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your CloudHSM resources. The following resources support CloudHSM resource policies:
Backup - The resource policy allows you to describe the backup and restore a cluster from the backup in another Amazon Web Services account.
In order to share a backup, it must be in a 'READY' state and you must own it.
While you can share a backup using the CloudHSM PutResourcePolicy operation, we recommend using Resource Access Manager (RAM) instead. Using RAM provides multiple benefits as it creates the policy for you, allows multiple resources to be shared at one time, and increases the discoverability of shared resources. If you use PutResourcePolicy and want consumers to be able to describe the backups you share with them, you must promote the backup to a standard RAM Resource Share using the RAM PromoteResourceShareCreatedFromPolicy API operation. For more information, see Working with shared backups in the CloudHSM User Guide
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
putResourcePolicyRequest
- Future<PutResourcePolicyResult> putResourcePolicyAsync(PutResourcePolicyRequest putResourcePolicyRequest, AsyncHandler<PutResourcePolicyRequest,PutResourcePolicyResult> asyncHandler)
Creates or updates an CloudHSM resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your CloudHSM resources. The following resources support CloudHSM resource policies:
Backup - The resource policy allows you to describe the backup and restore a cluster from the backup in another Amazon Web Services account.
In order to share a backup, it must be in a 'READY' state and you must own it.
While you can share a backup using the CloudHSM PutResourcePolicy operation, we recommend using Resource Access Manager (RAM) instead. Using RAM provides multiple benefits as it creates the policy for you, allows multiple resources to be shared at one time, and increases the discoverability of shared resources. If you use PutResourcePolicy and want consumers to be able to describe the backups you share with them, you must promote the backup to a standard RAM Resource Share using the RAM PromoteResourceShareCreatedFromPolicy API operation. For more information, see Working with shared backups in the CloudHSM User Guide
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
putResourcePolicyRequest
- 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.Future<RestoreBackupResult> restoreBackupAsync(RestoreBackupRequest restoreBackupRequest)
Restores a specified CloudHSM backup that is in the PENDING_DELETION
state. For more information on
deleting a backup, see DeleteBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
restoreBackupRequest
- Future<RestoreBackupResult> restoreBackupAsync(RestoreBackupRequest restoreBackupRequest, AsyncHandler<RestoreBackupRequest,RestoreBackupResult> asyncHandler)
Restores a specified CloudHSM backup that is in the PENDING_DELETION
state. For more information on
deleting a backup, see DeleteBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
restoreBackupRequest
- 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.Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest)
Adds or overwrites one or more tags for the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
tagResourceRequest
- Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Adds or overwrites one or more tags for the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
tagResourceRequest
- 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.Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest)
Removes the specified tag or tags from the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
untagResourceRequest
- Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes the specified tag or tags from the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
untagResourceRequest
- 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.