tencentcloud.VpcPrivateNatGateway
Explore with Pulumi AI
Provides a resource to create a vpc private nat gateway
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const privateNatGateway = new tencentcloud.VpcPrivateNatGateway("privateNatGateway", {
natGatewayName: "xxx",
vpcId: "xxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
private_nat_gateway = tencentcloud.VpcPrivateNatGateway("privateNatGateway",
nat_gateway_name="xxx",
vpc_id="xxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVpcPrivateNatGateway(ctx, "privateNatGateway", &tencentcloud.VpcPrivateNatGatewayArgs{
NatGatewayName: pulumi.String("xxx"),
VpcId: pulumi.String("xxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var privateNatGateway = new Tencentcloud.VpcPrivateNatGateway("privateNatGateway", new()
{
NatGatewayName = "xxx",
VpcId = "xxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VpcPrivateNatGateway;
import com.pulumi.tencentcloud.VpcPrivateNatGatewayArgs;
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 privateNatGateway = new VpcPrivateNatGateway("privateNatGateway", VpcPrivateNatGatewayArgs.builder()
.natGatewayName("xxx")
.vpcId("xxx")
.build());
}
}
resources:
privateNatGateway:
type: tencentcloud:VpcPrivateNatGateway
properties:
natGatewayName: xxx
vpcId: xxx
Create VpcPrivateNatGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcPrivateNatGateway(name: string, args: VpcPrivateNatGatewayArgs, opts?: CustomResourceOptions);
@overload
def VpcPrivateNatGateway(resource_name: str,
args: VpcPrivateNatGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcPrivateNatGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
nat_gateway_name: Optional[str] = None,
ccn_id: Optional[str] = None,
cross_domain: Optional[bool] = None,
vpc_id: Optional[str] = None,
vpc_private_nat_gateway_id: Optional[str] = None,
vpc_type: Optional[bool] = None)
func NewVpcPrivateNatGateway(ctx *Context, name string, args VpcPrivateNatGatewayArgs, opts ...ResourceOption) (*VpcPrivateNatGateway, error)
public VpcPrivateNatGateway(string name, VpcPrivateNatGatewayArgs args, CustomResourceOptions? opts = null)
public VpcPrivateNatGateway(String name, VpcPrivateNatGatewayArgs args)
public VpcPrivateNatGateway(String name, VpcPrivateNatGatewayArgs args, CustomResourceOptions options)
type: tencentcloud:VpcPrivateNatGateway
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 VpcPrivateNatGatewayArgs
- 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 VpcPrivateNatGatewayArgs
- 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 VpcPrivateNatGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcPrivateNatGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcPrivateNatGatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpcPrivateNatGateway 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 VpcPrivateNatGateway resource accepts the following input properties:
- Nat
Gateway stringName - Private network gateway name.
- Ccn
Id string - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- Cross
Domain bool - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- Vpc
Id string - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- Vpc
Private stringNat Gateway Id - ID of the resource.
- Vpc
Type bool - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- Nat
Gateway stringName - Private network gateway name.
- Ccn
Id string - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- Cross
Domain bool - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- Vpc
Id string - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- Vpc
Private stringNat Gateway Id - ID of the resource.
- Vpc
Type bool - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- nat
Gateway StringName - Private network gateway name.
- ccn
Id String - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross
Domain Boolean - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- vpc
Id String - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc
Private StringNat Gateway Id - ID of the resource.
- vpc
Type Boolean - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- nat
Gateway stringName - Private network gateway name.
- ccn
Id string - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross
Domain boolean - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- vpc
Id string - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc
Private stringNat Gateway Id - ID of the resource.
- vpc
Type boolean - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- nat_
gateway_ strname - Private network gateway name.
- ccn_
id str - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross_
domain bool - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- vpc_
id str - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc_
private_ strnat_ gateway_ id - ID of the resource.
- vpc_
type bool - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- nat
Gateway StringName - Private network gateway name.
- ccn
Id String - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross
Domain Boolean - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- vpc
Id String - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc
Private StringNat Gateway Id - ID of the resource.
- vpc
Type Boolean - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcPrivateNatGateway resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpcPrivateNatGateway Resource
Get an existing VpcPrivateNatGateway 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?: VpcPrivateNatGatewayState, opts?: CustomResourceOptions): VpcPrivateNatGateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ccn_id: Optional[str] = None,
cross_domain: Optional[bool] = None,
nat_gateway_name: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_private_nat_gateway_id: Optional[str] = None,
vpc_type: Optional[bool] = None) -> VpcPrivateNatGateway
func GetVpcPrivateNatGateway(ctx *Context, name string, id IDInput, state *VpcPrivateNatGatewayState, opts ...ResourceOption) (*VpcPrivateNatGateway, error)
public static VpcPrivateNatGateway Get(string name, Input<string> id, VpcPrivateNatGatewayState? state, CustomResourceOptions? opts = null)
public static VpcPrivateNatGateway get(String name, Output<String> id, VpcPrivateNatGatewayState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VpcPrivateNatGateway 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.
- Ccn
Id string - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- Cross
Domain bool - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- Nat
Gateway stringName - Private network gateway name.
- Vpc
Id string - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- Vpc
Private stringNat Gateway Id - ID of the resource.
- Vpc
Type bool - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- Ccn
Id string - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- Cross
Domain bool - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- Nat
Gateway stringName - Private network gateway name.
- Vpc
Id string - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- Vpc
Private stringNat Gateway Id - ID of the resource.
- Vpc
Type bool - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- ccn
Id String - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross
Domain Boolean - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- nat
Gateway StringName - Private network gateway name.
- vpc
Id String - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc
Private StringNat Gateway Id - ID of the resource.
- vpc
Type Boolean - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- ccn
Id string - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross
Domain boolean - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- nat
Gateway stringName - Private network gateway name.
- vpc
Id string - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc
Private stringNat Gateway Id - ID of the resource.
- vpc
Type boolean - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- ccn_
id str - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross_
domain bool - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- nat_
gateway_ strname - Private network gateway name.
- vpc_
id str - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc_
private_ strnat_ gateway_ id - ID of the resource.
- vpc_
type bool - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
- ccn
Id String - Cloud Connect Network type The Cloud Connect Network instance ID required to be bound to the private network NAT gateway.
- cross
Domain Boolean - Cross-domain parameters. Cross-domain binding of VPCs is supported only when the value is True.
- nat
Gateway StringName - Private network gateway name.
- vpc
Id String - Private Cloud instance ID. This parameter is required when creating a VPC type private network NAT gateway or a private network NAT gateway of private network gateway.
- vpc
Private StringNat Gateway Id - ID of the resource.
- vpc
Type Boolean - VPC type private network NAT gateway. Only when the value is True will a VPC type private network NAT gateway be created.
Import
vpc private_nat_gateway can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vpcPrivateNatGateway:VpcPrivateNatGateway private_nat_gateway private_nat_gateway_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.