TransitRouterVpnAttachment
This class encapsulates and extends the ROS resource type ALIYUN::CEN::TransitRouterVpnAttachment, which is used to create a VPN connection.
Initializers
import com.aliyun.ros.cdk.cen.TransitRouterVpnAttachment;
TransitRouterVpnAttachment.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .vpnId(java.lang.String)
    .vpnId(IResolvable)
    .zoneId(java.lang.String)
    .zoneId(IResolvable)
//  .autoPublishRouteEnabled(java.lang.Boolean)
//  .autoPublishRouteEnabled(IResolvable)
//  .cenId(java.lang.String)
//  .cenId(IResolvable)
//  .deletionForce(java.lang.Boolean)
//  .deletionForce(IResolvable)
//  .routeTableAssociationEnabled(java.lang.Boolean)
//  .routeTableAssociationEnabled(IResolvable)
//  .routeTablePropagationEnabled(java.lang.Boolean)
//  .routeTablePropagationEnabled(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .transitRouterAttachmentDescription(java.lang.String)
//  .transitRouterAttachmentDescription(IResolvable)
//  .transitRouterAttachmentName(java.lang.String)
//  .transitRouterAttachmentName(IResolvable)
//  .transitRouterId(java.lang.String)
//  .transitRouterId(IResolvable)
//  .vpnOwnerId(java.lang.String)
//  .vpnOwnerId(IResolvable)
    .build();
| Name | Type | Description | 
|---|---|---|
| scope | com.aliyun.ros.cdk.core.Construct | No description. | 
| id | java.lang.String | No description. | 
| enableResourcePropertyConstraint | java.lang.Boolean | No description. | 
| vpnId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpnId: IPsec connection ID. | 
| zoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property zoneId: Availability zone ID in the current region. | 
| autoPublishRouteEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property autoPublishRouteEnabled: Whether to allow forwarding router instances to automatically publish route entries to IPsec connections. | 
| cenId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property cenId: The ID of the CEN instance. | 
| deletionForce | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property deletionForce: Whether to forcefully delete the VPN connection. | 
| routeTableAssociationEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property routeTableAssociationEnabled: Whether to enable route association and forwarding relationship. | 
| routeTablePropagationEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property routeTablePropagationEnabled: Whether to enable route learning relationships. | 
| tags | java.util.List<TagsProperty> | Property tags: Tags to attach to TransitRouterVpnAttachment. | 
| transitRouterAttachmentDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterAttachmentDescription: Description of the VPN connection. | 
| transitRouterAttachmentName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterAttachmentName: The name of the VPN connection. | 
| transitRouterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterId: Forwarding router instance ID. | 
| vpnOwnerId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpnOwnerId: Alibaba Cloud account (main account) ID to which the IPsec connection belongs. | 
scopeRequired 
- Type: com.aliyun.ros.cdk.core.Construct
idRequired 
- Type: java.lang.String
enableResourcePropertyConstraintOptional 
- Type: java.lang.Boolean
vpnIdRequired 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpnId: IPsec connection ID.
zoneIdRequired 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: Availability zone ID in the current region.
autoPublishRouteEnabledOptional 
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoPublishRouteEnabled: Whether to allow forwarding router instances to automatically publish route entries to IPsec connections.
Default is true.
cenIdOptional 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cenId: The ID of the CEN instance.
deletionForceOptional 
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionForce: Whether to forcefully delete the VPN connection.
routeTableAssociationEnabledOptional 
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property routeTableAssociationEnabled: Whether to enable route association and forwarding relationship.
routeTablePropagationEnabledOptional 
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property routeTablePropagationEnabled: Whether to enable route learning relationships.
tagsOptional 
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to TransitRouterVpnAttachment.
Max support 20 tags to add during create TransitRouterVpnAttachment. Each tag with two properties Key and Value, and Key is required.
transitRouterAttachmentDescriptionOptional 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property transitRouterAttachmentDescription: Description of the VPN connection.
transitRouterAttachmentNameOptional 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property transitRouterAttachmentName: The name of the VPN connection.
transitRouterIdOptional 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property transitRouterId: Forwarding router instance ID.
vpnOwnerIdOptional 
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpnOwnerId: Alibaba Cloud account (main account) ID to which the IPsec connection belongs.
Methods
| Name | Description | 
|---|---|
| toString | Returns a string representation of this construct. | 
| synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. | 
| addCondition | No description. | 
| addCount | No description. | 
| addDependency | No description. | 
| addResourceDesc | No description. | 
| applyRemovalPolicy | No description. | 
| getAtt | No description. | 
| setMetadata | No description. | 
toString 
public java.lang.String toString()
Returns a string representation of this construct.
synthesize 
public void synthesize(ISynthesisSession session)
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: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition 
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount 
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency 
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc 
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy 
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt 
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata 
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description | 
|---|---|
| isConstruct | Return whether the given object is a Construct. | 
isConstruct 
import com.aliyun.ros.cdk.cen.TransitRouterVpnAttachment;
TransitRouterVpnAttachment.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description | 
|---|---|---|
| node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. | 
| ref | java.lang.String | No description. | 
| stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. | 
| resource | com.aliyun.ros.cdk.core.RosResource | No description. | 
| attrTransitRouterAttachmentId | com.aliyun.ros.cdk.core.IResolvable | Attribute TransitRouterAttachmentId: The ID of the VPN connection. | 
nodeRequired 
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
refRequired 
public java.lang.String getRef();
- Type: java.lang.String
stackRequired 
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional 
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrTransitRouterAttachmentIdRequired 
public IResolvable getAttrTransitRouterAttachmentId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute TransitRouterAttachmentId: The ID of the VPN connection.