Vpc / Action / describe_attribute
describe_attribute#
- EC2.Vpc.describe_attribute(**kwargs)#
Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.
See also: AWS API Documentation
Request Syntax
response = vpc.describe_attribute( Attribute='enableDnsSupport'|'enableDnsHostnames'|'enableNetworkAddressUsageMetrics', DryRun=True|False )
- Parameters:
Attribute (string) –
[REQUIRED]
The VPC attribute.
DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.
- Return type:
dict
- Returns:
Response Syntax
{ 'EnableDnsHostnames': { 'Value': True|False }, 'EnableDnsSupport': { 'Value': True|False }, 'EnableNetworkAddressUsageMetrics': { 'Value': True|False }, 'VpcId': 'string' }
Response Structure
(dict) –
EnableDnsHostnames (dict) –
Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is
true
, instances in the VPC get DNS hostnames; otherwise, they do not.Value (boolean) –
The attribute value. The valid values are
true
orfalse
.
EnableDnsSupport (dict) –
Indicates whether DNS resolution is enabled for the VPC. If this attribute is
true
, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.Value (boolean) –
The attribute value. The valid values are
true
orfalse
.
EnableNetworkAddressUsageMetrics (dict) –
Indicates whether Network Address Usage metrics are enabled for your VPC.
Value (boolean) –
The attribute value. The valid values are
true
orfalse
.
VpcId (string) –
The ID of the VPC.