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 3.5
 
This action disassociates a VPC from an hosted zone.

To disassociate a VPC to a hosted zone, send a POST request to the

/Route
            53 API version/hostedzone/hosted zone ID/disassociatevpc
resource. The request body must include a document with a DisassociateVPCFromHostedZoneRequest element. The response returns the DisassociateVPCFromHostedZoneResponse element that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.

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

Syntax

C#
public virtual DisassociateVPCFromHostedZoneResponse DisassociateVPCFromHostedZone(
         DisassociateVPCFromHostedZoneRequest request
)

Parameters

request
Type: Amazon.Route53.Model.DisassociateVPCFromHostedZoneRequest

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

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

Exceptions

ExceptionCondition
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.
LastVPCAssociationException The VPC you are trying to disassociate from the hosted zone is the last the VPC that is associated with the hosted zone. Amazon Route 53 currently doesn't support disassociate the last VPC from the hosted zone.
NoSuchHostedZoneException
VPCAssociationNotFoundException The VPC you specified is not currently associated with the hosted zone.

Version Information

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