Associates an Amazon VPC with a private hosted zone.
To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public hosted zone into a private hosted zone.
Send a POST
request to the /2013-04-01/hostedzone/hosted zone ID/associatevpc
resource. The request body must include a document with an AssociateVPCWithHostedZoneRequest
element. The response contains a ChangeInfo
data type that you can use to track the progress of the request.
If you want to associate a VPC that was created by using one AWS account with a private hosted zone that was created by using a different account, the AWS account that created the private hosted zone must first submit a CreateVPCAssociationAuthorization
request. Then the account that created the VPC must submit an AssociateVPCWithHostedZone
request.
/// You specified an Amazon VPC that you're already using for another hosted zone, and
/// the domain that you specified for one of the hosted zones is a subdomain of the domain
/// that you specified for the other hosted zone. For example, you can't use the same
/// Amazon VPC for the hosted zones for example.com and test.example.com.
///
/// The input is not valid.
///
/// The VPC ID that you specified either isn't a valid ID or the current account is not
/// authorized to access this VPC.
///
/// The limits specified for a resource have been exceeded.
///
/// No hosted zone exists with the ID that you specified.
///
/// Associating the specified VPC with the specified hosted zone has not been authorized.
///
/// You're trying to associate a VPC with a public hosted zone. Amazon Route 53 doesn't
/// support associating a VPC with a public hosted zone.
///