amazonka-route53-1.1.0: Amazon Route 53 SDK.

Copyright(c) 2013-2015 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

This action associates a VPC with an hosted zone.

To associate a VPC with an hosted zone, send a POST request to the '2013-04-01/hostedzone/hosted zone ID/associatevpc' resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest element. The response returns the AssociateVPCWithHostedZoneResponse element that contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.

See: AWS API Reference for AssociateVPCWithHostedZone.

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:

Request Lenses

avwhzComment :: Lens' AssociateVPCWithHostedZone (Maybe Text) Source

Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest.

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

The VPC that you want your hosted zone to be associated with.

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:

Response Lenses

avwhzrsChangeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo Source

A complex type that contains the ID, the status, and the date and time of your AssociateVPCWithHostedZoneRequest.