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

tencentcloud.AntiddosIpAlarmThresholdConfig

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 ip_alarm_threshold_config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const ipAlarmThresholdConfig = new tencentcloud.AntiddosIpAlarmThresholdConfig("ipAlarmThresholdConfig", {
        alarmThreshold: 2,
        alarmType: 1,
        instanceId: "bgp-xxxxxx",
        instanceIp: "xxx.xxx.xxx.xxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    ip_alarm_threshold_config = tencentcloud.AntiddosIpAlarmThresholdConfig("ipAlarmThresholdConfig",
        alarm_threshold=2,
        alarm_type=1,
        instance_id="bgp-xxxxxx",
        instance_ip="xxx.xxx.xxx.xxx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewAntiddosIpAlarmThresholdConfig(ctx, "ipAlarmThresholdConfig", &tencentcloud.AntiddosIpAlarmThresholdConfigArgs{
    			AlarmThreshold: pulumi.Float64(2),
    			AlarmType:      pulumi.Float64(1),
    			InstanceId:     pulumi.String("bgp-xxxxxx"),
    			InstanceIp:     pulumi.String("xxx.xxx.xxx.xxx"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ipAlarmThresholdConfig = new Tencentcloud.AntiddosIpAlarmThresholdConfig("ipAlarmThresholdConfig", new()
        {
            AlarmThreshold = 2,
            AlarmType = 1,
            InstanceId = "bgp-xxxxxx",
            InstanceIp = "xxx.xxx.xxx.xxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.AntiddosIpAlarmThresholdConfig;
    import com.pulumi.tencentcloud.AntiddosIpAlarmThresholdConfigArgs;
    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 ipAlarmThresholdConfig = new AntiddosIpAlarmThresholdConfig("ipAlarmThresholdConfig", AntiddosIpAlarmThresholdConfigArgs.builder()
                .alarmThreshold(2)
                .alarmType(1)
                .instanceId("bgp-xxxxxx")
                .instanceIp("xxx.xxx.xxx.xxx")
                .build());
    
        }
    }
    
    resources:
      ipAlarmThresholdConfig:
        type: tencentcloud:AntiddosIpAlarmThresholdConfig
        properties:
          alarmThreshold: 2
          alarmType: 1
          instanceId: bgp-xxxxxx
          instanceIp: xxx.xxx.xxx.xxx
    

    Create AntiddosIpAlarmThresholdConfig Resource

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

    Constructor syntax

    new AntiddosIpAlarmThresholdConfig(name: string, args: AntiddosIpAlarmThresholdConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AntiddosIpAlarmThresholdConfig(resource_name: str,
                                       args: AntiddosIpAlarmThresholdConfigArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def AntiddosIpAlarmThresholdConfig(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       alarm_threshold: Optional[float] = None,
                                       alarm_type: Optional[float] = None,
                                       instance_id: Optional[str] = None,
                                       instance_ip: Optional[str] = None,
                                       antiddos_ip_alarm_threshold_config_id: Optional[str] = None)
    func NewAntiddosIpAlarmThresholdConfig(ctx *Context, name string, args AntiddosIpAlarmThresholdConfigArgs, opts ...ResourceOption) (*AntiddosIpAlarmThresholdConfig, error)
    public AntiddosIpAlarmThresholdConfig(string name, AntiddosIpAlarmThresholdConfigArgs args, CustomResourceOptions? opts = null)
    public AntiddosIpAlarmThresholdConfig(String name, AntiddosIpAlarmThresholdConfigArgs args)
    public AntiddosIpAlarmThresholdConfig(String name, AntiddosIpAlarmThresholdConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:AntiddosIpAlarmThresholdConfig
    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 AntiddosIpAlarmThresholdConfigArgs
    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 AntiddosIpAlarmThresholdConfigArgs
    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 AntiddosIpAlarmThresholdConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AntiddosIpAlarmThresholdConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AntiddosIpAlarmThresholdConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    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)].
    InstanceId string
    Instance id.
    InstanceIp string
    Instance ip.
    AntiddosIpAlarmThresholdConfigId string
    ID of the resource.
    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)].
    InstanceId string
    Instance id.
    InstanceIp string
    Instance ip.
    AntiddosIpAlarmThresholdConfigId string
    ID of the resource.
    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)].
    instanceId String
    Instance id.
    instanceIp String
    Instance ip.
    antiddosIpAlarmThresholdConfigId String
    ID of the resource.
    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)].
    instanceId string
    Instance id.
    instanceIp string
    Instance ip.
    antiddosIpAlarmThresholdConfigId string
    ID of the resource.
    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)].
    instance_id str
    Instance id.
    instance_ip str
    Instance ip.
    antiddos_ip_alarm_threshold_config_id str
    ID of the resource.
    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)].
    instanceId String
    Instance id.
    instanceIp String
    Instance ip.
    antiddosIpAlarmThresholdConfigId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AntiddosIpAlarmThresholdConfig 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 AntiddosIpAlarmThresholdConfig Resource

    Get an existing AntiddosIpAlarmThresholdConfig 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?: AntiddosIpAlarmThresholdConfigState, opts?: CustomResourceOptions): AntiddosIpAlarmThresholdConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_threshold: Optional[float] = None,
            alarm_type: Optional[float] = None,
            antiddos_ip_alarm_threshold_config_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            instance_ip: Optional[str] = None) -> AntiddosIpAlarmThresholdConfig
    func GetAntiddosIpAlarmThresholdConfig(ctx *Context, name string, id IDInput, state *AntiddosIpAlarmThresholdConfigState, opts ...ResourceOption) (*AntiddosIpAlarmThresholdConfig, error)
    public static AntiddosIpAlarmThresholdConfig Get(string name, Input<string> id, AntiddosIpAlarmThresholdConfigState? state, CustomResourceOptions? opts = null)
    public static AntiddosIpAlarmThresholdConfig get(String name, Output<String> id, AntiddosIpAlarmThresholdConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:AntiddosIpAlarmThresholdConfig    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:
    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)].
    AntiddosIpAlarmThresholdConfigId string
    ID of the resource.
    InstanceId string
    Instance id.
    InstanceIp string
    Instance ip.
    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)].
    AntiddosIpAlarmThresholdConfigId string
    ID of the resource.
    InstanceId string
    Instance id.
    InstanceIp string
    Instance ip.
    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)].
    antiddosIpAlarmThresholdConfigId String
    ID of the resource.
    instanceId String
    Instance id.
    instanceIp String
    Instance ip.
    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)].
    antiddosIpAlarmThresholdConfigId string
    ID of the resource.
    instanceId string
    Instance id.
    instanceIp string
    Instance ip.
    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)].
    antiddos_ip_alarm_threshold_config_id str
    ID of the resource.
    instance_id str
    Instance id.
    instance_ip str
    Instance ip.
    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)].
    antiddosIpAlarmThresholdConfigId String
    ID of the resource.
    instanceId String
    Instance id.
    instanceIp String
    Instance ip.

    Import

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

    $ pulumi import tencentcloud:index/antiddosIpAlarmThresholdConfig:AntiddosIpAlarmThresholdConfig ip_alarm_threshold_config ${instanceId}#${instanceIp}#${alarmType}
    

    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