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. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
Id
Required
- Type: string
Props
Required
- Type: NatGatewayProps
EnableResourcePropertyConstraint
Optional
- 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.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- 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.
- 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. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrAutoPay
Required
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
AttrBusinessStatus
Required
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
AttrCreateTime
Required
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.
AttrDeletionProtection
Required
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
AttrDescription
Required
public IResolvable AttrDescription { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Description: The description of the NAT gateway.
AttrEipBindMode
Required
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.
AttrExpiredTime
Required
public IResolvable AttrExpiredTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ExpiredTime: The time when the NAT gateway expires.
AttrForwardTableIds
Required
public IResolvable AttrForwardTableIds { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.
AttrIcmpReplyEnabled
Required
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
AttrInternetChargeType
Required
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
AttrIpLists
Required
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.
AttrNatGatewayId
Required
public IResolvable AttrNatGatewayId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute NatGatewayId: The ID of the NAT gateway.
AttrNatGatewayName
Required
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.
AttrNatGatewayPrivateInfo
Required
public IResolvable AttrNatGatewayPrivateInfo { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.
AttrNatType
Required
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).
AttrNetworkType
Required
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
AttrPaymentType
Required
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.
AttrSecurityProtectionEnabled
Required
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
AttrSnatTableIds
Required
public IResolvable AttrSnatTableIds { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.
AttrSpec
Required
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.
AttrVpcId
Required
public IResolvable AttrVpcId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.