SchedulerRule

class SchedulerRule : KotlinCustomResource

Provides a DdosCoo Scheduler Rule resource. For information about DdosCoo Scheduler Rule and how to use it, seeWhat is DdosCoo Scheduler Rule.

NOTE: Available since v1.86.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ddos.SchedulerRule;
import com.pulumi.alicloud.ddos.SchedulerRuleArgs;
import com.pulumi.alicloud.ddos.inputs.SchedulerRuleRuleArgs;
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 example = new SchedulerRule("example", SchedulerRuleArgs.builder()
.ruleName(name)
.ruleType(3)
.rules(
SchedulerRuleRuleArgs.builder()
.priority(100)
.regionId("cn-hangzhou")
.type("A")
.value("127.0.0.1")
.valueType(3)
.build(),
SchedulerRuleRuleArgs.builder()
.priority(50)
.regionId("cn-hangzhou")
.type("A")
.value("127.0.0.0")
.valueType(1)
.build())
.build());
}
}

Import

DdosCoo Scheduler Rule can be imported using the id or the rule name, e.g.

$ pulumi import alicloud:ddos/schedulerRule:SchedulerRule example fbb20dc77e8fc******

Properties

Link copied to clipboard
val cname: Output<String>

The cname is the traffic scheduler corresponding to rules.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val param: Output<String>?

The scheduling rule for the Global Accelerator instance that interacts with Anti-DDoS Pro or Anti-DDoS Premium.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<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.

Link copied to clipboard
val ruleName: Output<String>

The name of the rule.

Link copied to clipboard

The information about the scheduling rules. See rules below.

Link copied to clipboard
val ruleType: Output<Int>

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

Link copied to clipboard
val urn: Output<String>