TurnstileWidgetArgs

data class TurnstileWidgetArgs(val accountId: Output<String>? = null, val botFightMode: Output<Boolean>? = null, val domains: Output<List<String>>? = null, val mode: Output<String>? = null, val name: Output<String>? = null, val offlabel: Output<Boolean>? = null, val region: Output<String>? = null) : ConvertibleToJava<TurnstileWidgetArgs>

The Turnstile Widget resource allows you to manage Cloudflare Turnstile Widgets.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.TurnstileWidget;
import com.pulumi.cloudflare.TurnstileWidgetArgs;
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 TurnstileWidget("example", TurnstileWidgetArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.botFightMode(false)
.domains("example.com")
.mode("invisible")
.name("example widget")
.region("world")
.build());
}
}

Import

$ pulumi import cloudflare:index/turnstileWidget:TurnstileWidget example <account_id>/<site_key>

Constructors

Link copied to clipboard
fun TurnstileWidgetArgs(accountId: Output<String>? = null, botFightMode: Output<Boolean>? = null, domains: Output<List<String>>? = null, mode: Output<String>? = null, name: Output<String>? = null, offlabel: Output<Boolean>? = null, region: Output<String>? = null)

Functions

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

Properties

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

The account identifier to target for the resource.

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

If botfightmode is set to true, Cloudflare issues computationally expensive challenges in response to malicious bots (Enterprise only).

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

Domains where the widget is deployed

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

Widget Mode. Available values: non-interactive, invisible, managed

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

Human readable widget name.

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

Do not show any Cloudflare branding on the widget (Enterprise only).

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

Region where this widget can be used.