tencentcloud.AntiddosIpAlarmThresholdConfig
Explore with Pulumi AI
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:
- Alarm
Threshold double - 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 double - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- Instance
Id string - Instance id.
- Instance
Ip string - Instance ip.
- Antiddos
Ip stringAlarm Threshold Config Id - ID of the resource.
- Alarm
Threshold float64 - 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 float64 - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- Instance
Id string - Instance id.
- Instance
Ip string - Instance ip.
- Antiddos
Ip stringAlarm Threshold Config Id - ID of the resource.
- alarm
Threshold Double - 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 Double - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- instance
Id String - Instance id.
- instance
Ip String - Instance ip.
- antiddos
Ip StringAlarm Threshold Config Id - ID of the resource.
- alarm
Threshold number - 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 number - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- instance
Id string - Instance id.
- instance
Ip string - Instance ip.
- antiddos
Ip stringAlarm Threshold Config Id - 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_ stralarm_ threshold_ config_ id - ID of the resource.
- alarm
Threshold Number - 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 Number - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- instance
Id String - Instance id.
- instance
Ip String - Instance ip.
- antiddos
Ip StringAlarm Threshold Config Id - 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.
- Alarm
Threshold double - 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 double - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- Antiddos
Ip stringAlarm Threshold Config Id - ID of the resource.
- Instance
Id string - Instance id.
- Instance
Ip string - Instance ip.
- Alarm
Threshold float64 - 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 float64 - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- Antiddos
Ip stringAlarm Threshold Config Id - ID of the resource.
- Instance
Id string - Instance id.
- Instance
Ip string - Instance ip.
- alarm
Threshold Double - 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 Double - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- antiddos
Ip StringAlarm Threshold Config Id - ID of the resource.
- instance
Id String - Instance id.
- instance
Ip String - Instance ip.
- alarm
Threshold number - 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 number - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- antiddos
Ip stringAlarm Threshold Config Id - ID of the resource.
- instance
Id string - Instance id.
- instance
Ip 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_ stralarm_ threshold_ config_ id - ID of the resource.
- instance_
id str - Instance id.
- instance_
ip str - Instance ip.
- alarm
Threshold Number - 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 Number - Alarm threshold type, value [1 (incoming traffic alarm threshold) 2 (attack cleaning traffic alarm threshold)].
- antiddos
Ip StringAlarm Threshold Config Id - ID of the resource.
- instance
Id String - Instance id.
- instance
Ip 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.