Skip to content

NatGateway

This class encapsulates and extends the ROS resource type DATASOURCE::VPC::NatGateway, which is used to query the information about a NAT gateway.

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

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.
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 AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AutoPay: Indicates whether automatic payment is enabled.
AttrBusinessStatus AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute BusinessStatus: The status of the NAT gateway.
AttrCreateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CreateTime: The time when the NAT gateway was created.
AttrDeletionProtection AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled.
AttrDescription AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Description: The description of the NAT gateway.
AttrEipBindMode AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP).
AttrExpiredTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ExpiredTime: The time when the NAT gateway expires.
AttrForwardTableIds AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.
AttrIcmpReplyEnabled AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled.
AttrInternetChargeType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute InternetChargeType: The metering method of the NAT gateway.
AttrIpLists AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
AttrNatGatewayId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NatGatewayId: The ID of the NAT gateway.
AttrNatGatewayName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NatGatewayName: The name of the NAT gateway.
AttrNatGatewayPrivateInfo AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.
AttrNatType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NatType: The type of the NAT gateway.
AttrNetworkType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NetworkType: The type of NAT gateway.
AttrPaymentType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PaymentType: The billing method of the NAT gateway.
AttrSecurityProtectionEnabled AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.
AttrSnatTableIds AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.
AttrSpec AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Spec: The size of the NAT gateway.
AttrVpcId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.

NodeRequired

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

The construct tree node associated with this construct.


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 IResolvable AttrAutoPay { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AutoPay: Indicates whether automatic payment is enabled.

Valid values: false: no true: yes


AttrBusinessStatusRequired

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

Attribute BusinessStatus: The status of the NAT gateway.

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


AttrCreateTimeRequired

public IResolvable AttrCreateTime { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrDeletionProtection { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

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

Valid values: true: yes false: no


AttrDescriptionRequired

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

Attribute Description: The description of the NAT gateway.


AttrEipBindModeRequired

public IResolvable AttrEipBindMode { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrExpiredTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ExpiredTime: The time when the NAT gateway expires.


AttrForwardTableIdsRequired

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

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


AttrIcmpReplyEnabledRequired

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

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

Valid values: true: yes false: no


AttrInternetChargeTypeRequired

public IResolvable AttrInternetChargeType { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrIpLists { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

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


AttrNatGatewayIdRequired

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

Attribute NatGatewayId: The ID of the NAT gateway.


AttrNatGatewayNameRequired

public IResolvable AttrNatGatewayName { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrNatGatewayPrivateInfo { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

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


AttrNatTypeRequired

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

Attribute NatType: The type of the NAT gateway.

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


AttrNetworkTypeRequired

public IResolvable AttrNetworkType { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrPaymentType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PaymentType: The billing method of the NAT gateway.

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


AttrSecurityProtectionEnabledRequired

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

Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.

Valid values: false: no true: yes


AttrSnatTableIdsRequired

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

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


AttrSpecRequired

public IResolvable AttrSpec { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrVpcId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

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