RouterInterface
- Implements: IRouterInterface
This class encapsulates and extends the ROS resource type ALIYUN::VPC::RouterInterfaceThe , which resource creates a router interface.
Initializers
import ros_cdk_vpc
ros_cdk_vpc.RouterInterface(
scope: Construct,
id: str,
role: typing.Union[str, IResolvable],
router_id: typing.Union[str, IResolvable],
access_point_id: typing.Union[str, IResolvable] = None,
auto_pay: typing.Union[bool, IResolvable] = None,
auto_renew: typing.Union[bool, IResolvable] = None,
description: typing.Union[str, IResolvable] = None,
fast_link_mode: typing.Union[bool, IResolvable] = None,
health_check_source_ip: typing.Union[str, IResolvable] = None,
health_check_target_ip: typing.Union[str, IResolvable] = None,
instance_charge_type: typing.Union[str, IResolvable] = None,
name: typing.Union[str, IResolvable] = None,
opposite_access_point_id: typing.Union[str, IResolvable] = None,
opposite_interface_id: typing.Union[str, IResolvable] = None,
opposite_interface_owner_id: typing.Union[str, IResolvable] = None,
opposite_region_id: typing.Union[str, IResolvable] = None,
opposite_router_id: typing.Union[str, IResolvable] = None,
opposite_router_type: typing.Union[str, IResolvable] = None,
period: typing.Union[typing.Union[int, float], IResolvable] = None,
pricing_cycle: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
router_type: typing.Union[str, IResolvable] = None,
spec: typing.Union[str, IResolvable] = None,
enable_resource_property_constraint: bool = None
)
| Name | Type | Description |
|---|---|---|
scope | ros_cdk_core.Construct | No description. |
id | str | No description. |
role | typing.Union[str, ros_cdk_core.IResolvable] | Property role: RouterInterface role. |
router_id | typing.Union[str, ros_cdk_core.IResolvable] | Property routerId: The router ID to create RouterInterface. |
access_point_id | typing.Union[str, ros_cdk_core.IResolvable] | Property accessPointId: Access point ID. |
auto_pay | typing.Union[bool, ros_cdk_core.IResolvable] | Property autoPay: Indicates whether automatic payment is enabled. |
auto_renew | typing.Union[bool, ros_cdk_core.IResolvable] | Property autoRenew: Specifies whether auto-renewal is enabled. |
description | typing.Union[str, ros_cdk_core.IResolvable] | Property description: Custom description of the RouterInterface, [2, 256] characters. |
fast_link_mode | typing.Union[bool, ros_cdk_core.IResolvable] | Property fastLinkMode: Specifies whether the VBR-associated router interface is created in fast link mode. |
health_check_source_ip | typing.Union[str, ros_cdk_core.IResolvable] | Property healthCheckSourceIp: Source IP address of the packet for leased line HealthCheck in leased line disaster tolerance and ECMP scenarios. |
health_check_target_ip | typing.Union[str, ros_cdk_core.IResolvable] | Property healthCheckTargetIp: Target IP address of the packet for leased line HealthCheck in leased line disaster tolerance and ECMP scenarios. |
instance_charge_type | typing.Union[str, ros_cdk_core.IResolvable] | Property instanceChargeType: The billing method of the router interface. |
name | typing.Union[str, ros_cdk_core.IResolvable] | Property name: Custom name of the RouterInterface, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. |
opposite_access_point_id | typing.Union[str, ros_cdk_core.IResolvable] | Property oppositeAccessPointId: Access point ID of the connection peer RouterInterface. |
opposite_interface_id | typing.Union[str, ros_cdk_core.IResolvable] | Property oppositeInterfaceId: The ID of the peer router interface. |
opposite_interface_owner_id | typing.Union[str, ros_cdk_core.IResolvable] | Property oppositeInterfaceOwnerId: Owner account ID of the connection peer RouterInterface. |
opposite_region_id | typing.Union[str, ros_cdk_core.IResolvable] | Property oppositeRegionId: The region where the connection peer RouterInterface locates. |
opposite_router_id | typing.Union[str, ros_cdk_core.IResolvable] | Property oppositeRouterId: The router ID of the connection peer RouterInterface. |
opposite_router_type | typing.Union[str, ros_cdk_core.IResolvable] | Property oppositeRouterType: Router type of the connection peer router. |
period | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property period: Prepaid time period. |
pricing_cycle | typing.Union[str, ros_cdk_core.IResolvable] | Property pricingCycle: Unit of the payment cycle. |
resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceGroupId: The ID of the resource group. |
router_type | typing.Union[str, ros_cdk_core.IResolvable] | Property routerType: Router type. |
spec | typing.Union[str, ros_cdk_core.IResolvable] | Property spec: RouterInterface specification. |
enable_resource_property_constraint | bool | No description. |
scopeRequired
- Type: ros_cdk_core.Construct
idRequired
- Type: str
roleRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property role: RouterInterface role.
Now support 'InitiatingSide|AcceptingSide'.
router_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property routerId: The router ID to create RouterInterface.
access_point_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property accessPointId: Access point ID.
If 'RouterType' is specified as 'VBR', the value is required.
auto_payOptional
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property autoPay: Indicates whether automatic payment is enabled.
Valid values: false: Automatic payment is disabled. You need to go to Orders to make the payment once an order is generated. true: Automatic payment is enabled. The payment is automatically made. Default: true.
auto_renewOptional
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property autoRenew: Specifies whether auto-renewal is enabled.
descriptionOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: Custom description of the RouterInterface, [2, 256] characters.
Don't fill or empty, the default is empty.
fast_link_modeOptional
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property fastLinkMode: Specifies whether the VBR-associated router interface is created in fast link mode.
Fast link mode allows the router interfaces between VBR and VPC ends to be automatically connected after they are created. This parameter is valid only when the value of RouterType is VBR and the value of OppositeRouterType is VRouter.
- When the value of the FastLinkMode parameter is true, the value of the Role parameter must be InitiatingSide, and the AccessPointId, OppositeRouterType, OppsiteRouterId, and OppositeInterfaceOwnerId parameters are required.
health_check_source_ipOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property healthCheckSourceIp: Source IP address of the packet for leased line HealthCheck in leased line disaster tolerance and ECMP scenarios.
It is valid only for a VRouter RouterInterface with a peer on a VBR. The source IP address must be in the VPC of the local VRouter and is not used. HealthCheckSourceIp and HealthCheckTargetIp parameters must be both specified or left unspecified.
health_check_target_ipOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property healthCheckTargetIp: Target IP address of the packet for leased line HealthCheck in leased line disaster tolerance and ECMP scenarios.
It is valid only for a VRouter RouterInterface with a peer on a VBR. Usually you can use the CPE IP address of the leased line user's client (that is, the PeerGatewayIP on the VBR of the peer RouterInterface), you can also specify another IP address of the leased line user's client as the HealthCheck target IP address. HealthCheckSourceIp and HealthCheckTargetIp parameters must be both specified or left unspecified.
instance_charge_typeOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceChargeType: The billing method of the router interface.
Valid values: PrePaid (Subscription), PostPaid (default, Pay-As-You-Go)
nameOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property name: Custom name of the RouterInterface, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
opposite_access_point_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property oppositeAccessPointId: Access point ID of the connection peer RouterInterface.
If 'OppositeRouterType' is specified as 'VBR', the value is required.
opposite_interface_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property oppositeInterfaceId: The ID of the peer router interface.
opposite_interface_owner_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property oppositeInterfaceOwnerId: Owner account ID of the connection peer RouterInterface.
The default value is current user Id.
opposite_region_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property oppositeRegionId: The region where the connection peer RouterInterface locates.
The default value is region where stack is created.
opposite_router_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property oppositeRouterId: The router ID of the connection peer RouterInterface.
opposite_router_typeOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property oppositeRouterType: Router type of the connection peer router.
Now support 'VRouter|VBR'. If 'RouterType' is specified as 'VBR', the value must be 'VRouter'.
periodOptional
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property period: Prepaid time period.
It could be from 1 to 9 when PricingCycle is Month, or 1 to 3 when PricingCycle is Year.
pricing_cycleOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property pricingCycle: Unit of the payment cycle.
It could be Month (default) or Year.
resource_group_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: The ID of the resource group.
router_typeOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property routerType: Router type.
Now support 'VRouter|VBR'
specOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property spec: RouterInterface specification.
If 'Role' is specified as 'InitiatingSide', the value is required. If 'Role' is specified as 'AcceptingSide', the value is set as 'Negative' by default.
enable_resource_property_constraintOptional
- Type: bool
Methods
| Name | Description |
|---|---|
to_string | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition | No description. |
add_count | No description. |
add_dependency | No description. |
add_resource_desc | No description. |
apply_removal_policy | No description. |
fetch_condition | No description. |
fetch_dependency | No description. |
fetch_resource_desc | No description. |
get_att | No description. |
set_metadata | No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
fetch_condition
def fetch_condition() -> RosCondition
fetch_dependency
def fetch_dependency() -> typing.List[str]
fetch_resource_desc
def fetch_resource_desc() -> str
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
| Name | Description |
|---|---|
is_construct | Return whether the given object is a Construct. |
is_construct
import ros_cdk_vpc
ros_cdk_vpc.RouterInterface.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
| Name | Type | Description |
|---|---|---|
node | ros_cdk_core.ConstructNode | The construct tree node associated with this construct. |
env | ros_cdk_core.IResourceEnvironment | The environment this resource belongs to. |
ref | str | No description. |
stack | ros_cdk_core.Stack | The stack in which this resource is defined. |
resource | ros_cdk_core.RosResource | No description. |
attr_router_interface_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute RouterInterfaceId: The ID of created RouterInterface. |
props | RouterInterfaceProps | No description. |
nodeRequired
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
envRequired
env: IResourceEnvironment
- Type: ros_cdk_core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
ref: str
- Type: str
stackRequired
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resourceOptional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_router_interface_idRequired
attr_router_interface_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute RouterInterfaceId: The ID of created RouterInterface.
propsRequired
props: RouterInterfaceProps
- Type: RouterInterfaceProps