AssociateVpcWithHostedZone#

Description#

Request to associate a VPC with a private DNS zone.

A public DNS zone cannot be associated with a VPC.

Request Parameters#

Required parameters#

  • Id — The DNS zone ID.

    • Type: String

    • Required: Yes

  • VPC — Information about the VPC to be associated with the DNS zone.

    • Type: VPC object

    • Required: Yes

Optional parameters#

  • Comment — Comment to the association request.

    • Type: String

    • Required: No

    • Length constraints: from 0 to 255 characters

Response Elements#

  • ChangeInfo — Information about changes in the DNS zone.

Examples#

c2-route53 AssociateVpcWithHostedZone Id z-xxxxxxxx VPC.VPCId vpc-xxxxxxxx VPC.VPCRegion ru-msk

c2-route53 AssociateVpcWithHostedZone Id z-xxxxxxxx VPC.VPCId vpc-xxxxxxxx VPC.VPCRegion ru-msk Comment "associate vpc with my first hosted zone."