Skip to content

revoke_db_security_group_ingress

Operation

revoke_db_security_group_ingress

revoke_db_security_group_ingress(request: RevokeDBSecurityGroupIngressInput | RevokeDBSecurityGroupIngressInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RevokeDBSecurityGroupIngressInputDict]) -> RevokeDBSecurityGroupIngressOutput

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).

Note

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.

Parameters:

Name Type Description Default
request RevokeDBSecurityGroupIngressInput | RevokeDBSecurityGroupIngressInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[RevokeDBSecurityGroupIngressInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RevokeDBSecurityGroupIngressOutput

An instance of RevokeDBSecurityGroupIngressOutput.

revoke_db_security_group_ingress async

revoke_db_security_group_ingress(request: RevokeDBSecurityGroupIngressInput | RevokeDBSecurityGroupIngressInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RevokeDBSecurityGroupIngressInputDict]) -> RevokeDBSecurityGroupIngressOutput

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).

Note

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.

Parameters:

Name Type Description Default
request RevokeDBSecurityGroupIngressInput | RevokeDBSecurityGroupIngressInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[RevokeDBSecurityGroupIngressInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RevokeDBSecurityGroupIngressOutput

An instance of RevokeDBSecurityGroupIngressOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

RevokeDBSecurityGroupIngressInputDict

Bases: TypedDict

Dictionary form of RevokeDBSecurityGroupIngressInput.

Attributes

cidrip instance-attribute
cidrip: str | None

The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId can't be provided.

db_security_group_name instance-attribute
db_security_group_name: Required[str]

The name of the DB security group to revoke ingress from.

ec2_security_group_id instance-attribute
ec2_security_group_id: str | None

The id of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

ec2_security_group_name instance-attribute
ec2_security_group_name: str | None

The name of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

ec2_security_group_owner_id instance-attribute
ec2_security_group_owner_id: str | None

The Amazon Web Services account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The Amazon Web Services access key ID isn't an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

RevokeDBSecurityGroupIngressInput dataclass

Bases: _SerdeShape

Attributes

cidrip class-attribute instance-attribute
cidrip: str | None = ...

The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId can't be provided.

db_security_group_name class-attribute instance-attribute
db_security_group_name: str | None = ...

The name of the DB security group to revoke ingress from.

ec2_security_group_id class-attribute instance-attribute
ec2_security_group_id: str | None = ...

The id of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

ec2_security_group_name class-attribute instance-attribute
ec2_security_group_name: str | None = ...

The name of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

ec2_security_group_owner_id class-attribute instance-attribute
ec2_security_group_owner_id: str | None = ...

The Amazon Web Services account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The Amazon Web Services access key ID isn't an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Output

RevokeDBSecurityGroupIngressOutput dataclass

Bases: _SerdeShape

Dataclass for RevokeDBSecurityGroupIngressOutput structure.

Attributes

db_security_group class-attribute instance-attribute
db_security_group: DBSecurityGroup | None = ...

Contains the details for an Amazon RDS DB security group.

This data type is used as a response element in the DescribeDBSecurityGroups action.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.