BasicDefenseThreshold

class BasicDefenseThreshold : KotlinCustomResource

Provides a Ddos Basic defense threshold resource. For information about Ddos Basic Antiddos and how to use it, see What is Defense Threshold.

NOTE: Available since v1.168.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EipAddress;
import com.pulumi.alicloud.ecs.EipAddressArgs;
import com.pulumi.alicloud.ddos.BasicDefenseThreshold;
import com.pulumi.alicloud.ddos.BasicDefenseThresholdArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-example");
var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()
.addressName(name)
.isp("BGP")
.internetChargeType("PayByBandwidth")
.paymentType("PayAsYouGo")
.build());
var defaultBasicDefenseThreshold = new BasicDefenseThreshold("defaultBasicDefenseThreshold", BasicDefenseThresholdArgs.builder()
.instanceId(defaultEipAddress.id())
.ddosType("defense")
.instanceType("eip")
.bps(390)
.pps(90000)
.build());
}
}

Import

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

$ pulumi import alicloud:ddos/basicDefenseThreshold:BasicDefenseThreshold example <instance_id>:<instance_type>:<ddos_type>

Properties

Link copied to clipboard
val bps: Output<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.

Link copied to clipboard
val ddosType: Output<String>

The type of the threshold to query. Valid values: defense,blackhole.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

The ID of the instance.

Link copied to clipboard
val instanceType: Output<String>

The instance type of the public IP address asset. Value: ecs,slb,eip.

Link copied to clipboard
val internetIp: Output<String>

The Internet IP address.

Link copied to clipboard
val isAuto: Output<Boolean>

Whether it is the system default threshold. Value:

Link copied to clipboard
val maxBps: Output<Int>

The maximum traffic scrubbing threshold. Unit: Mbit/s.

Link copied to clipboard
val maxPps: Output<Int>

The maximum packet scrubbing threshold. Unit: pps.

Link copied to clipboard
val pps: Output<Int>

The current message number cleaning threshold. Unit: pps.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>