Example Usage
Create standard bgp instance(POSTPAID)
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.AntiddosBgpInstance("example", {
instanceChargeType: "POSTPAID_BY_MONTH",
packageType: "Standard",
standardPackageConfig: {
region: "ap-guangzhou",
protectIpCount: 1,
bandwidth: 100,
elasticBandwidthFlag: true,
},
tagInfoLists: [{
tagKey: "createBy",
tagValue: "Terraform",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.AntiddosBgpInstance("example",
instance_charge_type="POSTPAID_BY_MONTH",
package_type="Standard",
standard_package_config={
"region": "ap-guangzhou",
"protect_ip_count": 1,
"bandwidth": 100,
"elastic_bandwidth_flag": True,
},
tag_info_lists=[{
"tag_key": "createBy",
"tag_value": "Terraform",
}])
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.NewAntiddosBgpInstance(ctx, "example", &tencentcloud.AntiddosBgpInstanceArgs{
InstanceChargeType: pulumi.String("POSTPAID_BY_MONTH"),
PackageType: pulumi.String("Standard"),
StandardPackageConfig: &tencentcloud.AntiddosBgpInstanceStandardPackageConfigArgs{
Region: pulumi.String("ap-guangzhou"),
ProtectIpCount: pulumi.Float64(1),
Bandwidth: pulumi.Float64(100),
ElasticBandwidthFlag: pulumi.Bool(true),
},
TagInfoLists: tencentcloud.AntiddosBgpInstanceTagInfoListArray{
&tencentcloud.AntiddosBgpInstanceTagInfoListArgs{
TagKey: pulumi.String("createBy"),
TagValue: pulumi.String("Terraform"),
},
},
})
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 example = new Tencentcloud.AntiddosBgpInstance("example", new()
{
InstanceChargeType = "POSTPAID_BY_MONTH",
PackageType = "Standard",
StandardPackageConfig = new Tencentcloud.Inputs.AntiddosBgpInstanceStandardPackageConfigArgs
{
Region = "ap-guangzhou",
ProtectIpCount = 1,
Bandwidth = 100,
ElasticBandwidthFlag = true,
},
TagInfoLists = new[]
{
new Tencentcloud.Inputs.AntiddosBgpInstanceTagInfoListArgs
{
TagKey = "createBy",
TagValue = "Terraform",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AntiddosBgpInstance;
import com.pulumi.tencentcloud.AntiddosBgpInstanceArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceStandardPackageConfigArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceTagInfoListArgs;
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 example = new AntiddosBgpInstance("example", AntiddosBgpInstanceArgs.builder()
.instanceChargeType("POSTPAID_BY_MONTH")
.packageType("Standard")
.standardPackageConfig(AntiddosBgpInstanceStandardPackageConfigArgs.builder()
.region("ap-guangzhou")
.protectIpCount(1.0)
.bandwidth(100.0)
.elasticBandwidthFlag(true)
.build())
.tagInfoLists(AntiddosBgpInstanceTagInfoListArgs.builder()
.tagKey("createBy")
.tagValue("Terraform")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:AntiddosBgpInstance
properties:
instanceChargeType: POSTPAID_BY_MONTH
packageType: Standard
standardPackageConfig:
region: ap-guangzhou
protectIpCount: 1
bandwidth: 100
elasticBandwidthFlag: true
tagInfoLists:
- tagKey: createBy
tagValue: Terraform
Create standard edition 2.0 bgp instance(PREPAID)
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.AntiddosBgpInstance("example", {
instanceChargeType: "PREPAID",
packageType: "StandardPlus",
instanceChargePrepaid: {
period: 1,
renewFlag: "NOTIFY_AND_MANUAL_RENEW",
},
standardPlusPackageConfig: {
region: "ap-guangzhou",
protectCount: "TWO_TIMES",
protectIpCount: 1,
bandwidth: 100,
elasticBandwidthFlag: true,
},
tagInfoLists: [{
tagKey: "createBy",
tagValue: "Terraform",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.AntiddosBgpInstance("example",
instance_charge_type="PREPAID",
package_type="StandardPlus",
instance_charge_prepaid={
"period": 1,
"renew_flag": "NOTIFY_AND_MANUAL_RENEW",
},
standard_plus_package_config={
"region": "ap-guangzhou",
"protect_count": "TWO_TIMES",
"protect_ip_count": 1,
"bandwidth": 100,
"elastic_bandwidth_flag": True,
},
tag_info_lists=[{
"tag_key": "createBy",
"tag_value": "Terraform",
}])
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.NewAntiddosBgpInstance(ctx, "example", &tencentcloud.AntiddosBgpInstanceArgs{
InstanceChargeType: pulumi.String("PREPAID"),
PackageType: pulumi.String("StandardPlus"),
InstanceChargePrepaid: &tencentcloud.AntiddosBgpInstanceInstanceChargePrepaidArgs{
Period: pulumi.Float64(1),
RenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"),
},
StandardPlusPackageConfig: &tencentcloud.AntiddosBgpInstanceStandardPlusPackageConfigArgs{
Region: pulumi.String("ap-guangzhou"),
ProtectCount: pulumi.String("TWO_TIMES"),
ProtectIpCount: pulumi.Float64(1),
Bandwidth: pulumi.Float64(100),
ElasticBandwidthFlag: pulumi.Bool(true),
},
TagInfoLists: tencentcloud.AntiddosBgpInstanceTagInfoListArray{
&tencentcloud.AntiddosBgpInstanceTagInfoListArgs{
TagKey: pulumi.String("createBy"),
TagValue: pulumi.String("Terraform"),
},
},
})
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 example = new Tencentcloud.AntiddosBgpInstance("example", new()
{
InstanceChargeType = "PREPAID",
PackageType = "StandardPlus",
InstanceChargePrepaid = new Tencentcloud.Inputs.AntiddosBgpInstanceInstanceChargePrepaidArgs
{
Period = 1,
RenewFlag = "NOTIFY_AND_MANUAL_RENEW",
},
StandardPlusPackageConfig = new Tencentcloud.Inputs.AntiddosBgpInstanceStandardPlusPackageConfigArgs
{
Region = "ap-guangzhou",
ProtectCount = "TWO_TIMES",
ProtectIpCount = 1,
Bandwidth = 100,
ElasticBandwidthFlag = true,
},
TagInfoLists = new[]
{
new Tencentcloud.Inputs.AntiddosBgpInstanceTagInfoListArgs
{
TagKey = "createBy",
TagValue = "Terraform",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AntiddosBgpInstance;
import com.pulumi.tencentcloud.AntiddosBgpInstanceArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceInstanceChargePrepaidArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceStandardPlusPackageConfigArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceTagInfoListArgs;
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 example = new AntiddosBgpInstance("example", AntiddosBgpInstanceArgs.builder()
.instanceChargeType("PREPAID")
.packageType("StandardPlus")
.instanceChargePrepaid(AntiddosBgpInstanceInstanceChargePrepaidArgs.builder()
.period(1.0)
.renewFlag("NOTIFY_AND_MANUAL_RENEW")
.build())
.standardPlusPackageConfig(AntiddosBgpInstanceStandardPlusPackageConfigArgs.builder()
.region("ap-guangzhou")
.protectCount("TWO_TIMES")
.protectIpCount(1.0)
.bandwidth(100.0)
.elasticBandwidthFlag(true)
.build())
.tagInfoLists(AntiddosBgpInstanceTagInfoListArgs.builder()
.tagKey("createBy")
.tagValue("Terraform")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:AntiddosBgpInstance
properties:
instanceChargeType: PREPAID
packageType: StandardPlus
instanceChargePrepaid:
period: 1
renewFlag: NOTIFY_AND_MANUAL_RENEW
standardPlusPackageConfig:
region: ap-guangzhou
protectCount: TWO_TIMES
protectIpCount: 1
bandwidth: 100
elasticBandwidthFlag: true
tagInfoLists:
- tagKey: createBy
tagValue: Terraform
Create enterprise bgp instance(POSTPAID)
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.AntiddosBgpInstance("example", {
instanceChargeType: "POSTPAID_BY_MONTH",
packageType: "Enterprise",
enterprisePackageConfig: {
region: "ap-guangzhou",
protectIpCount: 10,
basicProtectBandwidth: 300,
bandwidth: 100,
elasticBandwidthFlag: false,
},
tagInfoLists: [{
tagKey: "createBy",
tagValue: "Terraform",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.AntiddosBgpInstance("example",
instance_charge_type="POSTPAID_BY_MONTH",
package_type="Enterprise",
enterprise_package_config={
"region": "ap-guangzhou",
"protect_ip_count": 10,
"basic_protect_bandwidth": 300,
"bandwidth": 100,
"elastic_bandwidth_flag": False,
},
tag_info_lists=[{
"tag_key": "createBy",
"tag_value": "Terraform",
}])
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.NewAntiddosBgpInstance(ctx, "example", &tencentcloud.AntiddosBgpInstanceArgs{
InstanceChargeType: pulumi.String("POSTPAID_BY_MONTH"),
PackageType: pulumi.String("Enterprise"),
EnterprisePackageConfig: &tencentcloud.AntiddosBgpInstanceEnterprisePackageConfigArgs{
Region: pulumi.String("ap-guangzhou"),
ProtectIpCount: pulumi.Float64(10),
BasicProtectBandwidth: pulumi.Float64(300),
Bandwidth: pulumi.Float64(100),
ElasticBandwidthFlag: pulumi.Bool(false),
},
TagInfoLists: tencentcloud.AntiddosBgpInstanceTagInfoListArray{
&tencentcloud.AntiddosBgpInstanceTagInfoListArgs{
TagKey: pulumi.String("createBy"),
TagValue: pulumi.String("Terraform"),
},
},
})
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 example = new Tencentcloud.AntiddosBgpInstance("example", new()
{
InstanceChargeType = "POSTPAID_BY_MONTH",
PackageType = "Enterprise",
EnterprisePackageConfig = new Tencentcloud.Inputs.AntiddosBgpInstanceEnterprisePackageConfigArgs
{
Region = "ap-guangzhou",
ProtectIpCount = 10,
BasicProtectBandwidth = 300,
Bandwidth = 100,
ElasticBandwidthFlag = false,
},
TagInfoLists = new[]
{
new Tencentcloud.Inputs.AntiddosBgpInstanceTagInfoListArgs
{
TagKey = "createBy",
TagValue = "Terraform",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AntiddosBgpInstance;
import com.pulumi.tencentcloud.AntiddosBgpInstanceArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceEnterprisePackageConfigArgs;
import com.pulumi.tencentcloud.inputs.AntiddosBgpInstanceTagInfoListArgs;
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 example = new AntiddosBgpInstance("example", AntiddosBgpInstanceArgs.builder()
.instanceChargeType("POSTPAID_BY_MONTH")
.packageType("Enterprise")
.enterprisePackageConfig(AntiddosBgpInstanceEnterprisePackageConfigArgs.builder()
.region("ap-guangzhou")
.protectIpCount(10.0)
.basicProtectBandwidth(300.0)
.bandwidth(100.0)
.elasticBandwidthFlag(false)
.build())
.tagInfoLists(AntiddosBgpInstanceTagInfoListArgs.builder()
.tagKey("createBy")
.tagValue("Terraform")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:AntiddosBgpInstance
properties:
instanceChargeType: POSTPAID_BY_MONTH
packageType: Enterprise
enterprisePackageConfig:
region: ap-guangzhou
protectIpCount: 10
basicProtectBandwidth: 300
bandwidth: 100
elasticBandwidthFlag: false
tagInfoLists:
- tagKey: createBy
tagValue: Terraform
Create AntiddosBgpInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AntiddosBgpInstance(name: string, args: AntiddosBgpInstanceArgs, opts?: CustomResourceOptions);@overload
def AntiddosBgpInstance(resource_name: str,
args: AntiddosBgpInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AntiddosBgpInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_charge_type: Optional[str] = None,
package_type: Optional[str] = None,
antiddos_bgp_instance_id: Optional[str] = None,
enterprise_package_config: Optional[AntiddosBgpInstanceEnterprisePackageConfigArgs] = None,
instance_charge_prepaid: Optional[AntiddosBgpInstanceInstanceChargePrepaidArgs] = None,
standard_package_config: Optional[AntiddosBgpInstanceStandardPackageConfigArgs] = None,
standard_plus_package_config: Optional[AntiddosBgpInstanceStandardPlusPackageConfigArgs] = None,
tag_info_lists: Optional[Sequence[AntiddosBgpInstanceTagInfoListArgs]] = None)func NewAntiddosBgpInstance(ctx *Context, name string, args AntiddosBgpInstanceArgs, opts ...ResourceOption) (*AntiddosBgpInstance, error)public AntiddosBgpInstance(string name, AntiddosBgpInstanceArgs args, CustomResourceOptions? opts = null)
public AntiddosBgpInstance(String name, AntiddosBgpInstanceArgs args)
public AntiddosBgpInstance(String name, AntiddosBgpInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:AntiddosBgpInstance
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 AntiddosBgpInstanceArgs
- 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 AntiddosBgpInstanceArgs
- 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 AntiddosBgpInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AntiddosBgpInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AntiddosBgpInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AntiddosBgpInstance 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 AntiddosBgpInstance resource accepts the following input properties:
- Instance
Charge stringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- Package
Type string - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- Antiddos
Bgp stringInstance Id - ID of the resource.
- Enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config - Enterprise package configuration.
- Instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid - Prepaid configuration.
- Standard
Package AntiddosConfig Bgp Instance Standard Package Config - Standard package configuration.
- Standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config - Standard Plus package configuration.
- Tag
Info List<AntiddosLists Bgp Instance Tag Info List> - Prepaid configuration.
- Instance
Charge stringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- Package
Type string - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- Antiddos
Bgp stringInstance Id - ID of the resource.
- Enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config Args - Enterprise package configuration.
- Instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid Args - Prepaid configuration.
- Standard
Package AntiddosConfig Bgp Instance Standard Package Config Args - Standard package configuration.
- Standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config Args - Standard Plus package configuration.
- Tag
Info []AntiddosLists Bgp Instance Tag Info List Args - Prepaid configuration.
- instance
Charge StringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package
Type String - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- antiddos
Bgp StringInstance Id - ID of the resource.
- enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config - Enterprise package configuration.
- instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid - Prepaid configuration.
- standard
Package AntiddosConfig Bgp Instance Standard Package Config - Standard package configuration.
- standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config - Standard Plus package configuration.
- tag
Info List<AntiddosLists Bgp Instance Tag Info List> - Prepaid configuration.
- instance
Charge stringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package
Type string - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- antiddos
Bgp stringInstance Id - ID of the resource.
- enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config - Enterprise package configuration.
- instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid - Prepaid configuration.
- standard
Package AntiddosConfig Bgp Instance Standard Package Config - Standard package configuration.
- standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config - Standard Plus package configuration.
- tag
Info AntiddosLists Bgp Instance Tag Info List[] - Prepaid configuration.
- instance_
charge_ strtype - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package_
type str - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- antiddos_
bgp_ strinstance_ id - ID of the resource.
- enterprise_
package_ Antiddosconfig Bgp Instance Enterprise Package Config Args - Enterprise package configuration.
- instance_
charge_ Antiddosprepaid Bgp Instance Instance Charge Prepaid Args - Prepaid configuration.
- standard_
package_ Antiddosconfig Bgp Instance Standard Package Config Args - Standard package configuration.
- standard_
plus_ Antiddospackage_ config Bgp Instance Standard Plus Package Config Args - Standard Plus package configuration.
- tag_
info_ Sequence[Antiddoslists Bgp Instance Tag Info List Args] - Prepaid configuration.
- instance
Charge StringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package
Type String - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- antiddos
Bgp StringInstance Id - ID of the resource.
- enterprise
Package Property MapConfig - Enterprise package configuration.
- instance
Charge Property MapPrepaid - Prepaid configuration.
- standard
Package Property MapConfig - Standard package configuration.
- standard
Plus Property MapPackage Config - Standard Plus package configuration.
- tag
Info List<Property Map>Lists - Prepaid configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the AntiddosBgpInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Bgp instance ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Bgp instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Bgp instance ID.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id string - Bgp instance ID.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
id str - Bgp instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Bgp instance ID.
Look up Existing AntiddosBgpInstance Resource
Get an existing AntiddosBgpInstance 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?: AntiddosBgpInstanceState, opts?: CustomResourceOptions): AntiddosBgpInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
antiddos_bgp_instance_id: Optional[str] = None,
enterprise_package_config: Optional[AntiddosBgpInstanceEnterprisePackageConfigArgs] = None,
instance_charge_prepaid: Optional[AntiddosBgpInstanceInstanceChargePrepaidArgs] = None,
instance_charge_type: Optional[str] = None,
package_type: Optional[str] = None,
resource_id: Optional[str] = None,
standard_package_config: Optional[AntiddosBgpInstanceStandardPackageConfigArgs] = None,
standard_plus_package_config: Optional[AntiddosBgpInstanceStandardPlusPackageConfigArgs] = None,
tag_info_lists: Optional[Sequence[AntiddosBgpInstanceTagInfoListArgs]] = None) -> AntiddosBgpInstancefunc GetAntiddosBgpInstance(ctx *Context, name string, id IDInput, state *AntiddosBgpInstanceState, opts ...ResourceOption) (*AntiddosBgpInstance, error)public static AntiddosBgpInstance Get(string name, Input<string> id, AntiddosBgpInstanceState? state, CustomResourceOptions? opts = null)public static AntiddosBgpInstance get(String name, Output<String> id, AntiddosBgpInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:AntiddosBgpInstance 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.
- Antiddos
Bgp stringInstance Id - ID of the resource.
- Enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config - Enterprise package configuration.
- Instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid - Prepaid configuration.
- Instance
Charge stringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- Package
Type string - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- Resource
Id string - Bgp instance ID.
- Standard
Package AntiddosConfig Bgp Instance Standard Package Config - Standard package configuration.
- Standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config - Standard Plus package configuration.
- Tag
Info List<AntiddosLists Bgp Instance Tag Info List> - Prepaid configuration.
- Antiddos
Bgp stringInstance Id - ID of the resource.
- Enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config Args - Enterprise package configuration.
- Instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid Args - Prepaid configuration.
- Instance
Charge stringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- Package
Type string - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- Resource
Id string - Bgp instance ID.
- Standard
Package AntiddosConfig Bgp Instance Standard Package Config Args - Standard package configuration.
- Standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config Args - Standard Plus package configuration.
- Tag
Info []AntiddosLists Bgp Instance Tag Info List Args - Prepaid configuration.
- antiddos
Bgp StringInstance Id - ID of the resource.
- enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config - Enterprise package configuration.
- instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid - Prepaid configuration.
- instance
Charge StringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package
Type String - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- resource
Id String - Bgp instance ID.
- standard
Package AntiddosConfig Bgp Instance Standard Package Config - Standard package configuration.
- standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config - Standard Plus package configuration.
- tag
Info List<AntiddosLists Bgp Instance Tag Info List> - Prepaid configuration.
- antiddos
Bgp stringInstance Id - ID of the resource.
- enterprise
Package AntiddosConfig Bgp Instance Enterprise Package Config - Enterprise package configuration.
- instance
Charge AntiddosPrepaid Bgp Instance Instance Charge Prepaid - Prepaid configuration.
- instance
Charge stringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package
Type string - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- resource
Id string - Bgp instance ID.
- standard
Package AntiddosConfig Bgp Instance Standard Package Config - Standard package configuration.
- standard
Plus AntiddosPackage Config Bgp Instance Standard Plus Package Config - Standard Plus package configuration.
- tag
Info AntiddosLists Bgp Instance Tag Info List[] - Prepaid configuration.
- antiddos_
bgp_ strinstance_ id - ID of the resource.
- enterprise_
package_ Antiddosconfig Bgp Instance Enterprise Package Config Args - Enterprise package configuration.
- instance_
charge_ Antiddosprepaid Bgp Instance Instance Charge Prepaid Args - Prepaid configuration.
- instance_
charge_ strtype - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package_
type str - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- resource_
id str - Bgp instance ID.
- standard_
package_ Antiddosconfig Bgp Instance Standard Package Config Args - Standard package configuration.
- standard_
plus_ Antiddospackage_ config Bgp Instance Standard Plus Package Config Args - Standard Plus package configuration.
- tag_
info_ Sequence[Antiddoslists Bgp Instance Tag Info List Args] - Prepaid configuration.
- antiddos
Bgp StringInstance Id - ID of the resource.
- enterprise
Package Property MapConfig - Enterprise package configuration.
- instance
Charge Property MapPrepaid - Prepaid configuration.
- instance
Charge StringType - Payment Type: Payment Mode: PREPAID (Prepaid) / POSTPAID_BY_MONTH (Postpaid).
- package
Type String - High-defense package types: Enterprise, Standard, StandardPlus (Standard Edition 2.0).
- resource
Id String - Bgp instance ID.
- standard
Package Property MapConfig - Standard package configuration.
- standard
Plus Property MapPackage Config - Standard Plus package configuration.
- tag
Info List<Property Map>Lists - Prepaid configuration.
Supporting Types
AntiddosBgpInstanceEnterprisePackageConfig, AntiddosBgpInstanceEnterprisePackageConfigArgs
- Bandwidth double
- Service bandwidth scale.
- Basic
Protect doubleBandwidth - Guaranteed protection bandwidth.
- Protect
Ip doubleCount - Number of protected IPs.
- Region string
- The region where the high-defense package was purchased.
- Elastic
Bandwidth boolFlag - Whether to enable elastic service bandwidth. The default value is false.
- Elastic
Protect doubleBandwidth - Elastic bandwidth (Gbps), selectable elastic bandwidth [0, 400, 500, 600, 800, 1000], default is 0.
- Bandwidth float64
- Service bandwidth scale.
- Basic
Protect float64Bandwidth - Guaranteed protection bandwidth.
- Protect
Ip float64Count - Number of protected IPs.
- Region string
- The region where the high-defense package was purchased.
- Elastic
Bandwidth boolFlag - Whether to enable elastic service bandwidth. The default value is false.
- Elastic
Protect float64Bandwidth - Elastic bandwidth (Gbps), selectable elastic bandwidth [0, 400, 500, 600, 800, 1000], default is 0.
- bandwidth Double
- Service bandwidth scale.
- basic
Protect DoubleBandwidth - Guaranteed protection bandwidth.
- protect
Ip DoubleCount - Number of protected IPs.
- region String
- The region where the high-defense package was purchased.
- elastic
Bandwidth BooleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- elastic
Protect DoubleBandwidth - Elastic bandwidth (Gbps), selectable elastic bandwidth [0, 400, 500, 600, 800, 1000], default is 0.
- bandwidth number
- Service bandwidth scale.
- basic
Protect numberBandwidth - Guaranteed protection bandwidth.
- protect
Ip numberCount - Number of protected IPs.
- region string
- The region where the high-defense package was purchased.
- elastic
Bandwidth booleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- elastic
Protect numberBandwidth - Elastic bandwidth (Gbps), selectable elastic bandwidth [0, 400, 500, 600, 800, 1000], default is 0.
- bandwidth float
- Service bandwidth scale.
- basic_
protect_ floatbandwidth - Guaranteed protection bandwidth.
- protect_
ip_ floatcount - Number of protected IPs.
- region str
- The region where the high-defense package was purchased.
- elastic_
bandwidth_ boolflag - Whether to enable elastic service bandwidth. The default value is false.
- elastic_
protect_ floatbandwidth - Elastic bandwidth (Gbps), selectable elastic bandwidth [0, 400, 500, 600, 800, 1000], default is 0.
- bandwidth Number
- Service bandwidth scale.
- basic
Protect NumberBandwidth - Guaranteed protection bandwidth.
- protect
Ip NumberCount - Number of protected IPs.
- region String
- The region where the high-defense package was purchased.
- elastic
Bandwidth BooleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- elastic
Protect NumberBandwidth - Elastic bandwidth (Gbps), selectable elastic bandwidth [0, 400, 500, 600, 800, 1000], default is 0.
AntiddosBgpInstanceInstanceChargePrepaid, AntiddosBgpInstanceInstanceChargePrepaidArgs
- Period double
- Purchase period in months.
- Renew
Flag string - OTIFY_AND_MANUAL_RENEW: Notify the user of the expiration date and do not automatically renew. NOTIFY_AND_AUTO_RENEW: Notify the user of the expiration date and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of the expiration date and do not automatically renew. The default is: Notify the user of the expiration date and do not automatically renew.
- Period float64
- Purchase period in months.
- Renew
Flag string - OTIFY_AND_MANUAL_RENEW: Notify the user of the expiration date and do not automatically renew. NOTIFY_AND_AUTO_RENEW: Notify the user of the expiration date and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of the expiration date and do not automatically renew. The default is: Notify the user of the expiration date and do not automatically renew.
- period Double
- Purchase period in months.
- renew
Flag String - OTIFY_AND_MANUAL_RENEW: Notify the user of the expiration date and do not automatically renew. NOTIFY_AND_AUTO_RENEW: Notify the user of the expiration date and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of the expiration date and do not automatically renew. The default is: Notify the user of the expiration date and do not automatically renew.
- period number
- Purchase period in months.
- renew
Flag string - OTIFY_AND_MANUAL_RENEW: Notify the user of the expiration date and do not automatically renew. NOTIFY_AND_AUTO_RENEW: Notify the user of the expiration date and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of the expiration date and do not automatically renew. The default is: Notify the user of the expiration date and do not automatically renew.
- period float
- Purchase period in months.
- renew_
flag str - OTIFY_AND_MANUAL_RENEW: Notify the user of the expiration date and do not automatically renew. NOTIFY_AND_AUTO_RENEW: Notify the user of the expiration date and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of the expiration date and do not automatically renew. The default is: Notify the user of the expiration date and do not automatically renew.
- period Number
- Purchase period in months.
- renew
Flag String - OTIFY_AND_MANUAL_RENEW: Notify the user of the expiration date and do not automatically renew. NOTIFY_AND_AUTO_RENEW: Notify the user of the expiration date and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of the expiration date and do not automatically renew. The default is: Notify the user of the expiration date and do not automatically renew.
AntiddosBgpInstanceStandardPackageConfig, AntiddosBgpInstanceStandardPackageConfigArgs
- Bandwidth double
- Protected service bandwidth 50Mbps.
- Protect
Ip doubleCount - Number of protected IPs.
- Region string
- The region where the high-defense package was purchased.
- Elastic
Bandwidth boolFlag - Whether to enable elastic service bandwidth. The default value is false.
- Bandwidth float64
- Protected service bandwidth 50Mbps.
- Protect
Ip float64Count - Number of protected IPs.
- Region string
- The region where the high-defense package was purchased.
- Elastic
Bandwidth boolFlag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth Double
- Protected service bandwidth 50Mbps.
- protect
Ip DoubleCount - Number of protected IPs.
- region String
- The region where the high-defense package was purchased.
- elastic
Bandwidth BooleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth number
- Protected service bandwidth 50Mbps.
- protect
Ip numberCount - Number of protected IPs.
- region string
- The region where the high-defense package was purchased.
- elastic
Bandwidth booleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth float
- Protected service bandwidth 50Mbps.
- protect_
ip_ floatcount - Number of protected IPs.
- region str
- The region where the high-defense package was purchased.
- elastic_
bandwidth_ boolflag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth Number
- Protected service bandwidth 50Mbps.
- protect
Ip NumberCount - Number of protected IPs.
- region String
- The region where the high-defense package was purchased.
- elastic
Bandwidth BooleanFlag - Whether to enable elastic service bandwidth. The default value is false.
AntiddosBgpInstanceStandardPlusPackageConfig, AntiddosBgpInstanceStandardPlusPackageConfigArgs
- Bandwidth double
- 50Mbps protected bandwidth.
- Protect
Count string - Protection Count: TWO_TIMES: Two full-power protections; UNLIMITED: Infinite protections.
- Protect
Ip doubleCount - Number of protected IPs.
- Region string
- The region where the high-defense package was purchased.
- Elastic
Bandwidth boolFlag - Whether to enable elastic service bandwidth. The default value is false.
- Bandwidth float64
- 50Mbps protected bandwidth.
- Protect
Count string - Protection Count: TWO_TIMES: Two full-power protections; UNLIMITED: Infinite protections.
- Protect
Ip float64Count - Number of protected IPs.
- Region string
- The region where the high-defense package was purchased.
- Elastic
Bandwidth boolFlag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth Double
- 50Mbps protected bandwidth.
- protect
Count String - Protection Count: TWO_TIMES: Two full-power protections; UNLIMITED: Infinite protections.
- protect
Ip DoubleCount - Number of protected IPs.
- region String
- The region where the high-defense package was purchased.
- elastic
Bandwidth BooleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth number
- 50Mbps protected bandwidth.
- protect
Count string - Protection Count: TWO_TIMES: Two full-power protections; UNLIMITED: Infinite protections.
- protect
Ip numberCount - Number of protected IPs.
- region string
- The region where the high-defense package was purchased.
- elastic
Bandwidth booleanFlag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth float
- 50Mbps protected bandwidth.
- protect_
count str - Protection Count: TWO_TIMES: Two full-power protections; UNLIMITED: Infinite protections.
- protect_
ip_ floatcount - Number of protected IPs.
- region str
- The region where the high-defense package was purchased.
- elastic_
bandwidth_ boolflag - Whether to enable elastic service bandwidth. The default value is false.
- bandwidth Number
- 50Mbps protected bandwidth.
- protect
Count String - Protection Count: TWO_TIMES: Two full-power protections; UNLIMITED: Infinite protections.
- protect
Ip NumberCount - Number of protected IPs.
- region String
- The region where the high-defense package was purchased.
- elastic
Bandwidth BooleanFlag - Whether to enable elastic service bandwidth. The default value is false.
AntiddosBgpInstanceTagInfoList, AntiddosBgpInstanceTagInfoListArgs
Import
AntiDDoS bgp instance can be imported using the resourceId#packageRegion, e.g.
$ pulumi import tencentcloud:index/antiddosBgpInstance:AntiddosBgpInstance example bgp-00000fyi#ap-guangzhou
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
tencentcloudTerraform Provider.
