Skip to content

CustomerGatewayProps

Properties for defining a CustomerGateway.

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

Initializer

import com.aliyun.ros.cdk.vpc.CustomerGatewayProps;
CustomerGatewayProps.builder()
    .ipAddress(java.lang.String)
    .ipAddress(IResolvable)
//  .asn(java.lang.Number)
//  .asn(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .name(java.lang.String)
//  .name(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
    .build();

Properties

Name Type Description
ipAddress java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ipAddress: The static IP address of the gateway device in the data center.
asn java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property asn: The autonomous system number (ASN) of the gateway device in your data center.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the customer gateway.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property name: The name of the customer gateway.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group to which the user gateway belongs.

ipAddressRequired

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

Property ipAddress: The static IP address of the gateway device in the data center.

  • If you want to create a public IPsec-VPN connection, enter a public IP address.
  • If you want to create a private IPsec-VPN connection, enter a private IP address. You cannot use the following IP addresses. Otherwise, a IPsec-VPN connection cannot be established:
  • 100.64.0.0~100.127.255.255
  • 127.0.0.0~127.255.255.255
  • 169.254.0.0~169.254.255.255
  • 224.0.0.0~239.255.255.255
  • 255.0.0.0~255.255.255.255

asnOptional

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

Property asn: The autonomous system number (ASN) of the gateway device in your data center.

This parameter is required If you want to use Border Gateway Protocol (BGP) for the IPsec-VPN connection. Valid values: 1 to 4294967295. 45104 is not supported. Asn is a 4-byte number. You can enter it in two segments and separate the first 16 bits from the following 16 bits with a period (.). Enter the number in each segment in decimal format. For example, if you enter 123.456, the ASN is 8061384. The ASN is calculated by using the following formula: 123 × 65536 + 456 = 8061384.

  • We recommend that you use a private ASN to establish BGP connections to the cloud platform. For information about the range of private ASNs, see the relevant documentation.
  • 45104 is a unique identifier assigned by IANA to the cloud platform. It is used to identify the cloud platform during route selection and data transmission over the Internet.

descriptionOptional

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

Property description: The description of the customer gateway.

The description must be 1 to 100 characters in length, and 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 customer gateway.

The name must be 1 to 100 characters in length, and cannot start with http:\/\/ or https:\/\/.


resourceGroupIdOptional

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

Property resourceGroupId: The ID of the resource group to which the user gateway belongs.

  • You can call the ListResourceGroups interface to query the resource group ID.
  • If you do not specify a resource group, the user gateway will belong to the default resource group after creation.