Skip to content

AWS::EC2::RouteTable

Specifies a route table for the specified VPC.

Generated by cfn-typegen --out cfn_types AWS::EC2::RouteTable into cfn_types/ec2.py:

# Generated by cfn-typegen from the CloudFormation registry schemas. Do not edit.
# fmt: off
# ruff: noqa
"""AWS::EC2 resources."""

from collections.abc import Sequence
from typing import Any, Literal, NotRequired, Unpack
from typing_extensions import TypedDict
from cfn_typed.base import DeletionPolicy, DependsOn, ResourceAttrs, Tag, UpdateReplacePolicy, build
from cfn_typed.intrinsics import Expr


CONSTRAINTS:dict[str,Any]={
}


ATTRIBUTES:dict[str,Any]={"AWS::EC2::RouteTable":["RouteTableId"]}


RULES:dict[str,Any]={}
Nested types (3)

These are defined above the properties in the generated module.

class RouteTableProps(TypedDict, closed=True):
    'Specifies a route table for the specified VPC.'
    VpcId: Expr[str]
    'The ID of the VPC.'
    Tags: NotRequired[Expr[Sequence[Expr[Tag]]]]
    'Any tags assigned to the route table.'


class RouteTable(ResourceAttrs):
    'Specifies a route table for the specified VPC.'
    Type: Literal['AWS::EC2::RouteTable']
    Properties: RouteTableProps


def route_table(
    *,
    depends_on: DependsOn | None = None,
    deletion_policy: DeletionPolicy | None = None,
    update_replace_policy: UpdateReplacePolicy | None = None,
    condition: str | None = None,
    metadata: dict[str, Any] | None = None,
    **props: Unpack[RouteTableProps],
) -> RouteTable:
    return build('AWS::EC2::RouteTable', props, depends_on, deletion_policy, update_replace_policy, condition, metadata)

Attributes

Read-only values for get_att(logical_id, attribute). They are not accepted as inputs.

  • RouteTableId