Skip to content

VSwitchProps

Properties for defining a VSwitch.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-vswitch

Initializer

import ros_cdk_ens
ros_cdk_ens.VSwitchProps(
  cidr_block: typing.Union[str, IResolvable],
  ens_region_id: typing.Union[str, IResolvable],
  network_id: typing.Union[str, IResolvable],
  description: typing.Union[str, IResolvable] = None,
  v_switch_name: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
cidr_block typing.Union[str, ros_cdk_core.IResolvable] Property cidrBlock: The CIDR block of the vSwitch.
ens_region_id typing.Union[str, ros_cdk_core.IResolvable] Property ensRegionId: The ID of the edge node.
network_id typing.Union[str, ros_cdk_core.IResolvable] Property networkId: The ID of the network to which the vSwitch that you want to create belongs.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the vSwitch.
v_switch_name typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchName: The name of the vSwitch.

cidr_blockRequired

cidr_block: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property cidrBlock: The CIDR block of the vSwitch.

Take note of the following limits: The subnet mask must be 16 to 29 bits in length. The CIDR block of the vSwitch must fall within the CIDR block of the VPC to which the vSwitch belongs. The CIDR block of the vSwitch cannot be the same as the destination CIDR block in a route entry of the VPC. However, it can be a subset of the destination CIDR block.


ens_region_idRequired

ens_region_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property ensRegionId: The ID of the edge node.


network_idRequired

network_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property networkId: The ID of the network to which the vSwitch that you want to create belongs.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the vSwitch.

The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.


v_switch_nameOptional

v_switch_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vSwitchName: The name of the vSwitch.

The name must meet the following requirements: The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.