published on Tuesday, Oct 27, 2026 by Pulumi
published on Tuesday, Oct 27, 2026 by Pulumi
Accepted Permissions
Workers Scripts ReadWorkers Scripts WriteWorkers Tail Read
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorker = new cloudflare.Worker("example_worker", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
name: "my-worker",
logpush: true,
observability: {
enabled: true,
headSamplingRate: 1,
issues: {
enabled: true,
},
logs: {
destinations: ["string"],
enabled: true,
headSamplingRate: 1,
invocationLogs: true,
persist: true,
},
redactQueryString: true,
traces: {
destinations: ["string"],
enabled: true,
headSamplingRate: 1,
persist: true,
propagationPolicy: "authenticated",
},
},
previewsBaseConfig: {
cacheOptions: {
enabled: true,
crossVersionCache: true,
},
env: {
MY_ENV_VAR: {
type: "plain_text",
},
},
limits: {
cpuMs: 50,
subrequests: 1000,
},
logpush: true,
observability: {
enabled: true,
headSamplingRate: 1,
issues: {
enabled: true,
},
logs: {
destinations: ["string"],
enabled: true,
headSamplingRate: 1,
invocationLogs: true,
persist: true,
},
redactQueryString: true,
traces: {
destinations: ["string"],
enabled: true,
headSamplingRate: 1,
persist: true,
propagationPolicy: "authenticated",
},
},
placement: {
mode: "smart",
},
tailConsumers: [{
name: "my-tail-consumer",
}],
},
subdomain: {
enabled: true,
previewsEnabled: true,
},
tags: [
"my-team",
"my-public-api",
],
tailConsumers: [{
name: "my-tail-consumer",
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_worker = cloudflare.Worker("example_worker",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="my-worker",
logpush=True,
observability={
"enabled": True,
"head_sampling_rate": float(1),
"issues": {
"enabled": True,
},
"logs": {
"destinations": ["string"],
"enabled": True,
"head_sampling_rate": float(1),
"invocation_logs": True,
"persist": True,
},
"redact_query_string": True,
"traces": {
"destinations": ["string"],
"enabled": True,
"head_sampling_rate": float(1),
"persist": True,
"propagation_policy": "authenticated",
},
},
previews_base_config={
"cache_options": {
"enabled": True,
"cross_version_cache": True,
},
"env": {
"MY_ENV_VAR": {
"type": "plain_text",
},
},
"limits": {
"cpu_ms": 50,
"subrequests": 1000,
},
"logpush": True,
"observability": {
"enabled": True,
"head_sampling_rate": float(1),
"issues": {
"enabled": True,
},
"logs": {
"destinations": ["string"],
"enabled": True,
"head_sampling_rate": float(1),
"invocation_logs": True,
"persist": True,
},
"redact_query_string": True,
"traces": {
"destinations": ["string"],
"enabled": True,
"head_sampling_rate": float(1),
"persist": True,
"propagation_policy": "authenticated",
},
},
"placement": {
"mode": "smart",
},
"tail_consumers": [{
"name": "my-tail-consumer",
}],
},
subdomain={
"enabled": True,
"previews_enabled": True,
},
tags=[
"my-team",
"my-public-api",
],
tail_consumers=[{
"name": "my-tail-consumer",
}])
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.NewWorker(ctx, "example_worker", &cloudflare.WorkerArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Name: pulumi.String("my-worker"),
Logpush: pulumi.Bool(true),
Observability: &cloudflare.WorkerObservabilityArgs{
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
Issues: &cloudflare.WorkerObservabilityIssuesArgs{
Enabled: pulumi.Bool(true),
},
Logs: &cloudflare.WorkerObservabilityLogsArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
InvocationLogs: pulumi.Bool(true),
Persist: pulumi.Bool(true),
},
RedactQueryString: true,
Traces: &cloudflare.WorkerObservabilityTracesArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
Persist: pulumi.Bool(true),
PropagationPolicy: pulumi.String("authenticated"),
},
},
PreviewsBaseConfig: &cloudflare.WorkerPreviewsBaseConfigArgs{
CacheOptions: &cloudflare.WorkerPreviewsBaseConfigCacheOptionsArgs{
Enabled: pulumi.Bool(true),
CrossVersionCache: pulumi.Bool(true),
},
Env: cloudflare.WorkerPreviewsBaseConfigEnvMap{
"MY_ENV_VAR": &cloudflare.WorkerPreviewsBaseConfigEnvArgs{
Type: pulumi.String("plain_text"),
},
},
Limits: &cloudflare.WorkerPreviewsBaseConfigLimitsArgs{
CpuMs: pulumi.Int(50),
Subrequests: pulumi.Int(1000),
},
Logpush: pulumi.Bool(true),
Observability: &cloudflare.WorkerPreviewsBaseConfigObservabilityArgs{
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
Issues: &cloudflare.WorkerPreviewsBaseConfigObservabilityIssuesArgs{
Enabled: pulumi.Bool(true),
},
Logs: &cloudflare.WorkerPreviewsBaseConfigObservabilityLogsArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
InvocationLogs: pulumi.Bool(true),
Persist: pulumi.Bool(true),
},
RedactQueryString: pulumi.Bool(true),
Traces: &cloudflare.WorkerPreviewsBaseConfigObservabilityTracesArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
Persist: pulumi.Bool(true),
PropagationPolicy: pulumi.String("authenticated"),
},
},
Placement: &cloudflare.WorkerPreviewsBaseConfigPlacementArgs{
Mode: pulumi.String("smart"),
},
TailConsumers: cloudflare.WorkerPreviewsBaseConfigTailConsumerArray{
&cloudflare.WorkerPreviewsBaseConfigTailConsumerArgs{
Name: pulumi.String("my-tail-consumer"),
},
},
},
Subdomain: &cloudflare.WorkerSubdomainArgs{
Enabled: pulumi.Bool(true),
PreviewsEnabled: pulumi.Bool(true),
},
Tags: pulumi.StringArray{
pulumi.String("my-team"),
pulumi.String("my-public-api"),
},
TailConsumers: cloudflare.WorkerTailConsumerArray{
&cloudflare.WorkerTailConsumerArgs{
Name: pulumi.String("my-tail-consumer"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWorker = new Cloudflare.Worker("example_worker", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Name = "my-worker",
Logpush = true,
Observability = new Cloudflare.Inputs.WorkerObservabilityArgs
{
Enabled = true,
HeadSamplingRate = 1.0,
Issues = new Cloudflare.Inputs.WorkerObservabilityIssuesArgs
{
Enabled = true,
},
Logs = new Cloudflare.Inputs.WorkerObservabilityLogsArgs
{
Destinations = new[]
{
"string",
},
Enabled = true,
HeadSamplingRate = 1.0,
InvocationLogs = true,
Persist = true,
},
RedactQueryString = true,
Traces = new Cloudflare.Inputs.WorkerObservabilityTracesArgs
{
Destinations = new[]
{
"string",
},
Enabled = true,
HeadSamplingRate = 1.0,
Persist = true,
PropagationPolicy = "authenticated",
},
},
PreviewsBaseConfig = new Cloudflare.Inputs.WorkerPreviewsBaseConfigArgs
{
CacheOptions = new Cloudflare.Inputs.WorkerPreviewsBaseConfigCacheOptionsArgs
{
Enabled = true,
CrossVersionCache = true,
},
Env =
{
{ "MY_ENV_VAR", new Cloudflare.Inputs.WorkerPreviewsBaseConfigEnvArgs
{
Type = "plain_text",
} },
},
Limits = new Cloudflare.Inputs.WorkerPreviewsBaseConfigLimitsArgs
{
CpuMs = 50,
Subrequests = 1000,
},
Logpush = true,
Observability = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityArgs
{
Enabled = true,
HeadSamplingRate = 1.0,
Issues = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityIssuesArgs
{
Enabled = true,
},
Logs = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityLogsArgs
{
Destinations = new[]
{
"string",
},
Enabled = true,
HeadSamplingRate = 1.0,
InvocationLogs = true,
Persist = true,
},
RedactQueryString = true,
Traces = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityTracesArgs
{
Destinations = new[]
{
"string",
},
Enabled = true,
HeadSamplingRate = 1.0,
Persist = true,
PropagationPolicy = "authenticated",
},
},
Placement = new Cloudflare.Inputs.WorkerPreviewsBaseConfigPlacementArgs
{
Mode = "smart",
},
TailConsumers = new[]
{
new Cloudflare.Inputs.WorkerPreviewsBaseConfigTailConsumerArgs
{
Name = "my-tail-consumer",
},
},
},
Subdomain = new Cloudflare.Inputs.WorkerSubdomainArgs
{
Enabled = true,
PreviewsEnabled = true,
},
Tags = new[]
{
"my-team",
"my-public-api",
},
TailConsumers = new[]
{
new Cloudflare.Inputs.WorkerTailConsumerArgs
{
Name = "my-tail-consumer",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.Worker;
import com.pulumi.cloudflare.WorkerArgs;
import com.pulumi.cloudflare.inputs.WorkerObservabilityArgs;
import com.pulumi.cloudflare.inputs.WorkerObservabilityIssuesArgs;
import com.pulumi.cloudflare.inputs.WorkerObservabilityLogsArgs;
import com.pulumi.cloudflare.inputs.WorkerObservabilityTracesArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigCacheOptionsArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigEnvArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigLimitsArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigObservabilityArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigObservabilityIssuesArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigObservabilityLogsArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigObservabilityTracesArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigPlacementArgs;
import com.pulumi.cloudflare.inputs.WorkerPreviewsBaseConfigTailConsumerArgs;
import com.pulumi.cloudflare.inputs.WorkerSubdomainArgs;
import com.pulumi.cloudflare.inputs.WorkerTailConsumerArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleWorker = new Worker("exampleWorker", WorkerArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.name("my-worker")
.logpush(true)
.observability(WorkerObservabilityArgs.builder()
.enabled(true)
.headSamplingRate(1.0)
.issues(WorkerObservabilityIssuesArgs.builder()
.enabled(true)
.build())
.logs(WorkerObservabilityLogsArgs.builder()
.destinations("string")
.enabled(true)
.headSamplingRate(1.0)
.invocationLogs(true)
.persist(true)
.build())
.redactQueryString(true)
.traces(WorkerObservabilityTracesArgs.builder()
.destinations("string")
.enabled(true)
.headSamplingRate(1.0)
.persist(true)
.propagationPolicy("authenticated")
.build())
.build())
.previewsBaseConfig(WorkerPreviewsBaseConfigArgs.builder()
.cacheOptions(WorkerPreviewsBaseConfigCacheOptionsArgs.builder()
.enabled(true)
.crossVersionCache(true)
.build())
.env(Map.of("MY_ENV_VAR", WorkerPreviewsBaseConfigEnvArgs.builder()
.type("plain_text")
.build()))
.limits(WorkerPreviewsBaseConfigLimitsArgs.builder()
.cpuMs(50)
.subrequests(1000)
.build())
.logpush(true)
.observability(WorkerPreviewsBaseConfigObservabilityArgs.builder()
.enabled(true)
.headSamplingRate(1.0)
.issues(WorkerPreviewsBaseConfigObservabilityIssuesArgs.builder()
.enabled(true)
.build())
.logs(WorkerPreviewsBaseConfigObservabilityLogsArgs.builder()
.destinations("string")
.enabled(true)
.headSamplingRate(1.0)
.invocationLogs(true)
.persist(true)
.build())
.redactQueryString(true)
.traces(WorkerPreviewsBaseConfigObservabilityTracesArgs.builder()
.destinations("string")
.enabled(true)
.headSamplingRate(1.0)
.persist(true)
.propagationPolicy("authenticated")
.build())
.build())
.placement(WorkerPreviewsBaseConfigPlacementArgs.builder()
.mode("smart")
.build())
.tailConsumers(WorkerPreviewsBaseConfigTailConsumerArgs.builder()
.name("my-tail-consumer")
.build())
.build())
.subdomain(WorkerSubdomainArgs.builder()
.enabled(true)
.previewsEnabled(true)
.build())
.tags(
"my-team",
"my-public-api")
.tailConsumers(WorkerTailConsumerArgs.builder()
.name("my-tail-consumer")
.build())
.build());
}
}
resources:
exampleWorker:
type: cloudflare:Worker
name: example_worker
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
name: my-worker
logpush: true
observability:
enabled: true
headSamplingRate: 1
issues:
enabled: true
logs:
destinations:
- string
enabled: true
headSamplingRate: 1
invocationLogs: true
persist: true
redactQueryString: true
traces:
destinations:
- string
enabled: true
headSamplingRate: 1
persist: true
propagationPolicy: authenticated
previewsBaseConfig:
cacheOptions:
enabled: true
crossVersionCache: true
env:
MY_ENV_VAR:
type: plain_text
limits:
cpuMs: 50
subrequests: 1000
logpush: true
observability:
enabled: true
headSamplingRate: 1
issues:
enabled: true
logs:
destinations:
- string
enabled: true
headSamplingRate: 1
invocationLogs: true
persist: true
redactQueryString: true
traces:
destinations:
- string
enabled: true
headSamplingRate: 1
persist: true
propagationPolicy: authenticated
placement:
mode: smart
tailConsumers:
- name: my-tail-consumer
subdomain:
enabled: true
previewsEnabled: true
tags:
- my-team
- my-public-api
tailConsumers:
- name: my-tail-consumer
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_worker" "example_worker" {
lifecycle {
create_before_destroy = true
}
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "my-worker"
logpush = true
observability = {
enabled = true
head_sampling_rate = 1
issues = {
enabled = true
}
logs = {
destinations = ["string"]
enabled = true
head_sampling_rate = 1
invocation_logs = true
persist = true
}
redact_query_string = true
traces = {
destinations = ["string"]
enabled = true
head_sampling_rate = 1
persist = true
propagation_policy = "authenticated"
}
}
previews_base_config = {
cache_options = {
enabled = true
cross_version_cache = true
}
env = {
"MY_ENV_VAR" = {
type = "plain_text"
}
}
limits = {
cpu_ms = 50
subrequests = 1000
}
logpush = true
observability = {
enabled = true
head_sampling_rate = 1
issues = {
enabled = true
}
logs = {
destinations = ["string"]
enabled = true
head_sampling_rate = 1
invocation_logs = true
persist = true
}
redact_query_string = true
traces = {
destinations = ["string"]
enabled = true
head_sampling_rate = 1
persist = true
propagation_policy = "authenticated"
}
}
placement = {
mode = "smart"
}
tail_consumers = [{
name = "my-tail-consumer"
}]
}
subdomain = {
enabled = true
previews_enabled = true
}
tags = ["my-team", "my-public-api"]
tail_consumers = [{
name = "my-tail-consumer"
}]
}
Create Worker Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Worker(name: string, args: WorkerArgs, opts?: CustomResourceOptions);@overload
def Worker(resource_name: str,
args: WorkerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Worker(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
name: Optional[str] = None,
force: Optional[bool] = None,
logpush: Optional[bool] = None,
observability: Optional[WorkerObservabilityArgs] = None,
previews_base_config: Optional[WorkerPreviewsBaseConfigArgs] = None,
subdomain: Optional[WorkerSubdomainArgs] = None,
tags: Optional[Sequence[str]] = None,
tail_consumers: Optional[Sequence[WorkerTailConsumerArgs]] = None)func NewWorker(ctx *Context, name string, args WorkerArgs, opts ...ResourceOption) (*Worker, error)public Worker(string name, WorkerArgs args, CustomResourceOptions? opts = null)
public Worker(String name, WorkerArgs args)
public Worker(String name, WorkerArgs args, CustomResourceOptions options)
type: cloudflare:Worker
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_worker" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WorkerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var workerResource = new Cloudflare.Worker("workerResource", new()
{
AccountId = "string",
Name = "string",
Force = false,
Logpush = false,
Observability = new Cloudflare.Inputs.WorkerObservabilityArgs
{
Enabled = false,
HeadSamplingRate = 0.0,
Issues = new Cloudflare.Inputs.WorkerObservabilityIssuesArgs
{
Enabled = false,
},
Logs = new Cloudflare.Inputs.WorkerObservabilityLogsArgs
{
Destinations = new[]
{
"string",
},
Enabled = false,
HeadSamplingRate = 0.0,
InvocationLogs = false,
Persist = false,
},
Traces = new Cloudflare.Inputs.WorkerObservabilityTracesArgs
{
Destinations = new[]
{
"string",
},
Enabled = false,
HeadSamplingRate = 0.0,
Persist = false,
PropagationPolicy = "string",
},
},
PreviewsBaseConfig = new Cloudflare.Inputs.WorkerPreviewsBaseConfigArgs
{
CacheOptions = new Cloudflare.Inputs.WorkerPreviewsBaseConfigCacheOptionsArgs
{
CrossVersionCache = false,
Enabled = false,
},
Env =
{
{ "string", new Cloudflare.Inputs.WorkerPreviewsBaseConfigEnvArgs
{
Type = "string",
} },
},
Limits = new Cloudflare.Inputs.WorkerPreviewsBaseConfigLimitsArgs
{
CpuMs = 0,
Subrequests = 0,
},
Logpush = false,
Observability = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityArgs
{
Enabled = false,
HeadSamplingRate = 0.0,
Issues = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityIssuesArgs
{
Enabled = false,
},
Logs = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityLogsArgs
{
Destinations = new[]
{
"string",
},
Enabled = false,
HeadSamplingRate = 0.0,
InvocationLogs = false,
Persist = false,
},
RedactQueryString = false,
Traces = new Cloudflare.Inputs.WorkerPreviewsBaseConfigObservabilityTracesArgs
{
Destinations = new[]
{
"string",
},
Enabled = false,
HeadSamplingRate = 0.0,
Persist = false,
PropagationPolicy = "string",
},
},
Placement = new Cloudflare.Inputs.WorkerPreviewsBaseConfigPlacementArgs
{
Host = "string",
Hostname = "string",
Mode = "string",
Region = "string",
Targets = new[]
{
new Cloudflare.Inputs.WorkerPreviewsBaseConfigPlacementTargetArgs
{
Host = "string",
Hostname = "string",
Region = "string",
},
},
},
TailConsumers = new[]
{
new Cloudflare.Inputs.WorkerPreviewsBaseConfigTailConsumerArgs
{
Name = "string",
},
},
},
Subdomain = new Cloudflare.Inputs.WorkerSubdomainArgs
{
Enabled = false,
PreviewUrlSuffix = "string",
PreviewsEnabled = false,
Url = "string",
},
Tags = new[]
{
"string",
},
TailConsumers = new[]
{
new Cloudflare.Inputs.WorkerTailConsumerArgs
{
Name = "string",
},
},
});
example, err := cloudflare.NewWorker(ctx, "workerResource", &cloudflare.WorkerArgs{
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
Force: pulumi.Bool(false),
Logpush: pulumi.Bool(false),
Observability: &cloudflare.WorkerObservabilityArgs{
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
Issues: &cloudflare.WorkerObservabilityIssuesArgs{
Enabled: pulumi.Bool(false),
},
Logs: &cloudflare.WorkerObservabilityLogsArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
InvocationLogs: pulumi.Bool(false),
Persist: pulumi.Bool(false),
},
Traces: &cloudflare.WorkerObservabilityTracesArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
Persist: pulumi.Bool(false),
PropagationPolicy: pulumi.String("string"),
},
},
PreviewsBaseConfig: &cloudflare.WorkerPreviewsBaseConfigArgs{
CacheOptions: &cloudflare.WorkerPreviewsBaseConfigCacheOptionsArgs{
CrossVersionCache: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Env: cloudflare.WorkerPreviewsBaseConfigEnvMap{
"string": &cloudflare.WorkerPreviewsBaseConfigEnvArgs{
Type: pulumi.String("string"),
},
},
Limits: &cloudflare.WorkerPreviewsBaseConfigLimitsArgs{
CpuMs: pulumi.Int(0),
Subrequests: pulumi.Int(0),
},
Logpush: pulumi.Bool(false),
Observability: &cloudflare.WorkerPreviewsBaseConfigObservabilityArgs{
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
Issues: &cloudflare.WorkerPreviewsBaseConfigObservabilityIssuesArgs{
Enabled: pulumi.Bool(false),
},
Logs: &cloudflare.WorkerPreviewsBaseConfigObservabilityLogsArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
InvocationLogs: pulumi.Bool(false),
Persist: pulumi.Bool(false),
},
RedactQueryString: pulumi.Bool(false),
Traces: &cloudflare.WorkerPreviewsBaseConfigObservabilityTracesArgs{
Destinations: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
Persist: pulumi.Bool(false),
PropagationPolicy: pulumi.String("string"),
},
},
Placement: &cloudflare.WorkerPreviewsBaseConfigPlacementArgs{
Host: pulumi.String("string"),
Hostname: pulumi.String("string"),
Mode: pulumi.String("string"),
Region: pulumi.String("string"),
Targets: cloudflare.WorkerPreviewsBaseConfigPlacementTargetArray{
&cloudflare.WorkerPreviewsBaseConfigPlacementTargetArgs{
Host: pulumi.String("string"),
Hostname: pulumi.String("string"),
Region: pulumi.String("string"),
},
},
},
TailConsumers: cloudflare.WorkerPreviewsBaseConfigTailConsumerArray{
&cloudflare.WorkerPreviewsBaseConfigTailConsumerArgs{
Name: pulumi.String("string"),
},
},
},
Subdomain: &cloudflare.WorkerSubdomainArgs{
Enabled: pulumi.Bool(false),
PreviewUrlSuffix: pulumi.String("string"),
PreviewsEnabled: pulumi.Bool(false),
Url: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TailConsumers: cloudflare.WorkerTailConsumerArray{
&cloudflare.WorkerTailConsumerArgs{
Name: pulumi.String("string"),
},
},
})
resource "cloudflare_worker" "workerResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
name = "string"
force = false
logpush = false
observability = {
enabled = false
head_sampling_rate = 0
issues = {
enabled = false
}
logs = {
destinations = ["string"]
enabled = false
head_sampling_rate = 0
invocation_logs = false
persist = false
}
traces = {
destinations = ["string"]
enabled = false
head_sampling_rate = 0
persist = false
propagation_policy = "string"
}
}
previews_base_config = {
cache_options = {
cross_version_cache = false
enabled = false
}
env = {
"string" = {
type = "string"
}
}
limits = {
cpu_ms = 0
subrequests = 0
}
logpush = false
observability = {
enabled = false
head_sampling_rate = 0
issues = {
enabled = false
}
logs = {
destinations = ["string"]
enabled = false
head_sampling_rate = 0
invocation_logs = false
persist = false
}
redact_query_string = false
traces = {
destinations = ["string"]
enabled = false
head_sampling_rate = 0
persist = false
propagation_policy = "string"
}
}
placement = {
host = "string"
hostname = "string"
mode = "string"
region = "string"
targets = [{
host = "string"
hostname = "string"
region = "string"
}]
}
tail_consumers = [{
name = "string"
}]
}
subdomain = {
enabled = false
preview_url_suffix = "string"
previews_enabled = false
url = "string"
}
tags = ["string"]
tail_consumers {
name = "string"
}
}
var workerResource = new Worker("workerResource", WorkerArgs.builder()
.accountId("string")
.name("string")
.force(false)
.logpush(false)
.observability(WorkerObservabilityArgs.builder()
.enabled(false)
.headSamplingRate(0.0)
.issues(WorkerObservabilityIssuesArgs.builder()
.enabled(false)
.build())
.logs(WorkerObservabilityLogsArgs.builder()
.destinations("string")
.enabled(false)
.headSamplingRate(0.0)
.invocationLogs(false)
.persist(false)
.build())
.traces(WorkerObservabilityTracesArgs.builder()
.destinations("string")
.enabled(false)
.headSamplingRate(0.0)
.persist(false)
.propagationPolicy("string")
.build())
.build())
.previewsBaseConfig(WorkerPreviewsBaseConfigArgs.builder()
.cacheOptions(WorkerPreviewsBaseConfigCacheOptionsArgs.builder()
.crossVersionCache(false)
.enabled(false)
.build())
.env(Map.of("string", WorkerPreviewsBaseConfigEnvArgs.builder()
.type("string")
.build()))
.limits(WorkerPreviewsBaseConfigLimitsArgs.builder()
.cpuMs(0)
.subrequests(0)
.build())
.logpush(false)
.observability(WorkerPreviewsBaseConfigObservabilityArgs.builder()
.enabled(false)
.headSamplingRate(0.0)
.issues(WorkerPreviewsBaseConfigObservabilityIssuesArgs.builder()
.enabled(false)
.build())
.logs(WorkerPreviewsBaseConfigObservabilityLogsArgs.builder()
.destinations("string")
.enabled(false)
.headSamplingRate(0.0)
.invocationLogs(false)
.persist(false)
.build())
.redactQueryString(false)
.traces(WorkerPreviewsBaseConfigObservabilityTracesArgs.builder()
.destinations("string")
.enabled(false)
.headSamplingRate(0.0)
.persist(false)
.propagationPolicy("string")
.build())
.build())
.placement(WorkerPreviewsBaseConfigPlacementArgs.builder()
.host("string")
.hostname("string")
.mode("string")
.region("string")
.targets(WorkerPreviewsBaseConfigPlacementTargetArgs.builder()
.host("string")
.hostname("string")
.region("string")
.build())
.build())
.tailConsumers(WorkerPreviewsBaseConfigTailConsumerArgs.builder()
.name("string")
.build())
.build())
.subdomain(WorkerSubdomainArgs.builder()
.enabled(false)
.previewUrlSuffix("string")
.previewsEnabled(false)
.url("string")
.build())
.tags("string")
.tailConsumers(WorkerTailConsumerArgs.builder()
.name("string")
.build())
.build());
worker_resource = cloudflare.Worker("workerResource",
account_id="string",
name="string",
force=False,
logpush=False,
observability={
"enabled": False,
"head_sampling_rate": float(0),
"issues": {
"enabled": False,
},
"logs": {
"destinations": ["string"],
"enabled": False,
"head_sampling_rate": float(0),
"invocation_logs": False,
"persist": False,
},
"traces": {
"destinations": ["string"],
"enabled": False,
"head_sampling_rate": float(0),
"persist": False,
"propagation_policy": "string",
},
},
previews_base_config={
"cache_options": {
"cross_version_cache": False,
"enabled": False,
},
"env": {
"string": {
"type": "string",
},
},
"limits": {
"cpu_ms": 0,
"subrequests": 0,
},
"logpush": False,
"observability": {
"enabled": False,
"head_sampling_rate": float(0),
"issues": {
"enabled": False,
},
"logs": {
"destinations": ["string"],
"enabled": False,
"head_sampling_rate": float(0),
"invocation_logs": False,
"persist": False,
},
"redact_query_string": False,
"traces": {
"destinations": ["string"],
"enabled": False,
"head_sampling_rate": float(0),
"persist": False,
"propagation_policy": "string",
},
},
"placement": {
"host": "string",
"hostname": "string",
"mode": "string",
"region": "string",
"targets": [{
"host": "string",
"hostname": "string",
"region": "string",
}],
},
"tail_consumers": [{
"name": "string",
}],
},
subdomain={
"enabled": False,
"preview_url_suffix": "string",
"previews_enabled": False,
"url": "string",
},
tags=["string"],
tail_consumers=[{
"name": "string",
}])
const workerResource = new cloudflare.Worker("workerResource", {
accountId: "string",
name: "string",
force: false,
logpush: false,
observability: {
enabled: false,
headSamplingRate: 0,
issues: {
enabled: false,
},
logs: {
destinations: ["string"],
enabled: false,
headSamplingRate: 0,
invocationLogs: false,
persist: false,
},
traces: {
destinations: ["string"],
enabled: false,
headSamplingRate: 0,
persist: false,
propagationPolicy: "string",
},
},
previewsBaseConfig: {
cacheOptions: {
crossVersionCache: false,
enabled: false,
},
env: {
string: {
type: "string",
},
},
limits: {
cpuMs: 0,
subrequests: 0,
},
logpush: false,
observability: {
enabled: false,
headSamplingRate: 0,
issues: {
enabled: false,
},
logs: {
destinations: ["string"],
enabled: false,
headSamplingRate: 0,
invocationLogs: false,
persist: false,
},
redactQueryString: false,
traces: {
destinations: ["string"],
enabled: false,
headSamplingRate: 0,
persist: false,
propagationPolicy: "string",
},
},
placement: {
host: "string",
hostname: "string",
mode: "string",
region: "string",
targets: [{
host: "string",
hostname: "string",
region: "string",
}],
},
tailConsumers: [{
name: "string",
}],
},
subdomain: {
enabled: false,
previewUrlSuffix: "string",
previewsEnabled: false,
url: "string",
},
tags: ["string"],
tailConsumers: [{
name: "string",
}],
});
type: cloudflare:Worker
properties:
accountId: string
force: false
logpush: false
name: string
observability:
enabled: false
headSamplingRate: 0
issues:
enabled: false
logs:
destinations:
- string
enabled: false
headSamplingRate: 0
invocationLogs: false
persist: false
traces:
destinations:
- string
enabled: false
headSamplingRate: 0
persist: false
propagationPolicy: string
previewsBaseConfig:
cacheOptions:
crossVersionCache: false
enabled: false
env:
string:
type: string
limits:
cpuMs: 0
subrequests: 0
logpush: false
observability:
enabled: false
headSamplingRate: 0
issues:
enabled: false
logs:
destinations:
- string
enabled: false
headSamplingRate: 0
invocationLogs: false
persist: false
redactQueryString: false
traces:
destinations:
- string
enabled: false
headSamplingRate: 0
persist: false
propagationPolicy: string
placement:
host: string
hostname: string
mode: string
region: string
targets:
- host: string
hostname: string
region: string
tailConsumers:
- name: string
subdomain:
enabled: false
previewUrlSuffix: string
previewsEnabled: false
url: string
tags:
- string
tailConsumers:
- name: string
Worker Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Worker resource accepts the following input properties:
- Account
Id string - Identifier.
- Name string
- Name of the Worker.
- Force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Observability
Worker
Observability - Observability settings for the Worker.
- Previews
Base WorkerConfig Previews Base Config - Template configuration used when creating new Previews for this Worker.
- Subdomain
Worker
Subdomain - Subdomain settings for the Worker.
- List<string>
- Tags associated with the Worker.
- Tail
Consumers List<WorkerTail Consumer> - Other Workers that should consume logs from the Worker.
- Account
Id string - Identifier.
- Name string
- Name of the Worker.
- Force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Observability
Worker
Observability Args - Observability settings for the Worker.
- Previews
Base WorkerConfig Previews Base Config Args - Template configuration used when creating new Previews for this Worker.
- Subdomain
Worker
Subdomain Args - Subdomain settings for the Worker.
- []string
- Tags associated with the Worker.
- Tail
Consumers []WorkerTail Consumer Args - Other Workers that should consume logs from the Worker.
- account_
id string - Identifier.
- name string
- Name of the Worker.
- force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush bool
- Whether logpush is enabled for the Worker.
- observability object
- Observability settings for the Worker.
- previews_
base_ objectconfig - Template configuration used when creating new Previews for this Worker.
- subdomain object
- Subdomain settings for the Worker.
- list(string)
- Tags associated with the Worker.
- tail_
consumers list(object) - Other Workers that should consume logs from the Worker.
- account
Id String - Identifier.
- name String
- Name of the Worker.
- force Boolean
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- observability
Worker
Observability - Observability settings for the Worker.
- previews
Base WorkerConfig Previews Base Config - Template configuration used when creating new Previews for this Worker.
- subdomain
Worker
Subdomain - Subdomain settings for the Worker.
- List<String>
- Tags associated with the Worker.
- tail
Consumers List<WorkerTail Consumer> - Other Workers that should consume logs from the Worker.
- account
Id string - Identifier.
- name string
- Name of the Worker.
- force boolean
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush boolean
- Whether logpush is enabled for the Worker.
- observability
Worker
Observability - Observability settings for the Worker.
- previews
Base WorkerConfig Previews Base Config - Template configuration used when creating new Previews for this Worker.
- subdomain
Worker
Subdomain - Subdomain settings for the Worker.
- string[]
- Tags associated with the Worker.
- tail
Consumers WorkerTail Consumer[] - Other Workers that should consume logs from the Worker.
- account_
id str - Identifier.
- name str
- Name of the Worker.
- force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush bool
- Whether logpush is enabled for the Worker.
- observability
Worker
Observability Args - Observability settings for the Worker.
- previews_
base_ Workerconfig Previews Base Config Args - Template configuration used when creating new Previews for this Worker.
- subdomain
Worker
Subdomain Args - Subdomain settings for the Worker.
- Sequence[str]
- Tags associated with the Worker.
- tail_
consumers Sequence[WorkerTail Consumer Args] - Other Workers that should consume logs from the Worker.
- account
Id String - Identifier.
- name String
- Name of the Worker.
- force Boolean
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- observability Property Map
- Observability settings for the Worker.
- previews
Base Property MapConfig - Template configuration used when creating new Previews for this Worker.
- subdomain Property Map
- Subdomain settings for the Worker.
- List<String>
- Tags associated with the Worker.
- tail
Consumers List<Property Map> - Other Workers that should consume logs from the Worker.
Outputs
All input properties are implicitly available as output properties. Additionally, the Worker resource produces the following output properties:
- Created
On string - When the Worker was created.
- Deployed
On string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - Id string
- The provider-assigned unique ID for this managed resource.
- References
Worker
References - Other resources that reference the Worker and depend on it existing.
- Updated
On string - When the Worker was most recently updated.
- Created
On string - When the Worker was created.
- Deployed
On string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - Id string
- The provider-assigned unique ID for this managed resource.
- References
Worker
References - Other resources that reference the Worker and depend on it existing.
- Updated
On string - When the Worker was most recently updated.
- created_
on string - When the Worker was created.
- deployed_
on string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - id string
- The provider-assigned unique ID for this managed resource.
- references object
- Other resources that reference the Worker and depend on it existing.
- updated_
on string - When the Worker was most recently updated.
- created
On String - When the Worker was created.
- deployed
On String - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - id String
- The provider-assigned unique ID for this managed resource.
- references
Worker
References - Other resources that reference the Worker and depend on it existing.
- updated
On String - When the Worker was most recently updated.
- created
On string - When the Worker was created.
- deployed
On string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - id string
- The provider-assigned unique ID for this managed resource.
- references
Worker
References - Other resources that reference the Worker and depend on it existing.
- updated
On string - When the Worker was most recently updated.
- created_
on str - When the Worker was created.
- deployed_
on str - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - id str
- The provider-assigned unique ID for this managed resource.
- references
Worker
References - Other resources that reference the Worker and depend on it existing.
- updated_
on str - When the Worker was most recently updated.
- created
On String - When the Worker was created.
- deployed
On String - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - id String
- The provider-assigned unique ID for this managed resource.
- references Property Map
- Other resources that reference the Worker and depend on it existing.
- updated
On String - When the Worker was most recently updated.
Look up Existing Worker Resource
Get an existing Worker resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WorkerState, opts?: CustomResourceOptions): Worker@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_on: Optional[str] = None,
deployed_on: Optional[str] = None,
force: Optional[bool] = None,
logpush: Optional[bool] = None,
name: Optional[str] = None,
observability: Optional[WorkerObservabilityArgs] = None,
previews_base_config: Optional[WorkerPreviewsBaseConfigArgs] = None,
references: Optional[WorkerReferencesArgs] = None,
subdomain: Optional[WorkerSubdomainArgs] = None,
tags: Optional[Sequence[str]] = None,
tail_consumers: Optional[Sequence[WorkerTailConsumerArgs]] = None,
updated_on: Optional[str] = None) -> Workerfunc GetWorker(ctx *Context, name string, id IDInput, state *WorkerState, opts ...ResourceOption) (*Worker, error)public static Worker Get(string name, Input<string> id, WorkerState? state, CustomResourceOptions? opts = null)public static Worker get(String name, Output<String> id, WorkerState state, CustomResourceOptions options)resources: _: type: cloudflare:Worker get: id: ${id}import {
to = cloudflare_worker.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Identifier.
- Created
On string - When the Worker was created.
- Deployed
On string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - Force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Name string
- Name of the Worker.
- Observability
Worker
Observability - Observability settings for the Worker.
- Previews
Base WorkerConfig Previews Base Config - Template configuration used when creating new Previews for this Worker.
- References
Worker
References - Other resources that reference the Worker and depend on it existing.
- Subdomain
Worker
Subdomain - Subdomain settings for the Worker.
- List<string>
- Tags associated with the Worker.
- Tail
Consumers List<WorkerTail Consumer> - Other Workers that should consume logs from the Worker.
- Updated
On string - When the Worker was most recently updated.
- Account
Id string - Identifier.
- Created
On string - When the Worker was created.
- Deployed
On string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - Force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Name string
- Name of the Worker.
- Observability
Worker
Observability Args - Observability settings for the Worker.
- Previews
Base WorkerConfig Previews Base Config Args - Template configuration used when creating new Previews for this Worker.
- References
Worker
References Args - Other resources that reference the Worker and depend on it existing.
- Subdomain
Worker
Subdomain Args - Subdomain settings for the Worker.
- []string
- Tags associated with the Worker.
- Tail
Consumers []WorkerTail Consumer Args - Other Workers that should consume logs from the Worker.
- Updated
On string - When the Worker was most recently updated.
- account_
id string - Identifier.
- created_
on string - When the Worker was created.
- deployed_
on string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush bool
- Whether logpush is enabled for the Worker.
- name string
- Name of the Worker.
- observability object
- Observability settings for the Worker.
- previews_
base_ objectconfig - Template configuration used when creating new Previews for this Worker.
- references object
- Other resources that reference the Worker and depend on it existing.
- subdomain object
- Subdomain settings for the Worker.
- list(string)
- Tags associated with the Worker.
- tail_
consumers list(object) - Other Workers that should consume logs from the Worker.
- updated_
on string - When the Worker was most recently updated.
- account
Id String - Identifier.
- created
On String - When the Worker was created.
- deployed
On String - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - force Boolean
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- name String
- Name of the Worker.
- observability
Worker
Observability - Observability settings for the Worker.
- previews
Base WorkerConfig Previews Base Config - Template configuration used when creating new Previews for this Worker.
- references
Worker
References - Other resources that reference the Worker and depend on it existing.
- subdomain
Worker
Subdomain - Subdomain settings for the Worker.
- List<String>
- Tags associated with the Worker.
- tail
Consumers List<WorkerTail Consumer> - Other Workers that should consume logs from the Worker.
- updated
On String - When the Worker was most recently updated.
- account
Id string - Identifier.
- created
On string - When the Worker was created.
- deployed
On string - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - force boolean
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush boolean
- Whether logpush is enabled for the Worker.
- name string
- Name of the Worker.
- observability
Worker
Observability - Observability settings for the Worker.
- previews
Base WorkerConfig Previews Base Config - Template configuration used when creating new Previews for this Worker.
- references
Worker
References - Other resources that reference the Worker and depend on it existing.
- subdomain
Worker
Subdomain - Subdomain settings for the Worker.
- string[]
- Tags associated with the Worker.
- tail
Consumers WorkerTail Consumer[] - Other Workers that should consume logs from the Worker.
- updated
On string - When the Worker was most recently updated.
- account_
id str - Identifier.
- created_
on str - When the Worker was created.
- deployed_
on str - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - force bool
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush bool
- Whether logpush is enabled for the Worker.
- name str
- Name of the Worker.
- observability
Worker
Observability Args - Observability settings for the Worker.
- previews_
base_ Workerconfig Previews Base Config Args - Template configuration used when creating new Previews for this Worker.
- references
Worker
References Args - Other resources that reference the Worker and depend on it existing.
- subdomain
Worker
Subdomain Args - Subdomain settings for the Worker.
- Sequence[str]
- Tags associated with the Worker.
- tail_
consumers Sequence[WorkerTail Consumer Args] - Other Workers that should consume logs from the Worker.
- updated_
on str - When the Worker was most recently updated.
- account
Id String - Identifier.
- created
On String - When the Worker was created.
- deployed
On String - When the Worker's most recent deployment was created.
nullif the Worker has never been deployed. - force Boolean
- If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- name String
- Name of the Worker.
- observability Property Map
- Observability settings for the Worker.
- previews
Base Property MapConfig - Template configuration used when creating new Previews for this Worker.
- references Property Map
- Other resources that reference the Worker and depend on it existing.
- subdomain Property Map
- Subdomain settings for the Worker.
- List<String>
- Tags associated with the Worker.
- tail
Consumers List<Property Map> - Other Workers that should consume logs from the Worker.
- updated
On String - When the Worker was most recently updated.
Supporting Types
WorkerObservability, WorkerObservabilityArgs
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Issues
Worker
Observability Issues - Real-time Issues settings for the Worker.
- Logs
Worker
Observability Logs - Log settings for the Worker.
- Traces
Worker
Observability Traces - Trace settings for the Worker.
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Issues
Worker
Observability Issues - Real-time Issues settings for the Worker.
- Logs
Worker
Observability Logs - Log settings for the Worker.
- Traces
Worker
Observability Traces - Trace settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues
Worker
Observability Issues - Real-time Issues settings for the Worker.
- logs
Worker
Observability Logs - Log settings for the Worker.
- traces
Worker
Observability Traces - Trace settings for the Worker.
- enabled boolean
- Whether observability is enabled for the Worker.
- head
Sampling numberRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues
Worker
Observability Issues - Real-time Issues settings for the Worker.
- logs
Worker
Observability Logs - Log settings for the Worker.
- traces
Worker
Observability Traces - Trace settings for the Worker.
- enabled bool
- Whether observability is enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues
Worker
Observability Issues - Real-time Issues settings for the Worker.
- logs
Worker
Observability Logs - Log settings for the Worker.
- traces
Worker
Observability Traces - Trace settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues Property Map
- Real-time Issues settings for the Worker.
- logs Property Map
- Log settings for the Worker.
- traces Property Map
- Trace settings for the Worker.
WorkerObservabilityIssues, WorkerObservabilityIssuesArgs
- Enabled bool
- Whether real-time Issues are enabled for the Worker.
- Enabled bool
- Whether real-time Issues are enabled for the Worker.
- enabled bool
- Whether real-time Issues are enabled for the Worker.
- enabled Boolean
- Whether real-time Issues are enabled for the Worker.
- enabled boolean
- Whether real-time Issues are enabled for the Worker.
- enabled bool
- Whether real-time Issues are enabled for the Worker.
- enabled Boolean
- Whether real-time Issues are enabled for the Worker.
WorkerObservabilityLogs, WorkerObservabilityLogsArgs
- Destinations List<string>
- A list of destinations where logs will be exported to.
- Enabled bool
- Whether logs are enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Persist bool
- Whether log persistence is enabled for the Worker.
- Destinations []string
- A list of destinations where logs will be exported to.
- Enabled bool
- Whether logs are enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Persist bool
- Whether log persistence is enabled for the Worker.
- destinations list(string)
- A list of destinations where logs will be exported to.
- enabled bool
- Whether logs are enabled for the Worker.
- head_
sampling_ numberrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- persist bool
- Whether log persistence is enabled for the Worker.
- destinations List<String>
- A list of destinations where logs will be exported to.
- enabled Boolean
- Whether logs are enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- persist Boolean
- Whether log persistence is enabled for the Worker.
- destinations string[]
- A list of destinations where logs will be exported to.
- enabled boolean
- Whether logs are enabled for the Worker.
- head
Sampling numberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs boolean - Whether invocation logs are enabled for the Worker.
- persist boolean
- Whether log persistence is enabled for the Worker.
- destinations Sequence[str]
- A list of destinations where logs will be exported to.
- enabled bool
- Whether logs are enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- persist bool
- Whether log persistence is enabled for the Worker.
- destinations List<String>
- A list of destinations where logs will be exported to.
- enabled Boolean
- Whether logs are enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- persist Boolean
- Whether log persistence is enabled for the Worker.
WorkerObservabilityTraces, WorkerObservabilityTracesArgs
- Destinations List<string>
- A list of destinations where traces will be exported to.
- Enabled bool
- Whether traces are enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Persist bool
- Whether trace persistence is enabled for the Worker.
- Propagation
Policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
- Destinations []string
- A list of destinations where traces will be exported to.
- Enabled bool
- Whether traces are enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Persist bool
- Whether trace persistence is enabled for the Worker.
- Propagation
Policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
- destinations list(string)
- A list of destinations where traces will be exported to.
- enabled bool
- Whether traces are enabled for the Worker.
- head_
sampling_ numberrate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist bool
- Whether trace persistence is enabled for the Worker.
- propagation_
policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
- destinations List<String>
- A list of destinations where traces will be exported to.
- enabled Boolean
- Whether traces are enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist Boolean
- Whether trace persistence is enabled for the Worker.
- propagation
Policy String - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
- destinations string[]
- A list of destinations where traces will be exported to.
- enabled boolean
- Whether traces are enabled for the Worker.
- head
Sampling numberRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist boolean
- Whether trace persistence is enabled for the Worker.
- propagation
Policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
- destinations Sequence[str]
- A list of destinations where traces will be exported to.
- enabled bool
- Whether traces are enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist bool
- Whether trace persistence is enabled for the Worker.
- propagation_
policy str - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
- destinations List<String>
- A list of destinations where traces will be exported to.
- enabled Boolean
- Whether traces are enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist Boolean
- Whether trace persistence is enabled for the Worker.
- propagation
Policy String - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" (default) honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Available values: "authenticated", "accept".
WorkerPreviewsBaseConfig, WorkerPreviewsBaseConfigArgs
- Cache
Options WorkerPreviews Base Config Cache Options - Cache options used when creating new Previews.
- Env
Dictionary<string, Worker
Previews Base Config Env> - Bindings used when creating new Previews, keyed by binding name.
- Limits
Worker
Previews Base Config Limits - Resource limits enforced at runtime for newly created Previews.
- Logpush bool
- Whether logpush is enabled when creating new Previews.
- Observability
Worker
Previews Base Config Observability - Observability settings used when creating new Previews.
- Placement
Worker
Previews Base Config Placement - Placement configuration used when creating new Previews.
- Tail
Consumers List<WorkerPreviews Base Config Tail Consumer> - Other Workers that should consume logs from newly created Previews.
- Cache
Options WorkerPreviews Base Config Cache Options - Cache options used when creating new Previews.
- Env
map[string]Worker
Previews Base Config Env - Bindings used when creating new Previews, keyed by binding name.
- Limits
Worker
Previews Base Config Limits - Resource limits enforced at runtime for newly created Previews.
- Logpush bool
- Whether logpush is enabled when creating new Previews.
- Observability
Worker
Previews Base Config Observability - Observability settings used when creating new Previews.
- Placement
Worker
Previews Base Config Placement - Placement configuration used when creating new Previews.
- Tail
Consumers []WorkerPreviews Base Config Tail Consumer - Other Workers that should consume logs from newly created Previews.
- cache_
options object - Cache options used when creating new Previews.
- env map(object)
- Bindings used when creating new Previews, keyed by binding name.
- limits object
- Resource limits enforced at runtime for newly created Previews.
- logpush bool
- Whether logpush is enabled when creating new Previews.
- observability object
- Observability settings used when creating new Previews.
- placement object
- Placement configuration used when creating new Previews.
- tail_
consumers list(object) - Other Workers that should consume logs from newly created Previews.
- cache
Options WorkerPreviews Base Config Cache Options - Cache options used when creating new Previews.
- env
Map<String,Worker
Previews Base Config Env> - Bindings used when creating new Previews, keyed by binding name.
- limits
Worker
Previews Base Config Limits - Resource limits enforced at runtime for newly created Previews.
- logpush Boolean
- Whether logpush is enabled when creating new Previews.
- observability
Worker
Previews Base Config Observability - Observability settings used when creating new Previews.
- placement
Worker
Previews Base Config Placement - Placement configuration used when creating new Previews.
- tail
Consumers List<WorkerPreviews Base Config Tail Consumer> - Other Workers that should consume logs from newly created Previews.
- cache
Options WorkerPreviews Base Config Cache Options - Cache options used when creating new Previews.
- env
{[key: string]: Worker
Previews Base Config Env} - Bindings used when creating new Previews, keyed by binding name.
- limits
Worker
Previews Base Config Limits - Resource limits enforced at runtime for newly created Previews.
- logpush boolean
- Whether logpush is enabled when creating new Previews.
- observability
Worker
Previews Base Config Observability - Observability settings used when creating new Previews.
- placement
Worker
Previews Base Config Placement - Placement configuration used when creating new Previews.
- tail
Consumers WorkerPreviews Base Config Tail Consumer[] - Other Workers that should consume logs from newly created Previews.
- cache_
options WorkerPreviews Base Config Cache Options - Cache options used when creating new Previews.
- env
Mapping[str, Worker
Previews Base Config Env] - Bindings used when creating new Previews, keyed by binding name.
- limits
Worker
Previews Base Config Limits - Resource limits enforced at runtime for newly created Previews.
- logpush bool
- Whether logpush is enabled when creating new Previews.
- observability
Worker
Previews Base Config Observability - Observability settings used when creating new Previews.
- placement
Worker
Previews Base Config Placement - Placement configuration used when creating new Previews.
- tail_
consumers Sequence[WorkerPreviews Base Config Tail Consumer] - Other Workers that should consume logs from newly created Previews.
- cache
Options Property Map - Cache options used when creating new Previews.
- env Map<Property Map>
- Bindings used when creating new Previews, keyed by binding name.
- limits Property Map
- Resource limits enforced at runtime for newly created Previews.
- logpush Boolean
- Whether logpush is enabled when creating new Previews.
- observability Property Map
- Observability settings used when creating new Previews.
- placement Property Map
- Placement configuration used when creating new Previews.
- tail
Consumers List<Property Map> - Other Workers that should consume logs from newly created Previews.
WorkerPreviewsBaseConfigCacheOptions, WorkerPreviewsBaseConfigCacheOptionsArgs
- Cross
Version boolCache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - Enabled bool
- Whether caching is enabled for this Worker.
- Cross
Version boolCache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - Enabled bool
- Whether caching is enabled for this Worker.
- cross_
version_ boolcache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - enabled bool
- Whether caching is enabled for this Worker.
- cross
Version BooleanCache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - enabled Boolean
- Whether caching is enabled for this Worker.
- cross
Version booleanCache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - enabled boolean
- Whether caching is enabled for this Worker.
- cross_
version_ boolcache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - enabled bool
- Whether caching is enabled for this Worker.
- cross
Version BooleanCache - Whether cached responses are shared across Worker version
uploads. This is independent of
enabled. It can stay true while caching is off, so the preference survives turning caching off and back on. - enabled Boolean
- Whether caching is enabled for this Worker.
WorkerPreviewsBaseConfigEnv, WorkerPreviewsBaseConfigEnvArgs
- Type string
- The kind of resource that the binding provides.
- Type string
- The kind of resource that the binding provides.
- type string
- The kind of resource that the binding provides.
- type String
- The kind of resource that the binding provides.
- type string
- The kind of resource that the binding provides.
- type str
- The kind of resource that the binding provides.
- type String
- The kind of resource that the binding provides.
WorkerPreviewsBaseConfigLimits, WorkerPreviewsBaseConfigLimitsArgs
- Cpu
Ms int - The amount of CPU time this Worker can use in milliseconds.
- Subrequests int
- The number of subrequests this Worker can make per request.
- Cpu
Ms int - The amount of CPU time this Worker can use in milliseconds.
- Subrequests int
- The number of subrequests this Worker can make per request.
- cpu_
ms number - The amount of CPU time this Worker can use in milliseconds.
- subrequests number
- The number of subrequests this Worker can make per request.
- cpu
Ms Integer - The amount of CPU time this Worker can use in milliseconds.
- subrequests Integer
- The number of subrequests this Worker can make per request.
- cpu
Ms number - The amount of CPU time this Worker can use in milliseconds.
- subrequests number
- The number of subrequests this Worker can make per request.
- cpu_
ms int - The amount of CPU time this Worker can use in milliseconds.
- subrequests int
- The number of subrequests this Worker can make per request.
- cpu
Ms Number - The amount of CPU time this Worker can use in milliseconds.
- subrequests Number
- The number of subrequests this Worker can make per request.
WorkerPreviewsBaseConfigObservability, WorkerPreviewsBaseConfigObservabilityArgs
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Issues
Worker
Previews Base Config Observability Issues - Real-time Issues settings for the Worker.
- Logs
Worker
Previews Base Config Observability Logs - Log settings for the Worker.
- Redact
Query boolString - Whether query strings are removed from request URLs in logs and traces.
- Traces
Worker
Previews Base Config Observability Traces - Trace settings for the Worker.
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Issues
Worker
Previews Base Config Observability Issues - Real-time Issues settings for the Worker.
- Logs
Worker
Previews Base Config Observability Logs - Log settings for the Worker.
- Redact
Query boolString - Whether query strings are removed from request URLs in logs and traces.
- Traces
Worker
Previews Base Config Observability Traces - Trace settings for the Worker.
- enabled bool
- Whether observability is enabled for the Worker.
- head_
sampling_ numberrate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues object
- Real-time Issues settings for the Worker.
- logs object
- Log settings for the Worker.
- redact_
query_ boolstring - Whether query strings are removed from request URLs in logs and traces.
- traces object
- Trace settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues
Worker
Previews Base Config Observability Issues - Real-time Issues settings for the Worker.
- logs
Worker
Previews Base Config Observability Logs - Log settings for the Worker.
- redact
Query BooleanString - Whether query strings are removed from request URLs in logs and traces.
- traces
Worker
Previews Base Config Observability Traces - Trace settings for the Worker.
- enabled boolean
- Whether observability is enabled for the Worker.
- head
Sampling numberRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues
Worker
Previews Base Config Observability Issues - Real-time Issues settings for the Worker.
- logs
Worker
Previews Base Config Observability Logs - Log settings for the Worker.
- redact
Query booleanString - Whether query strings are removed from request URLs in logs and traces.
- traces
Worker
Previews Base Config Observability Traces - Trace settings for the Worker.
- enabled bool
- Whether observability is enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues
Worker
Previews Base Config Observability Issues - Real-time Issues settings for the Worker.
- logs
Worker
Previews Base Config Observability Logs - Log settings for the Worker.
- redact_
query_ boolstring - Whether query strings are removed from request URLs in logs and traces.
- traces
Worker
Previews Base Config Observability Traces - Trace settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- issues Property Map
- Real-time Issues settings for the Worker.
- logs Property Map
- Log settings for the Worker.
- redact
Query BooleanString - Whether query strings are removed from request URLs in logs and traces.
- traces Property Map
- Trace settings for the Worker.
WorkerPreviewsBaseConfigObservabilityIssues, WorkerPreviewsBaseConfigObservabilityIssuesArgs
- Enabled bool
- Whether real-time Issues are enabled for the Worker.
- Enabled bool
- Whether real-time Issues are enabled for the Worker.
- enabled bool
- Whether real-time Issues are enabled for the Worker.
- enabled Boolean
- Whether real-time Issues are enabled for the Worker.
- enabled boolean
- Whether real-time Issues are enabled for the Worker.
- enabled bool
- Whether real-time Issues are enabled for the Worker.
- enabled Boolean
- Whether real-time Issues are enabled for the Worker.
WorkerPreviewsBaseConfigObservabilityLogs, WorkerPreviewsBaseConfigObservabilityLogsArgs
- Destinations List<string>
- A list of destinations where logs will be exported to.
- Enabled bool
- Whether logs are enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Persist bool
- Whether log persistence is enabled for the Worker.
- Destinations []string
- A list of destinations where logs will be exported to.
- Enabled bool
- Whether logs are enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Persist bool
- Whether log persistence is enabled for the Worker.
- destinations list(string)
- A list of destinations where logs will be exported to.
- enabled bool
- Whether logs are enabled for the Worker.
- head_
sampling_ numberrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- persist bool
- Whether log persistence is enabled for the Worker.
- destinations List<String>
- A list of destinations where logs will be exported to.
- enabled Boolean
- Whether logs are enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- persist Boolean
- Whether log persistence is enabled for the Worker.
- destinations string[]
- A list of destinations where logs will be exported to.
- enabled boolean
- Whether logs are enabled for the Worker.
- head
Sampling numberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs boolean - Whether invocation logs are enabled for the Worker.
- persist boolean
- Whether log persistence is enabled for the Worker.
- destinations Sequence[str]
- A list of destinations where logs will be exported to.
- enabled bool
- Whether logs are enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- persist bool
- Whether log persistence is enabled for the Worker.
- destinations List<String>
- A list of destinations where logs will be exported to.
- enabled Boolean
- Whether logs are enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- persist Boolean
- Whether log persistence is enabled for the Worker.
WorkerPreviewsBaseConfigObservabilityTraces, WorkerPreviewsBaseConfigObservabilityTracesArgs
- Destinations List<string>
- A list of destinations where traces will be exported to.
- Enabled bool
- Whether traces are enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Persist bool
- Whether trace persistence is enabled for the Worker.
- Propagation
Policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
- Destinations []string
- A list of destinations where traces will be exported to.
- Enabled bool
- Whether traces are enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Persist bool
- Whether trace persistence is enabled for the Worker.
- Propagation
Policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
- destinations list(string)
- A list of destinations where traces will be exported to.
- enabled bool
- Whether traces are enabled for the Worker.
- head_
sampling_ numberrate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist bool
- Whether trace persistence is enabled for the Worker.
- propagation_
policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
- destinations List<String>
- A list of destinations where traces will be exported to.
- enabled Boolean
- Whether traces are enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist Boolean
- Whether trace persistence is enabled for the Worker.
- propagation
Policy String - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
- destinations string[]
- A list of destinations where traces will be exported to.
- enabled boolean
- Whether traces are enabled for the Worker.
- head
Sampling numberRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist boolean
- Whether trace persistence is enabled for the Worker.
- propagation
Policy string - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
- destinations Sequence[str]
- A list of destinations where traces will be exported to.
- enabled bool
- Whether traces are enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist bool
- Whether trace persistence is enabled for the Worker.
- propagation_
policy str - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
- destinations List<String>
- A list of destinations where traces will be exported to.
- enabled Boolean
- Whether traces are enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
- persist Boolean
- Whether trace persistence is enabled for the Worker.
- propagation
Policy String - Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. Available values: "authenticated", "accept".
WorkerPreviewsBaseConfigPlacement, WorkerPreviewsBaseConfigPlacementArgs
- Host string
- TCP host and port for targeted placement.
- Hostname string
- HTTP hostname for targeted placement.
- Mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- Region string
- Cloud region for targeted placement in format 'provider:region'.
- Targets
List<Worker
Previews Base Config Placement Target> - Array of placement targets (currently limited to single target).
- Host string
- TCP host and port for targeted placement.
- Hostname string
- HTTP hostname for targeted placement.
- Mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- Region string
- Cloud region for targeted placement in format 'provider:region'.
- Targets
[]Worker
Previews Base Config Placement Target - Array of placement targets (currently limited to single target).
- host string
- TCP host and port for targeted placement.
- hostname string
- HTTP hostname for targeted placement.
- mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- region string
- Cloud region for targeted placement in format 'provider:region'.
- targets list(object)
- Array of placement targets (currently limited to single target).
- host String
- TCP host and port for targeted placement.
- hostname String
- HTTP hostname for targeted placement.
- mode String
- Enables Smart Placement. Available values: "smart", "targeted".
- region String
- Cloud region for targeted placement in format 'provider:region'.
- targets
List<Worker
Previews Base Config Placement Target> - Array of placement targets (currently limited to single target).
- host string
- TCP host and port for targeted placement.
- hostname string
- HTTP hostname for targeted placement.
- mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- region string
- Cloud region for targeted placement in format 'provider:region'.
- targets
Worker
Previews Base Config Placement Target[] - Array of placement targets (currently limited to single target).
- host str
- TCP host and port for targeted placement.
- hostname str
- HTTP hostname for targeted placement.
- mode str
- Enables Smart Placement. Available values: "smart", "targeted".
- region str
- Cloud region for targeted placement in format 'provider:region'.
- targets
Sequence[Worker
Previews Base Config Placement Target] - Array of placement targets (currently limited to single target).
- host String
- TCP host and port for targeted placement.
- hostname String
- HTTP hostname for targeted placement.
- mode String
- Enables Smart Placement. Available values: "smart", "targeted".
- region String
- Cloud region for targeted placement in format 'provider:region'.
- targets List<Property Map>
- Array of placement targets (currently limited to single target).
WorkerPreviewsBaseConfigPlacementTarget, WorkerPreviewsBaseConfigPlacementTargetArgs
WorkerPreviewsBaseConfigTailConsumer, WorkerPreviewsBaseConfigTailConsumerArgs
- Name string
- Name of the consumer Worker.
- Name string
- Name of the consumer Worker.
- name string
- Name of the consumer Worker.
- name String
- Name of the consumer Worker.
- name string
- Name of the consumer Worker.
- name str
- Name of the consumer Worker.
- name String
- Name of the consumer Worker.
WorkerReferences, WorkerReferencesArgs
- Dispatch
Namespace List<WorkerOutbounds References Dispatch Namespace Outbound> - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- Domains
List<Worker
References Domain> - Custom domains connected to the Worker.
- Durable
Objects List<WorkerReferences Durable Object> - Other Workers that reference Durable Object classes implemented by the Worker.
- Queues
List<Worker
References Queue> - Queues that send messages to the Worker.
- Workers
List<Worker
References Worker> - Other Workers that reference the Worker using service bindings.
- Dispatch
Namespace []WorkerOutbounds References Dispatch Namespace Outbound - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- Domains
[]Worker
References Domain - Custom domains connected to the Worker.
- Durable
Objects []WorkerReferences Durable Object - Other Workers that reference Durable Object classes implemented by the Worker.
- Queues
[]Worker
References Queue - Queues that send messages to the Worker.
- Workers
[]Worker
References Worker - Other Workers that reference the Worker using service bindings.
- dispatch_
namespace_ list(object)outbounds - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains list(object)
- Custom domains connected to the Worker.
- durable_
objects list(object) - Other Workers that reference Durable Object classes implemented by the Worker.
- queues list(object)
- Queues that send messages to the Worker.
- workers list(object)
- Other Workers that reference the Worker using service bindings.
- dispatch
Namespace List<WorkerOutbounds References Dispatch Namespace Outbound> - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains
List<Worker
References Domain> - Custom domains connected to the Worker.
- durable
Objects List<WorkerReferences Durable Object> - Other Workers that reference Durable Object classes implemented by the Worker.
- queues
List<Worker
References Queue> - Queues that send messages to the Worker.
- workers
List<Worker
References Worker> - Other Workers that reference the Worker using service bindings.
- dispatch
Namespace WorkerOutbounds References Dispatch Namespace Outbound[] - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains
Worker
References Domain[] - Custom domains connected to the Worker.
- durable
Objects WorkerReferences Durable Object[] - Other Workers that reference Durable Object classes implemented by the Worker.
- queues
Worker
References Queue[] - Queues that send messages to the Worker.
- workers
Worker
References Worker[] - Other Workers that reference the Worker using service bindings.
- dispatch_
namespace_ Sequence[Workeroutbounds References Dispatch Namespace Outbound] - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains
Sequence[Worker
References Domain] - Custom domains connected to the Worker.
- durable_
objects Sequence[WorkerReferences Durable Object] - Other Workers that reference Durable Object classes implemented by the Worker.
- queues
Sequence[Worker
References Queue] - Queues that send messages to the Worker.
- workers
Sequence[Worker
References Worker] - Other Workers that reference the Worker using service bindings.
- dispatch
Namespace List<Property Map>Outbounds - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains List<Property Map>
- Custom domains connected to the Worker.
- durable
Objects List<Property Map> - Other Workers that reference Durable Object classes implemented by the Worker.
- queues List<Property Map>
- Queues that send messages to the Worker.
- workers List<Property Map>
- Other Workers that reference the Worker using service bindings.
WorkerReferencesDispatchNamespaceOutbound, WorkerReferencesDispatchNamespaceOutboundArgs
- Namespace
Id string - ID of the dispatch namespace.
- Namespace
Name string - Name of the dispatch namespace.
- Worker
Id string - ID of the Worker using the dispatch namespace.
- Worker
Name string - Name of the Worker using the dispatch namespace.
- Namespace
Id string - ID of the dispatch namespace.
- Namespace
Name string - Name of the dispatch namespace.
- Worker
Id string - ID of the Worker using the dispatch namespace.
- Worker
Name string - Name of the Worker using the dispatch namespace.
- namespace_
id string - ID of the dispatch namespace.
- namespace_
name string - Name of the dispatch namespace.
- worker_
id string - ID of the Worker using the dispatch namespace.
- worker_
name string - Name of the Worker using the dispatch namespace.
- namespace
Id String - ID of the dispatch namespace.
- namespace
Name String - Name of the dispatch namespace.
- worker
Id String - ID of the Worker using the dispatch namespace.
- worker
Name String - Name of the Worker using the dispatch namespace.
- namespace
Id string - ID of the dispatch namespace.
- namespace
Name string - Name of the dispatch namespace.
- worker
Id string - ID of the Worker using the dispatch namespace.
- worker
Name string - Name of the Worker using the dispatch namespace.
- namespace_
id str - ID of the dispatch namespace.
- namespace_
name str - Name of the dispatch namespace.
- worker_
id str - ID of the Worker using the dispatch namespace.
- worker_
name str - Name of the Worker using the dispatch namespace.
- namespace
Id String - ID of the dispatch namespace.
- namespace
Name String - Name of the dispatch namespace.
- worker
Id String - ID of the Worker using the dispatch namespace.
- worker
Name String - Name of the Worker using the dispatch namespace.
WorkerReferencesDomain, WorkerReferencesDomainArgs
- Certificate
Id string - ID of the TLS certificate issued for the custom domain.
- Hostname string
- Full hostname of the custom domain, including the zone name.
- Id string
- ID of the custom domain.
- Zone
Id string - ID of the zone.
- Zone
Name string - Name of the zone.
- Certificate
Id string - ID of the TLS certificate issued for the custom domain.
- Hostname string
- Full hostname of the custom domain, including the zone name.
- Id string
- ID of the custom domain.
- Zone
Id string - ID of the zone.
- Zone
Name string - Name of the zone.
- certificate_
id string - ID of the TLS certificate issued for the custom domain.
- hostname string
- Full hostname of the custom domain, including the zone name.
- id string
- ID of the custom domain.
- zone_
id string - ID of the zone.
- zone_
name string - Name of the zone.
- certificate
Id String - ID of the TLS certificate issued for the custom domain.
- hostname String
- Full hostname of the custom domain, including the zone name.
- id String
- ID of the custom domain.
- zone
Id String - ID of the zone.
- zone
Name String - Name of the zone.
- certificate
Id string - ID of the TLS certificate issued for the custom domain.
- hostname string
- Full hostname of the custom domain, including the zone name.
- id string
- ID of the custom domain.
- zone
Id string - ID of the zone.
- zone
Name string - Name of the zone.
- certificate_
id str - ID of the TLS certificate issued for the custom domain.
- hostname str
- Full hostname of the custom domain, including the zone name.
- id str
- ID of the custom domain.
- zone_
id str - ID of the zone.
- zone_
name str - Name of the zone.
- certificate
Id String - ID of the TLS certificate issued for the custom domain.
- hostname String
- Full hostname of the custom domain, including the zone name.
- id String
- ID of the custom domain.
- zone
Id String - ID of the zone.
- zone
Name String - Name of the zone.
WorkerReferencesDurableObject, WorkerReferencesDurableObjectArgs
- Namespace
Id string - ID of the Durable Object namespace being used.
- Namespace
Name string - Name of the Durable Object namespace being used.
- Worker
Id string - ID of the Worker using the Durable Object implementation.
- Worker
Name string - Name of the Worker using the Durable Object implementation.
- Namespace
Id string - ID of the Durable Object namespace being used.
- Namespace
Name string - Name of the Durable Object namespace being used.
- Worker
Id string - ID of the Worker using the Durable Object implementation.
- Worker
Name string - Name of the Worker using the Durable Object implementation.
- namespace_
id string - ID of the Durable Object namespace being used.
- namespace_
name string - Name of the Durable Object namespace being used.
- worker_
id string - ID of the Worker using the Durable Object implementation.
- worker_
name string - Name of the Worker using the Durable Object implementation.
- namespace
Id String - ID of the Durable Object namespace being used.
- namespace
Name String - Name of the Durable Object namespace being used.
- worker
Id String - ID of the Worker using the Durable Object implementation.
- worker
Name String - Name of the Worker using the Durable Object implementation.
- namespace
Id string - ID of the Durable Object namespace being used.
- namespace
Name string - Name of the Durable Object namespace being used.
- worker
Id string - ID of the Worker using the Durable Object implementation.
- worker
Name string - Name of the Worker using the Durable Object implementation.
- namespace_
id str - ID of the Durable Object namespace being used.
- namespace_
name str - Name of the Durable Object namespace being used.
- worker_
id str - ID of the Worker using the Durable Object implementation.
- worker_
name str - Name of the Worker using the Durable Object implementation.
- namespace
Id String - ID of the Durable Object namespace being used.
- namespace
Name String - Name of the Durable Object namespace being used.
- worker
Id String - ID of the Worker using the Durable Object implementation.
- worker
Name String - Name of the Worker using the Durable Object implementation.
WorkerReferencesQueue, WorkerReferencesQueueArgs
- Queue
Consumer stringId - ID of the queue consumer configuration.
- Queue
Id string - ID of the queue.
- Queue
Name string - Name of the queue.
- Queue
Consumer stringId - ID of the queue consumer configuration.
- Queue
Id string - ID of the queue.
- Queue
Name string - Name of the queue.
- queue_
consumer_ stringid - ID of the queue consumer configuration.
- queue_
id string - ID of the queue.
- queue_
name string - Name of the queue.
- queue
Consumer StringId - ID of the queue consumer configuration.
- queue
Id String - ID of the queue.
- queue
Name String - Name of the queue.
- queue
Consumer stringId - ID of the queue consumer configuration.
- queue
Id string - ID of the queue.
- queue
Name string - Name of the queue.
- queue_
consumer_ strid - ID of the queue consumer configuration.
- queue_
id str - ID of the queue.
- queue_
name str - Name of the queue.
- queue
Consumer StringId - ID of the queue consumer configuration.
- queue
Id String - ID of the queue.
- queue
Name String - Name of the queue.
WorkerReferencesWorker, WorkerReferencesWorkerArgs
WorkerSubdomain, WorkerSubdomainArgs
- Enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- Preview
Url stringSuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - Previews
Enabled bool - Whether preview URLs are enabled for the Worker.
- Url string
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
- Enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- Preview
Url stringSuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - Previews
Enabled bool - Whether preview URLs are enabled for the Worker.
- Url string
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
- enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- preview_
url_ stringsuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - previews_
enabled bool - Whether preview URLs are enabled for the Worker.
- url string
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
- enabled Boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- preview
Url StringSuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - previews
Enabled Boolean - Whether preview URLs are enabled for the Worker.
- url String
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
- enabled boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- preview
Url stringSuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - previews
Enabled boolean - Whether preview URLs are enabled for the Worker.
- url string
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
- enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- preview_
url_ strsuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - previews_
enabled bool - Whether preview URLs are enabled for the Worker.
- url str
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
- enabled Boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- preview
Url StringSuffix - Prepend a version or preview prefix to this host suffix to form the *.workers.dev preview URL the Worker would serve on once previews are enabled, e.g.
https://<prefix>-my-worker.my-subdomain.workers.dev. Present whenever the account owns a workers.dev subdomain, regardless of whetherpreviewsEnabledis true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain. - previews
Enabled Boolean - Whether preview URLs are enabled for the Worker.
- url String
- The address the Worker would serve on once its *.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether
enabledis true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.
WorkerTailConsumer, WorkerTailConsumerArgs
- Name string
- Name of the consumer Worker.
- Name string
- Name of the consumer Worker.
- name string
- Name of the consumer Worker.
- name String
- Name of the consumer Worker.
- name string
- Name of the consumer Worker.
- name str
- Name of the consumer Worker.
- name String
- Name of the consumer Worker.
Import
$ pulumi import cloudflare:index/worker:Worker example '<account_id>/<worker_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Tuesday, Oct 27, 2026 by Pulumi