Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Gateway
- type GatewayArgs
- type GatewayArray
- type GatewayArrayInput
- type GatewayArrayOutput
- type GatewayInput
- type GatewayMap
- type GatewayMapInput
- type GatewayMapOutput
- type GatewayOutput
- func (o GatewayOutput) AssignedEipSets() pulumi.StringArrayOutput
- func (o GatewayOutput) Bandwidth() pulumi.IntPtrOutput
- func (o GatewayOutput) CreatedTime() pulumi.StringOutput
- func (GatewayOutput) ElementType() reflect.Type
- func (o GatewayOutput) MaxConcurrent() pulumi.IntPtrOutput
- func (o GatewayOutput) Name() pulumi.StringOutput
- func (o GatewayOutput) Tags() pulumi.MapOutput
- func (o GatewayOutput) ToGatewayOutput() GatewayOutput
- func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
- func (o GatewayOutput) VpcId() pulumi.StringOutput
- type GatewaySnat
- type GatewaySnatArgs
- type GatewaySnatArray
- type GatewaySnatArrayInput
- type GatewaySnatArrayOutput
- func (GatewaySnatArrayOutput) ElementType() reflect.Type
- func (o GatewaySnatArrayOutput) Index(i pulumi.IntInput) GatewaySnatOutput
- func (o GatewaySnatArrayOutput) ToGatewaySnatArrayOutput() GatewaySnatArrayOutput
- func (o GatewaySnatArrayOutput) ToGatewaySnatArrayOutputWithContext(ctx context.Context) GatewaySnatArrayOutput
- type GatewaySnatInput
- type GatewaySnatMap
- type GatewaySnatMapInput
- type GatewaySnatMapOutput
- func (GatewaySnatMapOutput) ElementType() reflect.Type
- func (o GatewaySnatMapOutput) MapIndex(k pulumi.StringInput) GatewaySnatOutput
- func (o GatewaySnatMapOutput) ToGatewaySnatMapOutput() GatewaySnatMapOutput
- func (o GatewaySnatMapOutput) ToGatewaySnatMapOutputWithContext(ctx context.Context) GatewaySnatMapOutput
- type GatewaySnatOutput
- func (o GatewaySnatOutput) CreateTime() pulumi.StringOutput
- func (o GatewaySnatOutput) Description() pulumi.StringOutput
- func (GatewaySnatOutput) ElementType() reflect.Type
- func (o GatewaySnatOutput) InstanceId() pulumi.StringPtrOutput
- func (o GatewaySnatOutput) InstancePrivateIpAddr() pulumi.StringPtrOutput
- func (o GatewaySnatOutput) NatGatewayId() pulumi.StringOutput
- func (o GatewaySnatOutput) PublicIpAddrs() pulumi.StringArrayOutput
- func (o GatewaySnatOutput) ResourceType() pulumi.StringOutput
- func (o GatewaySnatOutput) SnatId() pulumi.StringOutput
- func (o GatewaySnatOutput) SubnetCidrBlock() pulumi.StringPtrOutput
- func (o GatewaySnatOutput) SubnetId() pulumi.StringPtrOutput
- func (o GatewaySnatOutput) ToGatewaySnatOutput() GatewaySnatOutput
- func (o GatewaySnatOutput) ToGatewaySnatOutputWithContext(ctx context.Context) GatewaySnatOutput
- type GatewaySnatState
- type GatewayState
- type GetGatewaySnatsArgs
- type GetGatewaySnatsOutputArgs
- type GetGatewaySnatsResult
- type GetGatewaySnatsResultOutput
- func (o GetGatewaySnatsResultOutput) Description() pulumi.StringPtrOutput
- func (GetGatewaySnatsResultOutput) ElementType() reflect.Type
- func (o GetGatewaySnatsResultOutput) Id() pulumi.StringOutput
- func (o GetGatewaySnatsResultOutput) InstanceId() pulumi.StringPtrOutput
- func (o GetGatewaySnatsResultOutput) NatGatewayId() pulumi.StringOutput
- func (o GetGatewaySnatsResultOutput) PublicIpAddrs() pulumi.StringArrayOutput
- func (o GetGatewaySnatsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetGatewaySnatsResultOutput) SnatLists() GetGatewaySnatsSnatListArrayOutput
- func (o GetGatewaySnatsResultOutput) SubnetId() pulumi.StringPtrOutput
- func (o GetGatewaySnatsResultOutput) ToGetGatewaySnatsResultOutput() GetGatewaySnatsResultOutput
- func (o GetGatewaySnatsResultOutput) ToGetGatewaySnatsResultOutputWithContext(ctx context.Context) GetGatewaySnatsResultOutput
- type GetGatewaySnatsSnatList
- type GetGatewaySnatsSnatListArgs
- type GetGatewaySnatsSnatListArray
- func (GetGatewaySnatsSnatListArray) ElementType() reflect.Type
- func (i GetGatewaySnatsSnatListArray) ToGetGatewaySnatsSnatListArrayOutput() GetGatewaySnatsSnatListArrayOutput
- func (i GetGatewaySnatsSnatListArray) ToGetGatewaySnatsSnatListArrayOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListArrayOutput
- type GetGatewaySnatsSnatListArrayInput
- type GetGatewaySnatsSnatListArrayOutput
- func (GetGatewaySnatsSnatListArrayOutput) ElementType() reflect.Type
- func (o GetGatewaySnatsSnatListArrayOutput) Index(i pulumi.IntInput) GetGatewaySnatsSnatListOutput
- func (o GetGatewaySnatsSnatListArrayOutput) ToGetGatewaySnatsSnatListArrayOutput() GetGatewaySnatsSnatListArrayOutput
- func (o GetGatewaySnatsSnatListArrayOutput) ToGetGatewaySnatsSnatListArrayOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListArrayOutput
- type GetGatewaySnatsSnatListInput
- type GetGatewaySnatsSnatListOutput
- func (o GetGatewaySnatsSnatListOutput) CreateTime() pulumi.StringOutput
- func (o GetGatewaySnatsSnatListOutput) Description() pulumi.StringOutput
- func (GetGatewaySnatsSnatListOutput) ElementType() reflect.Type
- func (o GetGatewaySnatsSnatListOutput) InstanceId() pulumi.StringPtrOutput
- func (o GetGatewaySnatsSnatListOutput) InstancePrivateIpAddr() pulumi.StringPtrOutput
- func (o GetGatewaySnatsSnatListOutput) NatGatewayId() pulumi.StringOutput
- func (o GetGatewaySnatsSnatListOutput) PublicIpAddrs() pulumi.StringArrayOutput
- func (o GetGatewaySnatsSnatListOutput) ResourceType() pulumi.StringOutput
- func (o GetGatewaySnatsSnatListOutput) SnatId() pulumi.StringOutput
- func (o GetGatewaySnatsSnatListOutput) SubnetCidrBlock() pulumi.StringPtrOutput
- func (o GetGatewaySnatsSnatListOutput) SubnetId() pulumi.StringPtrOutput
- func (o GetGatewaySnatsSnatListOutput) ToGetGatewaySnatsSnatListOutput() GetGatewaySnatsSnatListOutput
- func (o GetGatewaySnatsSnatListOutput) ToGetGatewaySnatsSnatListOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListOutput
- type GetGatewaysArgs
- type GetGatewaysNat
- type GetGatewaysNatArgs
- type GetGatewaysNatArray
- type GetGatewaysNatArrayInput
- type GetGatewaysNatArrayOutput
- func (GetGatewaysNatArrayOutput) ElementType() reflect.Type
- func (o GetGatewaysNatArrayOutput) Index(i pulumi.IntInput) GetGatewaysNatOutput
- func (o GetGatewaysNatArrayOutput) ToGetGatewaysNatArrayOutput() GetGatewaysNatArrayOutput
- func (o GetGatewaysNatArrayOutput) ToGetGatewaysNatArrayOutputWithContext(ctx context.Context) GetGatewaysNatArrayOutput
- type GetGatewaysNatInput
- type GetGatewaysNatOutput
- func (o GetGatewaysNatOutput) AssignedEipSets() pulumi.StringArrayOutput
- func (o GetGatewaysNatOutput) Bandwidth() pulumi.IntOutput
- func (o GetGatewaysNatOutput) CreateTime() pulumi.StringOutput
- func (GetGatewaysNatOutput) ElementType() reflect.Type
- func (o GetGatewaysNatOutput) Id() pulumi.StringOutput
- func (o GetGatewaysNatOutput) MaxConcurrent() pulumi.IntOutput
- func (o GetGatewaysNatOutput) Name() pulumi.StringOutput
- func (o GetGatewaysNatOutput) State() pulumi.StringOutput
- func (o GetGatewaysNatOutput) Tags() pulumi.MapOutput
- func (o GetGatewaysNatOutput) ToGetGatewaysNatOutput() GetGatewaysNatOutput
- func (o GetGatewaysNatOutput) ToGetGatewaysNatOutputWithContext(ctx context.Context) GetGatewaysNatOutput
- func (o GetGatewaysNatOutput) VpcId() pulumi.StringOutput
- type GetGatewaysOutputArgs
- type GetGatewaysResult
- type GetGatewaysResultOutput
- func (GetGatewaysResultOutput) ElementType() reflect.Type
- func (o GetGatewaysResultOutput) Id() pulumi.StringPtrOutput
- func (o GetGatewaysResultOutput) Name() pulumi.StringPtrOutput
- func (o GetGatewaysResultOutput) Nats() GetGatewaysNatArrayOutput
- func (o GetGatewaysResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetGatewaysResultOutput) ToGetGatewaysResultOutput() GetGatewaysResultOutput
- func (o GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext(ctx context.Context) GetGatewaysResultOutput
- func (o GetGatewaysResultOutput) VpcId() pulumi.StringPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.5
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Gateway ¶
type Gateway struct { pulumi.CustomResourceState // EIP IP address set bound to the gateway. The value of at least 1 and at most 10. AssignedEipSets pulumi.StringArrayOutput `pulumi:"assignedEipSets"` // The maximum public network output bandwidth of NAT gateway (unit: Mbps). Valid values: `20`, `50`, `100`, `200`, `500`, `1000`, `2000`, `5000`. Default is 100. Bandwidth pulumi.IntPtrOutput `pulumi:"bandwidth"` // Create time of the NAT gateway. CreatedTime pulumi.StringOutput `pulumi:"createdTime"` // The upper limit of concurrent connection of NAT gateway. Valid values: `1000000`, `3000000`, `10000000`. Default is `1000000`. MaxConcurrent pulumi.IntPtrOutput `pulumi:"maxConcurrent"` // Name of the NAT gateway. Name pulumi.StringOutput `pulumi:"name"` // The available tags within this NAT gateway. Tags pulumi.MapOutput `pulumi:"tags"` // ID of the vpc. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides a resource to create a NAT gateway.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Nat"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Nat.NewGateway(ctx, "foo", &Nat.GatewayArgs{ AssignedEipSets: pulumi.StringArray{ pulumi.String("1.1.1.1"), }, Bandwidth: pulumi.Int(100), MaxConcurrent: pulumi.Int(1000000), Tags: pulumi.AnyMap{ "test": pulumi.Any("tf"), }, VpcId: pulumi.String("vpc-4xxr2cy7"), }) if err != nil { return err } return nil }) }
```
## Import
NAT gateway can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Nat/gateway:Gateway foo nat-1asg3t63
```
func GetGateway ¶
func GetGateway(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GatewayState, opts ...pulumi.ResourceOption) (*Gateway, error)
GetGateway gets an existing Gateway resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGateway ¶
func NewGateway(ctx *pulumi.Context, name string, args *GatewayArgs, opts ...pulumi.ResourceOption) (*Gateway, error)
NewGateway registers a new resource with the given unique name, arguments, and options.
func (*Gateway) ElementType ¶
func (*Gateway) ToGatewayOutput ¶
func (i *Gateway) ToGatewayOutput() GatewayOutput
func (*Gateway) ToGatewayOutputWithContext ¶
func (i *Gateway) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
type GatewayArgs ¶
type GatewayArgs struct { // EIP IP address set bound to the gateway. The value of at least 1 and at most 10. AssignedEipSets pulumi.StringArrayInput // The maximum public network output bandwidth of NAT gateway (unit: Mbps). Valid values: `20`, `50`, `100`, `200`, `500`, `1000`, `2000`, `5000`. Default is 100. Bandwidth pulumi.IntPtrInput // The upper limit of concurrent connection of NAT gateway. Valid values: `1000000`, `3000000`, `10000000`. Default is `1000000`. MaxConcurrent pulumi.IntPtrInput // Name of the NAT gateway. Name pulumi.StringPtrInput // The available tags within this NAT gateway. Tags pulumi.MapInput // ID of the vpc. VpcId pulumi.StringInput }
The set of arguments for constructing a Gateway resource.
func (GatewayArgs) ElementType ¶
func (GatewayArgs) ElementType() reflect.Type
type GatewayArray ¶
type GatewayArray []GatewayInput
func (GatewayArray) ElementType ¶
func (GatewayArray) ElementType() reflect.Type
func (GatewayArray) ToGatewayArrayOutput ¶
func (i GatewayArray) ToGatewayArrayOutput() GatewayArrayOutput
func (GatewayArray) ToGatewayArrayOutputWithContext ¶
func (i GatewayArray) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput
type GatewayArrayInput ¶
type GatewayArrayInput interface { pulumi.Input ToGatewayArrayOutput() GatewayArrayOutput ToGatewayArrayOutputWithContext(context.Context) GatewayArrayOutput }
GatewayArrayInput is an input type that accepts GatewayArray and GatewayArrayOutput values. You can construct a concrete instance of `GatewayArrayInput` via:
GatewayArray{ GatewayArgs{...} }
type GatewayArrayOutput ¶
type GatewayArrayOutput struct{ *pulumi.OutputState }
func (GatewayArrayOutput) ElementType ¶
func (GatewayArrayOutput) ElementType() reflect.Type
func (GatewayArrayOutput) Index ¶
func (o GatewayArrayOutput) Index(i pulumi.IntInput) GatewayOutput
func (GatewayArrayOutput) ToGatewayArrayOutput ¶
func (o GatewayArrayOutput) ToGatewayArrayOutput() GatewayArrayOutput
func (GatewayArrayOutput) ToGatewayArrayOutputWithContext ¶
func (o GatewayArrayOutput) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput
type GatewayInput ¶
type GatewayInput interface { pulumi.Input ToGatewayOutput() GatewayOutput ToGatewayOutputWithContext(ctx context.Context) GatewayOutput }
type GatewayMap ¶
type GatewayMap map[string]GatewayInput
func (GatewayMap) ElementType ¶
func (GatewayMap) ElementType() reflect.Type
func (GatewayMap) ToGatewayMapOutput ¶
func (i GatewayMap) ToGatewayMapOutput() GatewayMapOutput
func (GatewayMap) ToGatewayMapOutputWithContext ¶
func (i GatewayMap) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput
type GatewayMapInput ¶
type GatewayMapInput interface { pulumi.Input ToGatewayMapOutput() GatewayMapOutput ToGatewayMapOutputWithContext(context.Context) GatewayMapOutput }
GatewayMapInput is an input type that accepts GatewayMap and GatewayMapOutput values. You can construct a concrete instance of `GatewayMapInput` via:
GatewayMap{ "key": GatewayArgs{...} }
type GatewayMapOutput ¶
type GatewayMapOutput struct{ *pulumi.OutputState }
func (GatewayMapOutput) ElementType ¶
func (GatewayMapOutput) ElementType() reflect.Type
func (GatewayMapOutput) MapIndex ¶
func (o GatewayMapOutput) MapIndex(k pulumi.StringInput) GatewayOutput
func (GatewayMapOutput) ToGatewayMapOutput ¶
func (o GatewayMapOutput) ToGatewayMapOutput() GatewayMapOutput
func (GatewayMapOutput) ToGatewayMapOutputWithContext ¶
func (o GatewayMapOutput) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput
type GatewayOutput ¶
type GatewayOutput struct{ *pulumi.OutputState }
func (GatewayOutput) AssignedEipSets ¶
func (o GatewayOutput) AssignedEipSets() pulumi.StringArrayOutput
EIP IP address set bound to the gateway. The value of at least 1 and at most 10.
func (GatewayOutput) Bandwidth ¶
func (o GatewayOutput) Bandwidth() pulumi.IntPtrOutput
The maximum public network output bandwidth of NAT gateway (unit: Mbps). Valid values: `20`, `50`, `100`, `200`, `500`, `1000`, `2000`, `5000`. Default is 100.
func (GatewayOutput) CreatedTime ¶
func (o GatewayOutput) CreatedTime() pulumi.StringOutput
Create time of the NAT gateway.
func (GatewayOutput) ElementType ¶
func (GatewayOutput) ElementType() reflect.Type
func (GatewayOutput) MaxConcurrent ¶
func (o GatewayOutput) MaxConcurrent() pulumi.IntPtrOutput
The upper limit of concurrent connection of NAT gateway. Valid values: `1000000`, `3000000`, `10000000`. Default is `1000000`.
func (GatewayOutput) Name ¶
func (o GatewayOutput) Name() pulumi.StringOutput
Name of the NAT gateway.
func (GatewayOutput) Tags ¶
func (o GatewayOutput) Tags() pulumi.MapOutput
The available tags within this NAT gateway.
func (GatewayOutput) ToGatewayOutput ¶
func (o GatewayOutput) ToGatewayOutput() GatewayOutput
func (GatewayOutput) ToGatewayOutputWithContext ¶
func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
type GatewaySnat ¶
type GatewaySnat struct { pulumi.CustomResourceState // Create time. CreateTime pulumi.StringOutput `pulumi:"createTime"` // Description. Description pulumi.StringOutput `pulumi:"description"` // Instance ID, required when `resourceType` is NETWORKINTERFACE. InstanceId pulumi.StringPtrOutput `pulumi:"instanceId"` // Private IPs of the instance's primary ENI, required when `resourceType` is NETWORKINTERFACE. InstancePrivateIpAddr pulumi.StringPtrOutput `pulumi:"instancePrivateIpAddr"` // NAT gateway ID. NatGatewayId pulumi.StringOutput `pulumi:"natGatewayId"` // Elastic IP address pool. PublicIpAddrs pulumi.StringArrayOutput `pulumi:"publicIpAddrs"` // Resource type. Valid values: SUBNET, NETWORKINTERFACE. ResourceType pulumi.StringOutput `pulumi:"resourceType"` // SNAT rule ID. SnatId pulumi.StringOutput `pulumi:"snatId"` // The IPv4 CIDR of the subnet, required when `resourceType` is SUBNET. SubnetCidrBlock pulumi.StringPtrOutput `pulumi:"subnetCidrBlock"` // Subnet instance ID, required when `resourceType` is SUBNET. SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"` }
Provides a resource to create a NAT Gateway SNat rule.
## Import
VPN gateway route can be imported using the id, the id format must be '{nat_gateway_id}#{resource_id}', resource_id range `subnet_id`, `instance_id`, e.g. SUBNET SNat
```sh
$ pulumi import tencentcloud:Nat/gatewaySnat:GatewaySnat my_snat nat-r4ip1cwt#subnet-2ap74y35
```
NETWORKINTERFACT SNat
```sh
$ pulumi import tencentcloud:Nat/gatewaySnat:GatewaySnat my_snat nat-r4ip1cwt#ins-da412f5a
```
func GetGatewaySnat ¶
func GetGatewaySnat(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GatewaySnatState, opts ...pulumi.ResourceOption) (*GatewaySnat, error)
GetGatewaySnat gets an existing GatewaySnat resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGatewaySnat ¶
func NewGatewaySnat(ctx *pulumi.Context, name string, args *GatewaySnatArgs, opts ...pulumi.ResourceOption) (*GatewaySnat, error)
NewGatewaySnat registers a new resource with the given unique name, arguments, and options.
func (*GatewaySnat) ElementType ¶
func (*GatewaySnat) ElementType() reflect.Type
func (*GatewaySnat) ToGatewaySnatOutput ¶
func (i *GatewaySnat) ToGatewaySnatOutput() GatewaySnatOutput
func (*GatewaySnat) ToGatewaySnatOutputWithContext ¶
func (i *GatewaySnat) ToGatewaySnatOutputWithContext(ctx context.Context) GatewaySnatOutput
type GatewaySnatArgs ¶
type GatewaySnatArgs struct { // Description. Description pulumi.StringInput // Instance ID, required when `resourceType` is NETWORKINTERFACE. InstanceId pulumi.StringPtrInput // Private IPs of the instance's primary ENI, required when `resourceType` is NETWORKINTERFACE. InstancePrivateIpAddr pulumi.StringPtrInput // NAT gateway ID. NatGatewayId pulumi.StringInput // Elastic IP address pool. PublicIpAddrs pulumi.StringArrayInput // Resource type. Valid values: SUBNET, NETWORKINTERFACE. ResourceType pulumi.StringInput // The IPv4 CIDR of the subnet, required when `resourceType` is SUBNET. SubnetCidrBlock pulumi.StringPtrInput // Subnet instance ID, required when `resourceType` is SUBNET. SubnetId pulumi.StringPtrInput }
The set of arguments for constructing a GatewaySnat resource.
func (GatewaySnatArgs) ElementType ¶
func (GatewaySnatArgs) ElementType() reflect.Type
type GatewaySnatArray ¶
type GatewaySnatArray []GatewaySnatInput
func (GatewaySnatArray) ElementType ¶
func (GatewaySnatArray) ElementType() reflect.Type
func (GatewaySnatArray) ToGatewaySnatArrayOutput ¶
func (i GatewaySnatArray) ToGatewaySnatArrayOutput() GatewaySnatArrayOutput
func (GatewaySnatArray) ToGatewaySnatArrayOutputWithContext ¶
func (i GatewaySnatArray) ToGatewaySnatArrayOutputWithContext(ctx context.Context) GatewaySnatArrayOutput
type GatewaySnatArrayInput ¶
type GatewaySnatArrayInput interface { pulumi.Input ToGatewaySnatArrayOutput() GatewaySnatArrayOutput ToGatewaySnatArrayOutputWithContext(context.Context) GatewaySnatArrayOutput }
GatewaySnatArrayInput is an input type that accepts GatewaySnatArray and GatewaySnatArrayOutput values. You can construct a concrete instance of `GatewaySnatArrayInput` via:
GatewaySnatArray{ GatewaySnatArgs{...} }
type GatewaySnatArrayOutput ¶
type GatewaySnatArrayOutput struct{ *pulumi.OutputState }
func (GatewaySnatArrayOutput) ElementType ¶
func (GatewaySnatArrayOutput) ElementType() reflect.Type
func (GatewaySnatArrayOutput) Index ¶
func (o GatewaySnatArrayOutput) Index(i pulumi.IntInput) GatewaySnatOutput
func (GatewaySnatArrayOutput) ToGatewaySnatArrayOutput ¶
func (o GatewaySnatArrayOutput) ToGatewaySnatArrayOutput() GatewaySnatArrayOutput
func (GatewaySnatArrayOutput) ToGatewaySnatArrayOutputWithContext ¶
func (o GatewaySnatArrayOutput) ToGatewaySnatArrayOutputWithContext(ctx context.Context) GatewaySnatArrayOutput
type GatewaySnatInput ¶
type GatewaySnatInput interface { pulumi.Input ToGatewaySnatOutput() GatewaySnatOutput ToGatewaySnatOutputWithContext(ctx context.Context) GatewaySnatOutput }
type GatewaySnatMap ¶
type GatewaySnatMap map[string]GatewaySnatInput
func (GatewaySnatMap) ElementType ¶
func (GatewaySnatMap) ElementType() reflect.Type
func (GatewaySnatMap) ToGatewaySnatMapOutput ¶
func (i GatewaySnatMap) ToGatewaySnatMapOutput() GatewaySnatMapOutput
func (GatewaySnatMap) ToGatewaySnatMapOutputWithContext ¶
func (i GatewaySnatMap) ToGatewaySnatMapOutputWithContext(ctx context.Context) GatewaySnatMapOutput
type GatewaySnatMapInput ¶
type GatewaySnatMapInput interface { pulumi.Input ToGatewaySnatMapOutput() GatewaySnatMapOutput ToGatewaySnatMapOutputWithContext(context.Context) GatewaySnatMapOutput }
GatewaySnatMapInput is an input type that accepts GatewaySnatMap and GatewaySnatMapOutput values. You can construct a concrete instance of `GatewaySnatMapInput` via:
GatewaySnatMap{ "key": GatewaySnatArgs{...} }
type GatewaySnatMapOutput ¶
type GatewaySnatMapOutput struct{ *pulumi.OutputState }
func (GatewaySnatMapOutput) ElementType ¶
func (GatewaySnatMapOutput) ElementType() reflect.Type
func (GatewaySnatMapOutput) MapIndex ¶
func (o GatewaySnatMapOutput) MapIndex(k pulumi.StringInput) GatewaySnatOutput
func (GatewaySnatMapOutput) ToGatewaySnatMapOutput ¶
func (o GatewaySnatMapOutput) ToGatewaySnatMapOutput() GatewaySnatMapOutput
func (GatewaySnatMapOutput) ToGatewaySnatMapOutputWithContext ¶
func (o GatewaySnatMapOutput) ToGatewaySnatMapOutputWithContext(ctx context.Context) GatewaySnatMapOutput
type GatewaySnatOutput ¶
type GatewaySnatOutput struct{ *pulumi.OutputState }
func (GatewaySnatOutput) CreateTime ¶
func (o GatewaySnatOutput) CreateTime() pulumi.StringOutput
Create time.
func (GatewaySnatOutput) Description ¶
func (o GatewaySnatOutput) Description() pulumi.StringOutput
Description.
func (GatewaySnatOutput) ElementType ¶
func (GatewaySnatOutput) ElementType() reflect.Type
func (GatewaySnatOutput) InstanceId ¶
func (o GatewaySnatOutput) InstanceId() pulumi.StringPtrOutput
Instance ID, required when `resourceType` is NETWORKINTERFACE.
func (GatewaySnatOutput) InstancePrivateIpAddr ¶
func (o GatewaySnatOutput) InstancePrivateIpAddr() pulumi.StringPtrOutput
Private IPs of the instance's primary ENI, required when `resourceType` is NETWORKINTERFACE.
func (GatewaySnatOutput) NatGatewayId ¶
func (o GatewaySnatOutput) NatGatewayId() pulumi.StringOutput
NAT gateway ID.
func (GatewaySnatOutput) PublicIpAddrs ¶
func (o GatewaySnatOutput) PublicIpAddrs() pulumi.StringArrayOutput
Elastic IP address pool.
func (GatewaySnatOutput) ResourceType ¶
func (o GatewaySnatOutput) ResourceType() pulumi.StringOutput
Resource type. Valid values: SUBNET, NETWORKINTERFACE.
func (GatewaySnatOutput) SnatId ¶
func (o GatewaySnatOutput) SnatId() pulumi.StringOutput
SNAT rule ID.
func (GatewaySnatOutput) SubnetCidrBlock ¶
func (o GatewaySnatOutput) SubnetCidrBlock() pulumi.StringPtrOutput
The IPv4 CIDR of the subnet, required when `resourceType` is SUBNET.
func (GatewaySnatOutput) SubnetId ¶
func (o GatewaySnatOutput) SubnetId() pulumi.StringPtrOutput
Subnet instance ID, required when `resourceType` is SUBNET.
func (GatewaySnatOutput) ToGatewaySnatOutput ¶
func (o GatewaySnatOutput) ToGatewaySnatOutput() GatewaySnatOutput
func (GatewaySnatOutput) ToGatewaySnatOutputWithContext ¶
func (o GatewaySnatOutput) ToGatewaySnatOutputWithContext(ctx context.Context) GatewaySnatOutput
type GatewaySnatState ¶
type GatewaySnatState struct { // Create time. CreateTime pulumi.StringPtrInput // Description. Description pulumi.StringPtrInput // Instance ID, required when `resourceType` is NETWORKINTERFACE. InstanceId pulumi.StringPtrInput // Private IPs of the instance's primary ENI, required when `resourceType` is NETWORKINTERFACE. InstancePrivateIpAddr pulumi.StringPtrInput // NAT gateway ID. NatGatewayId pulumi.StringPtrInput // Elastic IP address pool. PublicIpAddrs pulumi.StringArrayInput // Resource type. Valid values: SUBNET, NETWORKINTERFACE. ResourceType pulumi.StringPtrInput // SNAT rule ID. SnatId pulumi.StringPtrInput // The IPv4 CIDR of the subnet, required when `resourceType` is SUBNET. SubnetCidrBlock pulumi.StringPtrInput // Subnet instance ID, required when `resourceType` is SUBNET. SubnetId pulumi.StringPtrInput }
func (GatewaySnatState) ElementType ¶
func (GatewaySnatState) ElementType() reflect.Type
type GatewayState ¶
type GatewayState struct { // EIP IP address set bound to the gateway. The value of at least 1 and at most 10. AssignedEipSets pulumi.StringArrayInput // The maximum public network output bandwidth of NAT gateway (unit: Mbps). Valid values: `20`, `50`, `100`, `200`, `500`, `1000`, `2000`, `5000`. Default is 100. Bandwidth pulumi.IntPtrInput // Create time of the NAT gateway. CreatedTime pulumi.StringPtrInput // The upper limit of concurrent connection of NAT gateway. Valid values: `1000000`, `3000000`, `10000000`. Default is `1000000`. MaxConcurrent pulumi.IntPtrInput // Name of the NAT gateway. Name pulumi.StringPtrInput // The available tags within this NAT gateway. Tags pulumi.MapInput // ID of the vpc. VpcId pulumi.StringPtrInput }
func (GatewayState) ElementType ¶
func (GatewayState) ElementType() reflect.Type
type GetGatewaySnatsArgs ¶
type GetGatewaySnatsArgs struct { // Description. Description *string `pulumi:"description"` // Instance ID. InstanceId *string `pulumi:"instanceId"` // NAT gateway ID. NatGatewayId string `pulumi:"natGatewayId"` // Elastic IP address pool. PublicIpAddrs []string `pulumi:"publicIpAddrs"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Subnet instance ID. SubnetId *string `pulumi:"subnetId"` }
A collection of arguments for invoking getGatewaySnats.
type GetGatewaySnatsOutputArgs ¶
type GetGatewaySnatsOutputArgs struct { // Description. Description pulumi.StringPtrInput `pulumi:"description"` // Instance ID. InstanceId pulumi.StringPtrInput `pulumi:"instanceId"` // NAT gateway ID. NatGatewayId pulumi.StringInput `pulumi:"natGatewayId"` // Elastic IP address pool. PublicIpAddrs pulumi.StringArrayInput `pulumi:"publicIpAddrs"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Subnet instance ID. SubnetId pulumi.StringPtrInput `pulumi:"subnetId"` }
A collection of arguments for invoking getGatewaySnats.
func (GetGatewaySnatsOutputArgs) ElementType ¶
func (GetGatewaySnatsOutputArgs) ElementType() reflect.Type
type GetGatewaySnatsResult ¶
type GetGatewaySnatsResult struct { Description *string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` InstanceId *string `pulumi:"instanceId"` NatGatewayId string `pulumi:"natGatewayId"` PublicIpAddrs []string `pulumi:"publicIpAddrs"` ResultOutputFile *string `pulumi:"resultOutputFile"` // Information list of the nat gateway snat. SnatLists []GetGatewaySnatsSnatList `pulumi:"snatLists"` SubnetId *string `pulumi:"subnetId"` }
A collection of values returned by getGatewaySnats.
func GetGatewaySnats ¶
func GetGatewaySnats(ctx *pulumi.Context, args *GetGatewaySnatsArgs, opts ...pulumi.InvokeOption) (*GetGatewaySnatsResult, error)
Use this data source to query detailed information of VPN gateways.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Nat" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Nat"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Nat.GetGatewaySnats(ctx, &nat.GetGatewaySnatsArgs{ NatGatewayId: tencentcloud_nat_gateway.My_nat.Id, SubnetId: pulumi.StringRef(tencentcloud_nat_gateway_snat.My_subnet.Id), PublicIpAddrs: []string{ "50.29.23.234", }, Description: pulumi.StringRef("snat demo"), ResultOutputFile: pulumi.StringRef("./snat.txt"), }, nil) if err != nil { return err } return nil }) }
```
type GetGatewaySnatsResultOutput ¶
type GetGatewaySnatsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getGatewaySnats.
func GetGatewaySnatsOutput ¶
func GetGatewaySnatsOutput(ctx *pulumi.Context, args GetGatewaySnatsOutputArgs, opts ...pulumi.InvokeOption) GetGatewaySnatsResultOutput
func (GetGatewaySnatsResultOutput) Description ¶
func (o GetGatewaySnatsResultOutput) Description() pulumi.StringPtrOutput
func (GetGatewaySnatsResultOutput) ElementType ¶
func (GetGatewaySnatsResultOutput) ElementType() reflect.Type
func (GetGatewaySnatsResultOutput) Id ¶
func (o GetGatewaySnatsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetGatewaySnatsResultOutput) InstanceId ¶
func (o GetGatewaySnatsResultOutput) InstanceId() pulumi.StringPtrOutput
func (GetGatewaySnatsResultOutput) NatGatewayId ¶
func (o GetGatewaySnatsResultOutput) NatGatewayId() pulumi.StringOutput
func (GetGatewaySnatsResultOutput) PublicIpAddrs ¶
func (o GetGatewaySnatsResultOutput) PublicIpAddrs() pulumi.StringArrayOutput
func (GetGatewaySnatsResultOutput) ResultOutputFile ¶
func (o GetGatewaySnatsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetGatewaySnatsResultOutput) SnatLists ¶
func (o GetGatewaySnatsResultOutput) SnatLists() GetGatewaySnatsSnatListArrayOutput
Information list of the nat gateway snat.
func (GetGatewaySnatsResultOutput) SubnetId ¶
func (o GetGatewaySnatsResultOutput) SubnetId() pulumi.StringPtrOutput
func (GetGatewaySnatsResultOutput) ToGetGatewaySnatsResultOutput ¶
func (o GetGatewaySnatsResultOutput) ToGetGatewaySnatsResultOutput() GetGatewaySnatsResultOutput
func (GetGatewaySnatsResultOutput) ToGetGatewaySnatsResultOutputWithContext ¶
func (o GetGatewaySnatsResultOutput) ToGetGatewaySnatsResultOutputWithContext(ctx context.Context) GetGatewaySnatsResultOutput
type GetGatewaySnatsSnatList ¶
type GetGatewaySnatsSnatList struct { // Create time. CreateTime string `pulumi:"createTime"` // Description. Description string `pulumi:"description"` // Instance ID. InstanceId *string `pulumi:"instanceId"` InstancePrivateIpAddr *string `pulumi:"instancePrivateIpAddr"` // NAT gateway ID. NatGatewayId string `pulumi:"natGatewayId"` // Elastic IP address pool. PublicIpAddrs []string `pulumi:"publicIpAddrs"` ResourceType string `pulumi:"resourceType"` // SNAT rule ID. SnatId string `pulumi:"snatId"` SubnetCidrBlock *string `pulumi:"subnetCidrBlock"` // Subnet instance ID. SubnetId *string `pulumi:"subnetId"` }
type GetGatewaySnatsSnatListArgs ¶
type GetGatewaySnatsSnatListArgs struct { // Create time. CreateTime pulumi.StringInput `pulumi:"createTime"` // Description. Description pulumi.StringInput `pulumi:"description"` // Instance ID. InstanceId pulumi.StringPtrInput `pulumi:"instanceId"` InstancePrivateIpAddr pulumi.StringPtrInput `pulumi:"instancePrivateIpAddr"` // NAT gateway ID. NatGatewayId pulumi.StringInput `pulumi:"natGatewayId"` // Elastic IP address pool. PublicIpAddrs pulumi.StringArrayInput `pulumi:"publicIpAddrs"` ResourceType pulumi.StringInput `pulumi:"resourceType"` // SNAT rule ID. SnatId pulumi.StringInput `pulumi:"snatId"` SubnetCidrBlock pulumi.StringPtrInput `pulumi:"subnetCidrBlock"` // Subnet instance ID. SubnetId pulumi.StringPtrInput `pulumi:"subnetId"` }
func (GetGatewaySnatsSnatListArgs) ElementType ¶
func (GetGatewaySnatsSnatListArgs) ElementType() reflect.Type
func (GetGatewaySnatsSnatListArgs) ToGetGatewaySnatsSnatListOutput ¶
func (i GetGatewaySnatsSnatListArgs) ToGetGatewaySnatsSnatListOutput() GetGatewaySnatsSnatListOutput
func (GetGatewaySnatsSnatListArgs) ToGetGatewaySnatsSnatListOutputWithContext ¶
func (i GetGatewaySnatsSnatListArgs) ToGetGatewaySnatsSnatListOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListOutput
type GetGatewaySnatsSnatListArray ¶
type GetGatewaySnatsSnatListArray []GetGatewaySnatsSnatListInput
func (GetGatewaySnatsSnatListArray) ElementType ¶
func (GetGatewaySnatsSnatListArray) ElementType() reflect.Type
func (GetGatewaySnatsSnatListArray) ToGetGatewaySnatsSnatListArrayOutput ¶
func (i GetGatewaySnatsSnatListArray) ToGetGatewaySnatsSnatListArrayOutput() GetGatewaySnatsSnatListArrayOutput
func (GetGatewaySnatsSnatListArray) ToGetGatewaySnatsSnatListArrayOutputWithContext ¶
func (i GetGatewaySnatsSnatListArray) ToGetGatewaySnatsSnatListArrayOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListArrayOutput
type GetGatewaySnatsSnatListArrayInput ¶
type GetGatewaySnatsSnatListArrayInput interface { pulumi.Input ToGetGatewaySnatsSnatListArrayOutput() GetGatewaySnatsSnatListArrayOutput ToGetGatewaySnatsSnatListArrayOutputWithContext(context.Context) GetGatewaySnatsSnatListArrayOutput }
GetGatewaySnatsSnatListArrayInput is an input type that accepts GetGatewaySnatsSnatListArray and GetGatewaySnatsSnatListArrayOutput values. You can construct a concrete instance of `GetGatewaySnatsSnatListArrayInput` via:
GetGatewaySnatsSnatListArray{ GetGatewaySnatsSnatListArgs{...} }
type GetGatewaySnatsSnatListArrayOutput ¶
type GetGatewaySnatsSnatListArrayOutput struct{ *pulumi.OutputState }
func (GetGatewaySnatsSnatListArrayOutput) ElementType ¶
func (GetGatewaySnatsSnatListArrayOutput) ElementType() reflect.Type
func (GetGatewaySnatsSnatListArrayOutput) Index ¶
func (o GetGatewaySnatsSnatListArrayOutput) Index(i pulumi.IntInput) GetGatewaySnatsSnatListOutput
func (GetGatewaySnatsSnatListArrayOutput) ToGetGatewaySnatsSnatListArrayOutput ¶
func (o GetGatewaySnatsSnatListArrayOutput) ToGetGatewaySnatsSnatListArrayOutput() GetGatewaySnatsSnatListArrayOutput
func (GetGatewaySnatsSnatListArrayOutput) ToGetGatewaySnatsSnatListArrayOutputWithContext ¶
func (o GetGatewaySnatsSnatListArrayOutput) ToGetGatewaySnatsSnatListArrayOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListArrayOutput
type GetGatewaySnatsSnatListInput ¶
type GetGatewaySnatsSnatListInput interface { pulumi.Input ToGetGatewaySnatsSnatListOutput() GetGatewaySnatsSnatListOutput ToGetGatewaySnatsSnatListOutputWithContext(context.Context) GetGatewaySnatsSnatListOutput }
GetGatewaySnatsSnatListInput is an input type that accepts GetGatewaySnatsSnatListArgs and GetGatewaySnatsSnatListOutput values. You can construct a concrete instance of `GetGatewaySnatsSnatListInput` via:
GetGatewaySnatsSnatListArgs{...}
type GetGatewaySnatsSnatListOutput ¶
type GetGatewaySnatsSnatListOutput struct{ *pulumi.OutputState }
func (GetGatewaySnatsSnatListOutput) CreateTime ¶
func (o GetGatewaySnatsSnatListOutput) CreateTime() pulumi.StringOutput
Create time.
func (GetGatewaySnatsSnatListOutput) Description ¶
func (o GetGatewaySnatsSnatListOutput) Description() pulumi.StringOutput
Description.
func (GetGatewaySnatsSnatListOutput) ElementType ¶
func (GetGatewaySnatsSnatListOutput) ElementType() reflect.Type
func (GetGatewaySnatsSnatListOutput) InstanceId ¶
func (o GetGatewaySnatsSnatListOutput) InstanceId() pulumi.StringPtrOutput
Instance ID.
func (GetGatewaySnatsSnatListOutput) InstancePrivateIpAddr ¶
func (o GetGatewaySnatsSnatListOutput) InstancePrivateIpAddr() pulumi.StringPtrOutput
func (GetGatewaySnatsSnatListOutput) NatGatewayId ¶
func (o GetGatewaySnatsSnatListOutput) NatGatewayId() pulumi.StringOutput
NAT gateway ID.
func (GetGatewaySnatsSnatListOutput) PublicIpAddrs ¶
func (o GetGatewaySnatsSnatListOutput) PublicIpAddrs() pulumi.StringArrayOutput
Elastic IP address pool.
func (GetGatewaySnatsSnatListOutput) ResourceType ¶
func (o GetGatewaySnatsSnatListOutput) ResourceType() pulumi.StringOutput
func (GetGatewaySnatsSnatListOutput) SnatId ¶
func (o GetGatewaySnatsSnatListOutput) SnatId() pulumi.StringOutput
SNAT rule ID.
func (GetGatewaySnatsSnatListOutput) SubnetCidrBlock ¶
func (o GetGatewaySnatsSnatListOutput) SubnetCidrBlock() pulumi.StringPtrOutput
func (GetGatewaySnatsSnatListOutput) SubnetId ¶
func (o GetGatewaySnatsSnatListOutput) SubnetId() pulumi.StringPtrOutput
Subnet instance ID.
func (GetGatewaySnatsSnatListOutput) ToGetGatewaySnatsSnatListOutput ¶
func (o GetGatewaySnatsSnatListOutput) ToGetGatewaySnatsSnatListOutput() GetGatewaySnatsSnatListOutput
func (GetGatewaySnatsSnatListOutput) ToGetGatewaySnatsSnatListOutputWithContext ¶
func (o GetGatewaySnatsSnatListOutput) ToGetGatewaySnatsSnatListOutputWithContext(ctx context.Context) GetGatewaySnatsSnatListOutput
type GetGatewaysArgs ¶
type GetGatewaysArgs struct { // ID of the NAT gateway. Id *string `pulumi:"id"` // Name of the NAT gateway. Name *string `pulumi:"name"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the VPC. VpcId *string `pulumi:"vpcId"` }
A collection of arguments for invoking getGateways.
type GetGatewaysNat ¶
type GetGatewaysNat struct { // EIP IP address set bound to the gateway. The value of at least 1. AssignedEipSets []string `pulumi:"assignedEipSets"` // The maximum public network output bandwidth of NAT gateway (unit: Mbps), the available values include: 20,50,100,200,500,1000,2000,5000. Default is 100. Bandwidth int `pulumi:"bandwidth"` // Create time of the NAT gateway. CreateTime string `pulumi:"createTime"` // ID of the NAT gateway. Id string `pulumi:"id"` // The upper limit of concurrent connection of NAT gateway, the available values include: 1000000,3000000,10000000. Default is 1000000. MaxConcurrent int `pulumi:"maxConcurrent"` // Name of the NAT gateway. Name string `pulumi:"name"` // State of the NAT gateway. State string `pulumi:"state"` // The available tags within this NAT gateway. Tags map[string]interface{} `pulumi:"tags"` // ID of the VPC. VpcId string `pulumi:"vpcId"` }
type GetGatewaysNatArgs ¶
type GetGatewaysNatArgs struct { // EIP IP address set bound to the gateway. The value of at least 1. AssignedEipSets pulumi.StringArrayInput `pulumi:"assignedEipSets"` // The maximum public network output bandwidth of NAT gateway (unit: Mbps), the available values include: 20,50,100,200,500,1000,2000,5000. Default is 100. Bandwidth pulumi.IntInput `pulumi:"bandwidth"` // Create time of the NAT gateway. CreateTime pulumi.StringInput `pulumi:"createTime"` // ID of the NAT gateway. Id pulumi.StringInput `pulumi:"id"` // The upper limit of concurrent connection of NAT gateway, the available values include: 1000000,3000000,10000000. Default is 1000000. MaxConcurrent pulumi.IntInput `pulumi:"maxConcurrent"` // Name of the NAT gateway. Name pulumi.StringInput `pulumi:"name"` // State of the NAT gateway. State pulumi.StringInput `pulumi:"state"` // The available tags within this NAT gateway. Tags pulumi.MapInput `pulumi:"tags"` // ID of the VPC. VpcId pulumi.StringInput `pulumi:"vpcId"` }
func (GetGatewaysNatArgs) ElementType ¶
func (GetGatewaysNatArgs) ElementType() reflect.Type
func (GetGatewaysNatArgs) ToGetGatewaysNatOutput ¶
func (i GetGatewaysNatArgs) ToGetGatewaysNatOutput() GetGatewaysNatOutput
func (GetGatewaysNatArgs) ToGetGatewaysNatOutputWithContext ¶
func (i GetGatewaysNatArgs) ToGetGatewaysNatOutputWithContext(ctx context.Context) GetGatewaysNatOutput
type GetGatewaysNatArray ¶
type GetGatewaysNatArray []GetGatewaysNatInput
func (GetGatewaysNatArray) ElementType ¶
func (GetGatewaysNatArray) ElementType() reflect.Type
func (GetGatewaysNatArray) ToGetGatewaysNatArrayOutput ¶
func (i GetGatewaysNatArray) ToGetGatewaysNatArrayOutput() GetGatewaysNatArrayOutput
func (GetGatewaysNatArray) ToGetGatewaysNatArrayOutputWithContext ¶
func (i GetGatewaysNatArray) ToGetGatewaysNatArrayOutputWithContext(ctx context.Context) GetGatewaysNatArrayOutput
type GetGatewaysNatArrayInput ¶
type GetGatewaysNatArrayInput interface { pulumi.Input ToGetGatewaysNatArrayOutput() GetGatewaysNatArrayOutput ToGetGatewaysNatArrayOutputWithContext(context.Context) GetGatewaysNatArrayOutput }
GetGatewaysNatArrayInput is an input type that accepts GetGatewaysNatArray and GetGatewaysNatArrayOutput values. You can construct a concrete instance of `GetGatewaysNatArrayInput` via:
GetGatewaysNatArray{ GetGatewaysNatArgs{...} }
type GetGatewaysNatArrayOutput ¶
type GetGatewaysNatArrayOutput struct{ *pulumi.OutputState }
func (GetGatewaysNatArrayOutput) ElementType ¶
func (GetGatewaysNatArrayOutput) ElementType() reflect.Type
func (GetGatewaysNatArrayOutput) Index ¶
func (o GetGatewaysNatArrayOutput) Index(i pulumi.IntInput) GetGatewaysNatOutput
func (GetGatewaysNatArrayOutput) ToGetGatewaysNatArrayOutput ¶
func (o GetGatewaysNatArrayOutput) ToGetGatewaysNatArrayOutput() GetGatewaysNatArrayOutput
func (GetGatewaysNatArrayOutput) ToGetGatewaysNatArrayOutputWithContext ¶
func (o GetGatewaysNatArrayOutput) ToGetGatewaysNatArrayOutputWithContext(ctx context.Context) GetGatewaysNatArrayOutput
type GetGatewaysNatInput ¶
type GetGatewaysNatInput interface { pulumi.Input ToGetGatewaysNatOutput() GetGatewaysNatOutput ToGetGatewaysNatOutputWithContext(context.Context) GetGatewaysNatOutput }
GetGatewaysNatInput is an input type that accepts GetGatewaysNatArgs and GetGatewaysNatOutput values. You can construct a concrete instance of `GetGatewaysNatInput` via:
GetGatewaysNatArgs{...}
type GetGatewaysNatOutput ¶
type GetGatewaysNatOutput struct{ *pulumi.OutputState }
func (GetGatewaysNatOutput) AssignedEipSets ¶
func (o GetGatewaysNatOutput) AssignedEipSets() pulumi.StringArrayOutput
EIP IP address set bound to the gateway. The value of at least 1.
func (GetGatewaysNatOutput) Bandwidth ¶
func (o GetGatewaysNatOutput) Bandwidth() pulumi.IntOutput
The maximum public network output bandwidth of NAT gateway (unit: Mbps), the available values include: 20,50,100,200,500,1000,2000,5000. Default is 100.
func (GetGatewaysNatOutput) CreateTime ¶
func (o GetGatewaysNatOutput) CreateTime() pulumi.StringOutput
Create time of the NAT gateway.
func (GetGatewaysNatOutput) ElementType ¶
func (GetGatewaysNatOutput) ElementType() reflect.Type
func (GetGatewaysNatOutput) Id ¶
func (o GetGatewaysNatOutput) Id() pulumi.StringOutput
ID of the NAT gateway.
func (GetGatewaysNatOutput) MaxConcurrent ¶
func (o GetGatewaysNatOutput) MaxConcurrent() pulumi.IntOutput
The upper limit of concurrent connection of NAT gateway, the available values include: 1000000,3000000,10000000. Default is 1000000.
func (GetGatewaysNatOutput) Name ¶
func (o GetGatewaysNatOutput) Name() pulumi.StringOutput
Name of the NAT gateway.
func (GetGatewaysNatOutput) State ¶
func (o GetGatewaysNatOutput) State() pulumi.StringOutput
State of the NAT gateway.
func (GetGatewaysNatOutput) Tags ¶
func (o GetGatewaysNatOutput) Tags() pulumi.MapOutput
The available tags within this NAT gateway.
func (GetGatewaysNatOutput) ToGetGatewaysNatOutput ¶
func (o GetGatewaysNatOutput) ToGetGatewaysNatOutput() GetGatewaysNatOutput
func (GetGatewaysNatOutput) ToGetGatewaysNatOutputWithContext ¶
func (o GetGatewaysNatOutput) ToGetGatewaysNatOutputWithContext(ctx context.Context) GetGatewaysNatOutput
func (GetGatewaysNatOutput) VpcId ¶
func (o GetGatewaysNatOutput) VpcId() pulumi.StringOutput
ID of the VPC.
type GetGatewaysOutputArgs ¶
type GetGatewaysOutputArgs struct { // ID of the NAT gateway. Id pulumi.StringPtrInput `pulumi:"id"` // Name of the NAT gateway. Name pulumi.StringPtrInput `pulumi:"name"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // ID of the VPC. VpcId pulumi.StringPtrInput `pulumi:"vpcId"` }
A collection of arguments for invoking getGateways.
func (GetGatewaysOutputArgs) ElementType ¶
func (GetGatewaysOutputArgs) ElementType() reflect.Type
type GetGatewaysResult ¶
type GetGatewaysResult struct { // ID of the NAT gateway. Id *string `pulumi:"id"` // Name of the NAT gateway. Name *string `pulumi:"name"` // Information list of the dedicated NATs. Nats []GetGatewaysNat `pulumi:"nats"` ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the VPC. VpcId *string `pulumi:"vpcId"` }
A collection of values returned by getGateways.
func GetGateways ¶
func GetGateways(ctx *pulumi.Context, args *GetGatewaysArgs, opts ...pulumi.InvokeOption) (*GetGatewaysResult, error)
Use this data source to query detailed information of NAT gateways.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Nat" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Nat"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Nat.GetGateways(ctx, &nat.GetGatewaysArgs{ Id: pulumi.StringRef("nat-xfaq1"), Name: pulumi.StringRef("main"), VpcId: pulumi.StringRef("vpc-xfqag"), }, nil) if err != nil { return err } return nil }) }
```
type GetGatewaysResultOutput ¶
type GetGatewaysResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getGateways.
func GetGatewaysOutput ¶
func GetGatewaysOutput(ctx *pulumi.Context, args GetGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetGatewaysResultOutput
func (GetGatewaysResultOutput) ElementType ¶
func (GetGatewaysResultOutput) ElementType() reflect.Type
func (GetGatewaysResultOutput) Id ¶
func (o GetGatewaysResultOutput) Id() pulumi.StringPtrOutput
ID of the NAT gateway.
func (GetGatewaysResultOutput) Name ¶
func (o GetGatewaysResultOutput) Name() pulumi.StringPtrOutput
Name of the NAT gateway.
func (GetGatewaysResultOutput) Nats ¶
func (o GetGatewaysResultOutput) Nats() GetGatewaysNatArrayOutput
Information list of the dedicated NATs.
func (GetGatewaysResultOutput) ResultOutputFile ¶
func (o GetGatewaysResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetGatewaysResultOutput) ToGetGatewaysResultOutput ¶
func (o GetGatewaysResultOutput) ToGetGatewaysResultOutput() GetGatewaysResultOutput
func (GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext ¶
func (o GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext(ctx context.Context) GetGatewaysResultOutput
func (GetGatewaysResultOutput) VpcId ¶
func (o GetGatewaysResultOutput) VpcId() pulumi.StringPtrOutput
ID of the VPC.