Skip to content

EC2  >  Operations  >  describe_vpc_attribute

describe_vpc_attribute

Operation

describe_vpc_attribute async

describe_vpc_attribute(input: DescribeVpcAttributeInput, plugins: list[Plugin] | None = None) -> DescribeVpcAttributeOutput

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

Parameters:

Name Type Description Default
input DescribeVpcAttributeInput

An instance of DescribeVpcAttributeInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DescribeVpcAttributeOutput

An instance of DescribeVpcAttributeOutput.

Input

DescribeVpcAttributeInput dataclass

Bases: _SerdeShape

Dataclass for DescribeVpcAttributeInput structure.

Attributes

attribute class-attribute instance-attribute
attribute: str | None = ...

The VPC attribute.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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 is UnauthorizedOperation.

vpc_id class-attribute instance-attribute
vpc_id: str | None = ...

The ID of the VPC.

Output

DescribeVpcAttributeOutput dataclass

Bases: _SerdeShape

Dataclass for DescribeVpcAttributeOutput structure.

Attributes

enable_dns_hostnames class-attribute instance-attribute
enable_dns_hostnames: AttributeBooleanValue | None = ...

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.

enable_dns_support class-attribute instance-attribute
enable_dns_support: AttributeBooleanValue | None = ...

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.

enable_network_address_usage_metrics class-attribute instance-attribute
enable_network_address_usage_metrics: AttributeBooleanValue | None = ...

Indicates whether Network Address Usage metrics are enabled for your VPC.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

vpc_id class-attribute instance-attribute
vpc_id: str | None = ...

The ID of the VPC.