WebAnalyticsSiteArgs

data class WebAnalyticsSiteArgs(val accountId: Output<String>? = null, val autoInstall: Output<Boolean>? = null, val host: Output<String>? = null, val zoneTag: Output<String>? = null) : ConvertibleToJava<WebAnalyticsSiteArgs>

Provides a Cloudflare Web Analytics Site resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WebAnalyticsSite;
import com.pulumi.cloudflare.WebAnalyticsSiteArgs;
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 WebAnalyticsSite("example", WebAnalyticsSiteArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.autoInstall(true)
.zoneTag("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Import

$ pulumi import cloudflare:index/webAnalyticsSite:WebAnalyticsSite example <account_id>/<site_tag>

Constructors

Link copied to clipboard
fun WebAnalyticsSiteArgs(accountId: Output<String>? = null, autoInstall: Output<Boolean>? = null, host: Output<String>? = null, zoneTag: Output<String>? = null)

Functions

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

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 autoInstall: Output<Boolean>? = null

Whether Cloudflare will automatically inject the JavaScript snippet for orange-clouded sites. Modifying this attribute will force creation of a new resource.

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

The hostname to use for gray-clouded sites. Must provide only one of zone_tag. Modifying this attribute will force creation of a new resource.

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

The zone identifier for orange-clouded sites. Must provide only one of host. Modifying this attribute will force creation of a new resource.