TeamsRuleArgs

data class TeamsRuleArgs(val accountId: Output<String>? = null, val action: Output<String>? = null, val description: Output<String>? = null, val devicePosture: Output<String>? = null, val enabled: Output<Boolean>? = null, val filters: Output<List<String>>? = null, val identity: Output<String>? = null, val name: Output<String>? = null, val precedence: Output<Int>? = null, val ruleSettings: Output<TeamsRuleRuleSettingsArgs>? = null, val traffic: Output<String>? = null) : ConvertibleToJava<TeamsRuleArgs>

Provides a Cloudflare Teams rule resource. Teams rules comprise secure web gateway policies.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.TeamsRule;
import com.pulumi.cloudflare.TeamsRuleArgs;
import com.pulumi.cloudflare.inputs.TeamsRuleRuleSettingsArgs;
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) {
var example = new TeamsRule("example", TeamsRuleArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.action("block")
.description("desc")
.filters("http")
.name("office")
.precedence(1)
.ruleSettings(TeamsRuleRuleSettingsArgs.builder()
.blockPageEnabled(true)
.blockPageReason("access not permitted")
.build())
.traffic("http.request.uri == \"https://www.example.com/malicious\"")
.build());
}
}

Import

$ pulumi import cloudflare:index/teamsRule:TeamsRule example <account_id>/<teams_rule_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, action: Output<String>? = null, description: Output<String>? = null, devicePosture: Output<String>? = null, enabled: Output<Boolean>? = null, filters: Output<List<String>>? = null, identity: Output<String>? = null, name: Output<String>? = null, precedence: Output<Int>? = null, ruleSettings: Output<TeamsRuleRuleSettingsArgs>? = null, traffic: 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 action: Output<String>? = null

The action executed by matched teams rule. Available values: allow, block, safesearch, ytrestricted, on, off, scan, noscan, isolate, noisolate, override, l4_override, egress.

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

The description of the teams rule.

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

The wirefilter expression to be used for device_posture check matching.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Indicator of rule enablement.

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

The protocol or layer to evaluate the traffic and identity expressions.

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

The wirefilter expression to be used for identity matching.

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

The name of the teams rule.

Link copied to clipboard
val precedence: Output<Int>? = null

The evaluation precedence of the teams rule.

Link copied to clipboard

Additional rule settings.

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

The wirefilter expression to be used for traffic matching.

Functions

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