WebAnalyticsSite

class WebAnalyticsSite : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

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>

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

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 id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rulesetId: Output<String>

The ID for the ruleset associated to this Web Analytics Site.

Link copied to clipboard
val siteTag: Output<String>

The Web Analytics site tag.

Link copied to clipboard
val siteToken: Output<String>

The token for the Web Analytics site.

Link copied to clipboard
val snippet: Output<String>

The encoded JS snippet to add to your site's HTML page if auto_install is false.

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

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