This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.
ddos¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.
- class
pulumi_alicloud.ddos.AwaitableGetDdosBgpInstancesResult(id=None, ids=None, instances=None, name_regex=None, names=None, output_file=None)¶
- class
pulumi_alicloud.ddos.AwaitableGetDdosCooInstancesResult(id=None, ids=None, instances=None, name_regex=None, names=None, output_file=None)¶
- class
pulumi_alicloud.ddos.DdosBgpInstance(resource_name, opts=None, bandwidth=None, base_bandwidth=None, ip_count=None, ip_type=None, name=None, period=None, type=None, __props__=None, __name__=None, __opts__=None)¶ Anti-DDoS Advanced instance resource. “Ddosbgp” is the short term of this product.
NOTE: The endpoint of bssopenapi used only support “business.aliyuncs.com” at present.
NOTE: Available in 1.57.0+ .
import pulumi import pulumi_alicloud as alicloud instance = alicloud.ddos.DdosBgpInstance("instance", bandwidth="201", base_bandwidth="20", ip_count="100", ip_type="IPv4")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth (pulumi.Input[float]) – 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.
base_bandwidth (pulumi.Input[float]) – Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to
20.ip_count (pulumi.Input[float]) – IP count of the instance. Valid values: 100.
ip_type (pulumi.Input[str]) – IP version of the instance. Valid values: IPv4,IPv6.
name (pulumi.Input[str]) – Name of the instance. This name can have a string of 1 to 63 characters.
period (pulumi.Input[float]) – 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”.
type (pulumi.Input[str]) – Type of the instance. Valid values: Enterprise,Professional. Default to
Enterprise
bandwidth: pulumi.Output[float] = None¶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.
base_bandwidth: pulumi.Output[float] = None¶Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to
20.
ip_count: pulumi.Output[float] = None¶IP count of the instance. Valid values: 100.
ip_type: pulumi.Output[str] = None¶IP version of the instance. Valid values: IPv4,IPv6.
name: pulumi.Output[str] = None¶Name of the instance. This name can have a string of 1 to 63 characters.
period: pulumi.Output[float] = None¶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”.
type: pulumi.Output[str] = None¶Type of the instance. Valid values: Enterprise,Professional. Default to
Enterprise
- static
get(resource_name, id, opts=None, bandwidth=None, base_bandwidth=None, ip_count=None, ip_type=None, name=None, period=None, type=None)¶ Get an existing DdosBgpInstance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth (pulumi.Input[float]) – 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.
base_bandwidth (pulumi.Input[float]) – Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to
20.ip_count (pulumi.Input[float]) – IP count of the instance. Valid values: 100.
ip_type (pulumi.Input[str]) – IP version of the instance. Valid values: IPv4,IPv6.
name (pulumi.Input[str]) – Name of the instance. This name can have a string of 1 to 63 characters.
period (pulumi.Input[float]) – 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”.
type (pulumi.Input[str]) – Type of the instance. Valid values: Enterprise,Professional. Default to
Enterprise
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.ddos.DdosCooInstance(resource_name, opts=None, bandwidth=None, base_bandwidth=None, domain_count=None, name=None, period=None, port_count=None, service_bandwidth=None, __props__=None, __name__=None, __opts__=None)¶ 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+ .
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", service_bandwidth="100")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth (pulumi.Input[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 (pulumi.Input[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 (pulumi.Input[str]) – Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
name (pulumi.Input[str]) – Name of the instance. This name can have a string of 1 to 63 characters.
period (pulumi.Input[float]) – 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 (pulumi.Input[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 (pulumi.Input[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: pulumi.Output[str] = None¶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: pulumi.Output[str] = None¶Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
domain_count: pulumi.Output[str] = None¶Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
name: pulumi.Output[str] = None¶Name of the instance. This name can have a string of 1 to 63 characters.
period: pulumi.Output[float] = None¶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: pulumi.Output[str] = None¶Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
service_bandwidth: pulumi.Output[str] = None¶Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.
- static
get(resource_name, id, opts=None, bandwidth=None, base_bandwidth=None, domain_count=None, name=None, period=None, port_count=None, service_bandwidth=None)¶ Get an existing DdosCooInstance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth (pulumi.Input[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 (pulumi.Input[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 (pulumi.Input[str]) – Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
name (pulumi.Input[str]) – Name of the instance. This name can have a string of 1 to 63 characters.
period (pulumi.Input[float]) – 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 (pulumi.Input[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 (pulumi.Input[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.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.ddos.GetDdosBgpInstancesResult(id=None, ids=None, instances=None, name_regex=None, names=None, output_file=None)¶ A collection of values returned by getDdosBgpInstances.
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of instance IDs.
instances= None¶A list of apis. Each element contains the following attributes:
names= None¶A list of instance names.
- class
pulumi_alicloud.ddos.GetDdosCooInstancesResult(id=None, ids=None, instances=None, name_regex=None, names=None, output_file=None)¶ A collection of values returned by getDdosCooInstances.
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of instance IDs.
instances= None¶A list of apis. Each element contains the following attributes:
names= None¶A list of instance names.
- class
pulumi_alicloud.ddos.SchedulerRule(resource_name, opts=None, param=None, resource_group_id=None, rule_name=None, rule_type=None, rules=None, __props__=None, __name__=None, __opts__=None)¶ Provides a DdosCoo Scheduler Rule resource. For information about DdosCoo Scheduler Rule and how to use it, seeWhat is DdosCoo Scheduler Rule.
NOTE: Available in 1.86.0+
import pulumi import pulumi_alicloud as alicloud example = alicloud.ddos.SchedulerRule("example", rule_name="tf-testacc7929727******", rule_type=3, rules=[ { "priority": "100", "regionId": "cn-hangzhou", "type": "A", "value": "170.33.2.125", "valueType": "3", }, { "priority": "50", "regionId": "cn-hangzhou", "type": "A", "value": "170.33.14.193", "valueType": "1", }, ])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
resource_group_id (pulumi.Input[str]) – The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.
rule_name (pulumi.Input[str]) – The name of the rule.
rule_type (pulumi.Input[float]) – The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.rules (pulumi.Input[list]) – The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values:
A: IP address.CNAME: Domain name.Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values:1: Anti-DDoS Pro.2: (Tiered protection) cloud resource IP.3: (sea acceleration) MCA IP address.6: (Cloud product linkage) cloud resource IP.RegionId: String type, optional (Required when ValueType is 2) the ID of the region.
The rules object supports the following:
priority(pulumi.Input[float])regionId(pulumi.Input[str])status(pulumi.Input[float])type(pulumi.Input[str])value(pulumi.Input[str])valueType(pulumi.Input[float])
cname: pulumi.Output[str] = None¶The cname is the traffic scheduler corresponding to rules.
resource_group_id: pulumi.Output[str] = None¶The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.
rule_name: pulumi.Output[str] = None¶The name of the rule.
rule_type: pulumi.Output[float] = None¶The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.
rules: pulumi.Output[list] = None¶The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values:
A: IP address.CNAME: Domain name.Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values:1: Anti-DDoS Pro.2: (Tiered protection) cloud resource IP.3: (sea acceleration) MCA IP address.6: (Cloud product linkage) cloud resource IP.RegionId: String type, optional (Required when ValueType is 2) the ID of the region.priority(float)regionId(str)status(float)type(str)value(str)valueType(float)
- static
get(resource_name, id, opts=None, cname=None, param=None, resource_group_id=None, rule_name=None, rule_type=None, rules=None)¶ Get an existing SchedulerRule resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
cname (pulumi.Input[str]) – The cname is the traffic scheduler corresponding to rules.
resource_group_id (pulumi.Input[str]) – The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.
rule_name (pulumi.Input[str]) – The name of the rule.
rule_type (pulumi.Input[float]) – The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.rules (pulumi.Input[list]) – The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values:
A: IP address.CNAME: Domain name.Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values:1: Anti-DDoS Pro.2: (Tiered protection) cloud resource IP.3: (sea acceleration) MCA IP address.6: (Cloud product linkage) cloud resource IP.RegionId: String type, optional (Required when ValueType is 2) the ID of the region.
The rules object supports the following:
priority(pulumi.Input[float])regionId(pulumi.Input[str])status(pulumi.Input[float])type(pulumi.Input[str])value(pulumi.Input[str])valueType(pulumi.Input[float])
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
pulumi_alicloud.ddos.get_ddos_bgp_instances(ids=None, name_regex=None, output_file=None, opts=None)¶This data source provides a list of Anti-DDoS Advanced instances in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.57.0+ .
import pulumi import pulumi_alicloud as alicloud instance_ddos_bgp_instances = alicloud.ddos.get_ddos_bgp_instances(name_regex="^ddosbgp") pulumi.export("instance", [__item["id"] for __item in alicloud_ddosbgp_instances["instance"]])
- Parameters
ids (list) – A list of instance IDs.
name_regex (str) – A regex string to filter results by the instance name.
pulumi_alicloud.ddos.get_ddos_coo_instances(ids=None, name_regex=None, output_file=None, opts=None)¶This data source provides a list of BGP-Line Anti-DDoS Pro instances in an Alibaba Cloud account according to the specified filters.
import pulumi import pulumi_alicloud as alicloud instance_ddos_coo_instances = alicloud.ddos.get_ddos_coo_instances(name_regex="^ddoscoo") pulumi.export("instance", [__item["id"] for __item in alicloud_ddoscoo_instances["instance"]])
- Parameters
ids (list) – A list of instance IDs.
name_regex (str) – A regex string to filter results by the instance name.