Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteClusterSecurityGroupCommandProtected

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.

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

Param

DeleteClusterSecurityGroupCommandInput

Returns

DeleteClusterSecurityGroupCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods