cloudflare.WorkerVersion
Explore with Pulumi AI
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
exampleWorkerVersion:
type: cloudflare:WorkerVersion
name: example_worker_version
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
workerId: 023e105f4ecef8ad9ca31a8372d0c353
annotations:
workers_message: Fixed bug.
workers_tag: v1.0.1
assets:
config:
htmlHandling: auto-trailing-slash
notFoundHandling: 404-page
runWorkerFirst:
- string
jwt: jwt
bindings:
- name: MY_ENV_VAR
text: my_data
type: plain_text
compatibilityDate: 2021-01-01
compatibilityFlags:
- nodejs_compat
limits:
cpu_ms: 50
mainModule: 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
fromScript: from_script
to: to
modules:
- content_file: dist/index.js
content_type: 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,
account_id: Optional[str] = None,
worker_id: Optional[str] = None,
limits: Optional[WorkerVersionLimitsArgs] = None,
bindings: Optional[Sequence[WorkerVersionBindingArgs]] = None,
compatibility_date: Optional[str] = None,
compatibility_flags: Optional[Sequence[str]] = None,
assets: Optional[WorkerVersionAssetsArgs] = 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var workerVersionResource = new Cloudflare.WorkerVersion("workerVersionResource", new()
{
AccountId = "string",
WorkerId = "string",
Limits = new Cloudflare.Inputs.WorkerVersionLimitsArgs
{
CpuMs = 0,
},
Bindings = new[]
{
new Cloudflare.Inputs.WorkerVersionBindingArgs
{
Name = "string",
Type = "string",
Format = "string",
IndexName = "string",
Dataset = "string",
Environment = "string",
Algorithm = "string",
Id = "string",
Namespace = "string",
Json = "string",
KeyBase64 = "string",
KeyJwk = "string",
ClassName = "string",
CertificateId = "string",
ScriptName = "string",
Outbound = new Cloudflare.Inputs.WorkerVersionBindingOutboundArgs
{
Params = new[]
{
"string",
},
Worker = new Cloudflare.Inputs.WorkerVersionBindingOutboundWorkerArgs
{
Environment = "string",
Service = "string",
},
},
Pipeline = "string",
QueueName = "string",
NamespaceId = "string",
SecretName = "string",
Service = "string",
StoreId = "string",
Text = "string",
BucketName = "string",
Usages = new[]
{
"string",
},
WorkflowName = "string",
},
},
CompatibilityDate = "string",
CompatibilityFlags = new[]
{
"string",
},
Assets = new Cloudflare.Inputs.WorkerVersionAssetsArgs
{
Config = new Cloudflare.Inputs.WorkerVersionAssetsConfigArgs
{
HtmlHandling = "string",
NotFoundHandling = "string",
RunWorkerFirsts = new[]
{
"string",
},
},
},
MainModule = "string",
Migrations = new Cloudflare.Inputs.WorkerVersionMigrationsArgs
{
DeletedClasses = new[]
{
"string",
},
NewClasses = new[]
{
"string",
},
NewSqliteClasses = new[]
{
"string",
},
NewTag = "string",
OldTag = "string",
RenamedClasses = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsRenamedClassArgs
{
From = "string",
To = "string",
},
},
Steps = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsStepArgs
{
DeletedClasses = new[]
{
"string",
},
NewClasses = new[]
{
"string",
},
NewSqliteClasses = new[]
{
"string",
},
RenamedClasses = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsStepRenamedClassArgs
{
From = "string",
To = "string",
},
},
TransferredClasses = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsStepTransferredClassArgs
{
From = "string",
FromScript = "string",
To = "string",
},
},
},
},
TransferredClasses = new[]
{
new Cloudflare.Inputs.WorkerVersionMigrationsTransferredClassArgs
{
From = "string",
FromScript = "string",
To = "string",
},
},
},
Modules = new[]
{
new Cloudflare.Inputs.WorkerVersionModuleArgs
{
ContentFile = "string",
ContentType = "string",
Name = "string",
ContentSha256 = "string",
},
},
Placement = new Cloudflare.Inputs.WorkerVersionPlacementArgs
{
Mode = "string",
},
Annotations = new Cloudflare.Inputs.WorkerVersionAnnotationsArgs
{
WorkersMessage = "string",
WorkersTag = "string",
WorkersTriggeredBy = "string",
},
});
example, err := cloudflare.NewWorkerVersion(ctx, "workerVersionResource", &cloudflare.WorkerVersionArgs{
AccountId: pulumi.String("string"),
WorkerId: pulumi.String("string"),
Limits: &cloudflare.WorkerVersionLimitsArgs{
CpuMs: pulumi.Int(0),
},
Bindings: cloudflare.WorkerVersionBindingArray{
&cloudflare.WorkerVersionBindingArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Format: pulumi.String("string"),
IndexName: pulumi.String("string"),
Dataset: pulumi.String("string"),
Environment: pulumi.String("string"),
Algorithm: pulumi.String("string"),
Id: pulumi.String("string"),
Namespace: pulumi.String("string"),
Json: pulumi.String("string"),
KeyBase64: pulumi.String("string"),
KeyJwk: pulumi.String("string"),
ClassName: pulumi.String("string"),
CertificateId: pulumi.String("string"),
ScriptName: pulumi.String("string"),
Outbound: &cloudflare.WorkerVersionBindingOutboundArgs{
Params: pulumi.StringArray{
pulumi.String("string"),
},
Worker: &cloudflare.WorkerVersionBindingOutboundWorkerArgs{
Environment: pulumi.String("string"),
Service: pulumi.String("string"),
},
},
Pipeline: pulumi.String("string"),
QueueName: pulumi.String("string"),
NamespaceId: pulumi.String("string"),
SecretName: pulumi.String("string"),
Service: pulumi.String("string"),
StoreId: pulumi.String("string"),
Text: pulumi.String("string"),
BucketName: pulumi.String("string"),
Usages: pulumi.StringArray{
pulumi.String("string"),
},
WorkflowName: pulumi.String("string"),
},
},
CompatibilityDate: pulumi.String("string"),
CompatibilityFlags: pulumi.StringArray{
pulumi.String("string"),
},
Assets: &cloudflare.WorkerVersionAssetsArgs{
Config: &cloudflare.WorkerVersionAssetsConfigArgs{
HtmlHandling: pulumi.String("string"),
NotFoundHandling: pulumi.String("string"),
RunWorkerFirsts: pulumi.StringArray{
pulumi.String("string"),
},
},
},
MainModule: pulumi.String("string"),
Migrations: &cloudflare.WorkerVersionMigrationsArgs{
DeletedClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewSqliteClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewTag: pulumi.String("string"),
OldTag: pulumi.String("string"),
RenamedClasses: cloudflare.WorkerVersionMigrationsRenamedClassArray{
&cloudflare.WorkerVersionMigrationsRenamedClassArgs{
From: pulumi.String("string"),
To: pulumi.String("string"),
},
},
Steps: cloudflare.WorkerVersionMigrationsStepArray{
&cloudflare.WorkerVersionMigrationsStepArgs{
DeletedClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewClasses: pulumi.StringArray{
pulumi.String("string"),
},
NewSqliteClasses: pulumi.StringArray{
pulumi.String("string"),
},
RenamedClasses: cloudflare.WorkerVersionMigrationsStepRenamedClassArray{
&cloudflare.WorkerVersionMigrationsStepRenamedClassArgs{
From: pulumi.String("string"),
To: pulumi.String("string"),
},
},
TransferredClasses: cloudflare.WorkerVersionMigrationsStepTransferredClassArray{
&cloudflare.WorkerVersionMigrationsStepTransferredClassArgs{
From: pulumi.String("string"),
FromScript: pulumi.String("string"),
To: pulumi.String("string"),
},
},
},
},
TransferredClasses: cloudflare.WorkerVersionMigrationsTransferredClassArray{
&cloudflare.WorkerVersionMigrationsTransferredClassArgs{
From: pulumi.String("string"),
FromScript: pulumi.String("string"),
To: pulumi.String("string"),
},
},
},
Modules: cloudflare.WorkerVersionModuleArray{
&cloudflare.WorkerVersionModuleArgs{
ContentFile: pulumi.String("string"),
ContentType: pulumi.String("string"),
Name: pulumi.String("string"),
ContentSha256: pulumi.String("string"),
},
},
Placement: &cloudflare.WorkerVersionPlacementArgs{
Mode: pulumi.String("string"),
},
Annotations: &cloudflare.WorkerVersionAnnotationsArgs{
WorkersMessage: pulumi.String("string"),
WorkersTag: pulumi.String("string"),
WorkersTriggeredBy: pulumi.String("string"),
},
})
var workerVersionResource = new WorkerVersion("workerVersionResource", WorkerVersionArgs.builder()
.accountId("string")
.workerId("string")
.limits(WorkerVersionLimitsArgs.builder()
.cpuMs(0)
.build())
.bindings(WorkerVersionBindingArgs.builder()
.name("string")
.type("string")
.format("string")
.indexName("string")
.dataset("string")
.environment("string")
.algorithm("string")
.id("string")
.namespace("string")
.json("string")
.keyBase64("string")
.keyJwk("string")
.className("string")
.certificateId("string")
.scriptName("string")
.outbound(WorkerVersionBindingOutboundArgs.builder()
.params("string")
.worker(WorkerVersionBindingOutboundWorkerArgs.builder()
.environment("string")
.service("string")
.build())
.build())
.pipeline("string")
.queueName("string")
.namespaceId("string")
.secretName("string")
.service("string")
.storeId("string")
.text("string")
.bucketName("string")
.usages("string")
.workflowName("string")
.build())
.compatibilityDate("string")
.compatibilityFlags("string")
.assets(WorkerVersionAssetsArgs.builder()
.config(WorkerVersionAssetsConfigArgs.builder()
.htmlHandling("string")
.notFoundHandling("string")
.runWorkerFirsts("string")
.build())
.build())
.mainModule("string")
.migrations(WorkerVersionMigrationsArgs.builder()
.deletedClasses("string")
.newClasses("string")
.newSqliteClasses("string")
.newTag("string")
.oldTag("string")
.renamedClasses(WorkerVersionMigrationsRenamedClassArgs.builder()
.from("string")
.to("string")
.build())
.steps(WorkerVersionMigrationsStepArgs.builder()
.deletedClasses("string")
.newClasses("string")
.newSqliteClasses("string")
.renamedClasses(WorkerVersionMigrationsStepRenamedClassArgs.builder()
.from("string")
.to("string")
.build())
.transferredClasses(WorkerVersionMigrationsStepTransferredClassArgs.builder()
.from("string")
.fromScript("string")
.to("string")
.build())
.build())
.transferredClasses(WorkerVersionMigrationsTransferredClassArgs.builder()
.from("string")
.fromScript("string")
.to("string")
.build())
.build())
.modules(WorkerVersionModuleArgs.builder()
.contentFile("string")
.contentType("string")
.name("string")
.contentSha256("string")
.build())
.placement(WorkerVersionPlacementArgs.builder()
.mode("string")
.build())
.annotations(WorkerVersionAnnotationsArgs.builder()
.workersMessage("string")
.workersTag("string")
.workersTriggeredBy("string")
.build())
.build());
worker_version_resource = cloudflare.WorkerVersion("workerVersionResource",
account_id="string",
worker_id="string",
limits={
"cpu_ms": 0,
},
bindings=[{
"name": "string",
"type": "string",
"format": "string",
"index_name": "string",
"dataset": "string",
"environment": "string",
"algorithm": "string",
"id": "string",
"namespace": "string",
"json": "string",
"key_base64": "string",
"key_jwk": "string",
"class_name": "string",
"certificate_id": "string",
"script_name": "string",
"outbound": {
"params": ["string"],
"worker": {
"environment": "string",
"service": "string",
},
},
"pipeline": "string",
"queue_name": "string",
"namespace_id": "string",
"secret_name": "string",
"service": "string",
"store_id": "string",
"text": "string",
"bucket_name": "string",
"usages": ["string"],
"workflow_name": "string",
}],
compatibility_date="string",
compatibility_flags=["string"],
assets={
"config": {
"html_handling": "string",
"not_found_handling": "string",
"run_worker_firsts": ["string"],
},
},
main_module="string",
migrations={
"deleted_classes": ["string"],
"new_classes": ["string"],
"new_sqlite_classes": ["string"],
"new_tag": "string",
"old_tag": "string",
"renamed_classes": [{
"from_": "string",
"to": "string",
}],
"steps": [{
"deleted_classes": ["string"],
"new_classes": ["string"],
"new_sqlite_classes": ["string"],
"renamed_classes": [{
"from_": "string",
"to": "string",
}],
"transferred_classes": [{
"from_": "string",
"from_script": "string",
"to": "string",
}],
}],
"transferred_classes": [{
"from_": "string",
"from_script": "string",
"to": "string",
}],
},
modules=[{
"content_file": "string",
"content_type": "string",
"name": "string",
"content_sha256": "string",
}],
placement={
"mode": "string",
},
annotations={
"workers_message": "string",
"workers_tag": "string",
"workers_triggered_by": "string",
})
const workerVersionResource = new cloudflare.WorkerVersion("workerVersionResource", {
accountId: "string",
workerId: "string",
limits: {
cpuMs: 0,
},
bindings: [{
name: "string",
type: "string",
format: "string",
indexName: "string",
dataset: "string",
environment: "string",
algorithm: "string",
id: "string",
namespace: "string",
json: "string",
keyBase64: "string",
keyJwk: "string",
className: "string",
certificateId: "string",
scriptName: "string",
outbound: {
params: ["string"],
worker: {
environment: "string",
service: "string",
},
},
pipeline: "string",
queueName: "string",
namespaceId: "string",
secretName: "string",
service: "string",
storeId: "string",
text: "string",
bucketName: "string",
usages: ["string"],
workflowName: "string",
}],
compatibilityDate: "string",
compatibilityFlags: ["string"],
assets: {
config: {
htmlHandling: "string",
notFoundHandling: "string",
runWorkerFirsts: ["string"],
},
},
mainModule: "string",
migrations: {
deletedClasses: ["string"],
newClasses: ["string"],
newSqliteClasses: ["string"],
newTag: "string",
oldTag: "string",
renamedClasses: [{
from: "string",
to: "string",
}],
steps: [{
deletedClasses: ["string"],
newClasses: ["string"],
newSqliteClasses: ["string"],
renamedClasses: [{
from: "string",
to: "string",
}],
transferredClasses: [{
from: "string",
fromScript: "string",
to: "string",
}],
}],
transferredClasses: [{
from: "string",
fromScript: "string",
to: "string",
}],
},
modules: [{
contentFile: "string",
contentType: "string",
name: "string",
contentSha256: "string",
}],
placement: {
mode: "string",
},
annotations: {
workersMessage: "string",
workersTag: "string",
workersTriggeredBy: "string",
},
});
type: cloudflare:WorkerVersion
properties:
accountId: string
annotations:
workersMessage: string
workersTag: string
workersTriggeredBy: string
assets:
config:
htmlHandling: string
notFoundHandling: string
runWorkerFirsts:
- string
bindings:
- algorithm: string
bucketName: string
certificateId: string
className: string
dataset: string
environment: string
format: string
id: string
indexName: string
json: string
keyBase64: string
keyJwk: string
name: string
namespace: string
namespaceId: string
outbound:
params:
- string
worker:
environment: string
service: string
pipeline: string
queueName: string
scriptName: string
secretName: string
service: string
storeId: string
text: string
type: string
usages:
- string
workflowName: string
compatibilityDate: string
compatibilityFlags:
- string
limits:
cpuMs: 0
mainModule: string
migrations:
deletedClasses:
- string
newClasses:
- string
newSqliteClasses:
- string
newTag: string
oldTag: string
renamedClasses:
- from: string
to: string
steps:
- deletedClasses:
- string
newClasses:
- string
newSqliteClasses:
- string
renamedClasses:
- from: string
to: string
transferredClasses:
- from: string
fromScript: string
to: string
transferredClasses:
- from: string
fromScript: string
to: string
modules:
- contentFile: string
contentSha256: string
contentType: string
name: string
placement:
mode: string
workerId: string
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:
- Account
Id string - Identifier.
- Worker
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
compatibility_date
. - Limits
Worker
Version Limits - Resource limits enforced at runtime.
- Main
Module string - The name of the main module in the
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- Placement
Worker
Version Placement - Placement settings for the version.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- Account
Id string - Identifier.
- Worker
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
compatibility_date
. - Limits
Worker
Version Limits Args - Resource limits enforced at runtime.
- Main
Module string - The name of the main module in the
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- Placement
Worker
Version Placement Args - Placement settings for the version.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- account
Id String - Identifier.
- worker
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
compatibility_date
. - limits
Worker
Version Limits - Resource limits enforced at runtime.
- main
Module String - The name of the main module in the
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- placement
Worker
Version Placement - Placement settings for the version.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
- account
Id string - Identifier.
- worker
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
compatibility_date
. - limits
Worker
Version Limits - Resource limits enforced at runtime.
- main
Module string - The name of the main module in the
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- placement
Worker
Version Placement - Placement settings for the version.
- usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- account_
id str - Identifier.
- worker_
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
compatibility_date
. - limits
Worker
Version Limits Args - Resource limits enforced at runtime.
- main_
module str - The name of the main module in the
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- placement
Worker
Version Placement Args - Placement settings for the version.
- usage_
model str - Usage model for the version. Available values: "standard", "bundled", "unbound".
- account
Id String - Identifier.
- worker
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
compatibility_date
. - limits Property Map
- Resource limits enforced at runtime.
- main
Module String - The name of the main module in the
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- placement Property Map
- Placement settings for the version.
- 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 str - When the version was created.
- id str
- The provider-assigned unique ID for this managed resource.
- number int
- The integer version number, starting from one.
- source str
- The client used to create the 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,
created_on: Optional[str] = None,
limits: Optional[WorkerVersionLimitsArgs] = None,
main_module: Optional[str] = None,
migrations: Optional[WorkerVersionMigrationsArgs] = None,
modules: Optional[Sequence[WorkerVersionModuleArgs]] = None,
number: Optional[int] = None,
placement: Optional[WorkerVersionPlacementArgs] = None,
source: Optional[str] = None,
usage_model: Optional[str] = None,
worker_id: Optional[str] = None) -> WorkerVersion
func 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
compatibility_date
. - 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
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- Number int
- The integer version number, starting from one.
- Placement
Worker
Version Placement - Placement settings for the version.
- Source string
- The client used to create the version.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- Worker
Id string - Identifier.
- 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
compatibility_date
. - 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
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- Number int
- The integer version number, starting from one.
- Placement
Worker
Version Placement Args - Placement settings for the version.
- Source string
- The client used to create the version.
- Usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- Worker
Id string - Identifier.
- 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
compatibility_date
. - 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
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- number Integer
- The integer version number, starting from one.
- placement
Worker
Version Placement - Placement settings for the version.
- source String
- The client used to create the version.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id String - Identifier.
- 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
compatibility_date
. - 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
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- number number
- The integer version number, starting from one.
- placement
Worker
Version Placement - Placement settings for the version.
- source string
- The client used to create the version.
- usage
Model string - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id string - Identifier.
- 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
compatibility_date
. - 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
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- number int
- The integer version number, starting from one.
- placement
Worker
Version Placement Args - Placement settings for the version.
- source str
- The client used to create the version.
- usage_
model str - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker_
id str - Identifier.
- 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
compatibility_date
. - 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
modules
array (e.g. the name of the module that exports afetch
handler). - 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.
- number Number
- The integer version number, starting from one.
- placement Property Map
- Placement settings for the version.
- source String
- The client used to create the version.
- usage
Model String - Usage model for the version. Available values: "standard", "bundled", "unbound".
- worker
Id String - Identifier.
Supporting Types
WorkerVersionAnnotations, WorkerVersionAnnotationsArgs
- Workers
Message string - Human-readable message about the version.
- Workers
Tag string - User-provided identifier for the version.
- Workers
Triggered stringBy - Operation that triggered the creation of the version.
- Workers
Message string - Human-readable message about the version.
- Workers
Tag string - User-provided identifier for the version.
- Workers
Triggered stringBy - Operation that triggered the creation of the version.
- workers
Message String - Human-readable message about the version.
- workers
Tag String - User-provided identifier for the version.
- workers
Triggered StringBy - Operation that triggered the creation of the version.
- workers
Message string - Human-readable message about the version.
- workers
Tag string - User-provided identifier for the version.
- workers
Triggered stringBy - Operation that triggered the creation of the version.
- workers_
message str - Human-readable message about the version.
- workers_
tag str - User-provided identifier for the version.
- workers_
triggered_ strby - Operation that triggered the creation of the version.
- workers
Message String - Human-readable message about the version.
- workers
Tag String - User-provided identifier for the version.
- workers
Triggered StringBy - Operation that triggered the creation of the version.
WorkerVersionAssets, WorkerVersionAssetsArgs
- Config
Worker
Version Assets Config - Configuration for assets within a Worker.
- Config
Worker
Version Assets Config - Configuration for assets within a Worker.
- config
Worker
Version Assets Config - Configuration for assets within a Worker.
- config
Worker
Version Assets Config - Configuration for assets within a Worker.
- config
Worker
Version Assets Config - Configuration for assets within a Worker.
- config Property Map
- Configuration for assets within a Worker.
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 List<string>Firsts - Contains a list 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 []stringFirsts - Contains a list 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 List<String>Firsts - Contains a list 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 string[]Firsts - Contains a list 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_ Sequence[str]firsts - Contains a list 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 List<String>Firsts - Contains a list 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", "analyticsengine", "assets", "browser", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "pipelines", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow".
- Algorithm string
- Algorithm-specific key parameters. Learn more.
- 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.
- Dataset string
- The name of the dataset to bind to.
- Environment string
- The environment of the script_name 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.
- Json string
- JSON data to use.
- Key
Base64 string - Base64-encoded key data. Required if
format
is "raw", "pkcs8", or "spki". - Key
Jwk string - Key data in JSON Web Key format. Required if
format
is "jwk". - Namespace string
- Namespace to bind to.
- Namespace
Id string - Namespace identifier tag.
- Outbound
Worker
Version Binding Outbound - Outbound worker.
- 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.
- Store
Id string - ID of the store containing the secret.
- Text string
- The text value to use.
- Usages List<string>
- Allowed operations with the key. Learn more.
- 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", "analyticsengine", "assets", "browser", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "pipelines", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow".
- Algorithm string
- Algorithm-specific key parameters. Learn more.
- 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.
- Dataset string
- The name of the dataset to bind to.
- Environment string
- The environment of the script_name 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.
- Json string
- JSON data to use.
- Key
Base64 string - Base64-encoded key data. Required if
format
is "raw", "pkcs8", or "spki". - Key
Jwk string - Key data in JSON Web Key format. Required if
format
is "jwk". - Namespace string
- Namespace to bind to.
- Namespace
Id string - Namespace identifier tag.
- Outbound
Worker
Version Binding Outbound - Outbound worker.
- 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.
- Store
Id string - ID of the store containing the secret.
- Text string
- The text value to use.
- Usages []string
- Allowed operations with the key. Learn more.
- 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", "analyticsengine", "assets", "browser", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "pipelines", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow".
- algorithm String
- Algorithm-specific key parameters. Learn more.
- 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.
- dataset String
- The name of the dataset to bind to.
- environment String
- The environment of the script_name 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.
- json String
- JSON data to use.
- key
Base64 String - Base64-encoded key data. Required if
format
is "raw", "pkcs8", or "spki". - key
Jwk String - Key data in JSON Web Key format. Required if
format
is "jwk". - namespace String
- Namespace to bind to.
- namespace
Id String - Namespace identifier tag.
- outbound
Worker
Version Binding Outbound - Outbound worker.
- 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.
- store
Id String - ID of the store containing the secret.
- text String
- The text value to use.
- usages List<String>
- Allowed operations with the key. Learn more.
- 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", "analyticsengine", "assets", "browser", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "pipelines", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow".
- algorithm string
- Algorithm-specific key parameters. Learn more.
- 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.
- dataset string
- The name of the dataset to bind to.
- environment string
- The environment of the script_name 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.
- json string
- JSON data to use.
- key
Base64 string - Base64-encoded key data. Required if
format
is "raw", "pkcs8", or "spki". - key
Jwk string - Key data in JSON Web Key format. Required if
format
is "jwk". - namespace string
- Namespace to bind to.
- namespace
Id string - Namespace identifier tag.
- outbound
Worker
Version Binding Outbound - Outbound worker.
- 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.
- store
Id string - ID of the store containing the secret.
- text string
- The text value to use.
- usages string[]
- Allowed operations with the key. Learn more.
- 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", "analyticsengine", "assets", "browser", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "pipelines", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow".
- algorithm str
- Algorithm-specific key parameters. Learn more.
- 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.
- dataset str
- The name of the dataset to bind to.
- environment str
- The environment of the script_name 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.
- json str
- JSON data to use.
- key_
base64 str - Base64-encoded key data. Required if
format
is "raw", "pkcs8", or "spki". - key_
jwk str - Key data in JSON Web Key format. Required if
format
is "jwk". - namespace str
- Namespace to bind to.
- namespace_
id str - Namespace identifier tag.
- outbound
Worker
Version Binding Outbound - Outbound worker.
- 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.
- store_
id str - ID of the store containing the secret.
- text str
- The text value to use.
- usages Sequence[str]
- Allowed operations with the key. Learn more.
- 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", "analyticsengine", "assets", "browser", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "pipelines", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow".
- algorithm String
- Algorithm-specific key parameters. Learn more.
- 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.
- dataset String
- The name of the dataset to bind to.
- environment String
- The environment of the script_name 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.
- json String
- JSON data to use.
- key
Base64 String - Base64-encoded key data. Required if
format
is "raw", "pkcs8", or "spki". - key
Jwk String - Key data in JSON Web Key format. Required if
format
is "jwk". - namespace String
- Namespace to bind to.
- namespace
Id String - Namespace identifier tag.
- outbound Property Map
- Outbound worker.
- 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.
- store
Id String - ID of the store containing the secret.
- text String
- The text value to use.
- usages List<String>
- Allowed operations with the key. Learn more.
- workflow
Name String - Name of the Workflow to bind to.
WorkerVersionBindingOutbound, WorkerVersionBindingOutboundArgs
- Params List<string>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- Worker
Worker
Version Binding Outbound Worker - Outbound worker.
- Params []string
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- Worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params List<String>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params string[]
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params Sequence[str]
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker
Worker
Version Binding Outbound Worker - Outbound worker.
- params List<String>
- Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
- worker Property Map
- Outbound worker.
WorkerVersionBindingOutboundWorker, WorkerVersionBindingOutboundWorkerArgs
- Environment string
- Environment of the outbound worker.
- Service string
- Name of the outbound worker.
- Environment string
- Environment of the outbound worker.
- Service string
- Name of the outbound worker.
- environment String
- Environment of the outbound worker.
- service String
- Name of the outbound worker.
- environment string
- Environment of the outbound worker.
- service string
- Name of the outbound worker.
- environment str
- Environment of the outbound worker.
- service str
- Name of the outbound worker.
- environment String
- Environment of the outbound worker.
- service String
- Name of the outbound worker.
WorkerVersionLimits, WorkerVersionLimitsArgs
- Cpu
Ms int - CPU time limit in milliseconds.
- Cpu
Ms int - CPU time limit in milliseconds.
- cpu
Ms Integer - CPU time limit in milliseconds.
- cpu
Ms number - CPU time limit in milliseconds.
- cpu_
ms int - CPU time limit in milliseconds.
- cpu
Ms Number - CPU time limit in milliseconds.
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
File string - The file path of the module content.
- Content
Type string - The content type of the module.
- Name string
- The name of the module.
- Content
Sha256 string - The SHA-256 hash of the module content.
- Content
File string - The file path of the module content.
- Content
Type string - The content type of the module.
- Name string
- The name of the module.
- Content
Sha256 string - The SHA-256 hash of the module content.
- content
File String - The file path of the module content.
- content
Type String - The content type of the module.
- name String
- The name of the module.
- content
Sha256 String - The SHA-256 hash of the module content.
- content
File string - The file path of the module content.
- content
Type string - The content type of the module.
- name string
- The name of the module.
- content
Sha256 string - The SHA-256 hash of the module content.
- content_
file str - The file path of the module content.
- content_
type str - The content type of the module.
- name str
- The name of the module.
- content_
sha256 str - The SHA-256 hash of the module content.
- content
File String - The file path of the module content.
- content
Type String - The content type of the module.
- name String
- The name of the module.
- content
Sha256 String - The SHA-256 hash of the module content.
WorkerVersionPlacement, WorkerVersionPlacementArgs
- Mode string
- Placement mode for the version. Available values: "smart".
- Mode string
- Placement mode for the version. Available values: "smart".
- mode String
- Placement mode for the version. Available values: "smart".
- mode string
- Placement mode for the version. Available values: "smart".
- mode str
- Placement mode for the version. Available values: "smart".
- mode String
- Placement mode for the version. Available values: "smart".
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
cloudflare
Terraform Provider.