published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
NAT Gateway provides network address translation services for cloud servers within the private network
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const natGatewayNGWDemo = new volcenginecc.natgateway.Ngw("NatGatewayNGWDemo", {
spec: "Small",
vpcId: "vpc-2f8kicbjkot8g4f4pzyyxxxxx",
subnetId: "subnet-3hicda1321wqo3nkipk4xxxxx",
natGatewayName: "NatGatewayNGWDemo",
billingType: 2,
projectName: "default",
networkType: "internet",
description: "NatGatewayNGWDemo",
tags: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
nat_gateway_ngw_demo = volcenginecc.natgateway.Ngw("NatGatewayNGWDemo",
spec="Small",
vpc_id="vpc-2f8kicbjkot8g4f4pzyyxxxxx",
subnet_id="subnet-3hicda1321wqo3nkipk4xxxxx",
nat_gateway_name="NatGatewayNGWDemo",
billing_type=2,
project_name="default",
network_type="internet",
description="NatGatewayNGWDemo",
tags=[{
"key": "env",
"value": "test",
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/natgateway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := natgateway.NewNgw(ctx, "NatGatewayNGWDemo", &natgateway.NgwArgs{
Spec: pulumi.String("Small"),
VpcId: pulumi.String("vpc-2f8kicbjkot8g4f4pzyyxxxxx"),
SubnetId: pulumi.String("subnet-3hicda1321wqo3nkipk4xxxxx"),
NatGatewayName: pulumi.String("NatGatewayNGWDemo"),
BillingType: pulumi.Int(2),
ProjectName: pulumi.String("default"),
NetworkType: pulumi.String("internet"),
Description: pulumi.String("NatGatewayNGWDemo"),
Tags: natgateway.NgwTagArray{
&natgateway.NgwTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var natGatewayNGWDemo = new Volcenginecc.Natgateway.Ngw("NatGatewayNGWDemo", new()
{
Spec = "Small",
VpcId = "vpc-2f8kicbjkot8g4f4pzyyxxxxx",
SubnetId = "subnet-3hicda1321wqo3nkipk4xxxxx",
NatGatewayName = "NatGatewayNGWDemo",
BillingType = 2,
ProjectName = "default",
NetworkType = "internet",
Description = "NatGatewayNGWDemo",
Tags = new[]
{
new Volcenginecc.Natgateway.Inputs.NgwTagArgs
{
Key = "env",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.natgateway.Ngw;
import com.volcengine.volcenginecc.natgateway.NgwArgs;
import com.pulumi.volcenginecc.natgateway.inputs.NgwTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var natGatewayNGWDemo = new Ngw("natGatewayNGWDemo", NgwArgs.builder()
.spec("Small")
.vpcId("vpc-2f8kicbjkot8g4f4pzyyxxxxx")
.subnetId("subnet-3hicda1321wqo3nkipk4xxxxx")
.natGatewayName("NatGatewayNGWDemo")
.billingType(2)
.projectName("default")
.networkType("internet")
.description("NatGatewayNGWDemo")
.tags(NgwTagArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
natGatewayNGWDemo:
type: volcenginecc:natgateway:Ngw
name: NatGatewayNGWDemo
properties:
spec: Small
vpcId: vpc-2f8kicbjkot8g4f4pzyyxxxxx
subnetId: subnet-3hicda1321wqo3nkipk4xxxxx
natGatewayName: NatGatewayNGWDemo
billingType: 2
projectName: default
networkType: internet
description: NatGatewayNGWDemo
tags:
- key: env
value: test
Create Ngw Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ngw(name: string, args: NgwArgs, opts?: CustomResourceOptions);@overload
def Ngw(resource_name: str,
args: NgwArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ngw(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
project_name: Optional[str] = None,
nat_gateway_name: Optional[str] = None,
network_type: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
billing_type: Optional[int] = None,
smart_schedule_enabled: Optional[bool] = None,
smart_schedule_rule: Optional[str] = None,
spec: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[NgwTagArgs]] = None,
description: Optional[str] = None)func NewNgw(ctx *Context, name string, args NgwArgs, opts ...ResourceOption) (*Ngw, error)public Ngw(string name, NgwArgs args, CustomResourceOptions? opts = null)type: volcenginecc:natgateway:Ngw
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NgwArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NgwArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NgwArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NgwArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NgwArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Ngw Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Ngw resource accepts the following input properties:
- Vpc
Id string - ID of the private network where the NAT Gateway is located
- Billing
Type int - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- Description string
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- Nat
Gateway stringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- Network
Type string - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- Period int
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- Period
Unit string - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- Project
Name string - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- Smart
Schedule boolEnabled - Whether to enable intelligent scheduling
- Smart
Schedule stringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- Spec string
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- Subnet
Id string - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
List<Volcengine.
Ngw Tag>
- Vpc
Id string - ID of the private network where the NAT Gateway is located
- Billing
Type int - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- Description string
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- Nat
Gateway stringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- Network
Type string - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- Period int
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- Period
Unit string - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- Project
Name string - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- Smart
Schedule boolEnabled - Whether to enable intelligent scheduling
- Smart
Schedule stringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- Spec string
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- Subnet
Id string - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
[]Ngw
Tag Args
- vpc
Id String - ID of the private network where the NAT Gateway is located
- billing
Type Integer - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- description String
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- nat
Gateway StringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- network
Type String - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- period Integer
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period
Unit String - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project
Name String - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart
Schedule BooleanEnabled - Whether to enable intelligent scheduling
- smart
Schedule StringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- spec String
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- subnet
Id String - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
List<Ngw
Tag>
- vpc
Id string - ID of the private network where the NAT Gateway is located
- billing
Type number - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- description string
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- nat
Gateway stringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- network
Type string - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- period number
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period
Unit string - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project
Name string - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart
Schedule booleanEnabled - Whether to enable intelligent scheduling
- smart
Schedule stringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- spec string
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- subnet
Id string - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
Ngw
Tag[]
- vpc_
id str - ID of the private network where the NAT Gateway is located
- billing_
type int - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- description str
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- nat_
gateway_ strname - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- network_
type str - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- period int
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period_
unit str - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project_
name str - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart_
schedule_ boolenabled - Whether to enable intelligent scheduling
- smart_
schedule_ strrule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- spec str
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- subnet_
id str - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
Sequence[Ngw
Tag Args]
- vpc
Id String - ID of the private network where the NAT Gateway is located
- billing
Type Number - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- description String
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- nat
Gateway StringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- network
Type String - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- period Number
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period
Unit String - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project
Name String - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart
Schedule BooleanEnabled - Whether to enable intelligent scheduling
- smart
Schedule StringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- spec String
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- subnet
Id String - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Ngw resource produces the following output properties:
- Business
Status string - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Direct
Mode bool - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- Dnat
Entry List<string>Ids - DNAT rule ID list.
- Eip
Addresses List<Volcengine.Ngw Eip Address> - Expired
Time string - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- Nat
Gateway stringId - NAT gateway ID.
- Nat
Ip List<Volcengine.Addresses Ngw Nat Ip Address> - Network
Interface stringId - Network interface ID occupied by the NAT gateway.
- Overdue
Time string - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- Snat
Entry List<string>Ids - SNAT rule ID list
- Status string
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- Updated
Time string - Last operation time of the NAT Gateway
- Zone
Id string - ID of the primary availability zone the NAT Gateway belongs to
- Business
Status string - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Direct
Mode bool - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- Dnat
Entry []stringIds - DNAT rule ID list.
- Eip
Addresses []NgwEip Address - Expired
Time string - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- Nat
Gateway stringId - NAT gateway ID.
- Nat
Ip []NgwAddresses Nat Ip Address - Network
Interface stringId - Network interface ID occupied by the NAT gateway.
- Overdue
Time string - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- Snat
Entry []stringIds - SNAT rule ID list
- Status string
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- Updated
Time string - Last operation time of the NAT Gateway
- Zone
Id string - ID of the primary availability zone the NAT Gateway belongs to
- business
Status String - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created
Time String - Creation time
- deleted
Time String - Deletion time
- direct
Mode Boolean - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat
Entry List<String>Ids - DNAT rule ID list.
- eip
Addresses List<NgwEip Address> - expired
Time String - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat
Gateway StringId - NAT gateway ID.
- nat
Ip List<NgwAddresses Nat Ip Address> - network
Interface StringId - Network interface ID occupied by the NAT gateway.
- overdue
Time String - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- snat
Entry List<String>Ids - SNAT rule ID list
- status String
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- updated
Time String - Last operation time of the NAT Gateway
- zone
Id String - ID of the primary availability zone the NAT Gateway belongs to
- business
Status string - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created
Time string - Creation time
- deleted
Time string - Deletion time
- direct
Mode boolean - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat
Entry string[]Ids - DNAT rule ID list.
- eip
Addresses NgwEip Address[] - expired
Time string - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- lock
Reason string - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat
Gateway stringId - NAT gateway ID.
- nat
Ip NgwAddresses Nat Ip Address[] - network
Interface stringId - Network interface ID occupied by the NAT gateway.
- overdue
Time string - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- snat
Entry string[]Ids - SNAT rule ID list
- status string
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- updated
Time string - Last operation time of the NAT Gateway
- zone
Id string - ID of the primary availability zone the NAT Gateway belongs to
- business_
status str - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created_
time str - Creation time
- deleted_
time str - Deletion time
- direct_
mode bool - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat_
entry_ Sequence[str]ids - DNAT rule ID list.
- eip_
addresses Sequence[NgwEip Address] - expired_
time str - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- id str
- The provider-assigned unique ID for this managed resource.
- lock_
reason str - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat_
gateway_ strid - NAT gateway ID.
- nat_
ip_ Sequence[Ngwaddresses Nat Ip Address] - network_
interface_ strid - Network interface ID occupied by the NAT gateway.
- overdue_
time str - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- snat_
entry_ Sequence[str]ids - SNAT rule ID list
- status str
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- updated_
time str - Last operation time of the NAT Gateway
- zone_
id str - ID of the primary availability zone the NAT Gateway belongs to
- business
Status String - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created
Time String - Creation time
- deleted
Time String - Deletion time
- direct
Mode Boolean - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat
Entry List<String>Ids - DNAT rule ID list.
- eip
Addresses List<Property Map> - expired
Time String - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat
Gateway StringId - NAT gateway ID.
- nat
Ip List<Property Map>Addresses - network
Interface StringId - Network interface ID occupied by the NAT gateway.
- overdue
Time String - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- snat
Entry List<String>Ids - SNAT rule ID list
- status String
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- updated
Time String - Last operation time of the NAT Gateway
- zone
Id String - ID of the primary availability zone the NAT Gateway belongs to
Look up Existing Ngw Resource
Get an existing Ngw resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NgwState, opts?: CustomResourceOptions): Ngw@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
billing_type: Optional[int] = None,
business_status: Optional[str] = None,
created_time: Optional[str] = None,
deleted_time: Optional[str] = None,
description: Optional[str] = None,
direct_mode: Optional[bool] = None,
dnat_entry_ids: Optional[Sequence[str]] = None,
eip_addresses: Optional[Sequence[NgwEipAddressArgs]] = None,
expired_time: Optional[str] = None,
lock_reason: Optional[str] = None,
nat_gateway_id: Optional[str] = None,
nat_gateway_name: Optional[str] = None,
nat_ip_addresses: Optional[Sequence[NgwNatIpAddressArgs]] = None,
network_interface_id: Optional[str] = None,
network_type: Optional[str] = None,
overdue_time: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
project_name: Optional[str] = None,
smart_schedule_enabled: Optional[bool] = None,
smart_schedule_rule: Optional[str] = None,
snat_entry_ids: Optional[Sequence[str]] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[NgwTagArgs]] = None,
updated_time: Optional[str] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None) -> Ngwfunc GetNgw(ctx *Context, name string, id IDInput, state *NgwState, opts ...ResourceOption) (*Ngw, error)public static Ngw Get(string name, Input<string> id, NgwState? state, CustomResourceOptions? opts = null)public static Ngw get(String name, Output<String> id, NgwState state, CustomResourceOptions options)resources: _: type: volcenginecc:natgateway:Ngw get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Billing
Type int - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- Business
Status string - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Description string
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- Direct
Mode bool - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- Dnat
Entry List<string>Ids - DNAT rule ID list.
- Eip
Addresses List<Volcengine.Ngw Eip Address> - Expired
Time string - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- Lock
Reason string - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- Nat
Gateway stringId - NAT gateway ID.
- Nat
Gateway stringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- Nat
Ip List<Volcengine.Addresses Ngw Nat Ip Address> - Network
Interface stringId - Network interface ID occupied by the NAT gateway.
- Network
Type string - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- Overdue
Time string - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- Period int
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- Period
Unit string - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- Project
Name string - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- Smart
Schedule boolEnabled - Whether to enable intelligent scheduling
- Smart
Schedule stringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- Snat
Entry List<string>Ids - SNAT rule ID list
- Spec string
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- Status string
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- Subnet
Id string - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
List<Volcengine.
Ngw Tag> - Updated
Time string - Last operation time of the NAT Gateway
- Vpc
Id string - ID of the private network where the NAT Gateway is located
- Zone
Id string - ID of the primary availability zone the NAT Gateway belongs to
- Billing
Type int - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- Business
Status string - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Description string
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- Direct
Mode bool - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- Dnat
Entry []stringIds - DNAT rule ID list.
- Eip
Addresses []NgwEip Address Args - Expired
Time string - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- Lock
Reason string - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- Nat
Gateway stringId - NAT gateway ID.
- Nat
Gateway stringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- Nat
Ip []NgwAddresses Nat Ip Address Args - Network
Interface stringId - Network interface ID occupied by the NAT gateway.
- Network
Type string - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- Overdue
Time string - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- Period int
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- Period
Unit string - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- Project
Name string - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- Smart
Schedule boolEnabled - Whether to enable intelligent scheduling
- Smart
Schedule stringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- Snat
Entry []stringIds - SNAT rule ID list
- Spec string
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- Status string
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- Subnet
Id string - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
[]Ngw
Tag Args - Updated
Time string - Last operation time of the NAT Gateway
- Vpc
Id string - ID of the private network where the NAT Gateway is located
- Zone
Id string - ID of the primary availability zone the NAT Gateway belongs to
- billing
Type Integer - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- business
Status String - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created
Time String - Creation time
- deleted
Time String - Deletion time
- description String
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- direct
Mode Boolean - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat
Entry List<String>Ids - DNAT rule ID list.
- eip
Addresses List<NgwEip Address> - expired
Time String - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- lock
Reason String - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat
Gateway StringId - NAT gateway ID.
- nat
Gateway StringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- nat
Ip List<NgwAddresses Nat Ip Address> - network
Interface StringId - Network interface ID occupied by the NAT gateway.
- network
Type String - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- overdue
Time String - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- period Integer
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period
Unit String - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project
Name String - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart
Schedule BooleanEnabled - Whether to enable intelligent scheduling
- smart
Schedule StringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- snat
Entry List<String>Ids - SNAT rule ID list
- spec String
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- status String
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- subnet
Id String - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
List<Ngw
Tag> - updated
Time String - Last operation time of the NAT Gateway
- vpc
Id String - ID of the private network where the NAT Gateway is located
- zone
Id String - ID of the primary availability zone the NAT Gateway belongs to
- billing
Type number - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- business
Status string - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created
Time string - Creation time
- deleted
Time string - Deletion time
- description string
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- direct
Mode boolean - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat
Entry string[]Ids - DNAT rule ID list.
- eip
Addresses NgwEip Address[] - expired
Time string - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- lock
Reason string - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat
Gateway stringId - NAT gateway ID.
- nat
Gateway stringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- nat
Ip NgwAddresses Nat Ip Address[] - network
Interface stringId - Network interface ID occupied by the NAT gateway.
- network
Type string - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- overdue
Time string - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- period number
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period
Unit string - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project
Name string - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart
Schedule booleanEnabled - Whether to enable intelligent scheduling
- smart
Schedule stringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- snat
Entry string[]Ids - SNAT rule ID list
- spec string
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- status string
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- subnet
Id string - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
Ngw
Tag[] - updated
Time string - Last operation time of the NAT Gateway
- vpc
Id string - ID of the private network where the NAT Gateway is located
- zone
Id string - ID of the primary availability zone the NAT Gateway belongs to
- billing_
type int - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- business_
status str - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created_
time str - Creation time
- deleted_
time str - Deletion time
- description str
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- direct_
mode bool - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat_
entry_ Sequence[str]ids - DNAT rule ID list.
- eip_
addresses Sequence[NgwEip Address Args] - expired_
time str - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- lock_
reason str - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat_
gateway_ strid - NAT gateway ID.
- nat_
gateway_ strname - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- nat_
ip_ Sequence[Ngwaddresses Nat Ip Address Args] - network_
interface_ strid - Network interface ID occupied by the NAT gateway.
- network_
type str - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- overdue_
time str - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- period int
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period_
unit str - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project_
name str - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart_
schedule_ boolenabled - Whether to enable intelligent scheduling
- smart_
schedule_ strrule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- snat_
entry_ Sequence[str]ids - SNAT rule ID list
- spec str
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- status str
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- subnet_
id str - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
-
Sequence[Ngw
Tag Args] - updated_
time str - Last operation time of the NAT Gateway
- vpc_
id str - ID of the private network where the NAT Gateway is located
- zone_
id str - ID of the primary availability zone the NAT Gateway belongs to
- billing
Type Number - NAT Gateway billing mode. Possible values: 1: Subscription. 2 (default): Pay-as-you-go by specification. 3: Pay-as-you-go by usage. When NetworkType is set to intranet, only 3 is supported and required for this parameter.
- business
Status String - Indicates whether the NAT gateway is locked. Empty: Normal, not locked. Normal: Normal, not locked. FinancialLocked: Locked due to overdue payment.
- created
Time String - Creation time
- deleted
Time String - Deletion time
- description String
- Description of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length: 1 to 255 characters. If not specified, defaults to an empty string.
- direct
Mode Boolean - Indicates whether the NAT is direct or non-direct. - true (default): EIP direct NAT gateway. - false: Non-EIP direct NAT gateway.
- dnat
Entry List<String>Ids - DNAT rule ID list.
- eip
Addresses List<Property Map> - expired
Time String - Expiration time for subscription NAT Gateway. Only NAT Gateways with subscription billing return this parameter.
- lock
Reason String - Reason for NAT lock. financial: Locked due to overdue payment. security: Locked for security reasons.
- nat
Gateway StringId - NAT gateway ID.
- nat
Gateway StringName - Name of the NAT Gateway. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Length: 1 to 128 characters. If not specified, defaults to the NAT Gateway instance ID.
- nat
Ip List<Property Map>Addresses - network
Interface StringId - Network interface ID occupied by the NAT gateway.
- network
Type String - NAT Gateway type. internet: Public NAT Gateway. intranet: Private NAT Gateway.
- overdue
Time String - Resource freeze time. This parameter is returned only when the resource is frozen due to overdue payment.
- period Number
- Duration for purchasing a subscription NAT Gateway, default is 1. If PeriodUnit is Month, Period can be 1 ~ 9, 12, 24, 36. If PeriodUnit is Year, Period can be 1 ~ 3.
- period
Unit String - Unit for subscription NAT Gateway duration, default is Month. Month: month. Year: year.
- project
Name String - Name of the project the NAT Gateway belongs to. If not specified, defaults to the 'default' project.
- smart
Schedule BooleanEnabled - Whether to enable intelligent scheduling
- smart
Schedule StringRule - Intelligent scheduling policy rules. ChinaMobile: China Mobile. ChinaUnicom: China Unicom. ChinaTelecom: China Telecom. BGP: BGP multi-line.
- snat
Entry List<String>Ids - SNAT rule ID list
- spec String
- NAT Gateway specification. Small (default): Small. Medium: Medium. Large: Large. ExtraLarge1: Extra Large 1. ExtraLarge2: Extra Large 2.
- status String
- Status of the NAT Gateway. Available: Available. Creating: Creating. Pending: In progress. Deleting: Deleting.
- subnet
Id String - ID of the subnet where the NAT gateway is located. The input subnet must be a subnet of the private network specified by VpcId. There must be at least one available private IP in the subnet. The system automatically generates a NAT gateway network interface that will occupy one private IP in this subnet. The availability zone of the subnet must have deployed NAT gateway resources. The availability zone of the subnet will be used as the primary availability zone for the NAT gateway and will automatically associate with a backup availability zone. When the primary availability zone fails, the NAT gateway automatically switches to the backup availability zone.
- List<Property Map>
- updated
Time String - Last operation time of the NAT Gateway
- vpc
Id String - ID of the private network where the NAT Gateway is located
- zone
Id String - ID of the primary availability zone the NAT Gateway belongs to
Supporting Types
NgwEipAddress, NgwEipAddressArgs
- Allocation
Id string - Public IP ID
- Eip
Address string - Public IP address
- Using
Status string - Usage status of the public IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- Allocation
Id string - Public IP ID
- Eip
Address string - Public IP address
- Using
Status string - Usage status of the public IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- allocation
Id String - Public IP ID
- eip
Address String - Public IP address
- using
Status String - Usage status of the public IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- allocation
Id string - Public IP ID
- eip
Address string - Public IP address
- using
Status string - Usage status of the public IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- allocation_
id str - Public IP ID
- eip_
address str - Public IP address
- using_
status str - Usage status of the public IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- allocation
Id String - Public IP ID
- eip
Address String - Public IP address
- using
Status String - Usage status of the public IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
NgwNatIpAddress, NgwNatIpAddressArgs
- Nat
Ip stringAddress - Transit IP address
- Nat
Ip stringId - Transit IP ID
- Nat
Ip stringAddress - Transit IP address
- Nat
Ip stringId - Transit IP ID
- nat
Ip StringAddress - Transit IP address
- nat
Ip StringId - Transit IP ID
- nat
Ip stringAddress - Transit IP address
- nat
Ip stringId - Transit IP ID
- nat_
ip_ straddress - Transit IP address
- nat_
ip_ strid - Transit IP ID
- nat
Ip StringAddress - Transit IP address
- nat
Ip StringId - Transit IP ID
NgwTag, NgwTagArgs
Import
$ pulumi import volcenginecc:natgateway/ngw:Ngw example "nat_gateway_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
