RouteProps
Properties for defining a Route.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-route
Initializer
import ros_cdk_ecs
ros_cdk_ecs.RouteProps(
destination_cidr_block: typing.Union[str, IResolvable],
route_table_id: typing.Union[str, IResolvable],
next_hop_id: typing.Union[str, IResolvable] = None,
next_hop_list: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, NextHopListProperty]]] = None,
next_hop_type: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
destination_cidr_block | typing.Union[str, ros_cdk_core.IResolvable] | Property destinationCidrBlock: The RouteEntry's target network segment. |
route_table_id | typing.Union[str, ros_cdk_core.IResolvable] | Property routeTableId: RouteTableId of created route entry. |
next_hop_id | typing.Union[str, ros_cdk_core.IResolvable] | Property nextHopId: The route entry's next hop. |
next_hop_list | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, NextHopListProperty]]] | Property nextHopList: The route entry's next hop list. |
next_hop_type | typing.Union[str, ros_cdk_core.IResolvable] | Property nextHopType: The route entry next hop type. |
destination_cidr_blockRequired
destination_cidr_block: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destinationCidrBlock: The RouteEntry's target network segment.
route_table_idRequired
route_table_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property routeTableId: RouteTableId of created route entry.
next_hop_idOptional
next_hop_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property nextHopId: The route entry's next hop.
When the NextHopList is specified, the value will be ignored.
next_hop_listOptional
next_hop_list: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, NextHopListProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, NextHopListProperty]]]
Property nextHopList: The route entry's next hop list.
If router is virtual border router, the value will be ignore. The list should contain 2-4 next hop. NextHopId of each next hop must be RouterInterface that VRouter forwards to VBR.
next_hop_typeOptional
next_hop_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property nextHopType: The route entry next hop type.
Valid values: Instance (default): Elastic Compute Service (ECS) instance. HaVip: High Availability Virtual IP (HAVIP). RouterInterface: Router interface. NetworkInterface: Elastic Network Interface (ENI). VpnGateway: VPN gateway. IPv6Gateway: IPv6 gateway. NatGateway: NAT gateway. Attachment: Transit router. VpcPeer: VPC peering connection. Ipv4Gateway: IPv4 gateway. GatewayEndpoint: Gateway endpoint. Ecr: Express Connect router. GatewayLoadBalancerEndpoint: Gateway Load Balancer endpoint. The default value is 'Instance'. If NextHopList is specified, this field will be ignored.