amazonka-rds-1.6.1: Amazon Relational Database Service SDK.

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

Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Contents

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

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

Synopsis

Creating a Request

authorizeDBSecurityGroupIngress Source #

Creates a value of AuthorizeDBSecurityGroupIngress with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • adsgiEC2SecurityGroupOwnerId - AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  • adsgiEC2SecurityGroupName - 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.
  • adsgiCIdRIP - The IP range to authorize.
  • adsgiEC2SecurityGroupId - 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.
  • adsgiDBSecurityGroupName - The name of the DB security group to add authorization to.

data AuthorizeDBSecurityGroupIngress Source #

See: authorizeDBSecurityGroupIngress smart constructor.

Instances
Eq AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Data AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AuthorizeDBSecurityGroupIngress -> c AuthorizeDBSecurityGroupIngress #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AuthorizeDBSecurityGroupIngress #

toConstr :: AuthorizeDBSecurityGroupIngress -> Constr #

dataTypeOf :: AuthorizeDBSecurityGroupIngress -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AuthorizeDBSecurityGroupIngress) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AuthorizeDBSecurityGroupIngress) #

gmapT :: (forall b. Data b => b -> b) -> AuthorizeDBSecurityGroupIngress -> AuthorizeDBSecurityGroupIngress #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AuthorizeDBSecurityGroupIngress -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AuthorizeDBSecurityGroupIngress -> r #

gmapQ :: (forall d. Data d => d -> u) -> AuthorizeDBSecurityGroupIngress -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AuthorizeDBSecurityGroupIngress -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AuthorizeDBSecurityGroupIngress -> m AuthorizeDBSecurityGroupIngress #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AuthorizeDBSecurityGroupIngress -> m AuthorizeDBSecurityGroupIngress #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AuthorizeDBSecurityGroupIngress -> m AuthorizeDBSecurityGroupIngress #

Read AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Show AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Generic AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Associated Types

type Rep AuthorizeDBSecurityGroupIngress :: Type -> Type #

Hashable AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

AWSRequest AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Associated Types

type Rs AuthorizeDBSecurityGroupIngress :: Type #

ToHeaders AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

ToPath AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

ToQuery AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

NFData AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngress = D1 (MetaData "AuthorizeDBSecurityGroupIngress" "Network.AWS.RDS.AuthorizeDBSecurityGroupIngress" "amazonka-rds-1.6.1-GvYb6r2di9RGFKQcoJXq1A" False) (C1 (MetaCons "AuthorizeDBSecurityGroupIngress'" PrefixI True) ((S1 (MetaSel (Just "_adsgiEC2SecurityGroupOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_adsgiEC2SecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_adsgiCIdRIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_adsgiEC2SecurityGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_adsgiDBSecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs AuthorizeDBSecurityGroupIngress Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Request Lenses

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

AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

adsgiEC2SecurityGroupName :: 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.

adsgiEC2SecurityGroupId :: 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.

adsgiDBSecurityGroupName :: Lens' AuthorizeDBSecurityGroupIngress Text Source #

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

Destructuring the Response

authorizeDBSecurityGroupIngressResponse Source #

Creates a value of AuthorizeDBSecurityGroupIngressResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AuthorizeDBSecurityGroupIngressResponse Source #

Instances
Eq AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Data AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AuthorizeDBSecurityGroupIngressResponse -> c AuthorizeDBSecurityGroupIngressResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AuthorizeDBSecurityGroupIngressResponse #

toConstr :: AuthorizeDBSecurityGroupIngressResponse -> Constr #

dataTypeOf :: AuthorizeDBSecurityGroupIngressResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AuthorizeDBSecurityGroupIngressResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AuthorizeDBSecurityGroupIngressResponse) #

gmapT :: (forall b. Data b => b -> b) -> AuthorizeDBSecurityGroupIngressResponse -> AuthorizeDBSecurityGroupIngressResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AuthorizeDBSecurityGroupIngressResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AuthorizeDBSecurityGroupIngressResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AuthorizeDBSecurityGroupIngressResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AuthorizeDBSecurityGroupIngressResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AuthorizeDBSecurityGroupIngressResponse -> m AuthorizeDBSecurityGroupIngressResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AuthorizeDBSecurityGroupIngressResponse -> m AuthorizeDBSecurityGroupIngressResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AuthorizeDBSecurityGroupIngressResponse -> m AuthorizeDBSecurityGroupIngressResponse #

Read AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Show AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

Generic AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

NFData AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngressResponse Source # 
Instance details

Defined in Network.AWS.RDS.AuthorizeDBSecurityGroupIngress

type Rep AuthorizeDBSecurityGroupIngressResponse = D1 (MetaData "AuthorizeDBSecurityGroupIngressResponse" "Network.AWS.RDS.AuthorizeDBSecurityGroupIngress" "amazonka-rds-1.6.1-GvYb6r2di9RGFKQcoJXq1A" False) (C1 (MetaCons "AuthorizeDBSecurityGroupIngressResponse'" PrefixI True) (S1 (MetaSel (Just "_adsgirsDBSecurityGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DBSecurityGroup)) :*: S1 (MetaSel (Just "_adsgirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses