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

Copyright(c) 2013-2017 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 # 
Data AuthorizeDBSecurityGroupIngress Source # 

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 # 
Show AuthorizeDBSecurityGroupIngress Source # 
Generic AuthorizeDBSecurityGroupIngress Source # 
Hashable AuthorizeDBSecurityGroupIngress Source # 
NFData AuthorizeDBSecurityGroupIngress Source # 
AWSRequest AuthorizeDBSecurityGroupIngress Source # 
ToQuery AuthorizeDBSecurityGroupIngress Source # 
ToPath AuthorizeDBSecurityGroupIngress Source # 
ToHeaders AuthorizeDBSecurityGroupIngress Source # 
type Rep AuthorizeDBSecurityGroupIngress Source # 
type Rep AuthorizeDBSecurityGroupIngress = D1 (MetaData "AuthorizeDBSecurityGroupIngress" "Network.AWS.RDS.AuthorizeDBSecurityGroupIngress" "amazonka-rds-1.5.0-4pv5DetELOaBXetw2fB1GM" False) (C1 (MetaCons "AuthorizeDBSecurityGroupIngress'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_adsgiEC2SecurityGroupOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_adsgiEC2SecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_adsgiCIdRIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_adsgiEC2SecurityGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_adsgiDBSecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs AuthorizeDBSecurityGroupIngress Source # 

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 # 
Data AuthorizeDBSecurityGroupIngressResponse Source # 

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 # 
Show AuthorizeDBSecurityGroupIngressResponse Source # 
Generic AuthorizeDBSecurityGroupIngressResponse Source # 
NFData AuthorizeDBSecurityGroupIngressResponse Source # 
type Rep AuthorizeDBSecurityGroupIngressResponse Source # 
type Rep AuthorizeDBSecurityGroupIngressResponse = D1 (MetaData "AuthorizeDBSecurityGroupIngressResponse" "Network.AWS.RDS.AuthorizeDBSecurityGroupIngress" "amazonka-rds-1.5.0-4pv5DetELOaBXetw2fB1GM" False) (C1 (MetaCons "AuthorizeDBSecurityGroupIngressResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_adsgirsDBSecurityGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DBSecurityGroup))) (S1 (MetaSel (Just Symbol "_adsgirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses