DeviceDexTestArgs

data class DeviceDexTestArgs(val accountId: Output<String>? = null, val data: Output<DeviceDexTestDataArgs>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val interval: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<DeviceDexTestArgs>

Provides a Cloudflare Device Dex Test resource. Device Dex Tests allow for building location-aware device settings policies.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.DeviceDexTest;
import com.pulumi.cloudflare.DeviceDexTestArgs;
import com.pulumi.cloudflare.inputs.DeviceDexTestDataArgs;
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 DeviceDexTest("example", DeviceDexTestArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.data(DeviceDexTestDataArgs.builder()
.host("https://example.com/home")
.kind("http")
.method("GET")
.build())
.description("Send a HTTP GET request to the home endpoint every half hour.")
.enabled(true)
.interval("0h30m0s")
.name("GET homepage")
.build());
}
}

Import

$ pulumi import cloudflare:index/deviceDexTest:DeviceDexTest example <account_id>/<device_dex_test_id>

Constructors

Link copied to clipboard
fun DeviceDexTestArgs(accountId: Output<String>? = null, data: Output<DeviceDexTestDataArgs>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, interval: Output<String>? = null, name: Output<String>? = null)

Functions

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

Properties

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

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val data: Output<DeviceDexTestDataArgs>? = null

The configuration object which contains the details for the WARP client to conduct the test.

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

Additional details about the test.

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

Determines whether or not the test is active.

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

How often the test will run.

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

The name of the Device Dex Test. Must be unique.