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
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkerVersion = new cloudflare.WorkerVersion("example_worker_version", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
workerId: "worker_id",
annotations: {
workersMessage: "Fixed bug.",
workersTag: "v1.0.1",
},
assets: {
config: {
htmlHandling: "auto-trailing-slash",
notFoundHandling: "404-page",
runWorkerFirst: [],
},
jwt: "jwt",
},
bindings: [{
name: "MY_ENV_VAR",
text: "my_data",
type: "plain_text",
}],
compatibilityDate: "2021-01-01",
compatibilityFlags: ["nodejs_compat"],
containers: [{
className: "MyDurableObject",
}],
limits: {
cpuMs: 50,
subrequests: 1000,
},
mainModule: "index.js",
migrations: {
deletedClasses: ["string"],
newClasses: ["string"],
newSqliteClasses: ["string"],
newTag: "v2",
oldTag: "v1",
renamedClasses: [{
from: "from",
to: "to",
}],
transferredClasses: [{
from: "from",
fromScript: "from_script",
to: "to",
}],
},
modules: [{
contentFile: "dist/index.js",
contentType: "application/javascript+module",
name: "index.js",
}],
placement: {
mode: "smart",
},
});
import pulumi
import pulumi_cloudflare as cloudflare
example_worker_version = cloudflare.WorkerVersion("example_worker_version",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
worker_id="worker_id",
annotations={
"workers_message": "Fixed bug.",
"workers_tag": "v1.0.1",
},
assets={
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "404-page",
"run_worker_first": [],
},
"jwt": "jwt",
},
bindings=[{
"name": "MY_ENV_VAR",
"text": "my_data",
"type": "plain_text",
}],
compatibility_date="2021-01-01",
compatibility_flags=["nodejs_compat"],
containers=[{
"class_name": "MyDurableObject",
}],
limits={
"cpu_ms": 50,
"subrequests": 1000,
},
main_module="index.js",
migrations={
"deleted_classes": ["string"],
"new_classes": ["string"],
"new_sqlite_classes": ["string"],
"new_tag": "v2",
"old_tag": "v1",
"renamed_classes": [{
"from_": "from",
"to": "to",
}],
"transferred_classes": [{
"from_": "from",
"from_script": "from_script",
"to": "to",
}],
},
modules=[{
"content_file": "dist/index.js",
"content_type": "application/javascript+module",
"name": "index.js",
}],
placement={
"mode": "smart",
})
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewWorkerVersion(ctx, "example_worker_version", &cloudflare.WorkerVersionArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
WorkerId: pulumi.String("worker_id"),
Annotations: &cloudflare.WorkerVersionAnnotationsArgs{
WorkersMessage: pulumi.String("Fixed bug."),
WorkersTag: pulumi.String("v1.0.1"),
},
Assets: &cloudflare.WorkerVersionAssetsArgs{
Config: &cloudflare.WorkerVersionAssetsConfigArgs{
HtmlHandling: pulumi.String("auto-trailing-slash"),
NotFoundHandling: pulumi.String("404-page"),
RunWorkerFirst: pulumi.Any{},
},
Jwt: pulumi.String("jwt"),
},
Bindings: cloudflare.WorkerVersionBindingArray{
&cloudflare.WorkerVersionBindingArgs{
Name: pulumi.String("MY_ENV_VAR"),
Text: pulumi.String("my_data"),
Type: pulumi.String("plain_text"),
},
},
CompatibilityDate: pulumi.String("2021-01-01"),
CompatibilityFlags: pulumi.StringArray{
pulumi.String("nodejs_compat"),
},
Containers: cloudflare.WorkerVersionContainerArray{
&cloudflare.WorkerVersionContainerArgs{
ClassName: pulumi.String("MyDurableObject"),
},
},
Limits: &cloudflare.WorkerVersionLimitsArgs{
CpuMs: pulumi.Int(50),
Subrequests: pulumi.Int(1000),
},
MainModule: pulumi.String("index.js"),
Migrations: &cloudflare.WorkerVersionMigrationsArgs{
DeletedClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewSqliteClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewTag: pulumi.String("v2"),
OldTag: pulumi.String("v1"),
RenamedClasses: cloudflare.WorkerVersionMigrationsRenamedClassArray{
&cloudflare.WorkerVersionMigrationsRenamedClassArgs{
From: pulumi.String("from"),
To: pulumi.String("to"),
},
},
TransferredClasses: cloudflare.WorkerVersionMigrationsTransferredClassArray{
&cloudflare.WorkerVersionMigrationsTransferredClassArgs{
From: pulumi.String("from"),
FromScript: pulumi.String("from_script"),
To: pulumi.String("to"),
},
},
},
Modules: cloudflare.WorkerVersionModuleArray{
&cloudflare.WorkerVersionModuleArgs{
ContentFile: pulumi.String("dist/index.js"),
ContentType: pulumi.String("application/javascript+module"),
Name: pulumi.String("index.js"),
},
},
Placement: &cloudflare.WorkerVersionPlacementArgs{
Mode: pulumi.String("smart"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWorkerVersion = new Cloudflare.Index.WorkerVersion("example_worker_version", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
WorkerId = "worker_id",
Annotations = new Cloudflare.Inputs.WorkerVersionAnnotationsArgs
{
WorkersMessage = "Fixed bug.",
WorkersTag = "v1.0.1",
},
Assets = new Cloudflare.Inputs.WorkerVersionAssetsArgs
{
Config = new Cloudflare.Inputs.WorkerVersionAssetsConfigArgs
{
HtmlHandling = "auto-trailing-slash",
NotFoundHandling = "404-page",
RunWorkerFirst = new() { },
},
Jwt = "jwt",
},
Bindings = new[]
{
new Cloudflare.Inputs.WorkerVersionBindingArgs
{
Name = "MY_ENV_VAR",
Text = "my_data",
Type = "plain_text",
},
},
CompatibilityDate = "2021-01-01",
CompatibilityFlags = new[]
{
"nodejs_compat",
},
Containers = new[]
{
new Cloudflare.Inputs.WorkerVersionContainerArgs
{
ClassName = "MyDurableObject",
},
},
Limits = new Cloudflare.Inputs.WorkerVersionLimitsArgs
{
CpuMs = 50,
Subrequests = 1000,
},
MainModule = "index.js",
Migrations = new Cloudflare.Inputs.WorkerVersionMigrationsArgs
{
DeletedClasses = new[]
{
"string",
},
NewClasses = new[]
{
"string",
},
NewSqliteClasses = new[]
{
"string",
},
NewTag = "v2",
OldTag = "v1",
RenamedClasses = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsRenamedClassArgs
{
From = "from",
To = "to",
},
},
TransferredClasses = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsTransferredClassArgs
{
From = "from",
FromScript = "from_script",
To = "to",
},
},
},
Modules = new[]
{
new Cloudflare.Inputs.WorkerVersionModuleArgs
{
ContentFile = "dist/index.js",
ContentType = "application/javascript+module",
Name = "index.js",
},
},
Placement = new Cloudflare.Inputs.WorkerVersionPlacementArgs
{
Mode = "smart",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WorkerVersion;
import com.pulumi.cloudflare.WorkerVersionArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionAnnotationsArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionAssetsArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionAssetsConfigArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionBindingArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionContainerArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionLimitsArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionMigrationsArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionModuleArgs;
import com.pulumi.cloudflare.inputs.WorkerVersionPlacementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleWorkerVersion = new WorkerVersion("exampleWorkerVersion", WorkerVersionArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.workerId("worker_id")
.annotations(WorkerVersionAnnotationsArgs.builder()
.workersMessage("Fixed bug.")
.workersTag("v1.0.1")
.build())
.assets(WorkerVersionAssetsArgs.builder()
.config(WorkerVersionAssetsConfigArgs.builder()
.htmlHandling("auto-trailing-slash")
.notFoundHandling("404-page")
.runWorkerFirst()
.build())
.jwt("jwt")
.build())
.bindings(WorkerVersionBindingArgs.builder()
.name("MY_ENV_VAR")
.text("my_data")
.type("plain_text")
.build())
.compatibilityDate("2021-01-01")
.compatibilityFlags("nodejs_compat")
.containers(WorkerVersionContainerArgs.builder()
.className("MyDurableObject")
.build())
.limits(WorkerVersionLimitsArgs.builder()
.cpuMs(50)
.subrequests(1000)
.build())
.mainModule("index.js")
.migrations(WorkerVersionMigrationsArgs.builder()
.deletedClasses("string")
.newClasses("string")
.newSqliteClasses("string")
.newTag("v2")
.oldTag("v1")
.renamedClasses(WorkerVersionMigrationsRenamedClassArgs.builder()
.from("from")
.to("to")
.build())
.transferredClasses(WorkerVersionMigrationsTransferredClassArgs.builder()
.from("from")
.fromScript("from_script")
.to("to")
.build())
.build())
.modules(WorkerVersionModuleArgs.builder()
.contentFile("dist/index.js")
.contentType("application/javascript+module")
.name("index.js")
.build())
.placement(WorkerVersionPlacementArgs.builder()
.mode("smart")
.build())
.build());
}
}
resources:
exampleWorkerVersion:
type: cloudflare:WorkerVersion
name: example_worker_version
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
workerId: worker_id
annotations:
workersMessage: Fixed bug.
workersTag: v1.0.1
assets:
config:
htmlHandling: auto-trailing-slash
notFoundHandling: 404-page
runWorkerFirst: []
jwt: jwt
bindings:
- name: MY_ENV_VAR
text: my_data
type: plain_text
compatibilityDate: 2021-01-01
compatibilityFlags:
- nodejs_compat
containers:
- className: MyDurableObject
limits:
cpuMs: 50
subrequests: 1000
mainModule: index.js
migrations:
deletedClasses:
- string
newClasses:
- string
newSqliteClasses:
- string
newTag: v2
oldTag: v1
renamedClasses:
- from: from
to: to
transferredClasses:
- from: from
fromScript: from_script
to: to
modules:
- contentFile: dist/index.js
contentType: application/javascript+module
name: index.js
placement:
mode: smart
Create WorkerVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkerVersion(name: string, args: WorkerVersionArgs, opts?: CustomResourceOptions);@overload
def WorkerVersion(resource_name: str,
args: WorkerVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkerVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
worker_id: Optional[str] = None,
containers: Optional[Sequence[WorkerVersionContainerArgs]] = None,
assets: Optional[WorkerVersionAssetsArgs] = None,
bindings: Optional[Sequence[WorkerVersionBindingArgs]] = None,
compatibility_date: Optional[str] = None,
compatibility_flags: Optional[Sequence[str]] = None,
account_id: Optional[str] = None,
limits: Optional[WorkerVersionLimitsArgs] = None,
main_module: Optional[str] = None,
migrations: Optional[WorkerVersionMigrationsArgs] = None,
modules: Optional[Sequence[WorkerVersionModuleArgs]] = None,
placement: Optional[WorkerVersionPlacementArgs] = None,
usage_model: Optional[str] = None,
annotations: Optional[WorkerVersionAnnotationsArgs] = None)func NewWorkerVersion(ctx *Context, name string, args WorkerVersionArgs, opts ...ResourceOption) (*WorkerVersion, error)public WorkerVersion(string name, WorkerVersionArgs args, CustomResourceOptions? opts = null)
public WorkerVersion(String name, WorkerVersionArgs args)
public WorkerVersion(String name, WorkerVersionArgs args, CustomResourceOptions options)
type: cloudflare:WorkerVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkerVersionArgs
- 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 WorkerVersionArgs
- 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 WorkerVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkerVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkerVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkerVersion 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 WorkerVersion resource accepts the following input properties:
- Worker
Id string - Identifier for the Worker, which can be ID or name.
- Account
Id string - Identifier.
- Annotations
Worker
Version Annotations - Metadata about the version.
- Assets
Worker
Version Assets - Configuration for assets within a Worker.
- Bindings
List<Worker
Version 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.
- 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. - Containers
List<Worker
Version Container> - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- Limits
Worker
Version Limits - Resource limits enforced at runtime.
- Main
Module string - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - Migrations
Worker
Version Migrations - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- Modules
List<Worker
Version Module> Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- Placement
Worker
Version Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- Worker
Id string - Identifier for the Worker, which can be ID or name.
- Account
Id string - Identifier.
- Annotations
Worker
Version Annotations Args - Metadata about the version.
- Assets
Worker
Version Assets Args - Configuration for assets within a Worker.
- Bindings
[]Worker
Version 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.
- 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. - Containers
[]Worker
Version Container Args - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- Limits
Worker
Version Limits Args - Resource limits enforced at runtime.
- Main
Module string - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - Migrations
Worker
Version Migrations Args - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- Modules
[]Worker
Version Module Args Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- Placement
Worker
Version Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id String - Identifier for the Worker, which can be ID or name.
- account
Id String - Identifier.
- annotations
Worker
Version Annotations - Metadata about the version.
- assets
Worker
Version Assets - Configuration for assets within a Worker.
- bindings
List<Worker
Version 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.
- 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. - containers
List<Worker
Version Container> - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- limits
Worker
Version Limits - Resource limits enforced at runtime.
- main
Module String - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - migrations
Worker
Version Migrations - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules
List<Worker
Version Module> Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- placement
Worker
Version Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id string - Identifier for the Worker, which can be ID or name.
- account
Id string - Identifier.
- annotations
Worker
Version Annotations - Metadata about the version.
- assets
Worker
Version Assets - Configuration for assets within a Worker.
- bindings
Worker
Version 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.
- 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. - containers
Worker
Version Container[] - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- limits
Worker
Version Limits - Resource limits enforced at runtime.
- main
Module string - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - migrations
Worker
Version Migrations - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules
Worker
Version Module[] Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- placement
Worker
Version Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker_
id str - Identifier for the Worker, which can be ID or name.
- account_
id str - Identifier.
- annotations
Worker
Version Annotations Args - Metadata about the version.
- assets
Worker
Version Assets Args - Configuration for assets within a Worker.
- bindings
Sequence[Worker
Version 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.
- 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. - containers
Sequence[Worker
Version Container Args] - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- limits
Worker
Version Limits Args - Resource limits enforced at runtime.
- main_
module str - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - migrations
Worker
Version Migrations Args - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules
Sequence[Worker
Version Module Args] Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- placement
Worker
Version Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- usage_
model str - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id String - Identifier for the Worker, which can be ID or name.
- account
Id String - Identifier.
- annotations Property Map
- Metadata about the version.
- 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.
- 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. - containers List<Property Map>
- List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- limits Property Map
- Resource limits enforced at runtime.
- main
Module String - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - migrations Property Map
- Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules List<Property Map>
Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- placement Property Map
- Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkerVersion resource produces the following output properties:
- Created
On string - When the version was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Main
Script stringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- Migration
Tag string - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- Number int
- The integer version number, starting from one.
- Source string
- The client used to create the version.
- Startup
Time intMs - Time in milliseconds spent on Worker startup.
- Urls List<string>
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- Created
On string - When the version was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Main
Script stringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- Migration
Tag string - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- Number int
- The integer version number, starting from one.
- Source string
- The client used to create the version.
- Startup
Time intMs - Time in milliseconds spent on Worker startup.
- Urls []string
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- created
On String - When the version was created.
- id String
- The provider-assigned unique ID for this managed resource.
- main
Script StringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration
Tag String - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- number Integer
- The integer version number, starting from one.
- source String
- The client used to create the version.
- startup
Time IntegerMs - Time in milliseconds spent on Worker startup.
- urls List<String>
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- created
On string - When the version was created.
- id string
- The provider-assigned unique ID for this managed resource.
- main
Script stringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration
Tag string - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- number number
- The integer version number, starting from one.
- source string
- The client used to create the version.
- startup
Time numberMs - Time in milliseconds spent on Worker startup.
- urls string[]
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- created_
on str - When the version was created.
- id str
- The provider-assigned unique ID for this managed resource.
- main_
script_ strbase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration_
tag str - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- number int
- The integer version number, starting from one.
- source str
- The client used to create the version.
- startup_
time_ intms - Time in milliseconds spent on Worker startup.
- urls Sequence[str]
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- created
On String - When the version was created.
- id String
- The provider-assigned unique ID for this managed resource.
- main
Script StringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration
Tag String - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- number Number
- The integer version number, starting from one.
- source String
- The client used to create the version.
- startup
Time NumberMs - Time in milliseconds spent on Worker startup.
- urls List<String>
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
Look up Existing WorkerVersion Resource
Get an existing WorkerVersion 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?: WorkerVersionState, opts?: CustomResourceOptions): WorkerVersion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
annotations: Optional[WorkerVersionAnnotationsArgs] = None,
assets: Optional[WorkerVersionAssetsArgs] = None,
bindings: Optional[Sequence[WorkerVersionBindingArgs]] = None,
compatibility_date: Optional[str] = None,
compatibility_flags: Optional[Sequence[str]] = None,
containers: Optional[Sequence[WorkerVersionContainerArgs]] = None,
created_on: Optional[str] = None,
limits: Optional[WorkerVersionLimitsArgs] = None,
main_module: Optional[str] = None,
main_script_base64: Optional[str] = None,
migration_tag: Optional[str] = None,
migrations: Optional[WorkerVersionMigrationsArgs] = None,
modules: Optional[Sequence[WorkerVersionModuleArgs]] = None,
number: Optional[int] = None,
placement: Optional[WorkerVersionPlacementArgs] = None,
source: Optional[str] = None,
startup_time_ms: Optional[int] = None,
urls: Optional[Sequence[str]] = None,
usage_model: Optional[str] = None,
worker_id: Optional[str] = None) -> WorkerVersionfunc GetWorkerVersion(ctx *Context, name string, id IDInput, state *WorkerVersionState, opts ...ResourceOption) (*WorkerVersion, error)public static WorkerVersion Get(string name, Input<string> id, WorkerVersionState? state, CustomResourceOptions? opts = null)public static WorkerVersion get(String name, Output<String> id, WorkerVersionState state, CustomResourceOptions options)resources: _: type: cloudflare:WorkerVersion get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Identifier.
- Annotations
Worker
Version Annotations - Metadata about the version.
- Assets
Worker
Version Assets - Configuration for assets within a Worker.
- Bindings
List<Worker
Version 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.
- 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. - Containers
List<Worker
Version Container> - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- Created
On string - When the version was created.
- Limits
Worker
Version Limits - Resource limits enforced at runtime.
- Main
Module string - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - Main
Script stringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- Migration
Tag string - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- Migrations
Worker
Version Migrations - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- Modules
List<Worker
Version Module> Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- Number int
- The integer version number, starting from one.
- Placement
Worker
Version Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Source string
- The client used to create the version.
- Startup
Time intMs - Time in milliseconds spent on Worker startup.
- Urls List<string>
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- Worker
Id string - Identifier for the Worker, which can be ID or name.
- Account
Id string - Identifier.
- Annotations
Worker
Version Annotations Args - Metadata about the version.
- Assets
Worker
Version Assets Args - Configuration for assets within a Worker.
- Bindings
[]Worker
Version 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.
- 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. - Containers
[]Worker
Version Container Args - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- Created
On string - When the version was created.
- Limits
Worker
Version Limits Args - Resource limits enforced at runtime.
- Main
Module string - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - Main
Script stringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- Migration
Tag string - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- Migrations
Worker
Version Migrations Args - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- Modules
[]Worker
Version Module Args Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- Number int
- The integer version number, starting from one.
- Placement
Worker
Version Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- Source string
- The client used to create the version.
- Startup
Time intMs - Time in milliseconds spent on Worker startup.
- Urls []string
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- Worker
Id string - Identifier for the Worker, which can be ID or name.
- account
Id String - Identifier.
- annotations
Worker
Version Annotations - Metadata about the version.
- assets
Worker
Version Assets - Configuration for assets within a Worker.
- bindings
List<Worker
Version 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.
- 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. - containers
List<Worker
Version Container> - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- created
On String - When the version was created.
- limits
Worker
Version Limits - Resource limits enforced at runtime.
- main
Module String - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - main
Script StringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration
Tag String - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- migrations
Worker
Version Migrations - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules
List<Worker
Version Module> Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- number Integer
- The integer version number, starting from one.
- placement
Worker
Version Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- source String
- The client used to create the version.
- startup
Time IntegerMs - Time in milliseconds spent on Worker startup.
- urls List<String>
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id String - Identifier for the Worker, which can be ID or name.
- account
Id string - Identifier.
- annotations
Worker
Version Annotations - Metadata about the version.
- assets
Worker
Version Assets - Configuration for assets within a Worker.
- bindings
Worker
Version 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.
- 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. - containers
Worker
Version Container[] - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- created
On string - When the version was created.
- limits
Worker
Version Limits - Resource limits enforced at runtime.
- main
Module string - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - main
Script stringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration
Tag string - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- migrations
Worker
Version Migrations - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules
Worker
Version Module[] Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- number number
- The integer version number, starting from one.
- placement
Worker
Version Placement - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- source string
- The client used to create the version.
- startup
Time numberMs - Time in milliseconds spent on Worker startup.
- urls string[]
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id string - Identifier for the Worker, which can be ID or name.
- account_
id str - Identifier.
- annotations
Worker
Version Annotations Args - Metadata about the version.
- assets
Worker
Version Assets Args - Configuration for assets within a Worker.
- bindings
Sequence[Worker
Version 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.
- 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. - containers
Sequence[Worker
Version Container Args] - List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- created_
on str - When the version was created.
- limits
Worker
Version Limits Args - Resource limits enforced at runtime.
- main_
module str - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - main_
script_ strbase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration_
tag str - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- migrations
Worker
Version Migrations Args - Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules
Sequence[Worker
Version Module Args] Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- number int
- The integer version number, starting from one.
- placement
Worker
Version Placement Args - Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- source str
- The client used to create the version.
- startup_
time_ intms - Time in milliseconds spent on Worker startup.
- urls Sequence[str]
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- usage_
model str - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker_
id str - Identifier for the Worker, which can be ID or name.
- account
Id String - Identifier.
- annotations Property Map
- Metadata about the version.
- 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.
- 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. - containers List<Property Map>
- List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
- created
On String - When the version was created.
- limits Property Map
- Resource limits enforced at runtime.
- main
Module String - The name of the main module in the
modulesarray (e.g. the name of the module that exports afetchhandler). - main
Script StringBase64 - The base64-encoded main script content. This is only returned for service worker syntax workers (not ES modules). Used when importing existing workers that use the older service worker syntax.
- migration
Tag String - Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
- migrations Property Map
- Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
- modules List<Property Map>
Code, sourcemaps, and other content used at runtime.
This includes
_headersand_redirectsfiles used to configure Static Assets._headersand_redirectsfiles should be included as modules named_headersand_redirectswith content typetext/plain.- number Number
- The integer version number, starting from one.
- placement Property Map
- Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
- source String
- The client used to create the version.
- startup
Time NumberMs - Time in milliseconds spent on Worker startup.
- urls List<String>
- All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id String - Identifier for the Worker, which can be ID or name.
Supporting Types
WorkerVersionAnnotations, WorkerVersionAnnotationsArgs
- 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 - Operation that triggered the creation of the version.
- 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 - Operation that triggered the creation of the version.
- 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 - Operation that triggered the creation of the version.
- 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 - Operation that triggered the creation of the version.
- 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 - Operation that triggered the creation of the version.
- 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 - Operation that triggered the creation of the version.
WorkerVersionAssets, WorkerVersionAssetsArgs
- Asset
Manifest stringSha256 - The SHA-256 hash of the asset manifest of files to upload.
- Config
Worker
Version 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
Version 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
Version 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
Version 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
Version 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.
WorkerVersionAssetsConfig, WorkerVersionAssetsConfigArgs
- 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".
- 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.
- 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".
- 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.
- 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".
- 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.
- 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".
- 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.
- 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".
- 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.
- 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".
- 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.
WorkerVersionBinding, WorkerVersionBindingArgs
- 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", "flagship", "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
Version 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
Version Binding Simple - The rate limit configuration.
- 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", "flagship", "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
Version 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
Version Binding Simple - The rate limit configuration.
- 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", "flagship", "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
Version 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
Version Binding Simple - The rate limit configuration.
- 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", "flagship", "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
Version 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
Version Binding Simple - The rate limit configuration.
- 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", "flagship", "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
Version 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
Version Binding Simple - The rate limit configuration.
- 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", "flagship", "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
- The rate limit configuration.
- 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.
WorkerVersionBindingOutbound, WorkerVersionBindingOutboundArgs
- Params
List<Worker
Version Binding Outbound Param> - Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- Worker
Worker
Version Binding Outbound Worker - Outbound worker.
- Params
[]Worker
Version Binding Outbound Param - Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- Worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params
List<Worker
Version Binding Outbound Param> - Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params
Worker
Version Binding Outbound Param[] - Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params
Sequence[Worker
Version Binding Outbound Param] - Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params List<Property Map>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker Property Map
- Outbound worker.
WorkerVersionBindingOutboundParam, WorkerVersionBindingOutboundParamArgs
- Name string
- Name of the parameter.
- Name string
- Name of the parameter.
- name String
- Name of the parameter.
- name string
- Name of the parameter.
- name str
- Name of the parameter.
- name String
- Name of the parameter.
WorkerVersionBindingOutboundWorker, WorkerVersionBindingOutboundWorkerArgs
- Entrypoint string
- Entrypoint to invoke on the outbound worker.
- Environment string
- Environment of the outbound worker.
- Service string
- Name of the outbound worker.
- Entrypoint string
- Entrypoint to invoke on the outbound worker.
- Environment string
- Environment of the outbound worker.
- Service string
- Name of the outbound worker.
- entrypoint String
- Entrypoint to invoke on the outbound worker.
- environment String
- Environment of the outbound worker.
- service String
- Name of the outbound worker.
- entrypoint string
- Entrypoint to invoke on the outbound worker.
- environment string
- Environment of the outbound worker.
- service string
- Name of the outbound worker.
- entrypoint str
- Entrypoint to invoke on the outbound worker.
- environment str
- Environment of the outbound worker.
- service str
- Name of the outbound worker.
- entrypoint String
- Entrypoint to invoke on the outbound worker.
- environment String
- Environment of the outbound worker.
- service String
- Name of the outbound worker.
WorkerVersionBindingSimple, WorkerVersionBindingSimpleArgs
WorkerVersionContainer, WorkerVersionContainerArgs
- Class
Name string - Select which Durable Object class should get this container attached.
- Class
Name string - Select which Durable Object class should get this container attached.
- class
Name String - Select which Durable Object class should get this container attached.
- class
Name string - Select which Durable Object class should get this container attached.
- class_
name str - Select which Durable Object class should get this container attached.
- class
Name String - Select which Durable Object class should get this container attached.
WorkerVersionLimits, WorkerVersionLimitsArgs
- Cpu
Ms int - CPU time limit in milliseconds.
- Subrequests int
- Subrequest limit per request.
- Cpu
Ms int - CPU time limit in milliseconds.
- Subrequests int
- Subrequest limit per request.
- cpu
Ms Integer - CPU time limit in milliseconds.
- subrequests Integer
- Subrequest limit per request.
- cpu
Ms number - CPU time limit in milliseconds.
- subrequests number
- Subrequest limit per request.
- cpu_
ms int - CPU time limit in milliseconds.
- subrequests int
- Subrequest limit per request.
- cpu
Ms Number - CPU time limit in milliseconds.
- subrequests Number
- Subrequest limit per request.
WorkerVersionMigrations, WorkerVersionMigrationsArgs
- 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<WorkerVersion Migrations Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- Steps
List<Worker
Version Migrations Step> - Migrations to apply in order.
- Transferred
Classes List<WorkerVersion 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 []WorkerVersion Migrations Renamed Class - A list of classes with Durable Object namespaces that were renamed.
- Steps
[]Worker
Version Migrations Step - Migrations to apply in order.
- Transferred
Classes []WorkerVersion 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<WorkerVersion Migrations Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- steps
List<Worker
Version Migrations Step> - Migrations to apply in order.
- transferred
Classes List<WorkerVersion 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 WorkerVersion Migrations Renamed Class[] - A list of classes with Durable Object namespaces that were renamed.
- steps
Worker
Version Migrations Step[] - Migrations to apply in order.
- transferred
Classes WorkerVersion 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[WorkerVersion Migrations Renamed Class] - A list of classes with Durable Object namespaces that were renamed.
- steps
Sequence[Worker
Version Migrations Step] - Migrations to apply in order.
- transferred_
classes Sequence[WorkerVersion 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.
WorkerVersionMigrationsRenamedClass, WorkerVersionMigrationsRenamedClassArgs
WorkerVersionMigrationsStep, WorkerVersionMigrationsStepArgs
- 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<WorkerVersion Migrations Step Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- Transferred
Classes List<WorkerVersion 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 []WorkerVersion Migrations Step Renamed Class - A list of classes with Durable Object namespaces that were renamed.
- Transferred
Classes []WorkerVersion 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<WorkerVersion Migrations Step Renamed Class> - A list of classes with Durable Object namespaces that were renamed.
- transferred
Classes List<WorkerVersion 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 WorkerVersion Migrations Step Renamed Class[] - A list of classes with Durable Object namespaces that were renamed.
- transferred
Classes WorkerVersion 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[WorkerVersion Migrations Step Renamed Class] - A list of classes with Durable Object namespaces that were renamed.
- transferred_
classes Sequence[WorkerVersion 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.
WorkerVersionMigrationsStepRenamedClass, WorkerVersionMigrationsStepRenamedClassArgs
WorkerVersionMigrationsStepTransferredClass, WorkerVersionMigrationsStepTransferredClassArgs
- 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
WorkerVersionMigrationsTransferredClass, WorkerVersionMigrationsTransferredClassArgs
- 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
WorkerVersionModule, WorkerVersionModuleArgs
- Content
Type string - The content type of the module.
- Name string
- The name of the module.
- Content
Base64 string - The base64-encoded module content.
- Content
File string - The file path of the module content.
- Content
Sha256 string - The SHA-256 hash of the module content.
- Content
Type string - The content type of the module.
- Name string
- The name of the module.
- Content
Base64 string - The base64-encoded module content.
- Content
File string - The file path of the module content.
- Content
Sha256 string - The SHA-256 hash of the module content.
- content
Type String - The content type of the module.
- name String
- The name of the module.
- content
Base64 String - The base64-encoded module content.
- content
File String - The file path of the module content.
- content
Sha256 String - The SHA-256 hash of the module content.
- content
Type string - The content type of the module.
- name string
- The name of the module.
- content
Base64 string - The base64-encoded module content.
- content
File string - The file path of the module content.
- content
Sha256 string - The SHA-256 hash of the module content.
- content_
type str - The content type of the module.
- name str
- The name of the module.
- content_
base64 str - The base64-encoded module content.
- content_
file str - The file path of the module content.
- content_
sha256 str - The SHA-256 hash of the module content.
- content
Type String - The content type of the module.
- name String
- The name of the module.
- content
Base64 String - The base64-encoded module content.
- content
File String - The file path of the module content.
- content
Sha256 String - The SHA-256 hash of the module content.
WorkerVersionPlacement, WorkerVersionPlacementArgs
- Host string
- TCP host and port for targeted placement.
- Hostname string
- HTTP hostname for targeted placement.
- Mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- Region string
- Cloud region for targeted placement in format 'provider:region'.
- Targets
List<Worker
Version Placement Target> - Array of placement targets (currently limited to single target).
- Host string
- TCP host and port for targeted placement.
- Hostname string
- HTTP hostname for targeted placement.
- Mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- Region string
- Cloud region for targeted placement in format 'provider:region'.
- Targets
[]Worker
Version Placement Target - Array of placement targets (currently limited to single target).
- host String
- TCP host and port for targeted placement.
- hostname String
- HTTP hostname for targeted placement.
- mode String
- Enables Smart Placement. Available values: "smart", "targeted".
- region String
- Cloud region for targeted placement in format 'provider:region'.
- targets
List<Worker
Version Placement Target> - Array of placement targets (currently limited to single target).
- host string
- TCP host and port for targeted placement.
- hostname string
- HTTP hostname for targeted placement.
- mode string
- Enables Smart Placement. Available values: "smart", "targeted".
- region string
- Cloud region for targeted placement in format 'provider:region'.
- targets
Worker
Version Placement Target[] - Array of placement targets (currently limited to single target).
- host str
- TCP host and port for targeted placement.
- hostname str
- HTTP hostname for targeted placement.
- mode str
- Enables Smart Placement. Available values: "smart", "targeted".
- region str
- Cloud region for targeted placement in format 'provider:region'.
- targets
Sequence[Worker
Version Placement Target] - Array of placement targets (currently limited to single target).
- host String
- TCP host and port for targeted placement.
- hostname String
- HTTP hostname for targeted placement.
- mode String
- Enables Smart Placement. Available values: "smart", "targeted".
- region String
- Cloud region for targeted placement in format 'provider:region'.
- targets List<Property Map>
- Array of placement targets (currently limited to single target).
WorkerVersionPlacementTarget, WorkerVersionPlacementTargetArgs
Import
$ pulumi import cloudflare:index/workerVersion:WorkerVersion example '<account_id>/<worker_id>/<version_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Saturday, May 2, 2026 by Pulumi
