amazonka-route53-1.4.5: 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.CreateVPCAssociationAuthorization

Contents

Description

Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone request to associate the VPC with a specified hosted zone that was created by a different account. To submit a CreateVPCAssociationAuthorization request, you must use the account that created the hosted zone. After you authorize the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone request.

Send a POST request to the 2013-04-01hostedzone/hosted zone ID /authorizevpcassociation resource. The request body must include a document with a CreateVPCAssociationAuthorizationRequest element. The response contains information about the authorization.

Synopsis

Creating a Request

createVPCAssociationAuthorization #

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

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

  • cvaaHostedZoneId - The ID of the private hosted zone that you want to authorize associating a VPC with.
  • cvaaVPC - A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.

data CreateVPCAssociationAuthorization #

A complex type that contains information about the request to authorize associating a VPC with your private hosted zone. Authorization is only required when a private hosted zone and a VPC were created by using different accounts.

See: createVPCAssociationAuthorization smart constructor.

Instances

Eq CreateVPCAssociationAuthorization # 
Data CreateVPCAssociationAuthorization # 

Methods

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

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

toConstr :: CreateVPCAssociationAuthorization -> Constr #

dataTypeOf :: CreateVPCAssociationAuthorization -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVPCAssociationAuthorization # 
Show CreateVPCAssociationAuthorization # 
Generic CreateVPCAssociationAuthorization # 
Hashable CreateVPCAssociationAuthorization # 
NFData CreateVPCAssociationAuthorization # 
AWSRequest CreateVPCAssociationAuthorization # 
ToElement CreateVPCAssociationAuthorization # 
ToXML CreateVPCAssociationAuthorization # 
ToQuery CreateVPCAssociationAuthorization # 
ToPath CreateVPCAssociationAuthorization # 
ToHeaders CreateVPCAssociationAuthorization # 
type Rep CreateVPCAssociationAuthorization # 
type Rep CreateVPCAssociationAuthorization = D1 (MetaData "CreateVPCAssociationAuthorization" "Network.AWS.Route53.CreateVPCAssociationAuthorization" "amazonka-route53-1.4.5-1GBIEWLx4PAkG5NoOOGoJ" False) (C1 (MetaCons "CreateVPCAssociationAuthorization'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvaaHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceId)) (S1 (MetaSel (Just Symbol "_cvaaVPC") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VPC))))
type Rs CreateVPCAssociationAuthorization # 

Request Lenses

cvaaHostedZoneId :: Lens' CreateVPCAssociationAuthorization ResourceId #

The ID of the private hosted zone that you want to authorize associating a VPC with.

cvaaVPC :: Lens' CreateVPCAssociationAuthorization VPC #

A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.

Destructuring the Response

createVPCAssociationAuthorizationResponse #

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

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

data CreateVPCAssociationAuthorizationResponse #

A complex type that contains the response information from a CreateVPCAssociationAuthorization request.

See: createVPCAssociationAuthorizationResponse smart constructor.

Instances

Eq CreateVPCAssociationAuthorizationResponse # 
Data CreateVPCAssociationAuthorizationResponse # 

Methods

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

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

toConstr :: CreateVPCAssociationAuthorizationResponse -> Constr #

dataTypeOf :: CreateVPCAssociationAuthorizationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVPCAssociationAuthorizationResponse # 
Show CreateVPCAssociationAuthorizationResponse # 
Generic CreateVPCAssociationAuthorizationResponse # 
NFData CreateVPCAssociationAuthorizationResponse # 
type Rep CreateVPCAssociationAuthorizationResponse # 
type Rep CreateVPCAssociationAuthorizationResponse = D1 (MetaData "CreateVPCAssociationAuthorizationResponse" "Network.AWS.Route53.CreateVPCAssociationAuthorization" "amazonka-route53-1.4.5-1GBIEWLx4PAkG5NoOOGoJ" False) (C1 (MetaCons "CreateVPCAssociationAuthorizationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvaarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "_cvaarsHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceId)) (S1 (MetaSel (Just Symbol "_cvaarsVPC") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VPC)))))

Response Lenses

cvaarsHostedZoneId :: Lens' CreateVPCAssociationAuthorizationResponse ResourceId #

The ID of the hosted zone that you authorized associating a VPC with.

cvaarsVPC :: Lens' CreateVPCAssociationAuthorizationResponse VPC #

The VPC that you authorized associating with a hosted zone.