cloudflare.Worker
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,
logs: {
enabled: true,
headSamplingRate: 1,
invocationLogs: true,
},
},
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": 1,
"logs": {
"enabled": True,
"head_sampling_rate": 1,
"invocation_logs": True,
},
},
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),
Logs: &cloudflare.WorkerObservabilityLogsArgs{
Enabled: pulumi.Bool(true),
HeadSamplingRate: pulumi.Float64(1),
InvocationLogs: pulumi.Bool(true),
},
},
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,
Logs = new Cloudflare.Inputs.WorkerObservabilityLogsArgs
{
Enabled = true,
HeadSamplingRate = 1,
InvocationLogs = true,
},
},
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.WorkerObservabilityLogsArgs;
import com.pulumi.cloudflare.inputs.WorkerSubdomainArgs;
import com.pulumi.cloudflare.inputs.WorkerTailConsumerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleWorker = new Worker("exampleWorker", WorkerArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.name("my-worker")
.logpush(true)
.observability(WorkerObservabilityArgs.builder()
.enabled(true)
.headSamplingRate(1.0)
.logs(WorkerObservabilityLogsArgs.builder()
.enabled(true)
.headSamplingRate(1.0)
.invocationLogs(true)
.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
logs:
enabled: true
headSamplingRate: 1
invocationLogs: true
subdomain:
enabled: true
previewsEnabled: true
tags:
- my-team
- my-public-api
tailConsumers:
- 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,
logpush: Optional[bool] = None,
observability: Optional[WorkerObservabilityArgs] = 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.
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",
Logpush = false,
Observability = new Cloudflare.Inputs.WorkerObservabilityArgs
{
Enabled = false,
HeadSamplingRate = 0,
Logs = new Cloudflare.Inputs.WorkerObservabilityLogsArgs
{
Enabled = false,
HeadSamplingRate = 0,
InvocationLogs = false,
},
},
Subdomain = new Cloudflare.Inputs.WorkerSubdomainArgs
{
Enabled = false,
PreviewsEnabled = false,
},
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"),
Logpush: pulumi.Bool(false),
Observability: &cloudflare.WorkerObservabilityArgs{
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
Logs: &cloudflare.WorkerObservabilityLogsArgs{
Enabled: pulumi.Bool(false),
HeadSamplingRate: pulumi.Float64(0),
InvocationLogs: pulumi.Bool(false),
},
},
Subdomain: &cloudflare.WorkerSubdomainArgs{
Enabled: pulumi.Bool(false),
PreviewsEnabled: pulumi.Bool(false),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TailConsumers: cloudflare.WorkerTailConsumerArray{
&cloudflare.WorkerTailConsumerArgs{
Name: pulumi.String("string"),
},
},
})
var workerResource = new Worker("workerResource", WorkerArgs.builder()
.accountId("string")
.name("string")
.logpush(false)
.observability(WorkerObservabilityArgs.builder()
.enabled(false)
.headSamplingRate(0.0)
.logs(WorkerObservabilityLogsArgs.builder()
.enabled(false)
.headSamplingRate(0.0)
.invocationLogs(false)
.build())
.build())
.subdomain(WorkerSubdomainArgs.builder()
.enabled(false)
.previewsEnabled(false)
.build())
.tags("string")
.tailConsumers(WorkerTailConsumerArgs.builder()
.name("string")
.build())
.build());
worker_resource = cloudflare.Worker("workerResource",
account_id="string",
name="string",
logpush=False,
observability={
"enabled": False,
"head_sampling_rate": 0,
"logs": {
"enabled": False,
"head_sampling_rate": 0,
"invocation_logs": False,
},
},
subdomain={
"enabled": False,
"previews_enabled": False,
},
tags=["string"],
tail_consumers=[{
"name": "string",
}])
const workerResource = new cloudflare.Worker("workerResource", {
accountId: "string",
name: "string",
logpush: false,
observability: {
enabled: false,
headSamplingRate: 0,
logs: {
enabled: false,
headSamplingRate: 0,
invocationLogs: false,
},
},
subdomain: {
enabled: false,
previewsEnabled: false,
},
tags: ["string"],
tailConsumers: [{
name: "string",
}],
});
type: cloudflare:Worker
properties:
accountId: string
logpush: false
name: string
observability:
enabled: false
headSamplingRate: 0
logs:
enabled: false
headSamplingRate: 0
invocationLogs: false
subdomain:
enabled: false
previewsEnabled: false
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.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Observability
Worker
Observability - Observability settings for the 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.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Observability
Worker
Observability Args - Observability settings for the 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.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- observability
Worker
Observability - Observability settings for the 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.
- logpush boolean
- Whether logpush is enabled for the Worker.
- observability
Worker
Observability - Observability settings for the 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.
- logpush bool
- Whether logpush is enabled for the Worker.
- observability
Worker
Observability Args - Observability settings for the 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.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- observability Property Map
- Observability settings for the 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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,
logpush: Optional[bool] = None,
name: Optional[str] = None,
observability: Optional[WorkerObservabilityArgs] = 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}- 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.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Name string
- Name of the Worker.
- Observability
Worker
Observability - Observability settings for the 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.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Name string
- Name of the Worker.
- Observability
Worker
Observability Args - Observability settings for the 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.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- name String
- Name of the Worker.
- observability
Worker
Observability - Observability settings for the 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.
- logpush boolean
- Whether logpush is enabled for the Worker.
- name string
- Name of the Worker.
- observability
Worker
Observability - Observability settings for the 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.
- logpush bool
- Whether logpush is enabled for the Worker.
- name str
- Name of the Worker.
- observability
Worker
Observability Args - Observability settings for the 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.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- name String
- Name of the Worker.
- observability Property Map
- Observability settings for the 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%).
- Logs
Worker
Observability Logs - Log 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%).
- Logs
Worker
Observability Logs - Log 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%).
- logs
Worker
Observability Logs - Log 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%).
- logs
Worker
Observability Logs - Log 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%).
- logs
Worker
Observability Logs - Log 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%).
- logs Property Map
- Log settings for the Worker.
WorkerObservabilityLogs, WorkerObservabilityLogsArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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<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 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 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 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_ 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.
- Previews
Enabled bool - Whether preview URLs are enabled for the Worker.
- Enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- Previews
Enabled bool - Whether preview URLs are enabled for the Worker.
- enabled Boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews
Enabled Boolean - Whether preview URLs are enabled for the Worker.
- enabled boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews
Enabled boolean - Whether preview URLs are enabled for the Worker.
- enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews_
enabled bool - Whether preview URLs are enabled for the Worker.
- enabled Boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews
Enabled Boolean - Whether preview URLs are enabled for the Worker.
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 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.
