alicloud logo
Alibaba Cloud v3.38.0, Jun 2 23

alicloud.ddos.BasicThreshold

Explore with Pulumi AI

Provides a Ddos Basic Threshold resource.

For information about Ddos Basic Threshold and how to use it, see What is Threshold.

NOTE: Available in v1.183.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var defaultZones = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "Instance",
    });

    var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
    {
        AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        CpuCoreCount = 1,
        MemorySize = 2,
    });

    var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
    {
        NameRegex = "default-NODELETING",
    });

    var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
    {
        VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
        ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
    });

    var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
    {
        Description = "New security group",
        VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
    });

    var defaultImages = AliCloud.Ecs.GetImages.Invoke(new()
    {
        Owners = "system",
        NameRegex = "^centos_8",
        MostRecent = true,
    });

    var defaultInstance = new AliCloud.Ecs.Instance("defaultInstance", new()
    {
        AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        InstanceName = @var.Name,
        HostName = "tf-testAcc",
        InternetMaxBandwidthOut = 10,
        ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
        InstanceType = defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
        SecurityGroups = new[]
        {
            defaultSecurityGroup.Id,
        },
        VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
    });

    var example = new AliCloud.Ddos.BasicThreshold("example", new()
    {
        Pps = 60000,
        Bps = 100,
        InternetIp = defaultInstance.PublicIp,
        InstanceId = defaultInstance.Id,
        InstanceType = "ecs",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Instance"),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Zones[0].Id),
		}, nil)
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
			Description: pulumi.String("New security group"),
			VpcId:       *pulumi.String(defaultNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			Owners:     pulumi.StringRef("system"),
			NameRegex:  pulumi.StringRef("^centos_8"),
			MostRecent: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{
			AvailabilityZone:        *pulumi.String(defaultZones.Zones[0].Id),
			InstanceName:            pulumi.Any(_var.Name),
			HostName:                pulumi.String("tf-testAcc"),
			InternetMaxBandwidthOut: pulumi.Int(10),
			ImageId:                 *pulumi.String(defaultImages.Images[0].Id),
			InstanceType:            *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id),
			SecurityGroups: pulumi.StringArray{
				defaultSecurityGroup.ID(),
			},
			VswitchId: *pulumi.String(defaultSwitches.Ids[0]),
		})
		if err != nil {
			return err
		}
		_, err = ddos.NewBasicThreshold(ctx, "example", &ddos.BasicThresholdArgs{
			Pps:          pulumi.Int(60000),
			Bps:          pulumi.Int(100),
			InternetIp:   defaultInstance.PublicIp,
			InstanceId:   defaultInstance.ID(),
			InstanceType: pulumi.String("ecs"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
import com.pulumi.alicloud.ecs.Instance;
import com.pulumi.alicloud.ecs.InstanceArgs;
import com.pulumi.alicloud.ddos.BasicThreshold;
import com.pulumi.alicloud.ddos.BasicThresholdArgs;
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) {
        final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("Instance")
            .build());

        final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
            .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .cpuCoreCount(1)
            .memorySize(2)
            .build());

        final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("default-NODELETING")
            .build());

        final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
            .description("New security group")
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .build());

        final var defaultImages = EcsFunctions.getImages(GetImagesArgs.builder()
            .owners("system")
            .nameRegex("^centos_8")
            .mostRecent(true)
            .build());

        var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
            .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .instanceName(var_.name())
            .hostName("tf-testAcc")
            .internetMaxBandwidthOut(10)
            .imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
            .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
            .securityGroups(defaultSecurityGroup.id())
            .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
            .build());

        var example = new BasicThreshold("example", BasicThresholdArgs.builder()        
            .pps(60000)
            .bps(100)
            .internetIp(defaultInstance.publicIp())
            .instanceId(defaultInstance.id())
            .instanceType("ecs")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default_zones = alicloud.get_zones(available_resource_creation="Instance")
default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
    cpu_core_count=1,
    memory_size=2)
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
    zone_id=default_zones.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup",
    description="New security group",
    vpc_id=default_networks.ids[0])
default_images = alicloud.ecs.get_images(owners="system",
    name_regex="^centos_8",
    most_recent=True)
default_instance = alicloud.ecs.Instance("defaultInstance",
    availability_zone=default_zones.zones[0].id,
    instance_name=var["name"],
    host_name="tf-testAcc",
    internet_max_bandwidth_out=10,
    image_id=default_images.images[0].id,
    instance_type=default_instance_types.instance_types[0].id,
    security_groups=[default_security_group.id],
    vswitch_id=default_switches.ids[0])
example = alicloud.ddos.BasicThreshold("example",
    pps=60000,
    bps=100,
    internet_ip=default_instance.public_ip,
    instance_id=default_instance.id,
    instance_type="ecs")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultZones = alicloud.getZones({
    availableResourceCreation: "Instance",
});
const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
    availabilityZone: defaultZones.zones?.[0]?.id,
    cpuCoreCount: 1,
    memorySize: 2,
}));
const defaultNetworks = alicloud.vpc.getNetworks({
    nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
    vpcId: defaultNetworks.ids?.[0],
    zoneId: defaultZones.zones?.[0]?.id,
}));
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {
    description: "New security group",
    vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
});
const defaultImages = alicloud.ecs.getImages({
    owners: "system",
    nameRegex: "^centos_8",
    mostRecent: true,
});
const defaultInstance = new alicloud.ecs.Instance("defaultInstance", {
    availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    instanceName: _var.name,
    hostName: "tf-testAcc",
    internetMaxBandwidthOut: 10,
    imageId: defaultImages.then(defaultImages => defaultImages.images?.[0]?.id),
    instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id),
    securityGroups: [defaultSecurityGroup.id],
    vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
});
const example = new alicloud.ddos.BasicThreshold("example", {
    pps: 60000,
    bps: 100,
    internetIp: defaultInstance.publicIp,
    instanceId: defaultInstance.id,
    instanceType: "ecs",
});
resources:
  defaultSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    properties:
      description: New security group
      vpcId: ${defaultNetworks.ids[0]}
  defaultInstance:
    type: alicloud:ecs:Instance
    properties:
      availabilityZone: ${defaultZones.zones[0].id}
      instanceName: ${var.name}
      hostName: tf-testAcc
      internetMaxBandwidthOut: 10
      imageId: ${defaultImages.images[0].id}
      instanceType: ${defaultInstanceTypes.instanceTypes[0].id}
      securityGroups:
        - ${defaultSecurityGroup.id}
      vswitchId: ${defaultSwitches.ids[0]}
  example:
    type: alicloud:ddos:BasicThreshold
    properties:
      pps: 60000
      bps: 100
      internetIp: ${defaultInstance.publicIp}
      instanceId: ${defaultInstance.id}
      instanceType: ecs
variables:
  defaultZones:
    fn::invoke:
      Function: alicloud:getZones
      Arguments:
        availableResourceCreation: Instance
  defaultInstanceTypes:
    fn::invoke:
      Function: alicloud:ecs:getInstanceTypes
      Arguments:
        availabilityZone: ${defaultZones.zones[0].id}
        cpuCoreCount: 1
        memorySize: 2
  defaultNetworks:
    fn::invoke:
      Function: alicloud:vpc:getNetworks
      Arguments:
        nameRegex: default-NODELETING
  defaultSwitches:
    fn::invoke:
      Function: alicloud:vpc:getSwitches
      Arguments:
        vpcId: ${defaultNetworks.ids[0]}
        zoneId: ${defaultZones.zones[0].id}
  defaultImages:
    fn::invoke:
      Function: alicloud:ecs:getImages
      Arguments:
        owners: system
        nameRegex: ^centos_8
        mostRecent: true

Create BasicThreshold Resource

new BasicThreshold(name: string, args: BasicThresholdArgs, opts?: CustomResourceOptions);
@overload
def BasicThreshold(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   bps: Optional[int] = None,
                   instance_id: Optional[str] = None,
                   instance_type: Optional[str] = None,
                   internet_ip: Optional[str] = None,
                   pps: Optional[int] = None)
@overload
def BasicThreshold(resource_name: str,
                   args: BasicThresholdArgs,
                   opts: Optional[ResourceOptions] = None)
func NewBasicThreshold(ctx *Context, name string, args BasicThresholdArgs, opts ...ResourceOption) (*BasicThreshold, error)
public BasicThreshold(string name, BasicThresholdArgs args, CustomResourceOptions? opts = null)
public BasicThreshold(String name, BasicThresholdArgs args)
public BasicThreshold(String name, BasicThresholdArgs args, CustomResourceOptions options)
type: alicloud:ddos:BasicThreshold
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BasicThresholdArgs
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 BasicThresholdArgs
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 BasicThresholdArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BasicThresholdArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BasicThresholdArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BasicThreshold Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BasicThreshold resource accepts the following input properties:

Bps int

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

InstanceId string

The ID of the instance.

InstanceType string

The type of the Instance. Valid values: ecs,slb,eip.

InternetIp string

The IP address of the public IP address asset.

Pps int

The current message number cleaning threshold. Unit: pps.

Bps int

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

InstanceId string

The ID of the instance.

InstanceType string

The type of the Instance. Valid values: ecs,slb,eip.

InternetIp string

The IP address of the public IP address asset.

Pps int

The current message number cleaning threshold. Unit: pps.

bps Integer

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instanceId String

The ID of the instance.

instanceType String

The type of the Instance. Valid values: ecs,slb,eip.

internetIp String

The IP address of the public IP address asset.

pps Integer

The current message number cleaning threshold. Unit: pps.

bps number

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instanceId string

The ID of the instance.

instanceType string

The type of the Instance. Valid values: ecs,slb,eip.

internetIp string

The IP address of the public IP address asset.

pps number

The current message number cleaning threshold. Unit: pps.

bps int

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instance_id str

The ID of the instance.

instance_type str

The type of the Instance. Valid values: ecs,slb,eip.

internet_ip str

The IP address of the public IP address asset.

pps int

The current message number cleaning threshold. Unit: pps.

bps Number

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instanceId String

The ID of the instance.

instanceType String

The type of the Instance. Valid values: ecs,slb,eip.

internetIp String

The IP address of the public IP address asset.

pps Number

The current message number cleaning threshold. Unit: pps.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

MaxBps int

Maximum flow cleaning threshold. Unit: Mbps.

MaxPps int

The maximum number of messages cleaning threshold. Unit: pps.

Id string

The provider-assigned unique ID for this managed resource.

MaxBps int

Maximum flow cleaning threshold. Unit: Mbps.

MaxPps int

The maximum number of messages cleaning threshold. Unit: pps.

id String

The provider-assigned unique ID for this managed resource.

maxBps Integer

Maximum flow cleaning threshold. Unit: Mbps.

maxPps Integer

The maximum number of messages cleaning threshold. Unit: pps.

id string

The provider-assigned unique ID for this managed resource.

maxBps number

Maximum flow cleaning threshold. Unit: Mbps.

maxPps number

The maximum number of messages cleaning threshold. Unit: pps.

id str

The provider-assigned unique ID for this managed resource.

max_bps int

Maximum flow cleaning threshold. Unit: Mbps.

max_pps int

The maximum number of messages cleaning threshold. Unit: pps.

id String

The provider-assigned unique ID for this managed resource.

maxBps Number

Maximum flow cleaning threshold. Unit: Mbps.

maxPps Number

The maximum number of messages cleaning threshold. Unit: pps.

Look up Existing BasicThreshold Resource

Get an existing BasicThreshold 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?: BasicThresholdState, opts?: CustomResourceOptions): BasicThreshold
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bps: Optional[int] = None,
        instance_id: Optional[str] = None,
        instance_type: Optional[str] = None,
        internet_ip: Optional[str] = None,
        max_bps: Optional[int] = None,
        max_pps: Optional[int] = None,
        pps: Optional[int] = None) -> BasicThreshold
func GetBasicThreshold(ctx *Context, name string, id IDInput, state *BasicThresholdState, opts ...ResourceOption) (*BasicThreshold, error)
public static BasicThreshold Get(string name, Input<string> id, BasicThresholdState? state, CustomResourceOptions? opts = null)
public static BasicThreshold get(String name, Output<String> id, BasicThresholdState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
Bps int

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

InstanceId string

The ID of the instance.

InstanceType string

The type of the Instance. Valid values: ecs,slb,eip.

InternetIp string

The IP address of the public IP address asset.

MaxBps int

Maximum flow cleaning threshold. Unit: Mbps.

MaxPps int

The maximum number of messages cleaning threshold. Unit: pps.

Pps int

The current message number cleaning threshold. Unit: pps.

Bps int

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

InstanceId string

The ID of the instance.

InstanceType string

The type of the Instance. Valid values: ecs,slb,eip.

InternetIp string

The IP address of the public IP address asset.

MaxBps int

Maximum flow cleaning threshold. Unit: Mbps.

MaxPps int

The maximum number of messages cleaning threshold. Unit: pps.

Pps int

The current message number cleaning threshold. Unit: pps.

bps Integer

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instanceId String

The ID of the instance.

instanceType String

The type of the Instance. Valid values: ecs,slb,eip.

internetIp String

The IP address of the public IP address asset.

maxBps Integer

Maximum flow cleaning threshold. Unit: Mbps.

maxPps Integer

The maximum number of messages cleaning threshold. Unit: pps.

pps Integer

The current message number cleaning threshold. Unit: pps.

bps number

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instanceId string

The ID of the instance.

instanceType string

The type of the Instance. Valid values: ecs,slb,eip.

internetIp string

The IP address of the public IP address asset.

maxBps number

Maximum flow cleaning threshold. Unit: Mbps.

maxPps number

The maximum number of messages cleaning threshold. Unit: pps.

pps number

The current message number cleaning threshold. Unit: pps.

bps int

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instance_id str

The ID of the instance.

instance_type str

The type of the Instance. Valid values: ecs,slb,eip.

internet_ip str

The IP address of the public IP address asset.

max_bps int

Maximum flow cleaning threshold. Unit: Mbps.

max_pps int

The maximum number of messages cleaning threshold. Unit: pps.

pps int

The current message number cleaning threshold. Unit: pps.

bps Number

Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.

instanceId String

The ID of the instance.

instanceType String

The type of the Instance. Valid values: ecs,slb,eip.

internetIp String

The IP address of the public IP address asset.

maxBps Number

Maximum flow cleaning threshold. Unit: Mbps.

maxPps Number

The maximum number of messages cleaning threshold. Unit: pps.

pps Number

The current message number cleaning threshold. Unit: pps.

Import

Ddos Basic Threshold can be imported using the id, e.g.

 $ pulumi import alicloud:ddos/basicThreshold:BasicThreshold example <instance_type>:<instance_id>:<internet_ip>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.