ModifyVpcAttribute

Description

Modifies the specified attribute of the specified VPC.

Request Parameters

  • VpcId - The ID of the VPC

    • Type: String

    • Required: Yes

  • EnableDnsSupport.Value - Indicates whether the DNS resolution is supported for the VPC. By default, during VPC creation, DNS server is turned on.

    • Type: Boolean

    • Required: No

  • EnableDnsHostnames.Value - Indicates whether the instances launched in the VPC get DNS hostnames Not Supported

    • Type: Boolean

    • Required: No

Response Elements

  • return - Is true if the request succeeds and an error otherwise

  • requestId - The ID of the request

Examples

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