TransitRouterCidrProps
Properties for defining a TransitRouterCidr.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cen-transitroutercidr
Initializer
import com.aliyun.ros.cdk.cen.TransitRouterCidrProps;
TransitRouterCidrProps.builder()
.cidr(java.lang.String)
.cidr(IResolvable)
.transitRouterId(java.lang.String)
.transitRouterId(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .publishCidrRoute(java.lang.Boolean)
// .publishCidrRoute(IResolvable)
// .transitRouterCidrName(java.lang.String)
// .transitRouterCidrName(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
cidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property cidr: The CIDR block of the transit router. |
transitRouterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterId: The ID of the transit router. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The new description of the transit router CIDR block. |
publishCidrRoute | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property publishCidrRoute: Specifies whether to allow the system to automatically add a route that points to the CIDR block to the route table of the transit router. |
transitRouterCidrName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterCidrName: The new name of the transit router CIDR block. |
cidrRequired
public java.lang.Object getCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cidr: The CIDR block of the transit router.
transitRouterIdRequired
public java.lang.Object getTransitRouterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property transitRouterId: The ID of the transit router.
descriptionOptional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The new description of the transit router CIDR block.
The description must be 1 to 256 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.
publishCidrRouteOptional
public java.lang.Object getPublishCidrRoute();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property publishCidrRoute: Specifies whether to allow the system to automatically add a route that points to the CIDR block to the route table of the transit router.
- true (default) If you set the value to true, after you create a VPN attachment on a private VPN gateway and enable route learning for the VPN attachment, the system automatically adds the following route to the route table of the transit router that is in route learning relationship with the VPN attachment: A blackhole route whose destination CIDR block is the transit router CIDR block, which refers to the CIDR block from which gateway IP addresses are allocated to the IPsec-VPN connection. The blackhole route is advertised only to the route tables of virtual border routers (VBRs) connected to the transit router.
- false.
transitRouterCidrNameOptional
public java.lang.Object getTransitRouterCidrName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property transitRouterCidrName: The new name of the transit router CIDR block.
The name must be 1 to 128 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.