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.
If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.
Send a POST
request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation
resource. The request body must include a document with a CreateVPCAssociationAuthorizationRequest
element. The response contains information about the authorization.
/// 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.
///
/// No hosted zone exists with the ID that you specified.
///
/// You've created the maximum number of authorizations that can be created for the specified
/// hosted zone. To authorize another VPC to be associated with the hosted zone, submit
/// a DeleteVPCAssociationAuthorization
request to remove an existing authorization.
/// To get a list of existing authorizations, submit a ListVPCAssociationAuthorizations
/// request.
///