import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ElastiCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ElastiCacheClient"; import type { CacheSecurityGroupMessage, DescribeCacheSecurityGroupsMessage } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeCacheSecurityGroupsCommand}. */ export interface DescribeCacheSecurityGroupsCommandInput extends DescribeCacheSecurityGroupsMessage { } /** * @public * * The output of {@link DescribeCacheSecurityGroupsCommand}. */ export interface DescribeCacheSecurityGroupsCommandOutput extends CacheSecurityGroupMessage, __MetadataBearer { } declare const DescribeCacheSecurityGroupsCommand_base: { new (input: DescribeCacheSecurityGroupsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeCacheSecurityGroupsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns a list of cache security group descriptions. If a cache security group name is * specified, the list contains only the description of that group. This applicable only * when you have ElastiCache in Classic setup

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, DescribeCacheSecurityGroupsCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, DescribeCacheSecurityGroupsCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import * // import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; * const config = {}; // type is ElastiCacheClientConfig * const client = new ElastiCacheClient(config); * const input = { // DescribeCacheSecurityGroupsMessage * CacheSecurityGroupName: "STRING_VALUE", * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeCacheSecurityGroupsCommand(input); * const response = await client.send(command); * // { // CacheSecurityGroupMessage * // Marker: "STRING_VALUE", * // CacheSecurityGroups: [ // CacheSecurityGroups * // { // CacheSecurityGroup * // OwnerId: "STRING_VALUE", * // CacheSecurityGroupName: "STRING_VALUE", * // Description: "STRING_VALUE", * // EC2SecurityGroups: [ // EC2SecurityGroupList * // { // EC2SecurityGroup * // Status: "STRING_VALUE", * // EC2SecurityGroupName: "STRING_VALUE", * // EC2SecurityGroupOwnerId: "STRING_VALUE", * // }, * // ], * // ARN: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param DescribeCacheSecurityGroupsCommandInput - {@link DescribeCacheSecurityGroupsCommandInput} * @returns {@link DescribeCacheSecurityGroupsCommandOutput} * @see {@link DescribeCacheSecurityGroupsCommandInput} for command's `input` shape. * @see {@link DescribeCacheSecurityGroupsCommandOutput} for command's `response` shape. * @see {@link ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link CacheSecurityGroupNotFoundFault} (client fault) *

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

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

Two or more incompatible parameters were specified.

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

The value for a parameter is invalid.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @example DescribeCacheSecurityGroups * ```javascript * // Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group. * const input = { * CacheSecurityGroupName: "my-sec-group" * }; * const command = new DescribeCacheSecurityGroupsCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class DescribeCacheSecurityGroupsCommand extends DescribeCacheSecurityGroupsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeCacheSecurityGroupsMessage; output: CacheSecurityGroupMessage; }; sdk: { input: DescribeCacheSecurityGroupsCommandInput; output: DescribeCacheSecurityGroupsCommandOutput; }; }; }