AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
This action associates a VPC with an hosted zone.

To associate a VPC with an hosted zone, send a POST request to the

            53 API version/hostedzone/hosted zone ID/associatevpc
resource. The request body must include a 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.

Namespace: Amazon.Route53
Assembly: AWSSDK.dll
Version: (assembly version)


public virtual AssociateVPCWithHostedZoneResponse AssociateVPCWithHostedZone(
         AssociateVPCWithHostedZoneRequest request


Type: Amazon.Route53.Model.AssociateVPCWithHostedZoneRequest

Container for the necessary parameters to execute the AssociateVPCWithHostedZone service method.

Return Value
Type: Amazon.Route53.Model.AssociateVPCWithHostedZoneResponse
The response from the AssociateVPCWithHostedZone service method, as returned by Route53.


InvalidInputException Some value specified in the request is invalid or the XML document is malformed.
InvalidVPCIdException The hosted zone you are trying to create for your VPC_ID does not belong to you. Amazon Route 53 returns this error when the VPC specified by VPCId does not belong to you.
LimitsExceededException The limits specified for a resource have been exceeded.
PublicZoneVPCAssociationException The hosted zone you are trying to associate VPC with doesn't have any VPC association. Amazon Route 53 currently doesn't support associate a VPC with a public hosted zone.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5