Skip to content

NatIp

This class encapsulates and extends the ROS resource type ALIYUN::VPC::NatIp, which is used to create a NAT IP address.

Initializers

import com.aliyun.ros.cdk.vpc.NatIp;
NatIp.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .natGatewayId(java.lang.String)
    .natGatewayId(IResolvable)
    .natIpCidr(java.lang.String)
    .natIpCidr(IResolvable)
    .natIpDescription(java.lang.String)
    .natIpDescription(IResolvable)
    .natIpName(java.lang.String)
    .natIpName(IResolvable)
//  .natIp(java.lang.String)
//  .natIp(IResolvable)
//  .natIpCidrId(java.lang.String)
//  .natIpCidrId(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.
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.
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.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

natGatewayIdRequired

  • 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

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


natIpDescriptionRequired

  • 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

  • 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://.


natIpOptional

  • 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

  • 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.


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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.vpc.NatIp;
NatIp.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • 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.
attrNatIp com.aliyun.ros.cdk.core.IResolvable Attribute NatIp: NAT IP address.
attrNatIpId com.aliyun.ros.cdk.core.IResolvable Attribute NatIpId: The ID of the NAT IP address.

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

attrNatIpRequired

public IResolvable getAttrNatIp();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute NatIp: NAT IP address.


attrNatIpIdRequired

public IResolvable getAttrNatIpId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute NatIpId: The ID of the NAT IP address.