PageRuleArgs

data class PageRuleArgs(val actions: Output<PageRuleActionsArgs>? = null, val priority: Output<Int>? = null, val status: Output<String>? = null, val target: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<PageRuleArgs>

Example Usage

resources:
examplePageRule:
type: cloudflare:PageRule
name: example_page_rule
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
target: example.com/*
priority: 1
status: active
actions:
forwarding_url: https://example.com/foo
status_code: 301

Import

$ pulumi import cloudflare:index/pageRule:PageRule example '<zone_id>/<pagerule_id>'

Constructors

Link copied to clipboard
constructor(actions: Output<PageRuleActionsArgs>? = null, priority: Output<Int>? = null, status: Output<String>? = null, target: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val actions: Output<PageRuleActionsArgs>? = null
Link copied to clipboard
val priority: Output<Int>? = null

The priority of the rule, used to define which Page Rule is processed over another. A higher number indicates a higher priority. For example, if you have a catch-all Page Rule (rule A: /images/*) but want a more specific Page Rule to take precedence (rule B: /images/special/*), specify a higher priority for rule B so it overrides rule A.

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

The status of the Page Rule. Available values: "active", "disabled".

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

Identifier //*/

Functions

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