Skip to content

VSwitchesProps

Properties for defining a VSwitches.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-vpc-vswitches

Initializer

from ros_cdk_vpc import datasource
datasource.VSwitchesProps(
  dhcp_options_set_id: typing.Union[str, IResolvable] = None,
  is_default: typing.Union[bool, IResolvable] = None,
  refresh_options: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  route_table_id: typing.Union[str, IResolvable] = None,
  vpc_id: typing.Union[str, IResolvable] = None,
  v_switch_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  v_switch_name: typing.Union[str, IResolvable] = None,
  v_switch_owner_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
dhcp_options_set_id typing.Union[str, ros_cdk_core.IResolvable] Property dhcpOptionsSetId: The ID of the DHCP options set.
is_default typing.Union[bool, ros_cdk_core.IResolvable] Property isDefault: Specifies whether to query the default VPC in the specified region.
refresh_options typing.Union[str, ros_cdk_core.IResolvable] Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group to which the VPC to be queried belongs.
route_table_id typing.Union[str, ros_cdk_core.IResolvable] Property routeTableId: The ID of the route table.
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The ID of the VPC to which the vSwitch belongs.
v_switch_ids typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property vSwitchIds: The list of The vSwitch IDs.
v_switch_name typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchName: The name of the vSwitch.
v_switch_owner_id typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchOwnerId: The ID of the Alibaba Cloud account to which the vSwitch belongs.

dhcp_options_set_idOptional

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

Property dhcpOptionsSetId: The ID of the DHCP options set.


is_defaultOptional

is_default: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property isDefault: Specifies whether to query the default VPC in the specified region.

Valid values: true(default): queries all VPCs in the specified region. false: does not query the default VPC.


refresh_optionsOptional

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

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

resource_group_idOptional

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

Property resourceGroupId: The ID of the resource group to which the VPC to be queried belongs.


route_table_idOptional

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

Property routeTableId: The ID of the route table.


vpc_idOptional

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

Property vpcId: The ID of the VPC to which the vSwitch belongs.


v_switch_idsOptional

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

Property vSwitchIds: The list of The vSwitch IDs.

You can specify up to 20 vSwitch IDs.


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.


v_switch_owner_idOptional

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

Property vSwitchOwnerId: The ID of the Alibaba Cloud account to which the vSwitch belongs.