Skip to content

NatGateway

  • Implements: AlibabaCloud.SDK.ROS.CDK.Vpc.datasource.INatGateway

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

Initializers

using AlibabaCloud.SDK.ROS.CDK.Vpc;
new NatGateway(Construct Scope, string Id, NatGatewayProps Props, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props NatGatewayProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsRequired


EnableResourcePropertyConstraintOptional

  • Type: bool

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.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc No description.
GetAtt No description.
SetMetadata No description.

ToString

private string ToString()

Returns a string representation of this construct.

Synthesize

private 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: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

FetchCondition

private RosCondition FetchCondition()

FetchDependency

private string[] FetchDependency()

FetchResourceDesc

private string FetchResourceDesc()

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

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

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Vpc;
NatGateway.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Env AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment The environment this resource belongs to.
Ref string No description.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
Resource AlibabaCloud.SDK.ROS.CDK.Core.RosResource No description.
AttrAutoPay object Attribute AutoPay: Indicates whether automatic payment is enabled.
AttrBusinessStatus object Attribute BusinessStatus: The status of the NAT gateway.
AttrCreateTime object Attribute CreateTime: The time when the NAT gateway was created.
AttrDeletionProtection object Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled.
AttrDescription object Attribute Description: The description of the NAT gateway.
AttrEipBindMode object Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP).
AttrExpiredTime object Attribute ExpiredTime: The time when the NAT gateway expires.
AttrForwardTableIds object Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.
AttrIcmpReplyEnabled object Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled.
AttrInternetChargeType object Attribute InternetChargeType: The metering method of the NAT gateway.
AttrIpLists object Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
AttrNatGatewayId object Attribute NatGatewayId: The ID of the NAT gateway.
AttrNatGatewayName object Attribute NatGatewayName: The name of the NAT gateway.
AttrNatGatewayPrivateInfo object Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.
AttrNatType object Attribute NatType: The type of the NAT gateway.
AttrNetworkType object Attribute NetworkType: The type of NAT gateway.
AttrPaymentType object Attribute PaymentType: The billing method of the NAT gateway.
AttrSecurityProtectionEnabled object Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.
AttrSnatTableIds object Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.
AttrSpec object Attribute Spec: The size of the NAT gateway.
AttrVpcId object Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.
Props NatGatewayProps No description.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


EnvRequired

public IResourceEnvironment Env { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrAutoPayRequired

public object AttrAutoPay { get; }
  • Type: object

Attribute AutoPay: Indicates whether automatic payment is enabled.

Valid values: false: no true: yes


AttrBusinessStatusRequired

public object AttrBusinessStatus { get; }
  • Type: object

Attribute BusinessStatus: The status of the NAT gateway.

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


AttrCreateTimeRequired

public object AttrCreateTime { get; }
  • Type: object

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 object AttrDeletionProtection { get; }
  • Type: object

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

Valid values: true: yes false: no


AttrDescriptionRequired

public object AttrDescription { get; }
  • Type: object

Attribute Description: The description of the NAT gateway.


AttrEipBindModeRequired

public object AttrEipBindMode { get; }
  • Type: object

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 object AttrExpiredTime { get; }
  • Type: object

Attribute ExpiredTime: The time when the NAT gateway expires.


AttrForwardTableIdsRequired

public object AttrForwardTableIds { get; }
  • Type: object

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


AttrIcmpReplyEnabledRequired

public object AttrIcmpReplyEnabled { get; }
  • Type: object

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

Valid values: true: yes false: no


AttrInternetChargeTypeRequired

public object AttrInternetChargeType { get; }
  • Type: object

Attribute InternetChargeType: The metering method of the NAT gateway.

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


AttrIpListsRequired

public object AttrIpLists { get; }
  • Type: object

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


AttrNatGatewayIdRequired

public object AttrNatGatewayId { get; }
  • Type: object

Attribute NatGatewayId: The ID of the NAT gateway.


AttrNatGatewayNameRequired

public object AttrNatGatewayName { get; }
  • Type: object

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 object AttrNatGatewayPrivateInfo { get; }
  • Type: object

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


AttrNatTypeRequired

public object AttrNatType { get; }
  • Type: object

Attribute NatType: The type of the NAT gateway.

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


AttrNetworkTypeRequired

public object AttrNetworkType { get; }
  • Type: object

Attribute NetworkType: The type of NAT gateway.

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


AttrPaymentTypeRequired

public object AttrPaymentType { get; }
  • Type: object

Attribute PaymentType: The billing method of the NAT gateway.

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


AttrSecurityProtectionEnabledRequired

public object AttrSecurityProtectionEnabled { get; }
  • Type: object

Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.

Valid values: false: no true: yes


AttrSnatTableIdsRequired

public object AttrSnatTableIds { get; }
  • Type: object

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


AttrSpecRequired

public object AttrSpec { get; }
  • Type: object

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 object AttrVpcId { get; }
  • Type: object

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


PropsRequired

public NatGatewayProps Props { get; }