Skip to content

NatGateway

This class encapsulates and extends the ROS resource type DATASOURCE::VPC::NatGateway.

Initializers

import { datasource } from '@alicloud/ros-cdk-vpc'
new datasource.NatGateway(scope: Construct, id: string, props: NatGatewayProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props NatGatewayProps No description.
enableResourcePropertyConstraint boolean No description.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: boolean

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 toString(): string

Returns a string representation of this construct.

synthesize

public synthesize(session: ISynthesisSession): void

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: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

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

isConstruct

import { datasource } from '@alicloud/ros-cdk-vpc'
datasource.NatGateway.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • Type: any

Properties

Name Type Description
node @alicloud/ros-cdk-core.ConstructNode The construct tree node associated with this construct.
ref string No description.
stack @alicloud/ros-cdk-core.Stack The stack in which this resource is defined.
resource @alicloud/ros-cdk-core.RosResource No description.
attrAutoPay @alicloud/ros-cdk-core.IResolvable Attribute AutoPay: Indicates whether automatic payment is enabled.
attrBusinessStatus @alicloud/ros-cdk-core.IResolvable Attribute BusinessStatus: The status of the NAT gateway.
attrCreateTime @alicloud/ros-cdk-core.IResolvable Attribute CreateTime: The time when the NAT gateway was created.
attrDeletionProtection @alicloud/ros-cdk-core.IResolvable Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled.
attrDescription @alicloud/ros-cdk-core.IResolvable Attribute Description: The description of the NAT gateway.
attrEipBindMode @alicloud/ros-cdk-core.IResolvable Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP).
attrExpiredTime @alicloud/ros-cdk-core.IResolvable Attribute ExpiredTime: The time when the NAT gateway expires.
attrForwardTableIds @alicloud/ros-cdk-core.IResolvable Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.
attrIcmpReplyEnabled @alicloud/ros-cdk-core.IResolvable Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled.
attrInternetChargeType @alicloud/ros-cdk-core.IResolvable Attribute InternetChargeType: The metering method of the NAT gateway.
attrIpLists @alicloud/ros-cdk-core.IResolvable Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
attrNatGatewayId @alicloud/ros-cdk-core.IResolvable Attribute NatGatewayId: The ID of the NAT gateway.
attrNatGatewayName @alicloud/ros-cdk-core.IResolvable Attribute NatGatewayName: The name of the NAT gateway.
attrNatGatewayPrivateInfo @alicloud/ros-cdk-core.IResolvable Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.
attrNatType @alicloud/ros-cdk-core.IResolvable Attribute NatType: The type of the NAT gateway.
attrNetworkType @alicloud/ros-cdk-core.IResolvable Attribute NetworkType: The type of NAT gateway.
attrPaymentType @alicloud/ros-cdk-core.IResolvable Attribute PaymentType: The billing method of the NAT gateway.
attrSecurityProtectionEnabled @alicloud/ros-cdk-core.IResolvable Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.
attrSnatTableIds @alicloud/ros-cdk-core.IResolvable Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.
attrSpec @alicloud/ros-cdk-core.IResolvable Attribute Spec: The size of the NAT gateway.
attrVpcId @alicloud/ros-cdk-core.IResolvable Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


refRequired

public readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrAutoPayRequired

public readonly attrAutoPay: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute AutoPay: Indicates whether automatic payment is enabled.

Valid values: false: no true: yes


attrBusinessStatusRequired

public readonly attrBusinessStatus: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute BusinessStatus: The status of the NAT gateway.

Valid values: Normal: normal FinancialLocked: locked due to overdue payments


attrCreateTimeRequired

public readonly attrCreateTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute CreateTime: The time when the NAT gateway was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.


attrDeletionProtectionRequired

public readonly attrDeletionProtection: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled.

Valid values: true: yes false: no


attrDescriptionRequired

public readonly attrDescription: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Description: The description of the NAT gateway.


attrEipBindModeRequired

public readonly attrEipBindMode: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP).

Valid values: MULTI_BINDED: multi-EIP-to-ENI mode* NAT: NAT mode, which is compatible with IPv4 addresses.


attrExpiredTimeRequired

public readonly attrExpiredTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ExpiredTime: The time when the NAT gateway expires.


attrForwardTableIdsRequired

public readonly attrForwardTableIds: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.


attrIcmpReplyEnabledRequired

public readonly attrIcmpReplyEnabled: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled.

Valid values: true: yes false: no


attrInternetChargeTypeRequired

public readonly attrInternetChargeType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute InternetChargeType: The metering method of the NAT gateway.

Valid values: PayBySpec: pay-by-specification PayByLcu: pay-by-CU


attrIpListsRequired

public readonly attrIpLists: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.


attrNatGatewayIdRequired

public readonly attrNatGatewayId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute NatGatewayId: The ID of the NAT gateway.


attrNatGatewayNameRequired

public readonly attrNatGatewayName: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute NatGatewayName: The name of the NAT gateway.

The name must be 1 to 128 characters in length, and cannot start with http:// or https://. If this parameter is not set, the system automatically assigns a name to the NAT gateway.


attrNatGatewayPrivateInfoRequired

public readonly attrNatGatewayPrivateInfo: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.


attrNatTypeRequired

public readonly attrNatType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute NatType: The type of the NAT gateway.

The value is set to Enhanced (enhanced NAT gateway).


attrNetworkTypeRequired

public readonly attrNetworkType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute NetworkType: The type of NAT gateway.

Valid values: internet: an Internet NAT gateway intranet: a VPC NAT gateway


attrPaymentTypeRequired

public readonly attrPaymentType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PaymentType: The billing method of the NAT gateway.

Valid values: PrePaid: subscription PostPaid: pay-as-you-go.


attrSecurityProtectionEnabledRequired

public readonly attrSecurityProtectionEnabled: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.

Valid values: false: no true: yes


attrSnatTableIdsRequired

public readonly attrSnatTableIds: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.


attrSpecRequired

public readonly attrSpec: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Spec: The size of the NAT gateway.

An empty value is returned for the parameter. If InternetChargeType is set to PayByLcu, an empty value is returned.


attrVpcIdRequired

public readonly attrVpcId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.