amazonka-ec2-1.5.0: Amazon Elastic Compute Cloud 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.EC2.AssociateVPCCidrBlock

Contents

Description

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, or you can associate an Amazon-provided IPv6 CIDR block. The IPv6 CIDR block size is fixed at /56.

For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and Subnet Sizing in the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

associateVPCCidrBlock Source #

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

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

  • avcbCidrBlock - An IPv4 CIDR block to associate with the VPC.
  • avcbAmazonProvidedIPv6CidrBlock - Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
  • avcbVPCId - The ID of the VPC.

data AssociateVPCCidrBlock Source #

See: associateVPCCidrBlock smart constructor.

Instances

Eq AssociateVPCCidrBlock Source # 
Data AssociateVPCCidrBlock Source # 

Methods

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

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

toConstr :: AssociateVPCCidrBlock -> Constr #

dataTypeOf :: AssociateVPCCidrBlock -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateVPCCidrBlock Source # 
Show AssociateVPCCidrBlock Source # 
Generic AssociateVPCCidrBlock Source # 
Hashable AssociateVPCCidrBlock Source # 
NFData AssociateVPCCidrBlock Source # 

Methods

rnf :: AssociateVPCCidrBlock -> () #

AWSRequest AssociateVPCCidrBlock Source # 
ToQuery AssociateVPCCidrBlock Source # 
ToPath AssociateVPCCidrBlock Source # 
ToHeaders AssociateVPCCidrBlock Source # 
type Rep AssociateVPCCidrBlock Source # 
type Rep AssociateVPCCidrBlock = D1 (MetaData "AssociateVPCCidrBlock" "Network.AWS.EC2.AssociateVPCCidrBlock" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "AssociateVPCCidrBlock'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avcbCidrBlock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_avcbAmazonProvidedIPv6CidrBlock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_avcbVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs AssociateVPCCidrBlock Source # 

Request Lenses

avcbCidrBlock :: Lens' AssociateVPCCidrBlock (Maybe Text) Source #

An IPv4 CIDR block to associate with the VPC.

avcbAmazonProvidedIPv6CidrBlock :: Lens' AssociateVPCCidrBlock (Maybe Bool) Source #

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.

Destructuring the Response

associateVPCCidrBlockResponse Source #

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

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

data AssociateVPCCidrBlockResponse Source #

See: associateVPCCidrBlockResponse smart constructor.

Instances

Eq AssociateVPCCidrBlockResponse Source # 
Data AssociateVPCCidrBlockResponse Source # 

Methods

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

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

toConstr :: AssociateVPCCidrBlockResponse -> Constr #

dataTypeOf :: AssociateVPCCidrBlockResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateVPCCidrBlockResponse Source # 
Show AssociateVPCCidrBlockResponse Source # 
Generic AssociateVPCCidrBlockResponse Source # 
NFData AssociateVPCCidrBlockResponse Source # 
type Rep AssociateVPCCidrBlockResponse Source # 
type Rep AssociateVPCCidrBlockResponse = D1 (MetaData "AssociateVPCCidrBlockResponse" "Network.AWS.EC2.AssociateVPCCidrBlock" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "AssociateVPCCidrBlockResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_avcbrsVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_avcbrsCidrBlockAssociation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCCidrBlockAssociation)))) ((:*:) (S1 (MetaSel (Just Symbol "_avcbrsIPv6CidrBlockAssociation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCIPv6CidrBlockAssociation))) (S1 (MetaSel (Just Symbol "_avcbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses