VpcPeerConnectionProps
Properties for defining a VpcPeerConnection.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-vpcpeerconnection
Initializer
import ros_cdk_vpc
ros_cdk_vpc.VpcPeerConnectionProps(
accepting_vpc_id: typing.Union[str, IResolvable],
vpc_id: typing.Union[str, IResolvable],
accepting_ali_uid: typing.Union[typing.Union[int, float], IResolvable] = None,
accepting_region_id: typing.Union[str, IResolvable] = None,
bandwidth: typing.Union[typing.Union[int, float], IResolvable] = None,
deletion_force: typing.Union[bool, IResolvable] = None,
description: typing.Union[str, IResolvable] = None,
link_type: typing.Union[str, IResolvable] = None,
name: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
accepting_vpc_id | typing.Union[str, ros_cdk_core.IResolvable] | Property acceptingVpcId: The ID of the acceptor VPC. |
vpc_id | typing.Union[str, ros_cdk_core.IResolvable] | Property vpcId: The ID of the requester VPC. |
accepting_ali_uid | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property acceptingAliUid: The ID of the Alibaba Cloud account to which the acceptor VPC belongs. |
accepting_region_id | typing.Union[str, ros_cdk_core.IResolvable] | Property acceptingRegionId: The region ID of the acceptor VPC of the VPC peering connection that you want to create. |
bandwidth | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property bandwidth: The bandwidth of the VPC peering connection. |
deletion_force | typing.Union[bool, ros_cdk_core.IResolvable] | Property deletionForce: Specifies whether to forcefully delete the VPC peering connection. |
description | typing.Union[str, ros_cdk_core.IResolvable] | Property description: The description of the VPC peering connection. |
link_type | typing.Union[str, ros_cdk_core.IResolvable] | Property linkType: The link type. |
name | typing.Union[str, ros_cdk_core.IResolvable] | Property name: The name of the VPC peering connection. |
resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceGroupId: The ID of the resource group. |
accepting_vpc_idRequired
accepting_vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property acceptingVpcId: The ID of the acceptor VPC.
vpc_idRequired
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: The ID of the requester VPC.
accepting_ali_uidOptional
accepting_ali_uid: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property acceptingAliUid: The ID of the Alibaba Cloud account to which the acceptor VPC belongs.
To create a VPC peering connection within your Alibaba Cloud account, enter the ID of your Alibaba Cloud account. To create a VPC peering connection between your Alibaba Cloud account and another Alibaba Cloud account, enter the ID of the peer Alibaba Cloud account. Note If the acceptor VPC belongs to a Resource Access Management (RAM) user, you must set the value of AcceptingAliUid to the ID of the corresponding Alibaba Cloud account. Default current account ID.
accepting_region_idOptional
accepting_region_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property acceptingRegionId: The region ID of the acceptor VPC of the VPC peering connection that you want to create.
To create an intra-region VPC peering connection, enter a region ID that is the same as that of the requester VPC. To create an inter-region VPC peering connection, enter a region ID that is different from that of the requester VPC. Default current region.
bandwidthOptional
bandwidth: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property bandwidth: The bandwidth of the VPC peering connection.
If you specify this parameter, make sure that you are creating an inter-region VPC peering connection.
deletion_forceOptional
deletion_force: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property deletionForce: Specifies whether to forcefully delete the VPC peering connection.
Valid values:false (default): notrue: yes If you forcefully delete the VPC peering connection, the system deletes the routes that point to the VPC peering connection from the VPC route table.
descriptionOptional
description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: The description of the VPC peering connection.
The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
link_typeOptional
link_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property linkType: The link type.
Valid values: Platinum, Gold. If you specify this parameter, make sure that you are creating an inter-region VPC peering connection.
nameOptional
name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property name: The name of the VPC peering connection.
The name must be 2 to 128 characters in length and can contain digits, underscores (_), and hyphens (-). It must start with a letter.
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.
For more information about resource groups, see What is Resource Group.