TurnstileWidget

class TurnstileWidget : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource.

Link copied to clipboard
val botFightMode: Output<Boolean>

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>>

Domains where the widget is deployed

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val mode: Output<String>

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

Link copied to clipboard
val name: Output<String>

Human readable widget name.

Link copied to clipboard
val offlabel: Output<Boolean>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val region: Output<String>

Region where this widget can be used.

Link copied to clipboard
val secret: Output<String>

Secret key for this widget.

Link copied to clipboard
val urn: Output<String>