BotManagementArgs

data class BotManagementArgs(val aiBotsProtection: Output<String>? = null, val autoUpdateModel: Output<Boolean>? = null, val crawlerProtection: Output<String>? = null, val enableJs: Output<Boolean>? = null, val fightMode: Output<Boolean>? = null, val optimizeWordpress: Output<Boolean>? = null, val sbfmDefinitelyAutomated: Output<String>? = null, val sbfmLikelyAutomated: Output<String>? = null, val sbfmStaticResourceProtection: Output<Boolean>? = null, val sbfmVerifiedBots: Output<String>? = null, val suppressSessionScore: Output<Boolean>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<BotManagementArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleBotManagement = new cloudflare.BotManagement("example_bot_management", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
aiBotsProtection: "block",
crawlerProtection: "enabled",
enableJs: true,
fightMode: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_bot_management = cloudflare.BotManagement("example_bot_management",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
ai_bots_protection="block",
crawler_protection="enabled",
enable_js=True,
fight_mode=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleBotManagement = new Cloudflare.BotManagement("example_bot_management", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
AiBotsProtection = "block",
CrawlerProtection = "enabled",
EnableJs = true,
FightMode = true,
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewBotManagement(ctx, "example_bot_management", &cloudflare.BotManagementArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
AiBotsProtection: pulumi.String("block"),
CrawlerProtection: pulumi.String("enabled"),
EnableJs: pulumi.Bool(true),
FightMode: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.BotManagement;
import com.pulumi.cloudflare.BotManagementArgs;
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 exampleBotManagement = new BotManagement("exampleBotManagement", BotManagementArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.aiBotsProtection("block")
.crawlerProtection("enabled")
.enableJs(true)
.fightMode(true)
.build());
}
}
resources:
exampleBotManagement:
type: cloudflare:BotManagement
name: example_bot_management
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
aiBotsProtection: block
crawlerProtection: enabled
enableJs: true
fightMode: true

Import

$ pulumi import cloudflare:index/botManagement:BotManagement example '<zone_id>'

Constructors

Link copied to clipboard
constructor(aiBotsProtection: Output<String>? = null, autoUpdateModel: Output<Boolean>? = null, crawlerProtection: Output<String>? = null, enableJs: Output<Boolean>? = null, fightMode: Output<Boolean>? = null, optimizeWordpress: Output<Boolean>? = null, sbfmDefinitelyAutomated: Output<String>? = null, sbfmLikelyAutomated: Output<String>? = null, sbfmStaticResourceProtection: Output<Boolean>? = null, sbfmVerifiedBots: Output<String>? = null, suppressSessionScore: Output<Boolean>? = null, zoneId: Output<String>? = null)

Properties

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

Enable rule to block AI Scrapers and Crawlers. Available values: "block", "disabled".

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

Automatically update to the newest bot detection models created by Cloudflare as they are released. Learn more.

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

Enable rule to punish AI Scrapers and Crawlers via a link maze. Available values: "enabled", "disabled".

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

Use lightweight, invisible JavaScript detections to improve Bot Management. Learn more about JavaScript Detections.

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

Whether to enable Bot Fight Mode.

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

Whether to optimize Super Bot Fight Mode protections for Wordpress.

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

Super Bot Fight Mode (SBFM) action to take on definitely automated requests. Available values: "allow", "block", "managed_challenge".

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

Super Bot Fight Mode (SBFM) action to take on likely automated requests. Available values: "allow", "block", "managed_challenge".

Link copied to clipboard

Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if static resources on your application need bot protection. Note: Static resource protection can also result in legitimate traffic being blocked.

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

Super Bot Fight Mode (SBFM) action to take on verified bots requests. Available values: "allow", "block".

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

Whether to disable tracking the highest bot score for a session in the Bot Management cookie.

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

Identifier

Functions

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