We are excited to announce our new API Documentation.
Protected
Deletes an Amazon Redshift security group.
You cannot delete a security group that is associated with any clusters. You cannot delete the default security group.
For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.
Use a bare-bones client and the command you need to make an API call.
import { RedshiftClient, DeleteClusterSecurityGroupCommand } from "@aws-sdk/client-redshift"; // ES Modules import// const { RedshiftClient, DeleteClusterSecurityGroupCommand } = require("@aws-sdk/client-redshift"); // CommonJS importconst client = new RedshiftClient(config);const input = { // DeleteClusterSecurityGroupMessage ClusterSecurityGroupName: "STRING_VALUE", // required};const command = new DeleteClusterSecurityGroupCommand(input);const response = await client.send(command);// {};
DeleteClusterSecurityGroupCommandInput
DeleteClusterSecurityGroupCommandOutput
input
response
config
ClusterSecurityGroupNotFoundFault (client fault)
The cluster security group name does not refer to an existing cluster security group.
InvalidClusterSecurityGroupStateFault (client fault)
The state of the cluster security group is not available.
available
RedshiftServiceException
Base exception class for all service exceptions from Redshift service.
Readonly
Static
Deletes an Amazon Redshift security group.
You cannot delete a security group that is associated with any clusters. You cannot delete the default security group.
For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteClusterSecurityGroupCommandInput
Returns
DeleteClusterSecurityGroupCommandOutput
See
input
shape.response
shape.config
shape.Throws
ClusterSecurityGroupNotFoundFault (client fault)
The cluster security group name does not refer to an existing cluster security group.
Throws
InvalidClusterSecurityGroupStateFault (client fault)
The state of the cluster security group is not
available
.Throws
RedshiftServiceException
Base exception class for all service exceptions from Redshift service.