RulesetArgs

data class RulesetArgs(val accountId: Output<String>? = null, val description: Output<String>? = null, val kind: Output<String>? = null, val name: Output<String>? = null, val phase: Output<String>? = null, val rules: Output<List<RulesetRuleArgs>>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<RulesetArgs>

The Cloudflare Ruleset Engine (https://developers.cloudflare.com/ruleset-engine/about/) allows you to create and deploy rules and rulesets. Cloudflare uses the Ruleset Engine in different products, allowing you to configure several products using the same basic syntax.

Import

Import an account scoped Ruleset configuration.

$ pulumi import cloudflare:index/ruleset:Ruleset example account/<account_id>/<ruleset_id>

Import a zone scoped Ruleset configuration.

$ pulumi import cloudflare:index/ruleset:Ruleset example zone/<zone_id>/<ruleset_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, description: Output<String>? = null, kind: Output<String>? = null, name: Output<String>? = null, phase: Output<String>? = null, rules: Output<List<RulesetRuleArgs>>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource.

Link copied to clipboard
val description: Output<String>? = null

Brief summary of the ruleset and its intended use.

Link copied to clipboard
val kind: Output<String>? = null

Type of Ruleset to create. Available values: custom, managed, root, zone.

Link copied to clipboard
val name: Output<String>? = null

Name of the ruleset.

Link copied to clipboard
val phase: Output<String>? = null

Point in the request/response lifecycle where the ruleset will be created. Available values: ddos_l4, ddos_l7, http_config_settings, http_custom_errors, http_log_custom_fields, http_ratelimit, http_request_cache_settings, http_request_dynamic_redirect, http_request_firewall_custom, http_request_firewall_managed, http_request_late_transform, http_request_origin, http_request_redirect, http_request_sanitize, http_request_transform, http_response_compression, http_response_firewall_managed, http_response_headers_transform, magic_transit.

Link copied to clipboard
val rules: Output<List<RulesetRuleArgs>>? = null

List of rules to apply to the ruleset.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource.

Functions

Link copied to clipboard
open override fun toJava(): RulesetArgs