amazonka-route53-1.4.4: Amazon Route 53 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.Route53.AssociateVPCWithHostedZone

Contents

Description

Associates an Amazon VPC with a private hosted zone.

The VPC and the hosted zone must already exist, and you must have created a private hosted zone. You cannot convert a public hosted zone into a private hosted zone.

Send a POST request to the '/Amazon Route 53 API version/hostedzone/hosted zone ID/associatevpc' resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest element. The response returns the AssociateVPCWithHostedZoneResponse element.

If you used different accounts to create the hosted zone and to create the Amazon VPCs that you want to associate with the hosted zone, we need to update account permissions for you. For more information, see Associating Amazon VPCs and Private Hosted Zones That You Create with Different AWS Accounts in the Amazon Route 53 Developer Guide.

Synopsis

Creating a Request

associateVPCWithHostedZone Source #

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

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

data AssociateVPCWithHostedZone Source #

A complex type that contains information about the VPC and the hosted zone that you want to associate.

See: associateVPCWithHostedZone smart constructor.

Instances

Eq AssociateVPCWithHostedZone Source # 
Data AssociateVPCWithHostedZone Source # 

Methods

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

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

toConstr :: AssociateVPCWithHostedZone -> Constr #

dataTypeOf :: AssociateVPCWithHostedZone -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateVPCWithHostedZone Source # 
Show AssociateVPCWithHostedZone Source # 
Generic AssociateVPCWithHostedZone Source # 
Hashable AssociateVPCWithHostedZone Source # 
NFData AssociateVPCWithHostedZone Source # 
AWSRequest AssociateVPCWithHostedZone Source # 
ToPath AssociateVPCWithHostedZone Source # 
ToHeaders AssociateVPCWithHostedZone Source # 
ToElement AssociateVPCWithHostedZone Source # 
ToXML AssociateVPCWithHostedZone Source # 
ToQuery AssociateVPCWithHostedZone Source # 
type Rep AssociateVPCWithHostedZone Source # 
type Rep AssociateVPCWithHostedZone = D1 (MetaData "AssociateVPCWithHostedZone" "Network.AWS.Route53.AssociateVPCWithHostedZone" "amazonka-route53-1.4.4-KBIXDpJOcpkWbDD9G5tXJ" False) (C1 (MetaCons "AssociateVPCWithHostedZone'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avwhzComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_avwhzHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_avwhzVPC") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VPC)))))
type Rs AssociateVPCWithHostedZone Source # 

Request Lenses

avwhzComment :: Lens' AssociateVPCWithHostedZone (Maybe Text) Source #

Optional: A comment about the association request.

avwhzHostedZoneId :: Lens' AssociateVPCWithHostedZone Text Source #

The ID of the hosted zone you want to associate your VPC with.

Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.

avwhzVPC :: Lens' AssociateVPCWithHostedZone VPC Source #

A complex type containing information about the Amazon VPC that you're associating with the specified hosted zone.

Destructuring the Response

associateVPCWithHostedZoneResponse Source #

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

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

data AssociateVPCWithHostedZoneResponse Source #

A complex type that contains the response information for the hosted zone.

See: associateVPCWithHostedZoneResponse smart constructor.

Instances

Eq AssociateVPCWithHostedZoneResponse Source # 
Data AssociateVPCWithHostedZoneResponse Source # 

Methods

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

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

toConstr :: AssociateVPCWithHostedZoneResponse -> Constr #

dataTypeOf :: AssociateVPCWithHostedZoneResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateVPCWithHostedZoneResponse Source # 
Show AssociateVPCWithHostedZoneResponse Source # 
Generic AssociateVPCWithHostedZoneResponse Source # 
NFData AssociateVPCWithHostedZoneResponse Source # 
type Rep AssociateVPCWithHostedZoneResponse Source # 
type Rep AssociateVPCWithHostedZoneResponse = D1 (MetaData "AssociateVPCWithHostedZoneResponse" "Network.AWS.Route53.AssociateVPCWithHostedZone" "amazonka-route53-1.4.4-KBIXDpJOcpkWbDD9G5tXJ" False) (C1 (MetaCons "AssociateVPCWithHostedZoneResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avwhzrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_avwhzrsChangeInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChangeInfo))))

Response Lenses

avwhzrsChangeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo Source #

A complex type that describes the changes made to your hosted zone.