Skip to content

VpcPeerConnectionProps

Properties for defining a VpcPeerConnection.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-vpcpeerconnection

Initializer

import com.aliyun.ros.cdk.vpc.VpcPeerConnectionProps;
VpcPeerConnectionProps.builder()
    .acceptingVpcId(java.lang.String)
    .acceptingVpcId(IResolvable)
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
//  .acceptingAliUid(java.lang.Number)
//  .acceptingAliUid(IResolvable)
//  .acceptingRegionId(java.lang.String)
//  .acceptingRegionId(IResolvable)
//  .deletionForce(java.lang.Boolean)
//  .deletionForce(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .name(java.lang.String)
//  .name(IResolvable)
    .build();

Properties

Name Type Description
acceptingVpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property acceptingVpcId: The ID of the acceptor VPC.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The ID of the requester VPC.
acceptingAliUid java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property acceptingAliUid: The ID of the Alibaba Cloud account to which the acceptor VPC belongs.
acceptingRegionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property acceptingRegionId: The region ID of the acceptor VPC of the VPC peering connection that you want to create.
deletionForce java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property deletionForce: Specifies whether to forcefully delete the VPC peering connection.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the VPC peering connection.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property name: The name of the VPC peering connection.

acceptingVpcIdRequired

public java.lang.Object getAcceptingVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property acceptingVpcId: The ID of the acceptor VPC.


vpcIdRequired

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcId: The ID of the requester VPC.


acceptingAliUidOptional

public java.lang.Object getAcceptingAliUid();
  • Type: java.lang.Number OR com.aliyun.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.


acceptingRegionIdOptional

public java.lang.Object getAcceptingRegionId();
  • Type: java.lang.String OR com.aliyun.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.


deletionForceOptional

public java.lang.Object getDeletionForce();
  • Type: java.lang.Boolean OR com.aliyun.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

public java.lang.Object getDescription();
  • Type: java.lang.String OR com.aliyun.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://.


nameOptional

public java.lang.Object getName();
  • Type: java.lang.String OR com.aliyun.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.