TeamsRule

class TeamsRule : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource.

Link copied to clipboard
val action: Output<String>

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>

The description of the teams rule.

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

The wirefilter expression to be used for device_posture check matching.

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

Indicator of rule enablement.

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

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

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

The wirefilter expression to be used for identity matching.

Link copied to clipboard
val name: Output<String>

The name of the teams rule.

Link copied to clipboard
val precedence: Output<Int>

The evaluation precedence of the teams rule.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Additional rule settings.

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

The wirefilter expression to be used for traffic matching.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<Int>