DdosCooInstanceArgs

data class DdosCooInstanceArgs constructor(val addressType: Output<String>? = null, val bandwidth: Output<String>? = null, val bandwidthMode: Output<String>? = null, val baseBandwidth: Output<String>? = null, val domainCount: Output<String>? = null, val editionSale: Output<String>? = null, val functionVersion: Output<String>? = null, val modifyType: Output<String>? = null, val name: Output<String>? = null, val normalBandwidth: Output<String>? = null, val normalQps: Output<String>? = null, val period: Output<Int>? = null, val portCount: Output<String>? = null, val productPlan: Output<String>? = null, val productType: Output<String>? = null, val serviceBandwidth: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DdosCooInstanceArgs>

Provides a BGP-line Anti-DDoS Pro(DdosCoo) Instance resource. For information about BGP-line Anti-DDoS Pro(DdosCoo) Instance and how to use it, see What is Anti-DDoS Pro Instance.

NOTE: Available since v1.37.0. NOTE: The endpoint of bssopenapi used only support "business.aliyuncs.com" at present. NOTE: From version 1.214.0, if product_type is set to ddoscoo or ddoscoo_intl, the provider region should be set to cn-hangzhou, and if product_type is set to ddosDip, the provider region should be set to ap-southeast-1.

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 _default = new alicloud.ddos.DdosCooInstance("default", {
name: name,
baseBandwidth: "30",
bandwidth: "30",
serviceBandwidth: "100",
portCount: "50",
domainCount: "50",
productType: "ddoscoo",
period: 1,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.ddos.DdosCooInstance("default",
name=name,
base_bandwidth="30",
bandwidth="30",
service_bandwidth="100",
port_count="50",
domain_count="50",
product_type="ddoscoo",
period=1)
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 @default = new AliCloud.Ddos.DdosCooInstance("default", new()
{
Name = name,
BaseBandwidth = "30",
Bandwidth = "30",
ServiceBandwidth = "100",
PortCount = "50",
DomainCount = "50",
ProductType = "ddoscoo",
Period = 1,
});
});
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.NewDdosCooInstance(ctx, "default", &ddos.DdosCooInstanceArgs{
Name: pulumi.String(name),
BaseBandwidth: pulumi.String("30"),
Bandwidth: pulumi.String("30"),
ServiceBandwidth: pulumi.String("100"),
PortCount: pulumi.String("50"),
DomainCount: pulumi.String("50"),
ProductType: pulumi.String("ddoscoo"),
Period: pulumi.Int(1),
})
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.DdosCooInstance;
import com.pulumi.alicloud.ddos.DdosCooInstanceArgs;
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 default_ = new DdosCooInstance("default", DdosCooInstanceArgs.builder()
.name(name)
.baseBandwidth("30")
.bandwidth("30")
.serviceBandwidth("100")
.portCount("50")
.domainCount("50")
.productType("ddoscoo")
.period(1)
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
default:
type: alicloud:ddos:DdosCooInstance
properties:
name: ${name}
baseBandwidth: '30'
bandwidth: '30'
serviceBandwidth: '100'
portCount: '50'
domainCount: '50'
productType: ddoscoo
period: '1'

Import

DdosCoo Instance can be imported using the id, e.g.

$ pulumi import alicloud:dns/ddosCooInstance:DdosCooInstance example <id>

Constructors

Link copied to clipboard
constructor(addressType: Output<String>? = null, bandwidth: Output<String>? = null, bandwidthMode: Output<String>? = null, baseBandwidth: Output<String>? = null, domainCount: Output<String>? = null, editionSale: Output<String>? = null, functionVersion: Output<String>? = null, modifyType: Output<String>? = null, name: Output<String>? = null, normalBandwidth: Output<String>? = null, normalQps: Output<String>? = null, period: Output<Int>? = null, portCount: Output<String>? = null, productPlan: Output<String>? = null, productType: Output<String>? = null, serviceBandwidth: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The IP version of the IP address. Default value: Ipv4. Valid values: Ipv4, Ipv6. NOTE: address_type is valid only when product_type is set to ddoscoo or ddoscoo_intl.

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

Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade. NOTE: bandwidth is valid only when product_type is set to ddoscoo or ddoscoo_intl.

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

The mitigation plan of the instance. Valid values:

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

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade. NOTE: base_bandwidth is valid only when product_type is set to ddoscoo or ddoscoo_intl.

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

Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.

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

The mitigation plan of the instance. Default value: coop. Valid values:

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

The function plan of the instance. Valid values:

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

The type of modification. Valid values: UPGRADE, DOWNGRADE.

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

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

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

The clean bandwidth provided by the instance. NOTE: normal_bandwidth is valid only when product_type is set to ddosDip. From version 1.248.0, normal_bandwidth can be modified.

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

The clean QPS provided by the instance. NOTE: normal_qps is valid only when product_type is set to ddosDip. From version 1.248.0, normal_qps can be modified.

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

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

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

Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.

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

The mitigation plan of the instance. Valid values:

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

The product type for purchasing DDOSCOO instances used to differ different account type. Default value: ddoscoo. Valid values:

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

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade. NOTE: service_bandwidth is valid only when product_type is set to ddoscoo or ddoscoo_intl.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

Functions

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