DeleteHsmConfigurationCommand

Deletes the specified Amazon Redshift HSM configuration.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { RedshiftClient, DeleteHsmConfigurationCommand } from "@aws-sdk/client-redshift"; // ES Modules import
// const { RedshiftClient, DeleteHsmConfigurationCommand } = require("@aws-sdk/client-redshift"); // CommonJS import
const client = new RedshiftClient(config);
const input = { // DeleteHsmConfigurationMessage
  HsmConfigurationIdentifier: "STRING_VALUE", // required
};
const command = new DeleteHsmConfigurationCommand(input);
const response = await client.send(command);
// {};

DeleteHsmConfigurationCommand Input

Parameter
Type
Description
HsmConfigurationIdentifier
Required
string | undefined

The identifier of the Amazon Redshift HSM configuration to be deleted.

DeleteHsmConfigurationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
HsmConfigurationNotFoundFault
client

There is no Amazon Redshift HSM configuration with the specified identifier.

InvalidHsmConfigurationStateFault
client

The specified HSM configuration is not in the available state, or it is still in use by one or more Amazon Redshift clusters.

RedshiftServiceException
Base exception class for all service exceptions from Redshift service.