AddRouteOptions

class aws_cdk.aws_ec2.AddRouteOptions(*, router_id, router_type, destination_cidr_block=None, destination_ipv6_cidr_block=None, enables_internet_connectivity=None)

Bases: object

__init__(*, router_id, router_type, destination_cidr_block=None, destination_ipv6_cidr_block=None, enables_internet_connectivity=None)

Options for adding a new route to a subnet.

Parameters
  • router_id (str) – The ID of the router. Can be an instance ID, gateway ID, etc, depending on the router type.

  • router_type (RouterType) – What type of router to route this traffic to.

  • destination_cidr_block (Optional[str]) – IPv4 range this route applies to. Default: ‘0.0.0.0/0’

  • destination_ipv6_cidr_block (Optional[str]) – IPv6 range this route applies to. Default: - Uses IPv6

  • enables_internet_connectivity (Optional[bool]) – Whether this route will enable internet connectivity. If true, this route will be added before any AWS resources that depend on internet connectivity in the VPC will be created. Default: false

Attributes

destination_cidr_block

IPv4 range this route applies to.

default :default: ‘0.0.0.0/0’

Return type

Optional[str]

destination_ipv6_cidr_block

IPv6 range this route applies to.

default :default: - Uses IPv6

Return type

Optional[str]

enables_internet_connectivity

Whether this route will enable internet connectivity.

If true, this route will be added before any AWS resources that depend on internet connectivity in the VPC will be created.

default :default: false

Return type

Optional[bool]

router_id

The ID of the router.

Can be an instance ID, gateway ID, etc, depending on the router type.

Return type

str

router_type

What type of router to route this traffic to.

Return type

RouterType