amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud 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.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 # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Data AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

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 # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Show AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Generic AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Associated Types

type Rep AssociateVPCCidrBlock :: Type -> Type #

Hashable AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

AWSRequest AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Associated Types

type Rs AssociateVPCCidrBlock :: Type #

ToHeaders AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

ToPath AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

ToQuery AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

NFData AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Methods

rnf :: AssociateVPCCidrBlock -> () #

type Rep AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

type Rep AssociateVPCCidrBlock = D1 (MetaData "AssociateVPCCidrBlock" "Network.AWS.EC2.AssociateVPCCidrBlock" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "AssociateVPCCidrBlock'" PrefixI True) (S1 (MetaSel (Just "_avcbCidrBlock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_avcbAmazonProvidedIPv6CidrBlock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_avcbVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AssociateVPCCidrBlock Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

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 # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Data AssociateVPCCidrBlockResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

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 # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Show AssociateVPCCidrBlockResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Generic AssociateVPCCidrBlockResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

Associated Types

type Rep AssociateVPCCidrBlockResponse :: Type -> Type #

NFData AssociateVPCCidrBlockResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

type Rep AssociateVPCCidrBlockResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateVPCCidrBlock

type Rep AssociateVPCCidrBlockResponse = D1 (MetaData "AssociateVPCCidrBlockResponse" "Network.AWS.EC2.AssociateVPCCidrBlock" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "AssociateVPCCidrBlockResponse'" PrefixI True) ((S1 (MetaSel (Just "_avcbrsVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_avcbrsCidrBlockAssociation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCCidrBlockAssociation))) :*: (S1 (MetaSel (Just "_avcbrsIPv6CidrBlockAssociation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCIPv6CidrBlockAssociation)) :*: S1 (MetaSel (Just "_avcbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses