Smaws_Client_CloudHSMV2.DeleteHsmDeletes 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `CloudHsmAccessDeniedException of Types.cloud_hsm_access_denied_exception
| `CloudHsmInternalFailureException of
Types.cloud_hsm_internal_failure_exception
| `CloudHsmInvalidRequestException of
Types.cloud_hsm_invalid_request_exception
| `CloudHsmResourceNotFoundException of
Types.cloud_hsm_resource_not_found_exception
| `CloudHsmServiceException of Types.cloud_hsm_service_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_hsm_request ->
(Types.delete_hsm_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `CloudHsmAccessDeniedException of Types.cloud_hsm_access_denied_exception
| `CloudHsmInternalFailureException of
Types.cloud_hsm_internal_failure_exception
| `CloudHsmInvalidRequestException of
Types.cloud_hsm_invalid_request_exception
| `CloudHsmResourceNotFoundException of
Types.cloud_hsm_resource_not_found_exception
| `CloudHsmServiceException of Types.cloud_hsm_service_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_hsm_request ->
(Types.delete_hsm_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `CloudHsmAccessDeniedException of Types.cloud_hsm_access_denied_exception
| `CloudHsmInternalFailureException of
Types.cloud_hsm_internal_failure_exception
| `CloudHsmInvalidRequestException of
Types.cloud_hsm_invalid_request_exception
| `CloudHsmResourceNotFoundException of
Types.cloud_hsm_resource_not_found_exception
| `CloudHsmServiceException of Types.cloud_hsm_service_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result