@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCloudHSMClient extends AmazonWebServiceClient implements AWSCloudHSM
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSCloudHSMClient()
Deprecated.
|
AWSCloudHSMClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSCloudHSMClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSCloudHSMClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSCloudHSMClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSCloudHSMClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSCloudHSMClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSCloudHSMClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AddTagsToResourceResult |
addTagsToResource(AddTagsToResourceRequest addTagsToResourceRequest)
Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
|
static AWSCloudHSMClientBuilder |
builder() |
CreateHapgResult |
createHapg(CreateHapgRequest createHapgRequest)
Creates a high-availability partition group.
|
CreateHsmResult |
createHsm(CreateHsmRequest createHsmRequest)
Creates an uninitialized HSM instance.
|
CreateLunaClientResult |
createLunaClient(CreateLunaClientRequest createLunaClientRequest)
Creates an HSM client.
|
DeleteHapgResult |
deleteHapg(DeleteHapgRequest deleteHapgRequest)
Deletes a high-availability partition group.
|
DeleteHsmResult |
deleteHsm(DeleteHsmRequest deleteHsmRequest)
Deletes an HSM.
|
DeleteLunaClientResult |
deleteLunaClient(DeleteLunaClientRequest deleteLunaClientRequest)
Deletes a client.
|
DescribeHapgResult |
describeHapg(DescribeHapgRequest describeHapgRequest)
Retrieves information about a high-availability partition group.
|
DescribeHsmResult |
describeHsm()
Simplified method form for invoking the DescribeHsm operation.
|
DescribeHsmResult |
describeHsm(DescribeHsmRequest describeHsmRequest)
Retrieves information about an HSM.
|
DescribeLunaClientResult |
describeLunaClient()
Simplified method form for invoking the DescribeLunaClient operation.
|
DescribeLunaClientResult |
describeLunaClient(DescribeLunaClientRequest describeLunaClientRequest)
Retrieves information about an HSM client.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetConfigResult |
getConfig(GetConfigRequest getConfigRequest)
Gets the configuration files necessary to connect to all high availability partition groups the client is
associated with.
|
ListAvailableZonesResult |
listAvailableZones()
Simplified method form for invoking the ListAvailableZones operation.
|
ListAvailableZonesResult |
listAvailableZones(ListAvailableZonesRequest listAvailableZonesRequest)
Lists the Availability Zones that have available AWS CloudHSM capacity.
|
ListHapgsResult |
listHapgs()
Simplified method form for invoking the ListHapgs operation.
|
ListHapgsResult |
listHapgs(ListHapgsRequest listHapgsRequest)
Lists the high-availability partition groups for the account.
|
ListHsmsResult |
listHsms()
Simplified method form for invoking the ListHsms operation.
|
ListHsmsResult |
listHsms(ListHsmsRequest listHsmsRequest)
Retrieves the identifiers of all of the HSMs provisioned for the current customer.
|
ListLunaClientsResult |
listLunaClients()
Simplified method form for invoking the ListLunaClients operation.
|
ListLunaClientsResult |
listLunaClients(ListLunaClientsRequest listLunaClientsRequest)
Lists all of the clients.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of all tags for the specified AWS CloudHSM resource.
|
ModifyHapgResult |
modifyHapg(ModifyHapgRequest modifyHapgRequest)
Modifies an existing high-availability partition group.
|
ModifyHsmResult |
modifyHsm(ModifyHsmRequest modifyHsmRequest)
Modifies an HSM.
|
ModifyLunaClientResult |
modifyLunaClient(ModifyLunaClientRequest modifyLunaClientRequest)
Modifies the certificate used by the client.
|
RemoveTagsFromResourceResult |
removeTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest)
Removes one or more tags from the specified AWS CloudHSM resource.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AWSCloudHSMClient()
AWSCloudHSMClientBuilder.defaultClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AWSCloudHSMClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to CloudHSM (ex: proxy settings,
retry counts, etc.).DefaultAWSCredentialsProviderChain
@Deprecated public AWSCloudHSMClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
for example:
AWSCloudHSMClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.@Deprecated public AWSCloudHSMClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to CloudHSM (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSCloudHSMClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.@Deprecated public AWSCloudHSMClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to CloudHSM (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSCloudHSMClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsClientBuilder.withMetricsCollector(RequestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to CloudHSM (ex: proxy settings,
retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic static AWSCloudHSMClientBuilder builder()
public AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest addTagsToResourceRequest)
Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
Each tag consists of a key and a value. Tag keys must be unique to each resource.
addTagsToResource
in interface AWSCloudHSM
addTagsToResourceRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public CreateHapgResult createHapg(CreateHapgRequest createHapgRequest)
Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
createHapg
in interface AWSCloudHSM
createHapgRequest
- Contains the inputs for the CreateHapgRequest action.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public CreateHsmResult createHsm(CreateHsmRequest createHsmRequest)
Creates an uninitialized HSM instance.
There is an upfront fee charged for each HSM instance that you create with the CreateHsm operation. If you accidentally provision an HSM and want to request a refund, delete the instance using the DeleteHsm operation, go to the AWS Support Center, create a new case, and select Account and Billing Support.
It can take up to 20 minutes to create and provision an HSM. You can monitor the status of the HSM with the
DescribeHsm operation. The HSM is ready to be initialized when the status changes to RUNNING
.
createHsm
in interface AWSCloudHSM
createHsmRequest
- Contains the inputs for the CreateHsm operation.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public CreateLunaClientResult createLunaClient(CreateLunaClientRequest createLunaClientRequest)
Creates an HSM client.
createLunaClient
in interface AWSCloudHSM
createLunaClientRequest
- Contains the inputs for the CreateLunaClient action.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DeleteHapgResult deleteHapg(DeleteHapgRequest deleteHapgRequest)
Deletes a high-availability partition group.
deleteHapg
in interface AWSCloudHSM
deleteHapgRequest
- Contains the inputs for the DeleteHapg action.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DeleteHsmResult deleteHsm(DeleteHsmRequest deleteHsmRequest)
Deletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.
deleteHsm
in interface AWSCloudHSM
deleteHsmRequest
- Contains the inputs for the DeleteHsm operation.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DeleteLunaClientResult deleteLunaClient(DeleteLunaClientRequest deleteLunaClientRequest)
Deletes a client.
deleteLunaClient
in interface AWSCloudHSM
deleteLunaClientRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DescribeHapgResult describeHapg(DescribeHapgRequest describeHapgRequest)
Retrieves information about a high-availability partition group.
describeHapg
in interface AWSCloudHSM
describeHapgRequest
- Contains the inputs for the DescribeHapg action.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DescribeHsmResult describeHsm(DescribeHsmRequest describeHsmRequest)
Retrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
describeHsm
in interface AWSCloudHSM
describeHsmRequest
- Contains the inputs for the DescribeHsm operation.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DescribeHsmResult describeHsm()
AWSCloudHSM
describeHsm
in interface AWSCloudHSM
AWSCloudHSM.describeHsm(DescribeHsmRequest)
public DescribeLunaClientResult describeLunaClient(DescribeLunaClientRequest describeLunaClientRequest)
Retrieves information about an HSM client.
describeLunaClient
in interface AWSCloudHSM
describeLunaClientRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public DescribeLunaClientResult describeLunaClient()
AWSCloudHSM
describeLunaClient
in interface AWSCloudHSM
AWSCloudHSM.describeLunaClient(DescribeLunaClientRequest)
public GetConfigResult getConfig(GetConfigRequest getConfigRequest)
Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.
getConfig
in interface AWSCloudHSM
getConfigRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ListAvailableZonesResult listAvailableZones(ListAvailableZonesRequest listAvailableZonesRequest)
Lists the Availability Zones that have available AWS CloudHSM capacity.
listAvailableZones
in interface AWSCloudHSM
listAvailableZonesRequest
- Contains the inputs for the ListAvailableZones action.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ListAvailableZonesResult listAvailableZones()
AWSCloudHSM
listAvailableZones
in interface AWSCloudHSM
AWSCloudHSM.listAvailableZones(ListAvailableZonesRequest)
public ListHapgsResult listHapgs(ListHapgsRequest listHapgsRequest)
Lists the high-availability partition groups for the account.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.
listHapgs
in interface AWSCloudHSM
listHapgsRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ListHapgsResult listHapgs()
AWSCloudHSM
listHapgs
in interface AWSCloudHSM
AWSCloudHSM.listHapgs(ListHapgsRequest)
public ListHsmsResult listHsms(ListHsmsRequest listHsmsRequest)
Retrieves the identifiers of all of the HSMs provisioned for the current customer.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.
listHsms
in interface AWSCloudHSM
listHsmsRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ListHsmsResult listHsms()
AWSCloudHSM
listHsms
in interface AWSCloudHSM
AWSCloudHSM.listHsms(ListHsmsRequest)
public ListLunaClientsResult listLunaClients(ListLunaClientsRequest listLunaClientsRequest)
Lists all of the clients.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.
listLunaClients
in interface AWSCloudHSM
listLunaClientsRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ListLunaClientsResult listLunaClients()
AWSCloudHSM
listLunaClients
in interface AWSCloudHSM
AWSCloudHSM.listLunaClients(ListLunaClientsRequest)
public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of all tags for the specified AWS CloudHSM resource.
listTagsForResource
in interface AWSCloudHSM
listTagsForResourceRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ModifyHapgResult modifyHapg(ModifyHapgRequest modifyHapgRequest)
Modifies an existing high-availability partition group.
modifyHapg
in interface AWSCloudHSM
modifyHapgRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ModifyHsmResult modifyHsm(ModifyHsmRequest modifyHsmRequest)
Modifies an HSM.
This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.
modifyHsm
in interface AWSCloudHSM
modifyHsmRequest
- Contains the inputs for the ModifyHsm operation.CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ModifyLunaClientResult modifyLunaClient(ModifyLunaClientRequest modifyLunaClientRequest)
Modifies the certificate used by the client.
This action can potentially start a workflow to install the new certificate on the client's HSMs.
modifyLunaClient
in interface AWSCloudHSM
modifyLunaClientRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.public RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest)
Removes one or more tags from the specified AWS CloudHSM resource.
To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource.
removeTagsFromResource
in interface AWSCloudHSM
removeTagsFromResourceRequest
- CloudHsmServiceException
- Indicates that an exception occurred in the AWS CloudHSM service.CloudHsmInternalException
- Indicates that an internal error occurred.InvalidRequestException
- Indicates that one or more of the request parameters are not valid.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSCloudHSM
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.