published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Accepted Permissions
Workers Scripts ReadWorkers Scripts WriteWorkers Tail Read
For more direct control over Workers resources, we recommend the beta
cloudflare.Worker,cloudflare.WorkerVersion, andcloudflare.WorkersDeploymentresources. See how to use them in the developer documentation.
Create WorkerScript Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkerScript(name: string, args: WorkerScriptArgs, opts?: CustomResourceOptions);@overload
def WorkerScript(resource_name: str,
args: WorkerScriptArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkerScript(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
annotations: Optional[WorkerScriptAnnotationsArgs] = None,
assets: Optional[WorkerScriptAssetsArgs] = None,
bindings: Optional[Sequence[WorkerScriptBindingArgs]] = None,
body_part: Optional[str] = None,
compatibility_date: Optional[str] = None,
compatibility_flags: Optional[Sequence[str]] = None,
content: Optional[str] = None,
content_file: Optional[str] = None,
content_sha256: Optional[str] = None,
content_type: Optional[str] = None,
keep_assets: Optional[bool] = None,
keep_bindings: Optional[Sequence[str]] = None,
limits: Optional[WorkerScriptLimitsArgs] = None,
logpush: Optional[bool] = None,
main_module: Optional[str] = None,
migrations: Optional[WorkerScriptMigrationsArgs] = None,
observability: Optional[WorkerScriptObservabilityArgs] = None,
placement: Optional[WorkerScriptPlacementArgs] = None,
script_name: Optional[str] = None,
tail_consumers: Optional[Sequence[WorkerScriptTailConsumerArgs]] = None,
usage_model: Optional[str] = None)func NewWorkerScript(ctx *Context, name string, args WorkerScriptArgs, opts ...ResourceOption) (*WorkerScript, error)public WorkerScript(string name, WorkerScriptArgs args, CustomResourceOptions? opts = null)
public WorkerScript(String name, WorkerScriptArgs args)
public WorkerScript(String name, WorkerScriptArgs args, CustomResourceOptions options)
type: cloudflare:WorkerScript
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_workerscript" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WorkerScriptArgs
- 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 WorkerScriptArgs
- 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 WorkerScriptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkerScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkerScriptArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkerScript 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 WorkerScript resource accepts the following input properties:
- Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Annotations
Worker
Script Annotations - Annotations for the version created by this upload.
- Assets
Worker
Script Assets - Configuration for assets within a Worker.
- Bindings
List<Worker
Script Binding> - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- Body
Part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - Compatibility
Date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- Compatibility
Flags List<string> - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - Content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - Content
File string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - Content
Sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - Content
Type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- Keep
Assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- Keep
Bindings List<string> - List of binding types to keep from previous_upload.
- Limits
Worker
Script Limits - Limits to apply for this Worker.
- Logpush bool
- Whether Logpush is turned on for the Worker.
- Main
Module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - Migrations
Worker
Script Migrations - Migrations to apply for Durable Objects associated with this Worker.
- Observability
Worker
Script Observability - Observability settings for the Worker.
- Placement
Worker
Script Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Tail
Consumers List<WorkerScript Tail Consumer> - List of Workers that will consume logs from the attached Worker.
- Usage
Model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Annotations
Worker
Script Annotations Args - Annotations for the version created by this upload.
- Assets
Worker
Script Assets Args - Configuration for assets within a Worker.
- Bindings
[]Worker
Script Binding Args - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- Body
Part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - Compatibility
Date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- Compatibility
Flags []string - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - Content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - Content
File string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - Content
Sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - Content
Type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- Keep
Assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- Keep
Bindings []string - List of binding types to keep from previous_upload.
- Limits
Worker
Script Limits Args - Limits to apply for this Worker.
- Logpush bool
- Whether Logpush is turned on for the Worker.
- Main
Module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - Migrations
Worker
Script Migrations Args - Migrations to apply for Durable Objects associated with this Worker.
- Observability
Worker
Script Observability Args - Observability settings for the Worker.
- Placement
Worker
Script Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Tail
Consumers []WorkerScript Tail Consumer Args - List of Workers that will consume logs from the attached Worker.
- Usage
Model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- script_
name string - Name of the script, used in URLs and route configuration.
- account_
id string - Identifier.
- annotations object
- Annotations for the version created by this upload.
- assets object
- Configuration for assets within a Worker.
- bindings list(object)
- List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body_
part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility_
date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility_
flags list(string) - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content_
file string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content_
sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content_
type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- keep_
assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep_
bindings list(string) - List of binding types to keep from previous_upload.
- limits object
- Limits to apply for this Worker.
- logpush bool
- Whether Logpush is turned on for the Worker.
- main_
module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migrations object
- Migrations to apply for Durable Objects associated with this Worker.
- observability object
- Observability settings for the Worker.
- placement object
- Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- tail_
consumers list(object) - List of Workers that will consume logs from the attached Worker.
- usage_
model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- script
Name String - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- annotations
Worker
Script Annotations - Annotations for the version created by this upload.
- assets
Worker
Script Assets - Configuration for assets within a Worker.
- bindings
List<Worker
Script Binding> - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body
Part String - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility
Date String - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility
Flags List<String> - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content String
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content
File String - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content
Sha256 String - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content
Type String - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- keep
Assets Boolean - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep
Bindings List<String> - List of binding types to keep from previous_upload.
- limits
Worker
Script Limits - Limits to apply for this Worker.
- logpush Boolean
- Whether Logpush is turned on for the Worker.
- main
Module String - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migrations
Worker
Script Migrations - Migrations to apply for Durable Objects associated with this Worker.
- observability
Worker
Script Observability - Observability settings for the Worker.
- placement
Worker
Script Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- tail
Consumers List<WorkerScript Tail Consumer> - List of Workers that will consume logs from the attached Worker.
- usage
Model String - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- script
Name string - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- annotations
Worker
Script Annotations - Annotations for the version created by this upload.
- assets
Worker
Script Assets - Configuration for assets within a Worker.
- bindings
Worker
Script Binding[] - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body
Part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility
Date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility
Flags string[] - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content
File string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content
Sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content
Type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- keep
Assets boolean - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep
Bindings string[] - List of binding types to keep from previous_upload.
- limits
Worker
Script Limits - Limits to apply for this Worker.
- logpush boolean
- Whether Logpush is turned on for the Worker.
- main
Module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migrations
Worker
Script Migrations - Migrations to apply for Durable Objects associated with this Worker.
- observability
Worker
Script Observability - Observability settings for the Worker.
- placement
Worker
Script Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- tail
Consumers WorkerScript Tail Consumer[] - List of Workers that will consume logs from the attached Worker.
- usage
Model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- script_
name str - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- annotations
Worker
Script Annotations Args - Annotations for the version created by this upload.
- assets
Worker
Script Assets Args - Configuration for assets within a Worker.
- bindings
Sequence[Worker
Script Binding Args] - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body_
part str - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility_
date str - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility_
flags Sequence[str] - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content str
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content_
file str - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content_
sha256 str - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content_
type str - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- keep_
assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep_
bindings Sequence[str] - List of binding types to keep from previous_upload.
- limits
Worker
Script Limits Args - Limits to apply for this Worker.
- logpush bool
- Whether Logpush is turned on for the Worker.
- main_
module str - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migrations
Worker
Script Migrations Args - Migrations to apply for Durable Objects associated with this Worker.
- observability
Worker
Script Observability Args - Observability settings for the Worker.
- placement
Worker
Script Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- tail_
consumers Sequence[WorkerScript Tail Consumer Args] - List of Workers that will consume logs from the attached Worker.
- usage_
model str - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- script
Name String - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- annotations Property Map
- Annotations for the version created by this upload.
- assets Property Map
- Configuration for assets within a Worker.
- bindings List<Property Map>
- List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body
Part String - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility
Date String - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility
Flags List<String> - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content String
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content
File String - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content
Sha256 String - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content
Type String - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- keep
Assets Boolean - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep
Bindings List<String> - List of binding types to keep from previous_upload.
- limits Property Map
- Limits to apply for this Worker.
- logpush Boolean
- Whether Logpush is turned on for the Worker.
- main
Module String - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migrations Property Map
- Migrations to apply for Durable Objects associated with this Worker.
- observability Property Map
- Observability settings for the Worker.
- placement Property Map
- Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- tail
Consumers List<Property Map> - List of Workers that will consume logs from the attached Worker.
- usage
Model String - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkerScript resource produces the following output properties:
- Created
On string - When the script was created.
- Etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- Handlers List<string>
- The names of handlers exported as part of the default export.
- Has
Assets bool - Whether a Worker contains assets.
- Has
Modules bool - Whether a Worker contains modules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Deployed stringFrom - The client most recently used to deploy this Worker.
- Migration
Tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- Modified
On string - When the script was last modified.
- Named
Handlers List<WorkerScript Named Handler> - Named exports, such as Durable Object class implementations and named entrypoints.
- Placement
Mode string - Available values: "smart", "targeted".
- Placement
Status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- Startup
Time intMs
- Created
On string - When the script was created.
- Etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- Handlers []string
- The names of handlers exported as part of the default export.
- Has
Assets bool - Whether a Worker contains assets.
- Has
Modules bool - Whether a Worker contains modules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Deployed stringFrom - The client most recently used to deploy this Worker.
- Migration
Tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- Modified
On string - When the script was last modified.
- Named
Handlers []WorkerScript Named Handler - Named exports, such as Durable Object class implementations and named entrypoints.
- Placement
Mode string - Available values: "smart", "targeted".
- Placement
Status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- Startup
Time intMs
- created_
on string - When the script was created.
- etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers list(string)
- The names of handlers exported as part of the default export.
- has_
assets bool - Whether a Worker contains assets.
- has_
modules bool - Whether a Worker contains modules.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
deployed_ stringfrom - The client most recently used to deploy this Worker.
- migration_
tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- modified_
on string - When the script was last modified.
- named_
handlers list(object) - Named exports, such as Durable Object class implementations and named entrypoints.
- placement_
mode string - Available values: "smart", "targeted".
- placement_
status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- startup_
time_ numberms
- created
On String - When the script was created.
- etag String
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers List<String>
- The names of handlers exported as part of the default export.
- has
Assets Boolean - Whether a Worker contains assets.
- has
Modules Boolean - Whether a Worker contains modules.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Deployed StringFrom - The client most recently used to deploy this Worker.
- migration
Tag String - The tag of the Durable Object migration that was most recently applied for this Worker.
- modified
On String - When the script was last modified.
- named
Handlers List<WorkerScript Named Handler> - Named exports, such as Durable Object class implementations and named entrypoints.
- placement
Mode String - Available values: "smart", "targeted".
- placement
Status String - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- startup
Time IntegerMs
- created
On string - When the script was created.
- etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers string[]
- The names of handlers exported as part of the default export.
- has
Assets boolean - Whether a Worker contains assets.
- has
Modules boolean - Whether a Worker contains modules.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Deployed stringFrom - The client most recently used to deploy this Worker.
- migration
Tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- modified
On string - When the script was last modified.
- named
Handlers WorkerScript Named Handler[] - Named exports, such as Durable Object class implementations and named entrypoints.
- placement
Mode string - Available values: "smart", "targeted".
- placement
Status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- startup
Time numberMs
- created_
on str - When the script was created.
- etag str
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers Sequence[str]
- The names of handlers exported as part of the default export.
- has_
assets bool - Whether a Worker contains assets.
- has_
modules bool - Whether a Worker contains modules.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
deployed_ strfrom - The client most recently used to deploy this Worker.
- migration_
tag str - The tag of the Durable Object migration that was most recently applied for this Worker.
- modified_
on str - When the script was last modified.
- named_
handlers Sequence[WorkerScript Named Handler] - Named exports, such as Durable Object class implementations and named entrypoints.
- placement_
mode str - Available values: "smart", "targeted".
- placement_
status str - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- startup_
time_ intms
- created
On String - When the script was created.
- etag String
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers List<String>
- The names of handlers exported as part of the default export.
- has
Assets Boolean - Whether a Worker contains assets.
- has
Modules Boolean - Whether a Worker contains modules.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Deployed StringFrom - The client most recently used to deploy this Worker.
- migration
Tag String - The tag of the Durable Object migration that was most recently applied for this Worker.
- modified
On String - When the script was last modified.
- named
Handlers List<Property Map> - Named exports, such as Durable Object class implementations and named entrypoints.
- placement
Mode String - Available values: "smart", "targeted".
- placement
Status String - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- startup
Time NumberMs
Look up Existing WorkerScript Resource
Get an existing WorkerScript 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?: WorkerScriptState, opts?: CustomResourceOptions): WorkerScript@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
annotations: Optional[WorkerScriptAnnotationsArgs] = None,
assets: Optional[WorkerScriptAssetsArgs] = None,
bindings: Optional[Sequence[WorkerScriptBindingArgs]] = None,
body_part: Optional[str] = None,
compatibility_date: Optional[str] = None,
compatibility_flags: Optional[Sequence[str]] = None,
content: Optional[str] = None,
content_file: Optional[str] = None,
content_sha256: Optional[str] = None,
content_type: Optional[str] = None,
created_on: Optional[str] = None,
etag: Optional[str] = None,
handlers: Optional[Sequence[str]] = None,
has_assets: Optional[bool] = None,
has_modules: Optional[bool] = None,
keep_assets: Optional[bool] = None,
keep_bindings: Optional[Sequence[str]] = None,
last_deployed_from: Optional[str] = None,
limits: Optional[WorkerScriptLimitsArgs] = None,
logpush: Optional[bool] = None,
main_module: Optional[str] = None,
migration_tag: Optional[str] = None,
migrations: Optional[WorkerScriptMigrationsArgs] = None,
modified_on: Optional[str] = None,
named_handlers: Optional[Sequence[WorkerScriptNamedHandlerArgs]] = None,
observability: Optional[WorkerScriptObservabilityArgs] = None,
placement: Optional[WorkerScriptPlacementArgs] = None,
placement_mode: Optional[str] = None,
placement_status: Optional[str] = None,
script_name: Optional[str] = None,
startup_time_ms: Optional[int] = None,
tail_consumers: Optional[Sequence[WorkerScriptTailConsumerArgs]] = None,
usage_model: Optional[str] = None) -> WorkerScriptfunc GetWorkerScript(ctx *Context, name string, id IDInput, state *WorkerScriptState, opts ...ResourceOption) (*WorkerScript, error)public static WorkerScript Get(string name, Input<string> id, WorkerScriptState? state, CustomResourceOptions? opts = null)public static WorkerScript get(String name, Output<String> id, WorkerScriptState state, CustomResourceOptions options)resources: _: type: cloudflare:WorkerScript get: id: ${id}import {
to = cloudflare_workerscript.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.
- Annotations
Worker
Script Annotations - Annotations for the version created by this upload.
- Assets
Worker
Script Assets - Configuration for assets within a Worker.
- Bindings
List<Worker
Script Binding> - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- Body
Part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - Compatibility
Date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- Compatibility
Flags List<string> - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - Content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - Content
File string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - Content
Sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - Content
Type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- Created
On string - When the script was created.
- Etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- Handlers List<string>
- The names of handlers exported as part of the default export.
- Has
Assets bool - Whether a Worker contains assets.
- Has
Modules bool - Whether a Worker contains modules.
- Keep
Assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- Keep
Bindings List<string> - List of binding types to keep from previous_upload.
- Last
Deployed stringFrom - The client most recently used to deploy this Worker.
- Limits
Worker
Script Limits - Limits to apply for this Worker.
- Logpush bool
- Whether Logpush is turned on for the Worker.
- Main
Module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - Migration
Tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- Migrations
Worker
Script Migrations - Migrations to apply for Durable Objects associated with this Worker.
- Modified
On string - When the script was last modified.
- Named
Handlers List<WorkerScript Named Handler> - Named exports, such as Durable Object class implementations and named entrypoints.
- Observability
Worker
Script Observability - Observability settings for the Worker.
- Placement
Worker
Script Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Placement
Mode string - Available values: "smart", "targeted".
- Placement
Status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- Script
Name string - Name of the script, used in URLs and route configuration.
- Startup
Time intMs - Tail
Consumers List<WorkerScript Tail Consumer> - List of Workers that will consume logs from the attached Worker.
- Usage
Model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- Account
Id string - Identifier.
- Annotations
Worker
Script Annotations Args - Annotations for the version created by this upload.
- Assets
Worker
Script Assets Args - Configuration for assets within a Worker.
- Bindings
[]Worker
Script Binding Args - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- Body
Part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - Compatibility
Date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- Compatibility
Flags []string - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - Content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - Content
File string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - Content
Sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - Content
Type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- Created
On string - When the script was created.
- Etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- Handlers []string
- The names of handlers exported as part of the default export.
- Has
Assets bool - Whether a Worker contains assets.
- Has
Modules bool - Whether a Worker contains modules.
- Keep
Assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- Keep
Bindings []string - List of binding types to keep from previous_upload.
- Last
Deployed stringFrom - The client most recently used to deploy this Worker.
- Limits
Worker
Script Limits Args - Limits to apply for this Worker.
- Logpush bool
- Whether Logpush is turned on for the Worker.
- Main
Module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - Migration
Tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- Migrations
Worker
Script Migrations Args - Migrations to apply for Durable Objects associated with this Worker.
- Modified
On string - When the script was last modified.
- Named
Handlers []WorkerScript Named Handler Args - Named exports, such as Durable Object class implementations and named entrypoints.
- Observability
Worker
Script Observability Args - Observability settings for the Worker.
- Placement
Worker
Script Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Placement
Mode string - Available values: "smart", "targeted".
- Placement
Status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- Script
Name string - Name of the script, used in URLs and route configuration.
- Startup
Time intMs - Tail
Consumers []WorkerScript Tail Consumer Args - List of Workers that will consume logs from the attached Worker.
- Usage
Model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- account_
id string - Identifier.
- annotations object
- Annotations for the version created by this upload.
- assets object
- Configuration for assets within a Worker.
- bindings list(object)
- List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body_
part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility_
date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility_
flags list(string) - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content_
file string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content_
sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content_
type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- created_
on string - When the script was created.
- etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers list(string)
- The names of handlers exported as part of the default export.
- has_
assets bool - Whether a Worker contains assets.
- has_
modules bool - Whether a Worker contains modules.
- keep_
assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep_
bindings list(string) - List of binding types to keep from previous_upload.
- last_
deployed_ stringfrom - The client most recently used to deploy this Worker.
- limits object
- Limits to apply for this Worker.
- logpush bool
- Whether Logpush is turned on for the Worker.
- main_
module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migration_
tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- migrations object
- Migrations to apply for Durable Objects associated with this Worker.
- modified_
on string - When the script was last modified.
- named_
handlers list(object) - Named exports, such as Durable Object class implementations and named entrypoints.
- observability object
- Observability settings for the Worker.
- placement object
- Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- placement_
mode string - Available values: "smart", "targeted".
- placement_
status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- script_
name string - Name of the script, used in URLs and route configuration.
- startup_
time_ numberms - tail_
consumers list(object) - List of Workers that will consume logs from the attached Worker.
- usage_
model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- account
Id String - Identifier.
- annotations
Worker
Script Annotations - Annotations for the version created by this upload.
- assets
Worker
Script Assets - Configuration for assets within a Worker.
- bindings
List<Worker
Script Binding> - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body
Part String - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility
Date String - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility
Flags List<String> - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content String
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content
File String - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content
Sha256 String - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content
Type String - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- created
On String - When the script was created.
- etag String
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers List<String>
- The names of handlers exported as part of the default export.
- has
Assets Boolean - Whether a Worker contains assets.
- has
Modules Boolean - Whether a Worker contains modules.
- keep
Assets Boolean - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep
Bindings List<String> - List of binding types to keep from previous_upload.
- last
Deployed StringFrom - The client most recently used to deploy this Worker.
- limits
Worker
Script Limits - Limits to apply for this Worker.
- logpush Boolean
- Whether Logpush is turned on for the Worker.
- main
Module String - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migration
Tag String - The tag of the Durable Object migration that was most recently applied for this Worker.
- migrations
Worker
Script Migrations - Migrations to apply for Durable Objects associated with this Worker.
- modified
On String - When the script was last modified.
- named
Handlers List<WorkerScript Named Handler> - Named exports, such as Durable Object class implementations and named entrypoints.
- observability
Worker
Script Observability - Observability settings for the Worker.
- placement
Worker
Script Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- placement
Mode String - Available values: "smart", "targeted".
- placement
Status String - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- script
Name String - Name of the script, used in URLs and route configuration.
- startup
Time IntegerMs - tail
Consumers List<WorkerScript Tail Consumer> - List of Workers that will consume logs from the attached Worker.
- usage
Model String - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- account
Id string - Identifier.
- annotations
Worker
Script Annotations - Annotations for the version created by this upload.
- assets
Worker
Script Assets - Configuration for assets within a Worker.
- bindings
Worker
Script Binding[] - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body
Part string - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility
Date string - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility
Flags string[] - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content string
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content
File string - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content
Sha256 string - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content
Type string - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- created
On string - When the script was created.
- etag string
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers string[]
- The names of handlers exported as part of the default export.
- has
Assets boolean - Whether a Worker contains assets.
- has
Modules boolean - Whether a Worker contains modules.
- keep
Assets boolean - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep
Bindings string[] - List of binding types to keep from previous_upload.
- last
Deployed stringFrom - The client most recently used to deploy this Worker.
- limits
Worker
Script Limits - Limits to apply for this Worker.
- logpush boolean
- Whether Logpush is turned on for the Worker.
- main
Module string - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migration
Tag string - The tag of the Durable Object migration that was most recently applied for this Worker.
- migrations
Worker
Script Migrations - Migrations to apply for Durable Objects associated with this Worker.
- modified
On string - When the script was last modified.
- named
Handlers WorkerScript Named Handler[] - Named exports, such as Durable Object class implementations and named entrypoints.
- observability
Worker
Script Observability - Observability settings for the Worker.
- placement
Worker
Script Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- placement
Mode string - Available values: "smart", "targeted".
- placement
Status string - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- script
Name string - Name of the script, used in URLs and route configuration.
- startup
Time numberMs - tail
Consumers WorkerScript Tail Consumer[] - List of Workers that will consume logs from the attached Worker.
- usage
Model string - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- account_
id str - Identifier.
- annotations
Worker
Script Annotations Args - Annotations for the version created by this upload.
- assets
Worker
Script Assets Args - Configuration for assets within a Worker.
- bindings
Sequence[Worker
Script Binding Args] - List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body_
part str - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility_
date str - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility_
flags Sequence[str] - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content str
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content_
file str - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content_
sha256 str - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content_
type str - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- created_
on str - When the script was created.
- etag str
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers Sequence[str]
- The names of handlers exported as part of the default export.
- has_
assets bool - Whether a Worker contains assets.
- has_
modules bool - Whether a Worker contains modules.
- keep_
assets bool - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep_
bindings Sequence[str] - List of binding types to keep from previous_upload.
- last_
deployed_ strfrom - The client most recently used to deploy this Worker.
- limits
Worker
Script Limits Args - Limits to apply for this Worker.
- logpush bool
- Whether Logpush is turned on for the Worker.
- main_
module str - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migration_
tag str - The tag of the Durable Object migration that was most recently applied for this Worker.
- migrations
Worker
Script Migrations Args - Migrations to apply for Durable Objects associated with this Worker.
- modified_
on str - When the script was last modified.
- named_
handlers Sequence[WorkerScript Named Handler Args] - Named exports, such as Durable Object class implementations and named entrypoints.
- observability
Worker
Script Observability Args - Observability settings for the Worker.
- placement
Worker
Script Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- placement_
mode str - Available values: "smart", "targeted".
- placement_
status str - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- script_
name str - Name of the script, used in URLs and route configuration.
- startup_
time_ intms - tail_
consumers Sequence[WorkerScript Tail Consumer Args] - List of Workers that will consume logs from the attached Worker.
- usage_
model str - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
- account
Id String - Identifier.
- annotations Property Map
- Annotations for the version created by this upload.
- assets Property Map
- Configuration for assets within a Worker.
- bindings List<Property Map>
- List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
- body
Part String - Name of the uploaded file that contains the script (e.g. the file adding a listener to the
fetchevent). Indicates aservice worker syntaxWorker. - compatibility
Date String - Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
- compatibility
Flags List<String> - Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a
compatibilityDate. - content String
- Module or Service Worker contents of the Worker. Conflicts with
contentFile. - content
File String - Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with
content. Must be paired withcontentSha256. - content
Sha256 String - SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
contentFileis specified. - content
Type String - Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
- created
On String - When the script was created.
- etag String
- Hashed script content, can be used in a If-None-Match header when updating.
- handlers List<String>
- The names of handlers exported as part of the default export.
- has
Assets Boolean - Whether a Worker contains assets.
- has
Modules Boolean - Whether a Worker contains modules.
- keep
Assets Boolean - Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
- keep
Bindings List<String> - List of binding types to keep from previous_upload.
- last
Deployed StringFrom - The client most recently used to deploy this Worker.
- limits Property Map
- Limits to apply for this Worker.
- logpush Boolean
- Whether Logpush is turned on for the Worker.
- main
Module String - Name of the uploaded file that contains the main module (e.g. the file exporting a
fetchhandler). Indicates amodule syntaxWorker. - migration
Tag String - The tag of the Durable Object migration that was most recently applied for this Worker.
- migrations Property Map
- Migrations to apply for Durable Objects associated with this Worker.
- modified
On String - When the script was last modified.
- named
Handlers List<Property Map> - Named exports, such as Durable Object class implementations and named entrypoints.
- observability Property Map
- Observability settings for the Worker.
- placement Property Map
- Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- placement
Mode String - Available values: "smart", "targeted".
- placement
Status String - Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- script
Name String - Name of the script, used in URLs and route configuration.
- startup
Time NumberMs - tail
Consumers List<Property Map> - List of Workers that will consume logs from the attached Worker.
- usage
Model String - Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
Supporting Types
WorkerScriptAnnotations, WorkerScriptAnnotationsArgs
- Workers
Message string - Human-readable message about the version. Truncated to 1000 bytes if longer.
- Workers
Tag string - User-provided identifier for the version. Maximum 100 bytes.
- Workers
Triggered stringBy - Indicates the trigger that created this version. Server-set value.
- Workers
Message string - Human-readable message about the version. Truncated to 1000 bytes if longer.
- Workers
Tag string - User-provided identifier for the version. Maximum 100 bytes.
- Workers
Triggered stringBy - Indicates the trigger that created this version. Server-set value.
- workers_
message string - Human-readable message about the version. Truncated to 1000 bytes if longer.
- workers_
tag string - User-provided identifier for the version. Maximum 100 bytes.
- workers_
triggered_ stringby - Indicates the trigger that created this version. Server-set value.
- workers
Message String - Human-readable message about the version. Truncated to 1000 bytes if longer.
- workers
Tag String - User-provided identifier for the version. Maximum 100 bytes.
- workers
Triggered StringBy - Indicates the trigger that created this version. Server-set value.
- workers
Message string - Human-readable message about the version. Truncated to 1000 bytes if longer.
- workers
Tag string - User-provided identifier for the version. Maximum 100 bytes.
- workers
Triggered stringBy - Indicates the trigger that created this version. Server-set value.
- workers_
message str - Human-readable message about the version. Truncated to 1000 bytes if longer.
- workers_
tag str - User-provided identifier for the version. Maximum 100 bytes.
- workers_
triggered_ strby - Indicates the trigger that created this version. Server-set value.
- workers
Message String - Human-readable message about the version. Truncated to 1000 bytes if longer.
- workers
Tag String - User-provided identifier for the version. Maximum 100 bytes.
- workers
Triggered StringBy - Indicates the trigger that created this version. Server-set value.
WorkerScriptAssets, WorkerScriptAssetsArgs
- Asset
Manifest stringSha256 - The SHA-256 hash of the asset manifest of files to upload.
- Config
Worker
Script Assets Config - Configuration for assets within a Worker.
- Directory string
- Path to the directory containing asset files to upload.
- Jwt string
- Token provided upon successful upload of all files from a registered manifest.
- Asset
Manifest stringSha256 - The SHA-256 hash of the asset manifest of files to upload.
- Config
Worker
Script Assets Config - Configuration for assets within a Worker.
- Directory string
- Path to the directory containing asset files to upload.
- Jwt string
- Token provided upon successful upload of all files from a registered manifest.
- asset_
manifest_ stringsha256 - The SHA-256 hash of the asset manifest of files to upload.
- config object
- Configuration for assets within a Worker.
- directory string
- Path to the directory containing asset files to upload.
- jwt string
- Token provided upon successful upload of all files from a registered manifest.
- asset
Manifest StringSha256 - The SHA-256 hash of the asset manifest of files to upload.
- config
Worker
Script Assets Config - Configuration for assets within a Worker.
- directory String
- Path to the directory containing asset files to upload.
- jwt String
- Token provided upon successful upload of all files from a registered manifest.
- asset
Manifest stringSha256 - The SHA-256 hash of the asset manifest of files to upload.
- config
Worker
Script Assets Config - Configuration for assets within a Worker.
- directory string
- Path to the directory containing asset files to upload.
- jwt string
- Token provided upon successful upload of all files from a registered manifest.
- asset_
manifest_ strsha256 - The SHA-256 hash of the asset manifest of files to upload.
- config
Worker
Script Assets Config - Configuration for assets within a Worker.
- directory str
- Path to the directory containing asset files to upload.
- jwt str
- Token provided upon successful upload of all files from a registered manifest.
- asset
Manifest StringSha256 - The SHA-256 hash of the asset manifest of files to upload.
- config Property Map
- Configuration for assets within a Worker.
- directory String
- Path to the directory containing asset files to upload.
- jwt String
- Token provided upon successful upload of all files from a registered manifest.
WorkerScriptAssetsConfig, WorkerScriptAssetsConfigArgs
- Headers string
- The contents of a _headers file (used to attach custom headers on asset responses).
- Html
Handling string - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- Not
Found stringHandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- Redirects string
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- Run
Worker objectFirst - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- Serve
Directly bool - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
- Headers string
- The contents of a _headers file (used to attach custom headers on asset responses).
- Html
Handling string - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- Not
Found stringHandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- Redirects string
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- Run
Worker interface{}First - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- Serve
Directly bool - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
- headers string
- The contents of a _headers file (used to attach custom headers on asset responses).
- html_
handling string - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- not_
found_ stringhandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- redirects string
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- run_
worker_ anyfirst - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- serve_
directly bool - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
- headers String
- The contents of a _headers file (used to attach custom headers on asset responses).
- html
Handling String - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- not
Found StringHandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- redirects String
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- run
Worker ObjectFirst - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- serve
Directly Boolean - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
- headers string
- The contents of a _headers file (used to attach custom headers on asset responses).
- html
Handling string - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- not
Found stringHandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- redirects string
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- run
Worker anyFirst - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- serve
Directly boolean - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
- headers str
- The contents of a _headers file (used to attach custom headers on asset responses).
- html_
handling str - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- not_
found_ strhandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- redirects str
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- run_
worker_ Anyfirst - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- serve_
directly bool - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
- headers String
- The contents of a _headers file (used to attach custom headers on asset responses).
- html
Handling String - Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
- not
Found StringHandling - Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
- redirects String
- The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
- run
Worker AnyFirst - When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
- serve
Directly Boolean - When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
WorkerScriptBinding, WorkerScriptBindingArgs
- Name string
- A JavaScript variable name for the binding.
- Type string
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- Algorithm string
- Algorithm-specific key parameters. Learn more.
- Allowed
Destination List<string>Addresses - List of allowed destination addresses.
- Allowed
Sender List<string>Addresses - List of allowed sender addresses.
- App
Id string - ID of the Flagship app to bind to for feature flag evaluation.
- Bucket
Name string - R2 bucket to bind to.
- Certificate
Id string - Identifier of the certificate to bind to.
- Class
Name string - The exported class name of the Durable Object.
- Database
Id string - Identifier of the D1 database to bind to.
- Dataset string
- The name of the dataset to bind to.
- Destination
Address string - Destination address for the email.
- Dispatch
Namespace string - The dispatch namespace the Durable Object script belongs to.
- Entrypoint string
- Entrypoint to invoke on the target Worker.
- Environment string
- The environment of the scriptName to bind to.
- Format string
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- Id string
- Identifier of the D1 database to bind to.
- Index
Name string - Name of the Vectorize index to bind to.
- Instance
Name string - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- Json string
- JSON data to use.
- Jurisdiction string
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- Key
Base64 string - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - Key
Jwk string - Key data in JSON Web Key format. Required if
formatis "jwk". - Namespace string
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- Namespace
Id string - Namespace identifier tag.
- Network
Id string - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- Old
Name string - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - Outbound
Worker
Script Binding Outbound - Outbound worker.
- Part string
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - Pipeline string
- Name of the Pipeline to bind to.
- Queue
Name string - Name of the Queue to bind to.
- Script
Name string - The script where the Durable Object is defined, if it is external to this Worker.
- Secret
Name string - Name of the secret in the store.
- Service string
- Name of Worker to bind to.
- Service
Id string - Identifier of the VPC service to bind to.
- Simple
Worker
Script Binding Simple - A simple rate limit.
- Store
Id string - ID of the store containing the secret.
- Text string
- The text value to use.
- Tunnel
Id string - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- Usages List<string>
- Allowed operations with the key. Learn more.
- Version
Id string - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- Workflow
Name string - Name of the Workflow to bind to.
- Name string
- A JavaScript variable name for the binding.
- Type string
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- Algorithm string
- Algorithm-specific key parameters. Learn more.
- Allowed
Destination []stringAddresses - List of allowed destination addresses.
- Allowed
Sender []stringAddresses - List of allowed sender addresses.
- App
Id string - ID of the Flagship app to bind to for feature flag evaluation.
- Bucket
Name string - R2 bucket to bind to.
- Certificate
Id string - Identifier of the certificate to bind to.
- Class
Name string - The exported class name of the Durable Object.
- Database
Id string - Identifier of the D1 database to bind to.
- Dataset string
- The name of the dataset to bind to.
- Destination
Address string - Destination address for the email.
- Dispatch
Namespace string - The dispatch namespace the Durable Object script belongs to.
- Entrypoint string
- Entrypoint to invoke on the target Worker.
- Environment string
- The environment of the scriptName to bind to.
- Format string
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- Id string
- Identifier of the D1 database to bind to.
- Index
Name string - Name of the Vectorize index to bind to.
- Instance
Name string - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- Json string
- JSON data to use.
- Jurisdiction string
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- Key
Base64 string - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - Key
Jwk string - Key data in JSON Web Key format. Required if
formatis "jwk". - Namespace string
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- Namespace
Id string - Namespace identifier tag.
- Network
Id string - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- Old
Name string - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - Outbound
Worker
Script Binding Outbound - Outbound worker.
- Part string
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - Pipeline string
- Name of the Pipeline to bind to.
- Queue
Name string - Name of the Queue to bind to.
- Script
Name string - The script where the Durable Object is defined, if it is external to this Worker.
- Secret
Name string - Name of the secret in the store.
- Service string
- Name of Worker to bind to.
- Service
Id string - Identifier of the VPC service to bind to.
- Simple
Worker
Script Binding Simple - A simple rate limit.
- Store
Id string - ID of the store containing the secret.
- Text string
- The text value to use.
- Tunnel
Id string - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- Usages []string
- Allowed operations with the key. Learn more.
- Version
Id string - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- Workflow
Name string - Name of the Workflow to bind to.
- name string
- A JavaScript variable name for the binding.
- type string
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- algorithm string
- Algorithm-specific key parameters. Learn more.
- allowed_
destination_ list(string)addresses - List of allowed destination addresses.
- allowed_
sender_ list(string)addresses - List of allowed sender addresses.
- app_
id string - ID of the Flagship app to bind to for feature flag evaluation.
- bucket_
name string - R2 bucket to bind to.
- certificate_
id string - Identifier of the certificate to bind to.
- class_
name string - The exported class name of the Durable Object.
- database_
id string - Identifier of the D1 database to bind to.
- dataset string
- The name of the dataset to bind to.
- destination_
address string - Destination address for the email.
- dispatch_
namespace string - The dispatch namespace the Durable Object script belongs to.
- entrypoint string
- Entrypoint to invoke on the target Worker.
- environment string
- The environment of the scriptName to bind to.
- format string
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- id string
- Identifier of the D1 database to bind to.
- index_
name string - Name of the Vectorize index to bind to.
- instance_
name string - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- json string
- JSON data to use.
- jurisdiction string
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- key_
base64 string - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - key_
jwk string - Key data in JSON Web Key format. Required if
formatis "jwk". - namespace string
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- namespace_
id string - Namespace identifier tag.
- network_
id string - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- old_
name string - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - outbound object
- Outbound worker.
- part string
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - pipeline string
- Name of the Pipeline to bind to.
- queue_
name string - Name of the Queue to bind to.
- script_
name string - The script where the Durable Object is defined, if it is external to this Worker.
- secret_
name string - Name of the secret in the store.
- service string
- Name of Worker to bind to.
- service_
id string - Identifier of the VPC service to bind to.
- simple object
- A simple rate limit.
- store_
id string - ID of the store containing the secret.
- text string
- The text value to use.
- tunnel_
id string - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- usages list(string)
- Allowed operations with the key. Learn more.
- version_
id string - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- workflow_
name string - Name of the Workflow to bind to.
- name String
- A JavaScript variable name for the binding.
- type String
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- algorithm String
- Algorithm-specific key parameters. Learn more.
- allowed
Destination List<String>Addresses - List of allowed destination addresses.
- allowed
Sender List<String>Addresses - List of allowed sender addresses.
- app
Id String - ID of the Flagship app to bind to for feature flag evaluation.
- bucket
Name String - R2 bucket to bind to.
- certificate
Id String - Identifier of the certificate to bind to.
- class
Name String - The exported class name of the Durable Object.
- database
Id String - Identifier of the D1 database to bind to.
- dataset String
- The name of the dataset to bind to.
- destination
Address String - Destination address for the email.
- dispatch
Namespace String - The dispatch namespace the Durable Object script belongs to.
- entrypoint String
- Entrypoint to invoke on the target Worker.
- environment String
- The environment of the scriptName to bind to.
- format String
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- id String
- Identifier of the D1 database to bind to.
- index
Name String - Name of the Vectorize index to bind to.
- instance
Name String - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- json String
- JSON data to use.
- jurisdiction String
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- key
Base64 String - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - key
Jwk String - Key data in JSON Web Key format. Required if
formatis "jwk". - namespace String
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- namespace
Id String - Namespace identifier tag.
- network
Id String - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- old
Name String - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - outbound
Worker
Script Binding Outbound - Outbound worker.
- part String
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - pipeline String
- Name of the Pipeline to bind to.
- queue
Name String - Name of the Queue to bind to.
- script
Name String - The script where the Durable Object is defined, if it is external to this Worker.
- secret
Name String - Name of the secret in the store.
- service String
- Name of Worker to bind to.
- service
Id String - Identifier of the VPC service to bind to.
- simple
Worker
Script Binding Simple - A simple rate limit.
- store
Id String - ID of the store containing the secret.
- text String
- The text value to use.
- tunnel
Id String - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- usages List<String>
- Allowed operations with the key. Learn more.
- version
Id String - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- workflow
Name String - Name of the Workflow to bind to.
- name string
- A JavaScript variable name for the binding.
- type string
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- algorithm string
- Algorithm-specific key parameters. Learn more.
- allowed
Destination string[]Addresses - List of allowed destination addresses.
- allowed
Sender string[]Addresses - List of allowed sender addresses.
- app
Id string - ID of the Flagship app to bind to for feature flag evaluation.
- bucket
Name string - R2 bucket to bind to.
- certificate
Id string - Identifier of the certificate to bind to.
- class
Name string - The exported class name of the Durable Object.
- database
Id string - Identifier of the D1 database to bind to.
- dataset string
- The name of the dataset to bind to.
- destination
Address string - Destination address for the email.
- dispatch
Namespace string - The dispatch namespace the Durable Object script belongs to.
- entrypoint string
- Entrypoint to invoke on the target Worker.
- environment string
- The environment of the scriptName to bind to.
- format string
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- id string
- Identifier of the D1 database to bind to.
- index
Name string - Name of the Vectorize index to bind to.
- instance
Name string - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- json string
- JSON data to use.
- jurisdiction string
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- key
Base64 string - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - key
Jwk string - Key data in JSON Web Key format. Required if
formatis "jwk". - namespace string
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- namespace
Id string - Namespace identifier tag.
- network
Id string - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- old
Name string - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - outbound
Worker
Script Binding Outbound - Outbound worker.
- part string
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - pipeline string
- Name of the Pipeline to bind to.
- queue
Name string - Name of the Queue to bind to.
- script
Name string - The script where the Durable Object is defined, if it is external to this Worker.
- secret
Name string - Name of the secret in the store.
- service string
- Name of Worker to bind to.
- service
Id string - Identifier of the VPC service to bind to.
- simple
Worker
Script Binding Simple - A simple rate limit.
- store
Id string - ID of the store containing the secret.
- text string
- The text value to use.
- tunnel
Id string - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- usages string[]
- Allowed operations with the key. Learn more.
- version
Id string - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- workflow
Name string - Name of the Workflow to bind to.
- name str
- A JavaScript variable name for the binding.
- type str
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- algorithm str
- Algorithm-specific key parameters. Learn more.
- allowed_
destination_ Sequence[str]addresses - List of allowed destination addresses.
- allowed_
sender_ Sequence[str]addresses - List of allowed sender addresses.
- app_
id str - ID of the Flagship app to bind to for feature flag evaluation.
- bucket_
name str - R2 bucket to bind to.
- certificate_
id str - Identifier of the certificate to bind to.
- class_
name str - The exported class name of the Durable Object.
- database_
id str - Identifier of the D1 database to bind to.
- dataset str
- The name of the dataset to bind to.
- destination_
address str - Destination address for the email.
- dispatch_
namespace str - The dispatch namespace the Durable Object script belongs to.
- entrypoint str
- Entrypoint to invoke on the target Worker.
- environment str
- The environment of the scriptName to bind to.
- format str
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- id str
- Identifier of the D1 database to bind to.
- index_
name str - Name of the Vectorize index to bind to.
- instance_
name str - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- json str
- JSON data to use.
- jurisdiction str
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- key_
base64 str - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - key_
jwk str - Key data in JSON Web Key format. Required if
formatis "jwk". - namespace str
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- namespace_
id str - Namespace identifier tag.
- network_
id str - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- old_
name str - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - outbound
Worker
Script Binding Outbound - Outbound worker.
- part str
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - pipeline str
- Name of the Pipeline to bind to.
- queue_
name str - Name of the Queue to bind to.
- script_
name str - The script where the Durable Object is defined, if it is external to this Worker.
- secret_
name str - Name of the secret in the store.
- service str
- Name of Worker to bind to.
- service_
id str - Identifier of the VPC service to bind to.
- simple
Worker
Script Binding Simple - A simple rate limit.
- store_
id str - ID of the store containing the secret.
- text str
- The text value to use.
- tunnel_
id str - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- usages Sequence[str]
- Allowed operations with the key. Learn more.
- version_
id str - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- workflow_
name str - Name of the Workflow to bind to.
- name String
- A JavaScript variable name for the binding.
- type String
- The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
- algorithm String
- Algorithm-specific key parameters. Learn more.
- allowed
Destination List<String>Addresses - List of allowed destination addresses.
- allowed
Sender List<String>Addresses - List of allowed sender addresses.
- app
Id String - ID of the Flagship app to bind to for feature flag evaluation.
- bucket
Name String - R2 bucket to bind to.
- certificate
Id String - Identifier of the certificate to bind to.
- class
Name String - The exported class name of the Durable Object.
- database
Id String - Identifier of the D1 database to bind to.
- dataset String
- The name of the dataset to bind to.
- destination
Address String - Destination address for the email.
- dispatch
Namespace String - The dispatch namespace the Durable Object script belongs to.
- entrypoint String
- Entrypoint to invoke on the target Worker.
- environment String
- The environment of the scriptName to bind to.
- format String
- Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
- id String
- Identifier of the D1 database to bind to.
- index
Name String - Name of the Vectorize index to bind to.
- instance
Name String - The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
- json String
- JSON data to use.
- jurisdiction String
- The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
- key
Base64 String - Base64-encoded key data. Required if
formatis "raw", "pkcs8", or "spki". - key
Jwk String - Key data in JSON Web Key format. Required if
formatis "jwk". - namespace String
- The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
- namespace
Id String - Namespace identifier tag.
- network
Id String - Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
- old
Name String - The old name of the inherited binding. If set, the binding will be renamed from
oldNametonamein the new version. If not set, the binding will keep the same name between versions. - outbound Property Map
- Outbound worker.
- part String
- The name of the file containing the data content. Only accepted for
service worker syntaxWorkers. - pipeline String
- Name of the Pipeline to bind to.
- queue
Name String - Name of the Queue to bind to.
- script
Name String - The script where the Durable Object is defined, if it is external to this Worker.
- secret
Name String - Name of the secret in the store.
- service String
- Name of Worker to bind to.
- service
Id String - Identifier of the VPC service to bind to.
- simple Property Map
- A simple rate limit.
- store
Id String - ID of the store containing the secret.
- text String
- The text value to use.
- tunnel
Id String - UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
- usages List<String>
- Allowed operations with the key. Learn more.
- version
Id String - Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
- workflow
Name String - Name of the Workflow to bind to.
WorkerScriptBindingOutbound, WorkerScriptBindingOutboundArgs
- Params List<string>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- Worker
Worker
Script Binding Outbound Worker - Outbound worker.
- Params []string
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- Worker
Worker
Script Binding Outbound Worker - Outbound worker.
- params List<String>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Script Binding Outbound Worker - Outbound worker.
- params string[]
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Script Binding Outbound Worker - Outbound worker.
- params Sequence[str]
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Script Binding Outbound Worker - Outbound worker.
- params List<String>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker Property Map
- Outbound worker.
WorkerScriptBindingOutboundWorker, WorkerScriptBindingOutboundWorkerArgs
- Environment string
- Environment of the outbound worker.
- Service string
- Name of the outbound worker.
- Environment string
- Environment of the outbound worker.
- Service string
- Name of the outbound worker.
- environment string
- Environment of the outbound worker.
- service string
- Name of the outbound worker.
- environment String
- Environment of the outbound worker.
- service String
- Name of the outbound worker.
- environment string
- Environment of the outbound worker.
- service string
- Name of the outbound worker.
- environment str
- Environment of the outbound worker.
- service str
- Name of the outbound worker.
- environment String
- Environment of the outbound worker.
- service String
- Name of the outbound worker.
WorkerScriptBindingSimple, WorkerScriptBindingSimpleArgs
WorkerScriptLimits, WorkerScriptLimitsArgs
- 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.
WorkerScriptMigrations, WorkerScriptMigrationsArgs
- Deleted
Classes List<string> - A list of classes to delete Durable Object namespaces from.
- New
Classes List<string> - A list of classes to create Durable Object namespaces from.
- New
Sqlite List<string>Classes - A list of classes to create Durable Object namespaces with SQLite from.
- New
Tag string - Tag to set as the latest migration tag.
- Old
Tag string - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- Renamed
Classes List<WorkerScript Migrations Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- Steps
List<Worker
Script Migrations Step> - Migrations to apply in order.
- Transferred
Classes List<WorkerScript Migrations Transferred Class> - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- Deleted
Classes []string - A list of classes to delete Durable Object namespaces from.
- New
Classes []string - A list of classes to create Durable Object namespaces from.
- New
Sqlite []stringClasses - A list of classes to create Durable Object namespaces with SQLite from.
- New
Tag string - Tag to set as the latest migration tag.
- Old
Tag string - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- Renamed
Classes []WorkerScript Migrations Renamed Class - A list of classes with Durable Object namespaces that were renamed.
- Steps
[]Worker
Script Migrations Step - Migrations to apply in order.
- Transferred
Classes []WorkerScript Migrations Transferred Class - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted_
classes list(string) - A list of classes to delete Durable Object namespaces from.
- new_
classes list(string) - A list of classes to create Durable Object namespaces from.
- new_
sqlite_ list(string)classes - A list of classes to create Durable Object namespaces with SQLite from.
- new_
tag string - Tag to set as the latest migration tag.
- old_
tag string - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- renamed_
classes list(object) - A list of classes with Durable Object namespaces that were renamed.
- steps list(object)
- Migrations to apply in order.
- transferred_
classes list(object) - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted
Classes List<String> - A list of classes to delete Durable Object namespaces from.
- new
Classes List<String> - A list of classes to create Durable Object namespaces from.
- new
Sqlite List<String>Classes - A list of classes to create Durable Object namespaces with SQLite from.
- new
Tag String - Tag to set as the latest migration tag.
- old
Tag String - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- renamed
Classes List<WorkerScript Migrations Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- steps
List<Worker
Script Migrations Step> - Migrations to apply in order.
- transferred
Classes List<WorkerScript Migrations Transferred Class> - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted
Classes string[] - A list of classes to delete Durable Object namespaces from.
- new
Classes string[] - A list of classes to create Durable Object namespaces from.
- new
Sqlite string[]Classes - A list of classes to create Durable Object namespaces with SQLite from.
- new
Tag string - Tag to set as the latest migration tag.
- old
Tag string - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- renamed
Classes WorkerScript Migrations Renamed Class[] - A list of classes with Durable Object namespaces that were renamed.
- steps
Worker
Script Migrations Step[] - Migrations to apply in order.
- transferred
Classes WorkerScript Migrations Transferred Class[] - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted_
classes Sequence[str] - A list of classes to delete Durable Object namespaces from.
- new_
classes Sequence[str] - A list of classes to create Durable Object namespaces from.
- new_
sqlite_ Sequence[str]classes - A list of classes to create Durable Object namespaces with SQLite from.
- new_
tag str - Tag to set as the latest migration tag.
- old_
tag str - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- renamed_
classes Sequence[WorkerScript Migrations Renamed Class] - A list of classes with Durable Object namespaces that were renamed.
- steps
Sequence[Worker
Script Migrations Step] - Migrations to apply in order.
- transferred_
classes Sequence[WorkerScript Migrations Transferred Class] - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted
Classes List<String> - A list of classes to delete Durable Object namespaces from.
- new
Classes List<String> - A list of classes to create Durable Object namespaces from.
- new
Sqlite List<String>Classes - A list of classes to create Durable Object namespaces with SQLite from.
- new
Tag String - Tag to set as the latest migration tag.
- old
Tag String - Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
- renamed
Classes List<Property Map> - A list of classes with Durable Object namespaces that were renamed.
- steps List<Property Map>
- Migrations to apply in order.
- transferred
Classes List<Property Map> - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
WorkerScriptMigrationsRenamedClass, WorkerScriptMigrationsRenamedClassArgs
WorkerScriptMigrationsStep, WorkerScriptMigrationsStepArgs
- Deleted
Classes List<string> - A list of classes to delete Durable Object namespaces from.
- New
Classes List<string> - A list of classes to create Durable Object namespaces from.
- New
Sqlite List<string>Classes - A list of classes to create Durable Object namespaces with SQLite from.
- Renamed
Classes List<WorkerScript Migrations Step Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- Transferred
Classes List<WorkerScript Migrations Step Transferred Class> - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- Deleted
Classes []string - A list of classes to delete Durable Object namespaces from.
- New
Classes []string - A list of classes to create Durable Object namespaces from.
- New
Sqlite []stringClasses - A list of classes to create Durable Object namespaces with SQLite from.
- Renamed
Classes []WorkerScript Migrations Step Renamed Class - A list of classes with Durable Object namespaces that were renamed.
- Transferred
Classes []WorkerScript Migrations Step Transferred Class - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted_
classes list(string) - A list of classes to delete Durable Object namespaces from.
- new_
classes list(string) - A list of classes to create Durable Object namespaces from.
- new_
sqlite_ list(string)classes - A list of classes to create Durable Object namespaces with SQLite from.
- renamed_
classes list(object) - A list of classes with Durable Object namespaces that were renamed.
- transferred_
classes list(object) - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted
Classes List<String> - A list of classes to delete Durable Object namespaces from.
- new
Classes List<String> - A list of classes to create Durable Object namespaces from.
- new
Sqlite List<String>Classes - A list of classes to create Durable Object namespaces with SQLite from.
- renamed
Classes List<WorkerScript Migrations Step Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- transferred
Classes List<WorkerScript Migrations Step Transferred Class> - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted
Classes string[] - A list of classes to delete Durable Object namespaces from.
- new
Classes string[] - A list of classes to create Durable Object namespaces from.
- new
Sqlite string[]Classes - A list of classes to create Durable Object namespaces with SQLite from.
- renamed
Classes WorkerScript Migrations Step Renamed Class[] - A list of classes with Durable Object namespaces that were renamed.
- transferred
Classes WorkerScript Migrations Step Transferred Class[] - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted_
classes Sequence[str] - A list of classes to delete Durable Object namespaces from.
- new_
classes Sequence[str] - A list of classes to create Durable Object namespaces from.
- new_
sqlite_ Sequence[str]classes - A list of classes to create Durable Object namespaces with SQLite from.
- renamed_
classes Sequence[WorkerScript Migrations Step Renamed Class] - A list of classes with Durable Object namespaces that were renamed.
- transferred_
classes Sequence[WorkerScript Migrations Step Transferred Class] - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
- deleted
Classes List<String> - A list of classes to delete Durable Object namespaces from.
- new
Classes List<String> - A list of classes to create Durable Object namespaces from.
- new
Sqlite List<String>Classes - A list of classes to create Durable Object namespaces with SQLite from.
- renamed
Classes List<Property Map> - A list of classes with Durable Object namespaces that were renamed.
- transferred
Classes List<Property Map> - A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
WorkerScriptMigrationsStepRenamedClass, WorkerScriptMigrationsStepRenamedClassArgs
WorkerScriptMigrationsStepTransferredClass, WorkerScriptMigrationsStepTransferredClassArgs
- From string
- From
Script string - To string
- From string
- From
Script string - To string
- from string
- from_
script string - to string
- from String
- from
Script String - to String
- from string
- from
Script string - to string
- from_ str
- from_
script str - to str
- from String
- from
Script String - to String
WorkerScriptMigrationsTransferredClass, WorkerScriptMigrationsTransferredClassArgs
- From string
- From
Script string - To string
- From string
- From
Script string - To string
- from string
- from_
script string - to string
- from String
- from
Script String - to String
- from string
- from
Script string - to string
- from_ str
- from_
script str - to str
- from String
- from
Script String - to String
WorkerScriptNamedHandler, WorkerScriptNamedHandlerArgs
WorkerScriptObservability, WorkerScriptObservabilityArgs
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- Logs
Worker
Script Observability Logs - Log settings for the Worker.
- Traces
Worker
Script Observability Traces - Trace settings for the Worker.
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- Logs
Worker
Script Observability Logs - Log settings for the Worker.
- Traces
Worker
Script Observability Traces - Trace settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- logs
Worker
Script Observability Logs - Log settings for the Worker.
- traces
Worker
Script Observability Traces - Trace settings for the Worker.
- enabled boolean
- Whether observability is enabled for the Worker.
- head
Sampling numberRate - The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- logs
Worker
Script Observability Logs - Log settings for the Worker.
- traces
Worker
Script Observability Traces - Trace settings for the Worker.
- enabled bool
- Whether observability is enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- logs
Worker
Script Observability Logs - Log settings for the Worker.
- traces
Worker
Script Observability Traces - Trace settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- logs Property Map
- Log settings for the Worker.
- traces Property Map
- Trace settings for the Worker.
WorkerScriptObservabilityLogs, WorkerScriptObservabilityLogsArgs
- Enabled bool
- Whether logs are enabled for the Worker.
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Destinations List<string>
- A list of destinations where logs will be exported to.
- Head
Sampling doubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- Persist bool
- Whether log persistence is enabled for the Worker.
- Enabled bool
- Whether logs are enabled for the Worker.
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Destinations []string
- A list of destinations where logs will be exported to.
- Head
Sampling float64Rate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- Persist bool
- Whether log persistence is enabled for the Worker.
- enabled bool
- Whether logs are enabled for the Worker.
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- destinations list(string)
- A list of destinations where logs will be exported to.
- head_
sampling_ numberrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- persist bool
- Whether log persistence is enabled for the Worker.
- enabled Boolean
- Whether logs are enabled for the Worker.
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- destinations List<String>
- A list of destinations where logs will be exported to.
- head
Sampling DoubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- persist Boolean
- Whether log persistence is enabled for the Worker.
- enabled boolean
- Whether logs are enabled for the Worker.
- invocation
Logs boolean - Whether invocation logs are enabled for the Worker.
- destinations string[]
- A list of destinations where logs will be exported to.
- head
Sampling numberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- persist boolean
- Whether log persistence is enabled for the Worker.
- enabled bool
- Whether logs are enabled for the Worker.
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- destinations Sequence[str]
- A list of destinations where logs will be exported to.
- head_
sampling_ floatrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- persist bool
- Whether log persistence is enabled for the Worker.
- enabled Boolean
- Whether logs are enabled for the Worker.
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- destinations List<String>
- A list of destinations where logs will be exported to.
- head
Sampling NumberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
- persist Boolean
- Whether log persistence is enabled for the Worker.
WorkerScriptObservabilityTraces, WorkerScriptObservabilityTracesArgs
- 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%). Default is 1.
- Persist bool
- Whether trace persistence is enabled for the Worker.
- 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%). Default is 1.
- Persist bool
- Whether trace persistence is enabled for the Worker.
- 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%). Default is 1.
- persist bool
- Whether trace persistence is enabled for the Worker.
- 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%). Default is 1.
- persist Boolean
- Whether trace persistence is enabled for the Worker.
- 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%). Default is 1.
- persist boolean
- Whether trace persistence is enabled for the Worker.
- 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%). Default is 1.
- persist bool
- Whether trace persistence is enabled for the Worker.
- 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%). Default is 1.
- persist Boolean
- Whether trace persistence is enabled for the Worker.
WorkerScriptPlacement, WorkerScriptPlacementArgs
- Host string
- TCP host and port for targeted placement.
- Hostname string
- HTTP hostname for targeted placement.
- Last
Analyzed stringAt - The last time the script was analyzed for Smart Placement.
- Mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- Region string
- Cloud region for targeted placement in format 'provider:region'.
- Status string
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- Targets
List<Worker
Script 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.
- Last
Analyzed stringAt - The last time the script was analyzed for Smart Placement.
- Mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- Region string
- Cloud region for targeted placement in format 'provider:region'.
- Status string
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- Targets
[]Worker
Script 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.
- last_
analyzed_ stringat - The last time the script was analyzed for Smart Placement.
- mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- region string
- Cloud region for targeted placement in format 'provider:region'.
- status string
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- 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.
- last
Analyzed StringAt - The last time the script was analyzed for Smart Placement.
- mode String
- Enables Smart Placement. Available values: "smart", "targeted".
- region String
- Cloud region for targeted placement in format 'provider:region'.
- status String
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- targets
List<Worker
Script 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.
- last
Analyzed stringAt - The last time the script was analyzed for Smart Placement.
- mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- region string
- Cloud region for targeted placement in format 'provider:region'.
- status string
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- targets
Worker
Script 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.
- last_
analyzed_ strat - The last time the script was analyzed for Smart Placement.
- mode str
- Enables Smart Placement. Available values: "smart", "targeted".
- region str
- Cloud region for targeted placement in format 'provider:region'.
- status str
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- targets
Sequence[Worker
Script 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.
- last
Analyzed StringAt - The last time the script was analyzed for Smart Placement.
- mode String
- Enables Smart Placement. Available values: "smart", "targeted".
- region String
- Cloud region for targeted placement in format 'provider:region'.
- status String
- Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
- targets List<Property Map>
- Array of placement targets (currently limited to single target).
WorkerScriptPlacementTarget, WorkerScriptPlacementTargetArgs
WorkerScriptTailConsumer, WorkerScriptTailConsumerArgs
- Service string
- Name of Worker that is to be the consumer.
- Environment string
- Optional environment if the Worker utilizes one.
- Namespace string
- Optional dispatch namespace the script belongs to.
- Service string
- Name of Worker that is to be the consumer.
- Environment string
- Optional environment if the Worker utilizes one.
- Namespace string
- Optional dispatch namespace the script belongs to.
- service string
- Name of Worker that is to be the consumer.
- environment string
- Optional environment if the Worker utilizes one.
- namespace string
- Optional dispatch namespace the script belongs to.
- service String
- Name of Worker that is to be the consumer.
- environment String
- Optional environment if the Worker utilizes one.
- namespace String
- Optional dispatch namespace the script belongs to.
- service string
- Name of Worker that is to be the consumer.
- environment string
- Optional environment if the Worker utilizes one.
- namespace string
- Optional dispatch namespace the script belongs to.
- service str
- Name of Worker that is to be the consumer.
- environment str
- Optional environment if the Worker utilizes one.
- namespace str
- Optional dispatch namespace the script belongs to.
- service String
- Name of Worker that is to be the consumer.
- environment String
- Optional environment if the Worker utilizes one.
- namespace String
- Optional dispatch namespace the script belongs to.
Import
$ pulumi import cloudflare:index/workerScript:WorkerScript example '<account_id>/<script_name>'
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 Saturday, May 2, 2026 by Pulumi
