amazonka-rds-2.0: Amazon Relational Database Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RDS.RevokeDBSecurityGroupIngress

Description

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.

Synopsis

Creating a Request

data RevokeDBSecurityGroupIngress Source #

See: newRevokeDBSecurityGroupIngress smart constructor.

Constructors

RevokeDBSecurityGroupIngress' 

Fields

  • cidrip :: Maybe Text

    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.

  • eC2SecurityGroupId :: Maybe Text

    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.

  • eC2SecurityGroupName :: Maybe Text

    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.

  • eC2SecurityGroupOwnerId :: Maybe Text

    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.

  • dbSecurityGroupName :: Text

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

Instances

Instances details
ToHeaders RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

ToPath RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

ToQuery RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

AWSRequest RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Generic RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Associated Types

type Rep RevokeDBSecurityGroupIngress :: Type -> Type #

Read RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Show RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

NFData RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Eq RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Hashable RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

type AWSResponse RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

type Rep RevokeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

type Rep RevokeDBSecurityGroupIngress = D1 ('MetaData "RevokeDBSecurityGroupIngress" "Amazonka.RDS.RevokeDBSecurityGroupIngress" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "RevokeDBSecurityGroupIngress'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cidrip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eC2SecurityGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "eC2SecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "eC2SecurityGroupOwnerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dbSecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newRevokeDBSecurityGroupIngress Source #

Create a value of RevokeDBSecurityGroupIngress with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_cidrip - 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.

RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_eC2SecurityGroupId - 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.

RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_eC2SecurityGroupName - 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.

RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_eC2SecurityGroupOwnerId - 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.

RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_dbSecurityGroupName - The name of the DB security group to revoke ingress from.

Request Lenses

revokeDBSecurityGroupIngress_cidrip :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #

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.

revokeDBSecurityGroupIngress_eC2SecurityGroupId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #

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.

revokeDBSecurityGroupIngress_eC2SecurityGroupName :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #

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.

revokeDBSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #

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.

revokeDBSecurityGroupIngress_dbSecurityGroupName :: Lens' RevokeDBSecurityGroupIngress Text Source #

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

Destructuring the Response

data RevokeDBSecurityGroupIngressResponse Source #

Constructors

RevokeDBSecurityGroupIngressResponse' 

Fields

Instances

Instances details
Generic RevokeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Read RevokeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Show RevokeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

NFData RevokeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

Eq RevokeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

type Rep RevokeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.RevokeDBSecurityGroupIngress

type Rep RevokeDBSecurityGroupIngressResponse = D1 ('MetaData "RevokeDBSecurityGroupIngressResponse" "Amazonka.RDS.RevokeDBSecurityGroupIngress" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "RevokeDBSecurityGroupIngressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSecurityGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBSecurityGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRevokeDBSecurityGroupIngressResponse Source #

Create a value of RevokeDBSecurityGroupIngressResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dbSecurityGroup:RevokeDBSecurityGroupIngressResponse', revokeDBSecurityGroupIngressResponse_dbSecurityGroup - Undocumented member.

$sel:httpStatus:RevokeDBSecurityGroupIngressResponse', revokeDBSecurityGroupIngressResponse_httpStatus - The response's http status code.

Response Lenses