Device Settings Policy Args
data class DeviceSettingsPolicyArgs(val accountId: Output<String>? = null, val allowModeSwitch: Output<Boolean>? = null, val allowUpdates: Output<Boolean>? = null, val allowedToLeave: Output<Boolean>? = null, val autoConnect: Output<Int>? = null, val captivePortal: Output<Int>? = null, val default: Output<Boolean>? = null, val disableAutoFallback: Output<Boolean>? = null, val enabled: Output<Boolean>? = null, val excludeOfficeIps: Output<Boolean>? = null, val match: Output<String>? = null, val name: Output<String>? = null, val precedence: Output<Int>? = null, val serviceModeV2Mode: Output<String>? = null, val serviceModeV2Port: Output<Int>? = null, val supportUrl: Output<String>? = null, val switchLocked: Output<Boolean>? = null) : ConvertibleToJava<DeviceSettingsPolicyArgs>
Provides a Cloudflare Device Settings Policy resource. Device policies configure settings applied to WARP devices.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.DeviceSettingsPolicy;
import com.pulumi.cloudflare.DeviceSettingsPolicyArgs;
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 developerWarpPolicy = new DeviceSettingsPolicy("developerWarpPolicy", DeviceSettingsPolicyArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.allowModeSwitch(true)
.allowUpdates(true)
.allowedToLeave(true)
.autoConnect(0)
.captivePortal(5)
.default_(false)
.disableAutoFallback(true)
.enabled(true)
.excludeOfficeIps(false)
.match("any(identity.groups.name[*] in {\"Developers\"})")
.name("Developers WARP settings policy")
.precedence(10)
.serviceModeV2Mode("warp")
.serviceModeV2Port(3000)
.supportUrl("https://cloudflare.com")
.switchLocked(true)
.build());
}
}
Content copied to clipboard
Import
For default device settings policies you must use "default" as the policy ID.
$ pulumi import cloudflare:index/deviceSettingsPolicy:DeviceSettingsPolicy example <account_id>/<device_policy_id>
Content copied to clipboard
Constructors
Link copied to clipboard
fun DeviceSettingsPolicyArgs(accountId: Output<String>? = null, allowModeSwitch: Output<Boolean>? = null, allowUpdates: Output<Boolean>? = null, allowedToLeave: Output<Boolean>? = null, autoConnect: Output<Int>? = null, captivePortal: Output<Int>? = null, default: Output<Boolean>? = null, disableAutoFallback: Output<Boolean>? = null, enabled: Output<Boolean>? = null, excludeOfficeIps: Output<Boolean>? = null, match: Output<String>? = null, name: Output<String>? = null, precedence: Output<Int>? = null, serviceModeV2Mode: Output<String>? = null, serviceModeV2Port: Output<Int>? = null, supportUrl: Output<String>? = null, switchLocked: Output<Boolean>? = null)