AWS SDK Version 3 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.

Disassociates a VPC from a Amazon Route 53 private hosted zone.

You can't disassociate the last VPC from a private hosted zone.

You can't disassociate a VPC from a private hosted zone when only one VPC is associated with the hosted zone. You also can't convert a private hosted zone into a public hosted zone.

Note:

For PCL this operation is only available in asynchronous form. Please refer to DisassociateVPCFromHostedZoneAsync.

Namespace: Amazon.Route53
Assembly: AWSSDK.Route53.dll
Version: 3.x.y.z

Syntax

C#
public abstract DisassociateVPCFromHostedZoneResponse DisassociateVPCFromHostedZone(
         DisassociateVPCFromHostedZoneRequest request
)
Parameters
request
Type: Amazon.Route53.Model.DisassociateVPCFromHostedZoneRequest

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

Return Value
The response from the DisassociateVPCFromHostedZone service method, as returned by Route53.

Exceptions

ExceptionCondition
InvalidInputException The input is not valid.
InvalidVPCIdException The VPC ID that you specified either isn't a valid ID or the current account is not authorized to access this VPC.
LastVPCAssociationException The VPC that you're trying to disassociate from the private hosted zone is the last VPC that is associated with the hosted zone. Amazon Route 53 doesn't support disassociating the last VPC from a hosted zone.
NoSuchHostedZoneException No hosted zone exists with the ID that you specified.
VPCAssociationNotFoundException The specified VPC and hosted zone are not currently associated.

Version Information

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also