ModifyVpcAttribute#

Description#

Modifies the specified attribute of the specified VPC.

Request Parameters#

Required parameters#

  • VpcId — The ID of the VPC.

    • Type: String

    • Required: Yes

Optional parameters#

  • EnableDnsHostnames.ValueNot supported

  • EnableDnsSupport.Value — Indicates whether the DNS resolution is supported for the VPC. By default, DNS server is turned on when a VPC is created.

    • Type: Boolean

    • Required: No

Response Elements#

  • requestId — The request ID.

    • Type: String

  • returnTrue is returned if the request succeeds and an error otherwise.

    • Type: Boolean

Examples#

c2-ec2 ModifyVpcAttribute VpcId <vpc_id> EnableDnsSupport.Value False