Package com.pulumi.cloudflare
Class DevicePostureRule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.cloudflare.DevicePostureRule
-
public class DevicePostureRule extends com.pulumi.resources.CustomResource
Provides a Cloudflare Device Posture Rule resource. Device posture rules configure security policies for device posture checks. ## Example Usage ```java 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 ```sh $ pulumi import cloudflare:index/devicePostureRule:DevicePostureRule example <account_id>/<device_posture_rule_id> ```
-
-
Constructor Summary
Constructors Constructor Description DevicePostureRule(java.lang.String name)
DevicePostureRule(java.lang.String name, DevicePostureRuleArgs args)
DevicePostureRule(java.lang.String name, DevicePostureRuleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
accountId()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
description()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
expiration()
static DevicePostureRule
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DevicePostureRuleState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.List<DevicePostureRuleInput>>
inputs()
com.pulumi.core.Output<java.util.Optional<java.util.List<DevicePostureRuleMatch>>>
matches()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
name()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
schedule()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
DevicePostureRule
public DevicePostureRule(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
DevicePostureRule
public DevicePostureRule(java.lang.String name, DevicePostureRuleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
DevicePostureRule
public DevicePostureRule(java.lang.String name, DevicePostureRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
accountId
public com.pulumi.core.Output<java.lang.String> accountId()
- Returns:
- The account identifier to target for the resource.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
-
expiration
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> expiration()
- Returns:
- Expire posture results after the specified amount of time. Must be in the format `1h` or `30m`. Valid units are `h` and `m`.
-
inputs
public com.pulumi.core.Output<java.util.List<DevicePostureRuleInput>> inputs()
- Returns:
- Required for all rule types except `warp`, `gateway`, and `tanium`.
-
matches
public com.pulumi.core.Output<java.util.Optional<java.util.List<DevicePostureRuleMatch>>> matches()
- Returns:
- The conditions that the client must match to run the rule.
-
name
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> name()
- Returns:
- Name of the device posture rule.
-
schedule
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> schedule()
- Returns:
- Tells the client when to run the device posture check. Must be in the format `1h` or `30m`. Valid units are `h` and `m`.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The device posture rule type. Available values: `serial_number`, `file`, `application`, `gateway`, `warp`, `domain_joined`, `os_version`, `disk_encryption`, `firewall`, `client_certificate`, `workspace_one`, `unique_client_id`, `crowdstrike_s2s`, `sentinelone`, `kolide`, `tanium_s2s`, `intune`, `sentinelone_s2s`.
-
get
public static DevicePostureRule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DevicePostureRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-