import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ClusterSecurityGroupMessage, DescribeClusterSecurityGroupsMessage } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeClusterSecurityGroupsCommand}. */ export interface DescribeClusterSecurityGroupsCommandInput extends DescribeClusterSecurityGroupsMessage { } /** * @public * * The output of {@link DescribeClusterSecurityGroupsCommand}. */ export interface DescribeClusterSecurityGroupsCommandOutput extends ClusterSecurityGroupMessage, __MetadataBearer { } declare const DescribeClusterSecurityGroupsCommand_base: { new (input: DescribeClusterSecurityGroupsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeClusterSecurityGroupsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns information about Amazon Redshift security groups. If the name of a security * group is specified, the response will contain only information about only that security * group.

*

* For information about managing security groups, go to * Amazon Redshift Cluster Security Groups in the * Amazon Redshift Cluster Management Guide.

*

If you specify both tag keys and tag values in the same request, Amazon Redshift returns * all security groups that match any combination of the specified keys and values. For * example, if you have owner and environment for tag keys, and * admin and test for tag values, all security groups that * have any combination of those values are returned.

*

If both tag keys and values are omitted from the request, security groups are * returned regardless of whether they have tag keys or values associated with * them.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DescribeClusterSecurityGroupsCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DescribeClusterSecurityGroupsCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // DescribeClusterSecurityGroupsMessage * ClusterSecurityGroupName: "STRING_VALUE", * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * TagKeys: [ // TagKeyList * "STRING_VALUE", * ], * TagValues: [ // TagValueList * "STRING_VALUE", * ], * }; * const command = new DescribeClusterSecurityGroupsCommand(input); * const response = await client.send(command); * // { // ClusterSecurityGroupMessage * // Marker: "STRING_VALUE", * // ClusterSecurityGroups: [ // ClusterSecurityGroups * // { // ClusterSecurityGroup * // ClusterSecurityGroupName: "STRING_VALUE", * // Description: "STRING_VALUE", * // EC2SecurityGroups: [ // EC2SecurityGroupList * // { // EC2SecurityGroup * // Status: "STRING_VALUE", * // EC2SecurityGroupName: "STRING_VALUE", * // EC2SecurityGroupOwnerId: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // ], * // IPRanges: [ // IPRangeList * // { // IPRange * // Status: "STRING_VALUE", * // CIDRIP: "STRING_VALUE", * // Tags: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // ], * // Tags: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // ], * // }; * * ``` * * @param DescribeClusterSecurityGroupsCommandInput - {@link DescribeClusterSecurityGroupsCommandInput} * @returns {@link DescribeClusterSecurityGroupsCommandOutput} * @see {@link DescribeClusterSecurityGroupsCommandInput} for command's `input` shape. * @see {@link DescribeClusterSecurityGroupsCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link ClusterSecurityGroupNotFoundFault} (client fault) *

The cluster security group name does not refer to an existing cluster security * group.

* * @throws {@link InvalidTagFault} (client fault) *

The tag is invalid.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class DescribeClusterSecurityGroupsCommand extends DescribeClusterSecurityGroupsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeClusterSecurityGroupsMessage; output: ClusterSecurityGroupMessage; }; sdk: { input: DescribeClusterSecurityGroupsCommandInput; output: DescribeClusterSecurityGroupsCommandOutput; }; }; }