alicloud.ddos.DdosCooInstance
Explore with Pulumi AI
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 toddoscoo
orddoscoo_intl
, the providerregion
should be set tocn-hangzhou
, and ifproduct_type
is set toddosDip
, the providerregion
should be set toap-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)
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
})
}
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 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'
Create DdosCooInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdosCooInstance(name: string, args: DdosCooInstanceArgs, opts?: CustomResourceOptions);
@overload
def DdosCooInstance(resource_name: str,
args: DdosCooInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdosCooInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_count: Optional[str] = None,
port_count: Optional[str] = None,
function_version: Optional[str] = None,
base_bandwidth: Optional[str] = None,
bandwidth_mode: Optional[str] = None,
edition_sale: Optional[str] = None,
address_type: Optional[str] = None,
name: Optional[str] = None,
normal_bandwidth: Optional[str] = None,
normal_qps: Optional[str] = None,
period: Optional[int] = None,
bandwidth: Optional[str] = None,
product_plan: Optional[str] = None,
product_type: Optional[str] = None,
service_bandwidth: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var ddosCooInstanceResource = new AliCloud.Ddos.DdosCooInstance("ddosCooInstanceResource", new()
{
DomainCount = "string",
PortCount = "string",
FunctionVersion = "string",
BaseBandwidth = "string",
BandwidthMode = "string",
EditionSale = "string",
AddressType = "string",
Name = "string",
NormalBandwidth = "string",
NormalQps = "string",
Period = 0,
Bandwidth = "string",
ProductPlan = "string",
ProductType = "string",
ServiceBandwidth = "string",
});
example, err := ddos.NewDdosCooInstance(ctx, "ddosCooInstanceResource", &ddos.DdosCooInstanceArgs{
DomainCount: pulumi.String("string"),
PortCount: pulumi.String("string"),
FunctionVersion: pulumi.String("string"),
BaseBandwidth: pulumi.String("string"),
BandwidthMode: pulumi.String("string"),
EditionSale: pulumi.String("string"),
AddressType: pulumi.String("string"),
Name: pulumi.String("string"),
NormalBandwidth: pulumi.String("string"),
NormalQps: pulumi.String("string"),
Period: pulumi.Int(0),
Bandwidth: pulumi.String("string"),
ProductPlan: pulumi.String("string"),
ProductType: pulumi.String("string"),
ServiceBandwidth: pulumi.String("string"),
})
var ddosCooInstanceResource = new DdosCooInstance("ddosCooInstanceResource", DdosCooInstanceArgs.builder()
.domainCount("string")
.portCount("string")
.functionVersion("string")
.baseBandwidth("string")
.bandwidthMode("string")
.editionSale("string")
.addressType("string")
.name("string")
.normalBandwidth("string")
.normalQps("string")
.period(0)
.bandwidth("string")
.productPlan("string")
.productType("string")
.serviceBandwidth("string")
.build());
ddos_coo_instance_resource = alicloud.ddos.DdosCooInstance("ddosCooInstanceResource",
domain_count="string",
port_count="string",
function_version="string",
base_bandwidth="string",
bandwidth_mode="string",
edition_sale="string",
address_type="string",
name="string",
normal_bandwidth="string",
normal_qps="string",
period=0,
bandwidth="string",
product_plan="string",
product_type="string",
service_bandwidth="string")
const ddosCooInstanceResource = new alicloud.ddos.DdosCooInstance("ddosCooInstanceResource", {
domainCount: "string",
portCount: "string",
functionVersion: "string",
baseBandwidth: "string",
bandwidthMode: "string",
editionSale: "string",
addressType: "string",
name: "string",
normalBandwidth: "string",
normalQps: "string",
period: 0,
bandwidth: "string",
productPlan: "string",
productType: "string",
serviceBandwidth: "string",
});
type: alicloud:ddos:DdosCooInstance
properties:
addressType: string
bandwidth: string
bandwidthMode: string
baseBandwidth: string
domainCount: string
editionSale: string
functionVersion: string
name: string
normalBandwidth: string
normalQps: string
period: 0
portCount: string
productPlan: string
productType: string
serviceBandwidth: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DdosCooInstance resource accepts the following input properties:
- Domain
Count string - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Port
Count string - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Address
Type string - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Bandwidth
Mode string - The mitigation plan of the instance. Valid values:
- Base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Edition
Sale string - The mitigation plan of the instance. Default value:
coop
. Valid values: - Function
Version string - The function plan of the instance. Valid values:
- Name string
- Name of the instance. This name can have a string of
1
to64
characters. - Normal
Bandwidth string - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - Normal
Qps string - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - Period 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 modifyperiod
. - Product
Plan string - The mitigation plan of the instance. Valid values:
- Product
Type string - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - Service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- Domain
Count string - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Port
Count string - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Address
Type string - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Bandwidth
Mode string - The mitigation plan of the instance. Valid values:
- Base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Edition
Sale string - The mitigation plan of the instance. Default value:
coop
. Valid values: - Function
Version string - The function plan of the instance. Valid values:
- Name string
- Name of the instance. This name can have a string of
1
to64
characters. - Normal
Bandwidth string - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - Normal
Qps string - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - Period 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 modifyperiod
. - Product
Plan string - The mitigation plan of the instance. Valid values:
- Product
Type string - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - Service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- domain
Count String - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- port
Count String - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- address
Type String - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth
Mode String - The mitigation plan of the instance. Valid values:
- base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - edition
Sale String - The mitigation plan of the instance. Default value:
coop
. Valid values: - function
Version String - The function plan of the instance. Valid values:
- name String
- Name of the instance. This name can have a string of
1
to64
characters. - normal
Bandwidth String - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal
Qps String - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period Integer
- 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 modifyperiod
. - product
Plan String - The mitigation plan of the instance. Valid values:
- product
Type String - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- domain
Count string - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- port
Count string - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- address
Type string - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth
Mode string - The mitigation plan of the instance. Valid values:
- base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - edition
Sale string - The mitigation plan of the instance. Default value:
coop
. Valid values: - function
Version string - The function plan of the instance. Valid values:
- name string
- Name of the instance. This name can have a string of
1
to64
characters. - normal
Bandwidth string - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal
Qps string - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period number
- 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 modifyperiod
. - product
Plan string - The mitigation plan of the instance. Valid values:
- product
Type string - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- 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.
- address_
type str - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth_
mode str - The mitigation plan of the instance. Valid values:
- 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. NOTE:base_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - edition_
sale str - The mitigation plan of the instance. Default value:
coop
. Valid values: - function_
version str - The function plan of the instance. Valid values:
- name str
- Name of the instance. This name can have a string of
1
to64
characters. - normal_
bandwidth str - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal_
qps str - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period 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 modifyperiod
. - product_
plan str - The mitigation plan of the instance. Valid values:
- product_
type str - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- domain
Count String - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- port
Count String - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- address
Type String - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth
Mode String - The mitigation plan of the instance. Valid values:
- base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - edition
Sale String - The mitigation plan of the instance. Default value:
coop
. Valid values: - function
Version String - The function plan of the instance. Valid values:
- name String
- Name of the instance. This name can have a string of
1
to64
characters. - normal
Bandwidth String - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal
Qps String - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period Number
- 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 modifyperiod
. - product
Plan String - The mitigation plan of the instance. Valid values:
- product
Type String - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DdosCooInstance resource produces the following output properties:
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,
address_type: Optional[str] = None,
bandwidth: Optional[str] = None,
bandwidth_mode: Optional[str] = None,
base_bandwidth: Optional[str] = None,
domain_count: Optional[str] = None,
edition_sale: Optional[str] = None,
function_version: Optional[str] = None,
ip: Optional[str] = None,
name: Optional[str] = None,
normal_bandwidth: Optional[str] = None,
normal_qps: Optional[str] = None,
period: Optional[int] = None,
port_count: Optional[str] = None,
product_plan: 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.
- Address
Type string - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Bandwidth
Mode string - The mitigation plan of the instance. Valid values:
- Base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Domain
Count string - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Edition
Sale string - The mitigation plan of the instance. Default value:
coop
. Valid values: - Function
Version string - The function plan of the instance. Valid values:
- Ip string
- (Available since v1.212.0) The IP address of the instance.
- Name string
- Name of the instance. This name can have a string of
1
to64
characters. - Normal
Bandwidth string - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - Normal
Qps string - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - Period 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 modifyperiod
. - Port
Count string - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Product
Plan string - The mitigation plan of the instance. Valid values:
- Product
Type string - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - Service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- Address
Type string - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Bandwidth
Mode string - The mitigation plan of the instance. Valid values:
- Base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - Domain
Count string - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Edition
Sale string - The mitigation plan of the instance. Default value:
coop
. Valid values: - Function
Version string - The function plan of the instance. Valid values:
- Ip string
- (Available since v1.212.0) The IP address of the instance.
- Name string
- Name of the instance. This name can have a string of
1
to64
characters. - Normal
Bandwidth string - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - Normal
Qps string - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - Period 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 modifyperiod
. - Port
Count string - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- Product
Plan string - The mitigation plan of the instance. Valid values:
- Product
Type string - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - Service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- address
Type String - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth
Mode String - The mitigation plan of the instance. Valid values:
- base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - domain
Count String - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- edition
Sale String - The mitigation plan of the instance. Default value:
coop
. Valid values: - function
Version String - The function plan of the instance. Valid values:
- ip String
- (Available since v1.212.0) The IP address of the instance.
- name String
- Name of the instance. This name can have a string of
1
to64
characters. - normal
Bandwidth String - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal
Qps String - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period Integer
- 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 modifyperiod
. - port
Count String - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- product
Plan String - The mitigation plan of the instance. Valid values:
- product
Type String - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- address
Type string - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth
Mode string - The mitigation plan of the instance. Valid values:
- base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - domain
Count string - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- edition
Sale string - The mitigation plan of the instance. Default value:
coop
. Valid values: - function
Version string - The function plan of the instance. Valid values:
- ip string
- (Available since v1.212.0) The IP address of the instance.
- name string
- Name of the instance. This name can have a string of
1
to64
characters. - normal
Bandwidth string - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal
Qps string - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period number
- 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 modifyperiod
. - port
Count string - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- product
Plan string - The mitigation plan of the instance. Valid values:
- product
Type string - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- address_
type str - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth_
mode str - The mitigation plan of the instance. Valid values:
- 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. NOTE:base_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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.
- edition_
sale str - The mitigation plan of the instance. Default value:
coop
. Valid values: - function_
version str - The function plan of the instance. Valid values:
- ip str
- (Available since v1.212.0) The IP address of the instance.
- name str
- Name of the instance. This name can have a string of
1
to64
characters. - normal_
bandwidth str - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal_
qps str - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period 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 modifyperiod
. - 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_
plan str - The mitigation plan of the instance. Valid values:
- product_
type str - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
- address
Type String - The IP version of the IP address. Default value:
Ipv4
. Valid values:Ipv4
,Ipv6
. NOTE:address_type
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - 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. NOTE:bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
. - bandwidth
Mode String - The mitigation plan of the instance. Valid values:
- base
Bandwidth 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 whenproduct_type
is set toddoscoo
orddoscoo_intl
. - domain
Count String - Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- edition
Sale String - The mitigation plan of the instance. Default value:
coop
. Valid values: - function
Version String - The function plan of the instance. Valid values:
- ip String
- (Available since v1.212.0) The IP address of the instance.
- name String
- Name of the instance. This name can have a string of
1
to64
characters. - normal
Bandwidth String - The clean bandwidth provided by the instance. NOTE:
normal_bandwidth
is valid only whenproduct_type
is set toddosDip
. - normal
Qps String - The clean QPS provided by the instance. NOTE:
normal_qps
is valid only whenproduct_type
is set toddosDip
. - period Number
- 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 modifyperiod
. - port
Count String - Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
- product
Plan String - The mitigation plan of the instance. Valid values:
- product
Type String - The product type for purchasing DDOSCOO instances used to differ different account type. Default value:
ddoscoo
. Valid values: - service
Bandwidth 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. NOTE:
service_bandwidth
is valid only whenproduct_type
is set toddoscoo
orddoscoo_intl
.
Import
DdosCoo instance can be imported using the id, e.g.
$ pulumi import alicloud:ddos/ddosCooInstance:DdosCooInstance example ddoscoo-cn-123456
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.