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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

See: authorizeDBSecurityGroupIngress smart constructor.

Instances

Eq AuthorizeDBSecurityGroupIngress # 
Data 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 # 
Show AuthorizeDBSecurityGroupIngress # 
Generic AuthorizeDBSecurityGroupIngress # 
Hashable AuthorizeDBSecurityGroupIngress # 
NFData AuthorizeDBSecurityGroupIngress # 
AWSRequest AuthorizeDBSecurityGroupIngress # 
ToQuery AuthorizeDBSecurityGroupIngress # 
ToPath AuthorizeDBSecurityGroupIngress # 
ToHeaders AuthorizeDBSecurityGroupIngress # 
type Rep AuthorizeDBSecurityGroupIngress # 
type Rep AuthorizeDBSecurityGroupIngress = D1 (MetaData "AuthorizeDBSecurityGroupIngress" "Network.AWS.RDS.AuthorizeDBSecurityGroupIngress" "amazonka-rds-1.4.5-I79yxZdjKNFFGn6ti49zKn" 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 # 

Request Lenses

adsgiEC2SecurityGroupOwnerId :: Lens' AuthorizeDBSecurityGroupIngress (Maybe Text) #

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

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

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 #

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

Destructuring the Response

authorizeDBSecurityGroupIngressResponse #

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 #

Instances

Eq AuthorizeDBSecurityGroupIngressResponse # 
Data AuthorizeDBSecurityGroupIngressResponse # 

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

Response Lenses