libZSservicesZSamazonka-rdsZSamazonka-rds
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Description

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You can't authorize ingress from an EC2 security group in one Amazon Web Services Region to an Amazon RDS DB instance in another. You can't authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

Synopsis

Creating a Request

data AuthorizeDBSecurityGroupIngress Source #

See: newAuthorizeDBSecurityGroupIngress smart constructor.

Constructors

AuthorizeDBSecurityGroupIngress' 

Fields

  • eC2SecurityGroupOwnerId :: Maybe Text

    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.

  • eC2SecurityGroupName :: Maybe Text

    Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

  • cidrip :: Maybe Text

    The IP range to authorize.

  • eC2SecurityGroupId :: Maybe Text

    Id of the EC2 security group to authorize. 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 add authorization to.

Instances

Instances details
Eq AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Read AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Show AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Generic AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Associated Types

type Rep AuthorizeDBSecurityGroupIngress :: Type -> Type #

NFData AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Hashable AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

AWSRequest AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

ToHeaders AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

ToPath AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

ToQuery AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngress = D1 ('MetaData "AuthorizeDBSecurityGroupIngress" "Amazonka.RDS.AuthorizeDBSecurityGroupIngress" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "AuthorizeDBSecurityGroupIngress'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eC2SecurityGroupOwnerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eC2SecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "cidrip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "eC2SecurityGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dbSecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

newAuthorizeDBSecurityGroupIngress Source #

Create a value of AuthorizeDBSecurityGroupIngress 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:eC2SecurityGroupOwnerId:AuthorizeDBSecurityGroupIngress', authorizeDBSecurityGroupIngress_eC2SecurityGroupOwnerId - 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.

$sel:eC2SecurityGroupName:AuthorizeDBSecurityGroupIngress', authorizeDBSecurityGroupIngress_eC2SecurityGroupName - Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

$sel:cidrip:AuthorizeDBSecurityGroupIngress', authorizeDBSecurityGroupIngress_cidrip - The IP range to authorize.

$sel:eC2SecurityGroupId:AuthorizeDBSecurityGroupIngress', authorizeDBSecurityGroupIngress_eC2SecurityGroupId - Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

$sel:dbSecurityGroupName:AuthorizeDBSecurityGroupIngress', authorizeDBSecurityGroupIngress_dbSecurityGroupName - The name of the DB security group to add authorization to.

Request Lenses

authorizeDBSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens' AuthorizeDBSecurityGroupIngress (Maybe Text) Source #

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.

authorizeDBSecurityGroupIngress_eC2SecurityGroupName :: Lens' AuthorizeDBSecurityGroupIngress (Maybe Text) Source #

Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

authorizeDBSecurityGroupIngress_eC2SecurityGroupId :: Lens' AuthorizeDBSecurityGroupIngress (Maybe Text) Source #

Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

authorizeDBSecurityGroupIngress_dbSecurityGroupName :: Lens' AuthorizeDBSecurityGroupIngress Text Source #

The name of the DB security group to add authorization to.

Destructuring the Response

data AuthorizeDBSecurityGroupIngressResponse Source #

Constructors

AuthorizeDBSecurityGroupIngressResponse' 

Fields

Instances

Instances details
Eq AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Read AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Show AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

Generic AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

NFData AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngressResponse = D1 ('MetaData "AuthorizeDBSecurityGroupIngressResponse" "Amazonka.RDS.AuthorizeDBSecurityGroupIngress" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "AuthorizeDBSecurityGroupIngressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSecurityGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBSecurityGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAuthorizeDBSecurityGroupIngressResponse Source #

Create a value of AuthorizeDBSecurityGroupIngressResponse 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:AuthorizeDBSecurityGroupIngressResponse', authorizeDBSecurityGroupIngressResponse_dbSecurityGroup - Undocumented member.

$sel:httpStatus:AuthorizeDBSecurityGroupIngressResponse', authorizeDBSecurityGroupIngressResponse_httpStatus - The response's http status code.

Response Lenses