Modifies the specified attribute of the specified VPC.
Request ParametersThe following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.
Type: AttributeBooleanValue object
Required: No
Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.
You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.
Type: AttributeBooleanValue object
Required: No
Indicates whether Network Address Usage metrics are enabled for your VPC.
Type: AttributeBooleanValue object
Required: No
The ID of the VPC.
Type: String
Required: Yes
The following elements are returned by the service.
The ID of the request.
Type: String
Is true
if the request succeeds, and an error otherwise.
Type: Boolean
For information about the errors that are common to all actions, see Common client error codes.
Examples ExampleThis example disables support for DNS hostnames in the specified VPC.
Sample Requesthttps://ec2.amazonaws.com/?Action=ModifyVpcAttribute
&VpcId=vpc-1a2b3c4d
&EnableDnsHostnames.Value=false
&AUTHPARAMS
Sample Response
<ModifyVpcAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>d742de94-5f3e-4c3d-b6d4-440cexample</requestId>
<return>true</return>
</ModifyVpcAttributeResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
ModifyVolumeAttribute
ModifyVpcBlockPublicAccessExclusion
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4