WafPolicy

class WafPolicy : KotlinCustomResource

Provides a DCDN Waf Policy resource. For information about DCDN Waf Policy and how to use it, see What is Waf Policy.

NOTE: Available since v1.184.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.dcdn.WafPolicy;
import com.pulumi.alicloud.dcdn.WafPolicyArgs;
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 WafPolicy("example", WafPolicyArgs.builder()
.defenseScene("waf_group")
.policyName(name)
.policyType("custom")
.status("on")
.build());
}
}

Import

DCDN Waf Policy can be imported using the id, e.g.

$ pulumi import alicloud:dcdn/wafPolicy:WafPolicy example <id>

Properties

Link copied to clipboard
val defenseScene: Output<String>

The type of protection policy. Valid values: waf_group, custom_acl, whitelist, ip_blacklist, region_block.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val policyName: Output<String>

The name of the protection policy. The name must be 1 to 64 characters in length, and can contain letters, digits,and underscores (_).

Link copied to clipboard
val policyType: Output<String>

The type of the protection policy. Valid values: default, custom.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of the resource. Valid values: on, off.

Link copied to clipboard
val urn: Output<String>