Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

DdosCooInstance

BGP-Line Anti-DDoS instance resource. “Ddoscoo” is the short term of this product. See What is Anti-DDoS Pro.

NOTE: The product region only support cn-hangzhou.

NOTE: The endpoint of bssopenapi used only support “business.aliyuncs.com” at present.

NOTE: Available in 1.37.0+ .

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var newInstance = new AliCloud.Ddos.DdosCooInstance("newInstance", new AliCloud.Ddos.DdosCooInstanceArgs
        {
            Bandwidth = "30",
            BaseBandwidth = "30",
            DomainCount = "50",
            Period = 1,
            PortCount = "50",
            ProductType = "ddoscoo",
            ServiceBandwidth = "100",
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ddos.NewDdosCooInstance(ctx, "newInstance", &ddos.DdosCooInstanceArgs{
			Bandwidth:        pulumi.String("30"),
			BaseBandwidth:    pulumi.String("30"),
			DomainCount:      pulumi.String("50"),
			Period:           pulumi.Int(1),
			PortCount:        pulumi.String("50"),
			ProductType:      pulumi.String("ddoscoo"),
			ServiceBandwidth: pulumi.String("100"),
		})
		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) {
        var newInstance = new DdosCooInstance("newInstance", DdosCooInstanceArgs.builder()        
            .bandwidth("30")
            .baseBandwidth("30")
            .domainCount("50")
            .period("1")
            .portCount("50")
            .productType("ddoscoo")
            .serviceBandwidth("100")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

new_instance = alicloud.ddos.DdosCooInstance("newInstance",
    bandwidth="30",
    base_bandwidth="30",
    domain_count="50",
    period=1,
    port_count="50",
    product_type="ddoscoo",
    service_bandwidth="100")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const newInstance = new alicloud.ddos.DdosCooInstance("newInstance", {
    bandwidth: "30",
    baseBandwidth: "30",
    domainCount: "50",
    period: 1,
    portCount: "50",
    productType: "ddoscoo",
    serviceBandwidth: "100",
});
resources:
  newInstance:
    type: alicloud:ddos:DdosCooInstance
    properties:
      bandwidth: 30
      baseBandwidth: 30
      domainCount: 50
      period: 1
      portCount: 50
      productType: ddoscoo
      serviceBandwidth: 100

Create DdosCooInstance Resource

new DdosCooInstance(name: string, args: DdosCooInstanceArgs, opts?: CustomResourceOptions);
@overload
def DdosCooInstance(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    bandwidth: Optional[str] = None,
                    base_bandwidth: Optional[str] = None,
                    domain_count: Optional[str] = None,
                    name: Optional[str] = None,
                    period: Optional[int] = None,
                    port_count: Optional[str] = None,
                    product_type: Optional[str] = None,
                    service_bandwidth: Optional[str] = None)
@overload
def DdosCooInstance(resource_name: str,
                    args: DdosCooInstanceArgs,
                    opts: Optional[ResourceOptions] = None)
func NewDdosCooInstance(ctx *Context, name string, args DdosCooInstanceArgs, opts ...ResourceOption) (*DdosCooInstance, error)
public DdosCooInstance(string name, DdosCooInstanceArgs args, CustomResourceOptions? opts = null)
public DdosCooInstance(String name, DdosCooInstanceArgs args)
public DdosCooInstance(String name, DdosCooInstanceArgs args, CustomResourceOptions options)
type: alicloud:ddos:DdosCooInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

DdosCooInstance 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 DdosCooInstance resource accepts the following input properties:

Bandwidth 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.

BaseBandwidth string

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

DomainCount string

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

PortCount string

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

ServiceBandwidth string

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

Name string

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

Period int

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

ProductType string

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
Bandwidth 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.

BaseBandwidth string

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

DomainCount string

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

PortCount string

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

ServiceBandwidth string

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

Name string

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

Period int

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

ProductType string

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
bandwidth 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.

baseBandwidth String

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domainCount String

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

portCount String

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

serviceBandwidth String

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

name String

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

period Integer

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

productType String

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
bandwidth 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.

baseBandwidth string

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domainCount string

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

portCount string

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

serviceBandwidth string

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

name string

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

period number

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

productType string

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
bandwidth str

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.

base_bandwidth str

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domain_count str

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

port_count str

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

service_bandwidth str

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

name str

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

period int

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

product_type str

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
bandwidth 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.

baseBandwidth String

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domainCount String

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

portCount String

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

serviceBandwidth String

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

name String

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

period Number

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

productType String

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DdosCooInstance Resource

Get an existing DdosCooInstance 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?: DdosCooInstanceState, opts?: CustomResourceOptions): DdosCooInstance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bandwidth: Optional[str] = None,
        base_bandwidth: Optional[str] = None,
        domain_count: Optional[str] = None,
        name: Optional[str] = None,
        period: Optional[int] = None,
        port_count: Optional[str] = None,
        product_type: Optional[str] = None,
        service_bandwidth: Optional[str] = None) -> DdosCooInstance
func GetDdosCooInstance(ctx *Context, name string, id IDInput, state *DdosCooInstanceState, opts ...ResourceOption) (*DdosCooInstance, error)
public static DdosCooInstance Get(string name, Input<string> id, DdosCooInstanceState? state, CustomResourceOptions? opts = null)
public static DdosCooInstance get(String name, Output<String> id, DdosCooInstanceState 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:
Bandwidth 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.

BaseBandwidth string

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

DomainCount string

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

Name string

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

Period int

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

PortCount string

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

ProductType string

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
ServiceBandwidth string

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

Bandwidth 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.

BaseBandwidth string

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

DomainCount string

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

Name string

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

Period int

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

PortCount string

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

ProductType string

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
ServiceBandwidth string

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

bandwidth 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.

baseBandwidth String

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domainCount String

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

name String

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

period Integer

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

portCount String

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

productType String

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
serviceBandwidth String

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

bandwidth 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.

baseBandwidth string

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domainCount string

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

name string

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

period number

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

portCount string

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

productType string

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
serviceBandwidth string

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

bandwidth str

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.

base_bandwidth str

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domain_count str

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

name str

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

period int

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

port_count str

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

product_type str

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
service_bandwidth str

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

bandwidth 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.

baseBandwidth String

Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.

domainCount String

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

name String

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

period Number

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

portCount String

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

productType String

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

  • ddoscoo: Only supports domestic account.
  • ddoscoo_intl: Only supports to international account. Default to ddoscoo.
serviceBandwidth String

Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.

Import

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

 $ pulumi import alicloud:ddos/ddosCooInstance:DdosCooInstance example ddoscoo-cn-123456

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.