Skip to content

NatIpProps

Properties for defining a NatIp.

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

Initializer

import com.aliyun.ros.cdk.vpc.NatIpProps;
NatIpProps.builder()
    .natGatewayId(java.lang.String)
    .natGatewayId(IResolvable)
    .natIpCidr(java.lang.String)
    .natIpCidr(IResolvable)
    .natIpDescription(java.lang.String)
    .natIpDescription(IResolvable)
    .natIpName(java.lang.String)
    .natIpName(IResolvable)
//  .ipv4Prefix(java.lang.String)
//  .ipv4Prefix(IResolvable)
//  .ipv4PrefixCount(java.lang.Number)
//  .ipv4PrefixCount(IResolvable)
//  .natIp(java.lang.String)
//  .natIp(IResolvable)
//  .natIpCidrId(java.lang.String)
//  .natIpCidrId(IResolvable)
    .build();

Properties

Name Type Description
natGatewayId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property natGatewayId: The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
natIpCidr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property natIpCidr: The CIDR block to which the NAT IP address belongs.
natIpDescription java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property natIpDescription: The description of the NAT IP address.
natIpName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property natIpName: The name of the NAT IP address.
ipv4Prefix java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ipv4Prefix: The IPv4 prefix of the IP address range to be created.
ipv4PrefixCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property ipv4PrefixCount: The number of IPv4 prefixes to automatically allocate.
natIp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property natIp: The NAT IP address that you want to create.
natIpCidrId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property natIpCidrId: The ID of the CIDR block to which the NAT IP address belongs.

natGatewayIdRequired

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

Property natGatewayId: The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.


natIpCidrRequired

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

Property natIpCidr: The CIDR block to which the NAT IP address belongs.


natIpDescriptionRequired

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

Property natIpDescription: The description of the NAT IP address.

The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.


natIpNameRequired

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

Property natIpName: The name of the NAT IP address.

The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with http:// or https://.


ipv4PrefixOptional

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

Property ipv4Prefix: The IPv4 prefix of the IP address range to be created.

The IPv4 prefix must be within the reserved CIDR block of the switch where the NAT gateway is deployed, and the reserved CIDR block must not be occupied. The prefix length must be /28.


ipv4PrefixCountOptional

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

Property ipv4PrefixCount: The number of IPv4 prefixes to automatically allocate.

Randomly allocated from the unassigned reserved CIDR blocks of the switch where the NAT gateway is deployed. Valid values: 1 to 10.


natIpOptional

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

Property natIp: The NAT IP address that you want to create.

If you do not specify an IP address, the system selects a random IP address from the specified CIDR block.


natIpCidrIdOptional

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

Property natIpCidrId: The ID of the CIDR block to which the NAT IP address belongs.