1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. AntiddosDefaultAlarmThreshold
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.AntiddosDefaultAlarmThreshold

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a antiddos default alarm threshold

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const defaultAlarmThreshold = new tencentcloud.AntiddosDefaultAlarmThreshold("defaultAlarmThreshold", {
        defaultAlarmConfig: {
            alarmThreshold: 2000,
            alarmType: 1,
        },
        instanceType: "bgp",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    default_alarm_threshold = tencentcloud.AntiddosDefaultAlarmThreshold("defaultAlarmThreshold",
        default_alarm_config={
            "alarm_threshold": 2000,
            "alarm_type": 1,
        },
        instance_type="bgp")
    
    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.NewAntiddosDefaultAlarmThreshold(ctx, "defaultAlarmThreshold", &tencentcloud.AntiddosDefaultAlarmThresholdArgs{
    			DefaultAlarmConfig: &tencentcloud.AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs{
    				AlarmThreshold: pulumi.Float64(2000),
    				AlarmType:      pulumi.Float64(1),
    			},
    			InstanceType: pulumi.String("bgp"),
    		})
    		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 defaultAlarmThreshold = new Tencentcloud.AntiddosDefaultAlarmThreshold("defaultAlarmThreshold", new()
        {
            DefaultAlarmConfig = new Tencentcloud.Inputs.AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs
            {
                AlarmThreshold = 2000,
                AlarmType = 1,
            },
            InstanceType = "bgp",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.AntiddosDefaultAlarmThreshold;
    import com.pulumi.tencentcloud.AntiddosDefaultAlarmThresholdArgs;
    import com.pulumi.tencentcloud.inputs.AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs;
    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 defaultAlarmThreshold = new AntiddosDefaultAlarmThreshold("defaultAlarmThreshold", AntiddosDefaultAlarmThresholdArgs.builder()
                .defaultAlarmConfig(AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs.builder()
                    .alarmThreshold(2000)
                    .alarmType(1)
                    .build())
                .instanceType("bgp")
                .build());
    
        }
    }
    
    resources:
      defaultAlarmThreshold:
        type: tencentcloud:AntiddosDefaultAlarmThreshold
        properties:
          defaultAlarmConfig:
            alarmThreshold: 2000
            alarmType: 1
          instanceType: bgp
    

    Create AntiddosDefaultAlarmThreshold Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AntiddosDefaultAlarmThreshold(name: string, args: AntiddosDefaultAlarmThresholdArgs, opts?: CustomResourceOptions);
    @overload
    def AntiddosDefaultAlarmThreshold(resource_name: str,
                                      args: AntiddosDefaultAlarmThresholdArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def AntiddosDefaultAlarmThreshold(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      default_alarm_config: Optional[AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs] = None,
                                      instance_type: Optional[str] = None,
                                      antiddos_default_alarm_threshold_id: Optional[str] = None)
    func NewAntiddosDefaultAlarmThreshold(ctx *Context, name string, args AntiddosDefaultAlarmThresholdArgs, opts ...ResourceOption) (*AntiddosDefaultAlarmThreshold, error)
    public AntiddosDefaultAlarmThreshold(string name, AntiddosDefaultAlarmThresholdArgs args, CustomResourceOptions? opts = null)
    public AntiddosDefaultAlarmThreshold(String name, AntiddosDefaultAlarmThresholdArgs args)
    public AntiddosDefaultAlarmThreshold(String name, AntiddosDefaultAlarmThresholdArgs args, CustomResourceOptions options)
    
    type: tencentcloud:AntiddosDefaultAlarmThreshold
    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 AntiddosDefaultAlarmThresholdArgs
    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 AntiddosDefaultAlarmThresholdArgs
    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 AntiddosDefaultAlarmThresholdArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AntiddosDefaultAlarmThresholdArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AntiddosDefaultAlarmThresholdArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AntiddosDefaultAlarmThreshold 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 AntiddosDefaultAlarmThreshold resource accepts the following input properties:

    DefaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfig
    Alarm threshold configuration.
    InstanceType string
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    AntiddosDefaultAlarmThresholdId string
    ID of the resource.
    DefaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs
    Alarm threshold configuration.
    InstanceType string
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    AntiddosDefaultAlarmThresholdId string
    ID of the resource.
    defaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfig
    Alarm threshold configuration.
    instanceType String
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddosDefaultAlarmThresholdId String
    ID of the resource.
    defaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfig
    Alarm threshold configuration.
    instanceType string
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddosDefaultAlarmThresholdId string
    ID of the resource.
    default_alarm_config AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs
    Alarm threshold configuration.
    instance_type str
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddos_default_alarm_threshold_id str
    ID of the resource.
    defaultAlarmConfig Property Map
    Alarm threshold configuration.
    instanceType String
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddosDefaultAlarmThresholdId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AntiddosDefaultAlarmThreshold resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AntiddosDefaultAlarmThreshold Resource

    Get an existing AntiddosDefaultAlarmThreshold 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?: AntiddosDefaultAlarmThresholdState, opts?: CustomResourceOptions): AntiddosDefaultAlarmThreshold
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            antiddos_default_alarm_threshold_id: Optional[str] = None,
            default_alarm_config: Optional[AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs] = None,
            instance_type: Optional[str] = None) -> AntiddosDefaultAlarmThreshold
    func GetAntiddosDefaultAlarmThreshold(ctx *Context, name string, id IDInput, state *AntiddosDefaultAlarmThresholdState, opts ...ResourceOption) (*AntiddosDefaultAlarmThreshold, error)
    public static AntiddosDefaultAlarmThreshold Get(string name, Input<string> id, AntiddosDefaultAlarmThresholdState? state, CustomResourceOptions? opts = null)
    public static AntiddosDefaultAlarmThreshold get(String name, Output<String> id, AntiddosDefaultAlarmThresholdState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:AntiddosDefaultAlarmThreshold    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.
    The following state arguments are supported:
    AntiddosDefaultAlarmThresholdId string
    ID of the resource.
    DefaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfig
    Alarm threshold configuration.
    InstanceType string
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    AntiddosDefaultAlarmThresholdId string
    ID of the resource.
    DefaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs
    Alarm threshold configuration.
    InstanceType string
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddosDefaultAlarmThresholdId String
    ID of the resource.
    defaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfig
    Alarm threshold configuration.
    instanceType String
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddosDefaultAlarmThresholdId string
    ID of the resource.
    defaultAlarmConfig AntiddosDefaultAlarmThresholdDefaultAlarmConfig
    Alarm threshold configuration.
    instanceType string
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddos_default_alarm_threshold_id str
    ID of the resource.
    default_alarm_config AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs
    Alarm threshold configuration.
    instance_type str
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].
    antiddosDefaultAlarmThresholdId String
    ID of the resource.
    defaultAlarmConfig Property Map
    Alarm threshold configuration.
    instanceType String
    Product type, value [bgp (represents advanced defense package product) bgpip (represents advanced defense IP product)].

    Supporting Types

    AntiddosDefaultAlarmThresholdDefaultAlarmConfig, AntiddosDefaultAlarmThresholdDefaultAlarmConfigArgs

    AlarmThreshold double
    Alarm threshold, in Mbps, with a value of>=0; When used as an input parameter, setting 0 will delete the alarm threshold configuration;.
    AlarmType double
    Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
    AlarmThreshold float64
    Alarm threshold, in Mbps, with a value of>=0; When used as an input parameter, setting 0 will delete the alarm threshold configuration;.
    AlarmType float64
    Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
    alarmThreshold Double
    Alarm threshold, in Mbps, with a value of>=0; When used as an input parameter, setting 0 will delete the alarm threshold configuration;.
    alarmType Double
    Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
    alarmThreshold number
    Alarm threshold, in Mbps, with a value of>=0; When used as an input parameter, setting 0 will delete the alarm threshold configuration;.
    alarmType number
    Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
    alarm_threshold float
    Alarm threshold, in Mbps, with a value of>=0; When used as an input parameter, setting 0 will delete the alarm threshold configuration;.
    alarm_type float
    Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
    alarmThreshold Number
    Alarm threshold, in Mbps, with a value of>=0; When used as an input parameter, setting 0 will delete the alarm threshold configuration;.
    alarmType Number
    Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].

    Import

    antiddos default_alarm_threshold can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/antiddosDefaultAlarmThreshold:AntiddosDefaultAlarmThreshold default_alarm_threshold ${instanceType}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack