DdosBgpInstanceArgs

data class DdosBgpInstanceArgs constructor(val bandwidth: Output<Int>? = null, val baseBandwidth: Output<Int>? = null, val ipCount: Output<Int>? = null, val ipType: Output<String>? = null, val name: Output<String>? = null, val normalBandwidth: Output<Int>? = null, val period: Output<Int>? = null, val type: Output<String>? = null) : ConvertibleToJava<DdosBgpInstanceArgs>

Anti-DDoS Advanced instance resource. "Ddosbgp" is the short term of this product.

NOTE: Available since v1.183.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const instance = new alicloud.ddos.DdosBgpInstance("instance", {
name: name,
baseBandwidth: 20,
bandwidth: -1,
ipCount: 100,
ipType: "IPv4",
normalBandwidth: 100,
type: "Enterprise",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
instance = alicloud.ddos.DdosBgpInstance("instance",
name=name,
base_bandwidth=20,
bandwidth=-1,
ip_count=100,
ip_type="IPv4",
normal_bandwidth=100,
type="Enterprise")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var instance = new AliCloud.Ddos.DdosBgpInstance("instance", new()
{
Name = name,
BaseBandwidth = 20,
Bandwidth = -1,
IpCount = 100,
IpType = "IPv4",
NormalBandwidth = 100,
Type = "Enterprise",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := ddos.NewDdosBgpInstance(ctx, "instance", &ddos.DdosBgpInstanceArgs{
Name: pulumi.String(name),
BaseBandwidth: pulumi.Int(20),
Bandwidth: pulumi.Int(-1),
IpCount: pulumi.Int(100),
IpType: pulumi.String("IPv4"),
NormalBandwidth: pulumi.Int(100),
Type: pulumi.String("Enterprise"),
})
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.ddos.DdosBgpInstance;
import com.pulumi.alicloud.ddos.DdosBgpInstanceArgs;
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 instance = new DdosBgpInstance("instance", DdosBgpInstanceArgs.builder()
.name(name)
.baseBandwidth(20)
.bandwidth(-1)
.ipCount(100)
.ipType("IPv4")
.normalBandwidth(100)
.type("Enterprise")
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
instance:
type: alicloud:ddos:DdosBgpInstance
properties:
name: ${name}
baseBandwidth: 20
bandwidth: -1
ipCount: 100
ipType: IPv4
normalBandwidth: 100
type: Enterprise

Import

Ddosbgp instance can be imported using the id, e.g.

$ pulumi import alicloud:dns/ddosBgpInstance:DdosBgpInstance example ddosbgp-abc123456

Constructors

Link copied to clipboard
constructor(bandwidth: Output<Int>? = null, baseBandwidth: Output<Int>? = null, ipCount: Output<Int>? = null, ipType: Output<String>? = null, name: Output<String>? = null, normalBandwidth: Output<Int>? = null, period: Output<Int>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val bandwidth: Output<Int>? = null

Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.

Link copied to clipboard
val baseBandwidth: Output<Int>? = null

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

Link copied to clipboard
val ipCount: Output<Int>? = null

IP count of the instance. Valid values: 100.

Link copied to clipboard
val ipType: Output<String>? = null

IP version of the instance. Valid values: IPv4,IPv6.

Link copied to clipboard
val name: Output<String>? = null

Name of the instance. This name can have a string of 1 to 63 characters.

Link copied to clipboard
val normalBandwidth: Output<Int>? = null

Normal defend bandwidth of the instance. The unit is Gbps.

Link copied to clipboard
val period: Output<Int>? = null

The duration that you will buy Ddosbgp instance (in month). Valid values: 1~9, 12, 24, 36. Default to 12. At present, the provider does not support modify "period".

Link copied to clipboard
val type: Output<String>? = null

Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise

Functions

Link copied to clipboard
open override fun toJava(): DdosBgpInstanceArgs