import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RevokeDBSecurityGroupIngressMessage, RevokeDBSecurityGroupIngressResult } from "../models/models_1"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RevokeDBSecurityGroupIngressCommand}. */ export interface RevokeDBSecurityGroupIngressCommandInput extends RevokeDBSecurityGroupIngressMessage { } /** * @public * * The output of {@link RevokeDBSecurityGroupIngressCommand}. */ export interface RevokeDBSecurityGroupIngressCommandOutput extends RevokeDBSecurityGroupIngressResult, __MetadataBearer { } declare const RevokeDBSecurityGroupIngressCommand_base: { new (input: RevokeDBSecurityGroupIngressCommandInput): import("@smithy/core/client").CommandImpl; new (input: RevokeDBSecurityGroupIngressCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC security groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

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, RevokeDBSecurityGroupIngressCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, RevokeDBSecurityGroupIngressCommand } = 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 = { // RevokeDBSecurityGroupIngressMessage * DBSecurityGroupName: "STRING_VALUE", // required * CIDRIP: "STRING_VALUE", * EC2SecurityGroupName: "STRING_VALUE", * EC2SecurityGroupId: "STRING_VALUE", * EC2SecurityGroupOwnerId: "STRING_VALUE", * }; * const command = new RevokeDBSecurityGroupIngressCommand(input); * const response = await client.send(command); * // { // RevokeDBSecurityGroupIngressResult * // DBSecurityGroup: { // 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 RevokeDBSecurityGroupIngressCommandInput - {@link RevokeDBSecurityGroupIngressCommandInput} * @returns {@link RevokeDBSecurityGroupIngressCommandOutput} * @see {@link RevokeDBSecurityGroupIngressCommandInput} for command's `input` shape. * @see {@link RevokeDBSecurityGroupIngressCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link AuthorizationNotFoundFault} (client fault) *

The specified CIDR IP range or Amazon EC2 security group might not be authorized for the specified DB security group.

Or, RDS might not be authorized to perform necessary actions using IAM on your behalf.

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

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

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

The state of the DB security group doesn't allow deletion.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To revoke ingress for a DB security group * ```javascript * // This example revokes ingress for the specified CIDR block associated with the specified DB security group. * const input = { * CIDRIP: "203.0.113.5/32", * DBSecurityGroupName: "mydbsecuritygroup" * }; * const command = new RevokeDBSecurityGroupIngressCommand(input); * const response = await client.send(command); * /* response is * { * DBSecurityGroup: { /* empty *\/ } * } * *\/ * ``` * * @public */ export declare class RevokeDBSecurityGroupIngressCommand extends RevokeDBSecurityGroupIngressCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RevokeDBSecurityGroupIngressMessage; output: RevokeDBSecurityGroupIngressResult; }; sdk: { input: RevokeDBSecurityGroupIngressCommandInput; output: RevokeDBSecurityGroupIngressCommandOutput; }; }; }