Skip to content

EC2  >  Structures  >  Route

Route

Structure Class

Route dataclass

Bases: _SerdeShape

Describes a route in a route table.

Attributes

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

The ID of the carrier gateway.

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

The Amazon Resource Name (ARN) of the core network.

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

The IPv4 CIDR block used for the destination match.

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

The IPv6 CIDR block used for the destination match.

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

The prefix of the Amazon Web Services service.

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

The ID of the egress-only internet gateway.

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

The ID of a gateway attached to your VPC.

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

The ID of a NAT instance in your VPC.

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

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

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

The next hop IP address for routes propagated by VPC Route Server into VPC route tables.

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

The ID of the local gateway.

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

The ID of a NAT gateway.

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

The ID of the network interface.

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

The Amazon Resource Name (ARN) of the ODB network.

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

Describes how the route was created.

  • CreateRouteTable - The route was automatically created when the route table was created.

  • CreateRoute - The route was manually added to the route table.

  • EnableVgwRoutePropagation - The route was propagated by route propagation.

  • Advertisement - The route was created dynamically by Amazon VPC Route Server.

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

The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

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

The ID of a transit gateway.

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

The ID of a VPC peering connection.