AWS::EC2::SubnetRouteTableAssociation¶
Associates a subnet with a route table.
Generated by cfn-typegen --out cfn_types AWS::EC2::SubnetRouteTableAssociation 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 typing import Any, Literal, Unpack
from typing_extensions import TypedDict
from cfn_typed.base import DeletionPolicy, DependsOn, ResourceAttrs, UpdateReplacePolicy, build
from cfn_typed.intrinsics import Expr
CONSTRAINTS:dict[str,Any]={
}
ATTRIBUTES:dict[str,Any]={"AWS::EC2::SubnetRouteTableAssociation":["Id"]}
RULES:dict[str,Any]={}
Nested types (3)
These are defined above the properties in the generated module.
class SubnetRouteTableAssociationProps(TypedDict, closed=True):
'Associates a subnet with a route table.'
RouteTableId: Expr[str]
'The ID of the route table.'
SubnetId: Expr[str]
'The ID of the subnet.'
class SubnetRouteTableAssociation(ResourceAttrs):
'Associates a subnet with a route table.'
Type: Literal['AWS::EC2::SubnetRouteTableAssociation']
Properties: SubnetRouteTableAssociationProps
def subnet_route_table_association(
*,
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[SubnetRouteTableAssociationProps],
) -> SubnetRouteTableAssociation:
return build('AWS::EC2::SubnetRouteTableAssociation', 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.
Id