DdosCooInstance

class DdosCooInstance : KotlinCustomResource

Deprecated

alicloud.dns.DdosCooInstance has been deprecated in favor of alicloud.ddos.DdosCooInstance

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 ddoscoo-cn-123456

Properties

Link copied to clipboard
val addressType: Output<String>

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>

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>?

The mitigation plan of the instance. Valid values:

Link copied to clipboard
val baseBandwidth: Output<String>

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>

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>

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

Link copied to clipboard
val functionVersion: Output<String>

The function plan of the instance. Valid values:

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

(Available since v1.212.0) The IP address of the instance.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val normalBandwidth: Output<String>

The clean bandwidth provided by the instance. NOTE: normal_bandwidth is valid only when product_type is set to ddosDip.

Link copied to clipboard
val normalQps: Output<String>

The clean QPS provided by the instance. NOTE: normal_qps is valid only when product_type is set to ddosDip.

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

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>

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>

The mitigation plan of the instance. Valid values:

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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 urn: Output<String>