WebAnalyticsSiteArgs

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWebAnalyticsSite = new cloudflare.WebAnalyticsSite("example_web_analytics_site", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
autoInstall: true,
host: "example.com",
zoneTag: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_web_analytics_site = cloudflare.WebAnalyticsSite("example_web_analytics_site",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
auto_install=True,
host="example.com",
zone_tag="023e105f4ecef8ad9ca31a8372d0c353")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWebAnalyticsSite = new Cloudflare.WebAnalyticsSite("example_web_analytics_site", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
AutoInstall = true,
Host = "example.com",
ZoneTag = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
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.NewWebAnalyticsSite(ctx, "example_web_analytics_site", &cloudflare.WebAnalyticsSiteArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
AutoInstall: pulumi.Bool(true),
Host: pulumi.String("example.com"),
ZoneTag: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
})
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.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 exampleWebAnalyticsSite = new WebAnalyticsSite("exampleWebAnalyticsSite", WebAnalyticsSiteArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.autoInstall(true)
.host("example.com")
.zoneTag("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
resources:
exampleWebAnalyticsSite:
type: cloudflare:WebAnalyticsSite
name: example_web_analytics_site
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
autoInstall: true
host: example.com
zoneTag: 023e105f4ecef8ad9ca31a8372d0c353

Import

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

Constructors

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

Properties

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

Identifier.

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

If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.

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

Enables or disables RUM. This option can be used only when auto_install is set to true.

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

The hostname to use for gray-clouded sites.

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

If enabled, the JavaScript snippet will not be injected for visitors from the EU.

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

The zone identifier.

Functions

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