DevicePostureRuleArgs

data class DevicePostureRuleArgs(val accountId: Output<String>? = null, val description: Output<String>? = null, val expiration: Output<String>? = null, val inputs: Output<List<DevicePostureRuleInputArgs>>? = null, val matches: Output<List<DevicePostureRuleMatchArgs>>? = null, val name: Output<String>? = null, val schedule: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<DevicePostureRuleArgs>

Provides a Cloudflare Device Posture Rule resource. Device posture rules configure security policies for device posture checks.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.DevicePostureRule;
import com.pulumi.cloudflare.DevicePostureRuleArgs;
import com.pulumi.cloudflare.inputs.DevicePostureRuleMatchArgs;
import com.pulumi.cloudflare.inputs.DevicePostureRuleInputArgs;
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 eaxmple = new DevicePostureRule("eaxmple", DevicePostureRuleArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("Corporate devices posture rule")
.type("os_version")
.description("Device posture rule for corporate devices.")
.schedule("24h")
.expiration("24h")
.matches(DevicePostureRuleMatchArgs.builder()
.platform("linux")
.build())
.inputs(DevicePostureRuleInputArgs.builder()
.id(cloudflare_teams_list.corporate_devices().id())
.version("1.0.0")
.operator("<")
.osDistroName("ubuntu")
.osDistroRevision("1.0.0")
.build())
.build());
}
}

Import

$ pulumi import cloudflare:index/devicePostureRule:DevicePostureRule example <account_id>/<device_posture_rule_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, description: Output<String>? = null, expiration: Output<String>? = null, inputs: Output<List<DevicePostureRuleInputArgs>>? = null, matches: Output<List<DevicePostureRuleMatchArgs>>? = null, name: Output<String>? = null, schedule: Output<String>? = null, type: 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
Link copied to clipboard
val expiration: Output<String>? = null

Expire posture results after the specified amount of time. Must be in the format 1h or 30m. Valid units are h and m.

Link copied to clipboard
val inputs: Output<List<DevicePostureRuleInputArgs>>? = null
Link copied to clipboard

The conditions that the client must match to run the rule.

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

Name of the device posture rule.

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

Tells the client when to run the device posture check. Must be in the format 1h or 30m. Valid units are h and m.

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

The device posture rule type. Available values: serial_number, file, application, gateway, warp, domain_joined, os_version, disk_encryption, firewall, workspace_one, unique_client_id, crowdstrike_s2s.

Functions

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