View definition

(*Route53).AssociateVPCWithHostedZone

Defined in github.com/aws/aws-sdk-go/service/route53/api.go

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 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-associate-vpcs-different-accounts.html) in the Amazon Route 53 Developer Guide.