import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DBSecurityGroupMessage, DescribeDBSecurityGroupsMessage } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeDBSecurityGroupsCommand}. */ export interface DescribeDBSecurityGroupsCommandInput extends DescribeDBSecurityGroupsMessage { } /** * @public * * The output of {@link DescribeDBSecurityGroupsCommand}. */ export interface DescribeDBSecurityGroupsCommandOutput extends DBSecurityGroupMessage, __MetadataBearer { } declare const DescribeDBSecurityGroupsCommand_base: { new (input: DescribeDBSecurityGroupsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeDBSecurityGroupsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DB security group.

EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide, the blog EC2-Classic Networking is Retiring – Here’s How to Prepare, and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, DescribeDBSecurityGroupsCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, DescribeDBSecurityGroupsCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // DescribeDBSecurityGroupsMessage * DBSecurityGroupName: "STRING_VALUE", * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", // required * Values: [ // FilterValueList // required * "STRING_VALUE", * ], * }, * ], * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeDBSecurityGroupsCommand(input); * const response = await client.send(command); * // { // DBSecurityGroupMessage * // Marker: "STRING_VALUE", * // DBSecurityGroups: [ // DBSecurityGroups * // { // DBSecurityGroup * // OwnerId: "STRING_VALUE", * // DBSecurityGroupName: "STRING_VALUE", * // DBSecurityGroupDescription: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // EC2SecurityGroups: [ // EC2SecurityGroupList * // { // EC2SecurityGroup * // Status: "STRING_VALUE", * // EC2SecurityGroupName: "STRING_VALUE", * // EC2SecurityGroupId: "STRING_VALUE", * // EC2SecurityGroupOwnerId: "STRING_VALUE", * // }, * // ], * // IPRanges: [ // IPRangeList * // { // IPRange * // Status: "STRING_VALUE", * // CIDRIP: "STRING_VALUE", * // }, * // ], * // DBSecurityGroupArn: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param DescribeDBSecurityGroupsCommandInput - {@link DescribeDBSecurityGroupsCommandInput} * @returns {@link DescribeDBSecurityGroupsCommandOutput} * @see {@link DescribeDBSecurityGroupsCommandInput} for command's `input` shape. * @see {@link DescribeDBSecurityGroupsCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link DBSecurityGroupNotFoundFault} (client fault) *

DBSecurityGroupName doesn't refer to an existing DB security group.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To list DB security group settings * ```javascript * // This example lists settings for the specified security group. * const input = { * DBSecurityGroupName: "mydbsecuritygroup" * }; * const command = new DescribeDBSecurityGroupsCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class DescribeDBSecurityGroupsCommand extends DescribeDBSecurityGroupsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeDBSecurityGroupsMessage; output: DBSecurityGroupMessage; }; sdk: { input: DescribeDBSecurityGroupsCommandInput; output: DescribeDBSecurityGroupsCommandOutput; }; }; }