Skip to content

NatIpProps

Properties for defining a NatIp.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc"
&alicloudroscdkvpc.NatIpProps {
    NatGatewayId: interface{},
    NatIpCidr: interface{},
    NatIpDescription: interface{},
    NatIpName: interface{},
    Ipv4Prefix: interface{},
    Ipv4PrefixCount: interface{},
    NatIp: interface{},
    NatIpCidrId: interface{},
}

Properties

Name Type Description
NatGatewayId interface{} Property natGatewayId: The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
NatIpCidr interface{} Property natIpCidr: The CIDR block to which the NAT IP address belongs.
NatIpDescription interface{} Property natIpDescription: The description of the NAT IP address.
NatIpName interface{} Property natIpName: The name of the NAT IP address.
Ipv4Prefix interface{} Property ipv4Prefix: The IPv4 prefix of the IP address range to be created.
Ipv4PrefixCount interface{} Property ipv4PrefixCount: The number of IPv4 prefixes to automatically allocate.
NatIp interface{} Property natIp: The NAT IP address that you want to create.
NatIpCidrId interface{} Property natIpCidrId: The ID of the CIDR block to which the NAT IP address belongs.

NatGatewayIdRequired

NatGatewayId interface{}
  • Type: interface{}

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


NatIpCidrRequired

NatIpCidr interface{}
  • Type: interface{}

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


NatIpDescriptionRequired

NatIpDescription interface{}
  • Type: interface{}

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

NatIpName interface{}
  • Type: interface{}

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

Ipv4Prefix interface{}
  • Type: interface{}

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

Ipv4PrefixCount interface{}
  • Type: interface{}

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

NatIp interface{}
  • Type: interface{}

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

NatIpCidrId interface{}
  • Type: interface{}

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