Module ddos
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.
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-alicloudrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-alicloudrepo.
Resources
Functions
Others
- DdosBgpInstanceArgs
- DdosBgpInstanceState
- DdosCooInstanceArgs
- DdosCooInstanceState
- GetDdosBgpInstancesArgs
- GetDdosBgpInstancesResult
- GetDdosCooInstancesArgs
- GetDdosCooInstancesResult
- SchedulerRuleArgs
- SchedulerRuleState
Resources
Resource DdosBgpInstance
class DdosBgpInstance extends CustomResourceAnti-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+ .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const instance = new alicloud.ddos.DdosBgpInstance("instance", {
bandwidth: 201,
baseBandwidth: 20,
ipCount: 100,
ipType: "IPv4",
});constructor
new DdosBgpInstance(name: string, args: DdosBgpInstanceArgs, opts?: pulumi.CustomResourceOptions)Create a DdosBgpInstance resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DdosBgpInstanceState, opts?: pulumi.CustomResourceOptions): DdosBgpInstanceGet an existing DdosBgpInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DdosBgpInstanceReturns true if the given object is an instance of DdosBgpInstance. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property bandwidth
public bandwidth: pulumi.Output<number>;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.
property baseBandwidth
public baseBandwidth: pulumi.Output<number | undefined>;Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property ipCount
public ipCount: pulumi.Output<number>;IP count of the instance. Valid values: 100.
property ipType
public ipType: pulumi.Output<string>;IP version of the instance. Valid values: IPv4,IPv6.
property name
public name: pulumi.Output<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
public period: pulumi.Output<number | undefined>;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”.
property type
public type: pulumi.Output<string | undefined>;Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource DdosCooInstance
class DdosCooInstance extends CustomResourceBGP-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
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",
serviceBandwidth: "100",
});constructor
new DdosCooInstance(name: string, args: DdosCooInstanceArgs, opts?: pulumi.CustomResourceOptions)Create a DdosCooInstance resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DdosCooInstanceState, opts?: pulumi.CustomResourceOptions): DdosCooInstanceGet an existing DdosCooInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DdosCooInstanceReturns true if the given object is an instance of DdosCooInstance. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property bandwidth
public bandwidth: pulumi.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.
property baseBandwidth
public baseBandwidth: pulumi.Output<string>;Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property domainCount
public domainCount: pulumi.Output<string>;Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
public period: pulumi.Output<number | undefined>;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”.
property portCount
public portCount: pulumi.Output<string>;Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property serviceBandwidth
public serviceBandwidth: pulumi.Output<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.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource SchedulerRule
class SchedulerRule extends CustomResourceProvides 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+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.ddos.SchedulerRule("example", {
ruleName: "tf-testacc7929727******",
ruleType: 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,
},
],
});constructor
new SchedulerRule(name: string, args: SchedulerRuleArgs, opts?: pulumi.CustomResourceOptions)Create a SchedulerRule resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SchedulerRuleState, opts?: pulumi.CustomResourceOptions): SchedulerRuleGet an existing SchedulerRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is SchedulerRuleReturns true if the given object is an instance of SchedulerRule. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property cname
public cname: pulumi.Output<string>;The cname is the traffic scheduler corresponding to rules.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property param
public param: pulumi.Output<string | undefined>;property resourceGroupId
public resourceGroupId: pulumi.Output<string | undefined>;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.
property ruleName
public ruleName: pulumi.Output<string>;The name of the rule.
property ruleType
public ruleType: pulumi.Output<number>;The rule type. Valid values:
2: tiered protection.
3: globalization acceleration.
6: Cloud product interaction.
property rules
public rules: pulumi.Output<SchedulerRuleRule[]>;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.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getDdosBgpInstances
getDdosBgpInstances(args?: GetDdosBgpInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetDdosBgpInstancesResult>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+ .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const instanceDdosBgpInstances = pulumi.output(alicloud.ddos.getDdosBgpInstances({
nameRegex: "^ddosbgp",
}, { async: true }));
export const instance = alicloud_ddosbgp_instances_instance.map(v => v.id);Function getDdosCooInstances
getDdosCooInstances(args?: GetDdosCooInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetDdosCooInstancesResult>This data source provides a list of BGP-Line Anti-DDoS Pro instances in an Alibaba Cloud account according to the specified filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const instanceDdosCooInstances = pulumi.output(alicloud.ddos.getDdosCooInstances({
nameRegex: "^ddoscoo",
}, { async: true }));
export const instance = alicloud_ddoscoo_instances_instance.map(v => v.id);Others
interface DdosBgpInstanceArgs
interface DdosBgpInstanceArgsThe set of arguments for constructing a DdosBgpInstance resource.
property bandwidth
bandwidth: pulumi.Input<number>;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.
property baseBandwidth
baseBandwidth?: pulumi.Input<number>;Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
property ipCount
ipCount: pulumi.Input<number>;IP count of the instance. Valid values: 100.
property ipType
ipType: pulumi.Input<string>;IP version of the instance. Valid values: IPv4,IPv6.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<number>;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”.
property type
type?: pulumi.Input<string>;Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise
interface DdosBgpInstanceState
interface DdosBgpInstanceStateInput properties used for looking up and filtering DdosBgpInstance resources.
property bandwidth
bandwidth?: pulumi.Input<number>;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.
property baseBandwidth
baseBandwidth?: pulumi.Input<number>;Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
property ipCount
ipCount?: pulumi.Input<number>;IP count of the instance. Valid values: 100.
property ipType
ipType?: pulumi.Input<string>;IP version of the instance. Valid values: IPv4,IPv6.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<number>;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”.
property type
type?: pulumi.Input<string>;Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise
interface DdosCooInstanceArgs
interface DdosCooInstanceArgsThe set of arguments for constructing a DdosCooInstance resource.
property bandwidth
bandwidth: pulumi.Input<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.
property baseBandwidth
baseBandwidth: pulumi.Input<string>;Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property domainCount
domainCount: pulumi.Input<string>;Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<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”.
property portCount
portCount: pulumi.Input<string>;Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property serviceBandwidth
serviceBandwidth: pulumi.Input<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.
interface DdosCooInstanceState
interface DdosCooInstanceStateInput properties used for looking up and filtering DdosCooInstance resources.
property bandwidth
bandwidth?: pulumi.Input<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.
property baseBandwidth
baseBandwidth?: pulumi.Input<string>;Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property domainCount
domainCount?: pulumi.Input<string>;Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<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”.
property portCount
portCount?: pulumi.Input<string>;Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property serviceBandwidth
serviceBandwidth?: pulumi.Input<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.
interface GetDdosBgpInstancesArgs
interface GetDdosBgpInstancesArgsA collection of arguments for invoking getDdosBgpInstances.
property ids
ids?: string[];A list of instance IDs.
property nameRegex
nameRegex?: undefined | string;A regex string to filter results by the instance name.
property outputFile
outputFile?: undefined | string;interface GetDdosBgpInstancesResult
interface GetDdosBgpInstancesResultA collection of values returned by getDdosBgpInstances.
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of instance IDs.
property instances
instances: GetDdosBgpInstancesInstance[];A list of apis. Each element contains the following attributes:
property nameRegex
nameRegex?: undefined | string;property names
names: string[];A list of instance names.
property outputFile
outputFile?: undefined | string;interface GetDdosCooInstancesArgs
interface GetDdosCooInstancesArgsA collection of arguments for invoking getDdosCooInstances.
property ids
ids?: string[];A list of instance IDs.
property nameRegex
nameRegex?: undefined | string;A regex string to filter results by the instance name.
property outputFile
outputFile?: undefined | string;interface GetDdosCooInstancesResult
interface GetDdosCooInstancesResultA collection of values returned by getDdosCooInstances.
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of instance IDs.
property instances
instances: GetDdosCooInstancesInstance[];A list of apis. Each element contains the following attributes:
property nameRegex
nameRegex?: undefined | string;property names
names: string[];A list of instance names.
property outputFile
outputFile?: undefined | string;interface SchedulerRuleArgs
interface SchedulerRuleArgsThe set of arguments for constructing a SchedulerRule resource.
property param
param?: pulumi.Input<string>;property resourceGroupId
resourceGroupId?: pulumi.Input<string>;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.
property ruleName
ruleName: pulumi.Input<string>;The name of the rule.
property ruleType
ruleType: pulumi.Input<number>;The rule type. Valid values:
2: tiered protection.
3: globalization acceleration.
6: Cloud product interaction.
property rules
rules: pulumi.Input<pulumi.Input<SchedulerRuleRule>[]>;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.
interface SchedulerRuleState
interface SchedulerRuleStateInput properties used for looking up and filtering SchedulerRule resources.
property cname
cname?: pulumi.Input<string>;The cname is the traffic scheduler corresponding to rules.
property param
param?: pulumi.Input<string>;property resourceGroupId
resourceGroupId?: pulumi.Input<string>;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.
property ruleName
ruleName?: pulumi.Input<string>;The name of the rule.
property ruleType
ruleType?: pulumi.Input<number>;The rule type. Valid values:
2: tiered protection.
3: globalization acceleration.
6: Cloud product interaction.
property rules
rules?: pulumi.Input<pulumi.Input<SchedulerRuleRule>[]>;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.