Skip to content

EC2  >  Structures  >  Vpc

Vpc

Structure Class

Vpc dataclass

Bases: _SerdeShape

Describes a VPC.

Attributes

block_public_access_states class-attribute instance-attribute
block_public_access_states: BlockPublicAccessStates | None = ...

The state of VPC Block Public Access (BPA).

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

The primary IPv4 CIDR block for the VPC.

cidr_block_association_set class-attribute instance-attribute
cidr_block_association_set: list[VpcCidrBlockAssociation] | None = ...

Information about the IPv4 CIDR blocks associated with the VPC.

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

The ID of the set of DHCP options you've associated with the VPC.

encryption_control class-attribute instance-attribute
encryption_control: VpcEncryptionControl | None = ...

Describes the configuration and state of VPC encryption controls.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

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

The allowed tenancy of instances launched into the VPC.

ipv6_cidr_block_association_set class-attribute instance-attribute
ipv6_cidr_block_association_set: list[VpcIpv6CidrBlockAssociation] | None = ...

Information about the IPv6 CIDR blocks associated with the VPC.

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

Indicates whether the VPC is the default VPC.

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

The ID of the Amazon Web Services account that owns the VPC.

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

The current state of the VPC.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

Any tags assigned to the VPC.

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

The ID of the VPC.