tencentcloud.TseCngwNetwork
Explore with Pulumi AI
Provides a resource to create a tse cngw_network
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cngwNetwork = new tencentcloud.TseCngwNetwork("cngwNetwork", {
description: "des-test1",
gatewayId: "gateway-cf8c99c3",
groupId: "group-a160d123",
internetAddressVersion: "IPV4",
internetMaxBandwidthOut: 1,
internetPayMode: "BANDWIDTH",
masterZoneId: "ap-guangzhou-3",
multiZoneFlag: true,
slaType: "clb.c2.medium",
slaveZoneId: "ap-guangzhou-4",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cngw_network = tencentcloud.TseCngwNetwork("cngwNetwork",
description="des-test1",
gateway_id="gateway-cf8c99c3",
group_id="group-a160d123",
internet_address_version="IPV4",
internet_max_bandwidth_out=1,
internet_pay_mode="BANDWIDTH",
master_zone_id="ap-guangzhou-3",
multi_zone_flag=True,
sla_type="clb.c2.medium",
slave_zone_id="ap-guangzhou-4")
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.NewTseCngwNetwork(ctx, "cngwNetwork", &tencentcloud.TseCngwNetworkArgs{
Description: pulumi.String("des-test1"),
GatewayId: pulumi.String("gateway-cf8c99c3"),
GroupId: pulumi.String("group-a160d123"),
InternetAddressVersion: pulumi.String("IPV4"),
InternetMaxBandwidthOut: pulumi.Float64(1),
InternetPayMode: pulumi.String("BANDWIDTH"),
MasterZoneId: pulumi.String("ap-guangzhou-3"),
MultiZoneFlag: pulumi.Bool(true),
SlaType: pulumi.String("clb.c2.medium"),
SlaveZoneId: pulumi.String("ap-guangzhou-4"),
})
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 cngwNetwork = new Tencentcloud.TseCngwNetwork("cngwNetwork", new()
{
Description = "des-test1",
GatewayId = "gateway-cf8c99c3",
GroupId = "group-a160d123",
InternetAddressVersion = "IPV4",
InternetMaxBandwidthOut = 1,
InternetPayMode = "BANDWIDTH",
MasterZoneId = "ap-guangzhou-3",
MultiZoneFlag = true,
SlaType = "clb.c2.medium",
SlaveZoneId = "ap-guangzhou-4",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TseCngwNetwork;
import com.pulumi.tencentcloud.TseCngwNetworkArgs;
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 cngwNetwork = new TseCngwNetwork("cngwNetwork", TseCngwNetworkArgs.builder()
.description("des-test1")
.gatewayId("gateway-cf8c99c3")
.groupId("group-a160d123")
.internetAddressVersion("IPV4")
.internetMaxBandwidthOut(1)
.internetPayMode("BANDWIDTH")
.masterZoneId("ap-guangzhou-3")
.multiZoneFlag(true)
.slaType("clb.c2.medium")
.slaveZoneId("ap-guangzhou-4")
.build());
}
}
resources:
cngwNetwork:
type: tencentcloud:TseCngwNetwork
properties:
description: des-test1
gatewayId: gateway-cf8c99c3
groupId: group-a160d123
internetAddressVersion: IPV4
internetMaxBandwidthOut: 1
internetPayMode: BANDWIDTH
masterZoneId: ap-guangzhou-3
multiZoneFlag: true
slaType: clb.c2.medium
slaveZoneId: ap-guangzhou-4
Create TseCngwNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TseCngwNetwork(name: string, args: TseCngwNetworkArgs, opts?: CustomResourceOptions);
@overload
def TseCngwNetwork(resource_name: str,
args: TseCngwNetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TseCngwNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
group_id: Optional[str] = None,
description: Optional[str] = None,
internet_address_version: Optional[str] = None,
internet_max_bandwidth_out: Optional[float] = None,
internet_pay_mode: Optional[str] = None,
master_zone_id: Optional[str] = None,
multi_zone_flag: Optional[bool] = None,
sla_type: Optional[str] = None,
slave_zone_id: Optional[str] = None,
tse_cngw_network_id: Optional[str] = None)
func NewTseCngwNetwork(ctx *Context, name string, args TseCngwNetworkArgs, opts ...ResourceOption) (*TseCngwNetwork, error)
public TseCngwNetwork(string name, TseCngwNetworkArgs args, CustomResourceOptions? opts = null)
public TseCngwNetwork(String name, TseCngwNetworkArgs args)
public TseCngwNetwork(String name, TseCngwNetworkArgs args, CustomResourceOptions options)
type: tencentcloud:TseCngwNetwork
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 TseCngwNetworkArgs
- 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 TseCngwNetworkArgs
- 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 TseCngwNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TseCngwNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TseCngwNetworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TseCngwNetwork 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 TseCngwNetwork resource accepts the following input properties:
- Gateway
Id string - gateway ID.
- Group
Id string - gateway group ID.
- Description string
- description of clb.
- Internet
Address stringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - Internet
Max doubleBandwidth Out - public network bandwidth.
- Internet
Pay stringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - Master
Zone stringId - primary availability zone.
- Multi
Zone boolFlag - Whether load balancing has multiple availability zones.
- Sla
Type string - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - Slave
Zone stringId - alternate availability zone.
- Tse
Cngw stringNetwork Id - ID of the resource.
- Gateway
Id string - gateway ID.
- Group
Id string - gateway group ID.
- Description string
- description of clb.
- Internet
Address stringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - Internet
Max float64Bandwidth Out - public network bandwidth.
- Internet
Pay stringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - Master
Zone stringId - primary availability zone.
- Multi
Zone boolFlag - Whether load balancing has multiple availability zones.
- Sla
Type string - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - Slave
Zone stringId - alternate availability zone.
- Tse
Cngw stringNetwork Id - ID of the resource.
- gateway
Id String - gateway ID.
- group
Id String - gateway group ID.
- description String
- description of clb.
- internet
Address StringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet
Max DoubleBandwidth Out - public network bandwidth.
- internet
Pay StringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master
Zone StringId - primary availability zone.
- multi
Zone BooleanFlag - Whether load balancing has multiple availability zones.
- sla
Type String - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave
Zone StringId - alternate availability zone.
- tse
Cngw StringNetwork Id - ID of the resource.
- gateway
Id string - gateway ID.
- group
Id string - gateway group ID.
- description string
- description of clb.
- internet
Address stringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet
Max numberBandwidth Out - public network bandwidth.
- internet
Pay stringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master
Zone stringId - primary availability zone.
- multi
Zone booleanFlag - Whether load balancing has multiple availability zones.
- sla
Type string - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave
Zone stringId - alternate availability zone.
- tse
Cngw stringNetwork Id - ID of the resource.
- gateway_
id str - gateway ID.
- group_
id str - gateway group ID.
- description str
- description of clb.
- internet_
address_ strversion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet_
max_ floatbandwidth_ out - public network bandwidth.
- internet_
pay_ strmode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master_
zone_ strid - primary availability zone.
- multi_
zone_ boolflag - Whether load balancing has multiple availability zones.
- sla_
type str - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave_
zone_ strid - alternate availability zone.
- tse_
cngw_ strnetwork_ id - ID of the resource.
- gateway
Id String - gateway ID.
- group
Id String - gateway group ID.
- description String
- description of clb.
- internet
Address StringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet
Max NumberBandwidth Out - public network bandwidth.
- internet
Pay StringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master
Zone StringId - primary availability zone.
- multi
Zone BooleanFlag - Whether load balancing has multiple availability zones.
- sla
Type String - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave
Zone StringId - alternate availability zone.
- tse
Cngw StringNetwork Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TseCngwNetwork resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- network_
id str - network id.
- vip str
- clb vip.
Look up Existing TseCngwNetwork Resource
Get an existing TseCngwNetwork 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?: TseCngwNetworkState, opts?: CustomResourceOptions): TseCngwNetwork
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
gateway_id: Optional[str] = None,
group_id: Optional[str] = None,
internet_address_version: Optional[str] = None,
internet_max_bandwidth_out: Optional[float] = None,
internet_pay_mode: Optional[str] = None,
master_zone_id: Optional[str] = None,
multi_zone_flag: Optional[bool] = None,
network_id: Optional[str] = None,
sla_type: Optional[str] = None,
slave_zone_id: Optional[str] = None,
tse_cngw_network_id: Optional[str] = None,
vip: Optional[str] = None) -> TseCngwNetwork
func GetTseCngwNetwork(ctx *Context, name string, id IDInput, state *TseCngwNetworkState, opts ...ResourceOption) (*TseCngwNetwork, error)
public static TseCngwNetwork Get(string name, Input<string> id, TseCngwNetworkState? state, CustomResourceOptions? opts = null)
public static TseCngwNetwork get(String name, Output<String> id, TseCngwNetworkState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TseCngwNetwork 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.
- Description string
- description of clb.
- Gateway
Id string - gateway ID.
- Group
Id string - gateway group ID.
- Internet
Address stringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - Internet
Max doubleBandwidth Out - public network bandwidth.
- Internet
Pay stringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - Master
Zone stringId - primary availability zone.
- Multi
Zone boolFlag - Whether load balancing has multiple availability zones.
- Network
Id string - network id.
- Sla
Type string - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - Slave
Zone stringId - alternate availability zone.
- Tse
Cngw stringNetwork Id - ID of the resource.
- Vip string
- clb vip.
- Description string
- description of clb.
- Gateway
Id string - gateway ID.
- Group
Id string - gateway group ID.
- Internet
Address stringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - Internet
Max float64Bandwidth Out - public network bandwidth.
- Internet
Pay stringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - Master
Zone stringId - primary availability zone.
- Multi
Zone boolFlag - Whether load balancing has multiple availability zones.
- Network
Id string - network id.
- Sla
Type string - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - Slave
Zone stringId - alternate availability zone.
- Tse
Cngw stringNetwork Id - ID of the resource.
- Vip string
- clb vip.
- description String
- description of clb.
- gateway
Id String - gateway ID.
- group
Id String - gateway group ID.
- internet
Address StringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet
Max DoubleBandwidth Out - public network bandwidth.
- internet
Pay StringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master
Zone StringId - primary availability zone.
- multi
Zone BooleanFlag - Whether load balancing has multiple availability zones.
- network
Id String - network id.
- sla
Type String - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave
Zone StringId - alternate availability zone.
- tse
Cngw StringNetwork Id - ID of the resource.
- vip String
- clb vip.
- description string
- description of clb.
- gateway
Id string - gateway ID.
- group
Id string - gateway group ID.
- internet
Address stringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet
Max numberBandwidth Out - public network bandwidth.
- internet
Pay stringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master
Zone stringId - primary availability zone.
- multi
Zone booleanFlag - Whether load balancing has multiple availability zones.
- network
Id string - network id.
- sla
Type string - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave
Zone stringId - alternate availability zone.
- tse
Cngw stringNetwork Id - ID of the resource.
- vip string
- clb vip.
- description str
- description of clb.
- gateway_
id str - gateway ID.
- group_
id str - gateway group ID.
- internet_
address_ strversion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet_
max_ floatbandwidth_ out - public network bandwidth.
- internet_
pay_ strmode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master_
zone_ strid - primary availability zone.
- multi_
zone_ boolflag - Whether load balancing has multiple availability zones.
- network_
id str - network id.
- sla_
type str - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave_
zone_ strid - alternate availability zone.
- tse_
cngw_ strnetwork_ id - ID of the resource.
- vip str
- clb vip.
- description String
- description of clb.
- gateway
Id String - gateway ID.
- group
Id String - gateway group ID.
- internet
Address StringVersion - internet type. Reference value:
IPV4
(default value),IPV6
. - internet
Max NumberBandwidth Out - public network bandwidth.
- internet
Pay StringMode - trade type of internet. Reference value:
BANDWIDTH
(default value),TRAFFIC
. - master
Zone StringId - primary availability zone.
- multi
Zone BooleanFlag - Whether load balancing has multiple availability zones.
- network
Id String - network id.
- sla
Type String - specification type of clb. Default
shared
type when this parameter is empty, Note: inputshared
is not supported when creating. Reference value:clb.c2.medium
,clb.c3.small
,clb.c3.medium
,clb.c4.small
,clb.c4.medium
,clb.c4.large
,clb.c4.xlarge
. - slave
Zone StringId - alternate availability zone.
- tse
Cngw StringNetwork Id - ID of the resource.
- vip String
- clb vip.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.