1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. WorkerVersion
Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi

cloudflare.WorkerVersion

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi

    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:

    AccountId string
    Identifier.
    WorkerId string
    Identifier.
    Annotations WorkerVersionAnnotations
    Metadata about the version.
    Assets WorkerVersionAssets
    Configuration for assets within a Worker.
    Bindings List<WorkerVersionBinding>
    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.
    CompatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    CompatibilityFlags 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 WorkerVersionLimits
    Resource limits enforced at runtime.
    MainModule string
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    Migrations WorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    Modules List<WorkerVersionModule>
    Code, sourcemaps, and other content used at runtime.
    Placement WorkerVersionPlacement
    Placement settings for the version.
    UsageModel string
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    AccountId string
    Identifier.
    WorkerId string
    Identifier.
    Annotations WorkerVersionAnnotationsArgs
    Metadata about the version.
    Assets WorkerVersionAssetsArgs
    Configuration for assets within a Worker.
    Bindings []WorkerVersionBindingArgs
    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.
    CompatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    CompatibilityFlags []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 WorkerVersionLimitsArgs
    Resource limits enforced at runtime.
    MainModule string
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    Migrations WorkerVersionMigrationsArgs
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    Modules []WorkerVersionModuleArgs
    Code, sourcemaps, and other content used at runtime.
    Placement WorkerVersionPlacementArgs
    Placement settings for the version.
    UsageModel string
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    accountId String
    Identifier.
    workerId String
    Identifier.
    annotations WorkerVersionAnnotations
    Metadata about the version.
    assets WorkerVersionAssets
    Configuration for assets within a Worker.
    bindings List<WorkerVersionBinding>
    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.
    compatibilityDate String
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags 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 WorkerVersionLimits
    Resource limits enforced at runtime.
    mainModule String
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    migrations WorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules List<WorkerVersionModule>
    Code, sourcemaps, and other content used at runtime.
    placement WorkerVersionPlacement
    Placement settings for the version.
    usageModel String
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    accountId string
    Identifier.
    workerId string
    Identifier.
    annotations WorkerVersionAnnotations
    Metadata about the version.
    assets WorkerVersionAssets
    Configuration for assets within a Worker.
    bindings WorkerVersionBinding[]
    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.
    compatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags 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 WorkerVersionLimits
    Resource limits enforced at runtime.
    mainModule string
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    migrations WorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules WorkerVersionModule[]
    Code, sourcemaps, and other content used at runtime.
    placement WorkerVersionPlacement
    Placement settings for the version.
    usageModel string
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    account_id str
    Identifier.
    worker_id str
    Identifier.
    annotations WorkerVersionAnnotationsArgs
    Metadata about the version.
    assets WorkerVersionAssetsArgs
    Configuration for assets within a Worker.
    bindings Sequence[WorkerVersionBindingArgs]
    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 WorkerVersionLimitsArgs
    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 a fetch handler).
    migrations WorkerVersionMigrationsArgs
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules Sequence[WorkerVersionModuleArgs]
    Code, sourcemaps, and other content used at runtime.
    placement WorkerVersionPlacementArgs
    Placement settings for the version.
    usage_model str
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    accountId String
    Identifier.
    workerId 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.
    compatibilityDate String
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags 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.
    mainModule String
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch 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.
    usageModel String
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WorkerVersion resource produces the following output properties:

    CreatedOn string
    When the version was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Number int
    The integer version number, starting from one.
    Source string
    The client used to create the version.
    CreatedOn string
    When the version was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Number int
    The integer version number, starting from one.
    Source string
    The client used to create the version.
    createdOn String
    When the version was created.
    id String
    The provider-assigned unique ID for this managed resource.
    number Integer
    The integer version number, starting from one.
    source String
    The client used to create the version.
    createdOn string
    When the version was created.
    id string
    The provider-assigned unique ID for this managed resource.
    number number
    The integer version number, starting from one.
    source string
    The client used to create the version.
    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.
    createdOn String
    When the version was created.
    id String
    The provider-assigned unique ID for this managed resource.
    number Number
    The integer version number, starting from one.
    source String
    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.
    The following state arguments are supported:
    AccountId string
    Identifier.
    Annotations WorkerVersionAnnotations
    Metadata about the version.
    Assets WorkerVersionAssets
    Configuration for assets within a Worker.
    Bindings List<WorkerVersionBinding>
    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.
    CompatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    CompatibilityFlags 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.
    CreatedOn string
    When the version was created.
    Limits WorkerVersionLimits
    Resource limits enforced at runtime.
    MainModule string
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    Migrations WorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    Modules List<WorkerVersionModule>
    Code, sourcemaps, and other content used at runtime.
    Number int
    The integer version number, starting from one.
    Placement WorkerVersionPlacement
    Placement settings for the version.
    Source string
    The client used to create the version.
    UsageModel string
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    WorkerId string
    Identifier.
    AccountId string
    Identifier.
    Annotations WorkerVersionAnnotationsArgs
    Metadata about the version.
    Assets WorkerVersionAssetsArgs
    Configuration for assets within a Worker.
    Bindings []WorkerVersionBindingArgs
    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.
    CompatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    CompatibilityFlags []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.
    CreatedOn string
    When the version was created.
    Limits WorkerVersionLimitsArgs
    Resource limits enforced at runtime.
    MainModule string
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    Migrations WorkerVersionMigrationsArgs
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    Modules []WorkerVersionModuleArgs
    Code, sourcemaps, and other content used at runtime.
    Number int
    The integer version number, starting from one.
    Placement WorkerVersionPlacementArgs
    Placement settings for the version.
    Source string
    The client used to create the version.
    UsageModel string
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    WorkerId string
    Identifier.
    accountId String
    Identifier.
    annotations WorkerVersionAnnotations
    Metadata about the version.
    assets WorkerVersionAssets
    Configuration for assets within a Worker.
    bindings List<WorkerVersionBinding>
    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.
    compatibilityDate String
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags 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.
    createdOn String
    When the version was created.
    limits WorkerVersionLimits
    Resource limits enforced at runtime.
    mainModule String
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    migrations WorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules List<WorkerVersionModule>
    Code, sourcemaps, and other content used at runtime.
    number Integer
    The integer version number, starting from one.
    placement WorkerVersionPlacement
    Placement settings for the version.
    source String
    The client used to create the version.
    usageModel String
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    workerId String
    Identifier.
    accountId string
    Identifier.
    annotations WorkerVersionAnnotations
    Metadata about the version.
    assets WorkerVersionAssets
    Configuration for assets within a Worker.
    bindings WorkerVersionBinding[]
    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.
    compatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags 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.
    createdOn string
    When the version was created.
    limits WorkerVersionLimits
    Resource limits enforced at runtime.
    mainModule string
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
    migrations WorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules WorkerVersionModule[]
    Code, sourcemaps, and other content used at runtime.
    number number
    The integer version number, starting from one.
    placement WorkerVersionPlacement
    Placement settings for the version.
    source string
    The client used to create the version.
    usageModel string
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    workerId string
    Identifier.
    account_id str
    Identifier.
    annotations WorkerVersionAnnotationsArgs
    Metadata about the version.
    assets WorkerVersionAssetsArgs
    Configuration for assets within a Worker.
    bindings Sequence[WorkerVersionBindingArgs]
    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 WorkerVersionLimitsArgs
    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 a fetch handler).
    migrations WorkerVersionMigrationsArgs
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules Sequence[WorkerVersionModuleArgs]
    Code, sourcemaps, and other content used at runtime.
    number int
    The integer version number, starting from one.
    placement WorkerVersionPlacementArgs
    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".

    Deprecated: This attribute is deprecated.

    worker_id str
    Identifier.
    accountId 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.
    compatibilityDate String
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags 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.
    createdOn String
    When the version was created.
    limits Property Map
    Resource limits enforced at runtime.
    mainModule String
    The name of the main module in the modules array (e.g. the name of the module that exports a fetch 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.
    usageModel String
    Usage model for the version. Available values: "standard", "bundled", "unbound".

    Deprecated: This attribute is deprecated.

    workerId String
    Identifier.

    Supporting Types

    WorkerVersionAnnotations, WorkerVersionAnnotationsArgs

    WorkersMessage string
    Human-readable message about the version.
    WorkersTag string
    User-provided identifier for the version.
    WorkersTriggeredBy string
    Operation that triggered the creation of the version.
    WorkersMessage string
    Human-readable message about the version.
    WorkersTag string
    User-provided identifier for the version.
    WorkersTriggeredBy string
    Operation that triggered the creation of the version.
    workersMessage String
    Human-readable message about the version.
    workersTag String
    User-provided identifier for the version.
    workersTriggeredBy String
    Operation that triggered the creation of the version.
    workersMessage string
    Human-readable message about the version.
    workersTag string
    User-provided identifier for the version.
    workersTriggeredBy string
    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_by str
    Operation that triggered the creation of the version.
    workersMessage String
    Human-readable message about the version.
    workersTag String
    User-provided identifier for the version.
    workersTriggeredBy String
    Operation that triggered the creation of the version.

    WorkerVersionAssets, WorkerVersionAssetsArgs

    Config WorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    Config WorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    config WorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    config WorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    config WorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    config Property Map
    Configuration for assets within a Worker.

    WorkerVersionAssetsConfig, WorkerVersionAssetsConfigArgs

    HtmlHandling string
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    NotFoundHandling string
    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".
    RunWorkerFirsts List<string>
    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.
    HtmlHandling string
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    NotFoundHandling string
    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".
    RunWorkerFirsts []string
    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.
    htmlHandling String
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    notFoundHandling String
    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".
    runWorkerFirsts List<String>
    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.
    htmlHandling string
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    notFoundHandling string
    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".
    runWorkerFirsts string[]
    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_handling str
    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_firsts Sequence[str]
    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.
    htmlHandling String
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    notFoundHandling String
    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".
    runWorkerFirsts List<String>
    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.
    BucketName string
    R2 bucket to bind to.
    CertificateId string
    Identifier of the certificate to bind to.
    ClassName 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.
    IndexName string
    Name of the Vectorize index to bind to.
    Json string
    JSON data to use.
    KeyBase64 string
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    KeyJwk string
    Key data in JSON Web Key format. Required if format is "jwk".
    Namespace string
    Namespace to bind to.
    NamespaceId string
    Namespace identifier tag.
    Outbound WorkerVersionBindingOutbound
    Outbound worker.
    Pipeline string
    Name of the Pipeline to bind to.
    QueueName string
    Name of the Queue to bind to.
    ScriptName string
    The script where the Durable Object is defined, if it is external to this Worker.
    SecretName string
    Name of the secret in the store.
    Service string
    Name of Worker to bind to.
    StoreId 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.
    WorkflowName 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.
    BucketName string
    R2 bucket to bind to.
    CertificateId string
    Identifier of the certificate to bind to.
    ClassName 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.
    IndexName string
    Name of the Vectorize index to bind to.
    Json string
    JSON data to use.
    KeyBase64 string
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    KeyJwk string
    Key data in JSON Web Key format. Required if format is "jwk".
    Namespace string
    Namespace to bind to.
    NamespaceId string
    Namespace identifier tag.
    Outbound WorkerVersionBindingOutbound
    Outbound worker.
    Pipeline string
    Name of the Pipeline to bind to.
    QueueName string
    Name of the Queue to bind to.
    ScriptName string
    The script where the Durable Object is defined, if it is external to this Worker.
    SecretName string
    Name of the secret in the store.
    Service string
    Name of Worker to bind to.
    StoreId string
    ID of the store containing the secret.
    Text string
    The text value to use.
    Usages []string
    Allowed operations with the key. Learn more.
    WorkflowName 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.
    bucketName String
    R2 bucket to bind to.
    certificateId String
    Identifier of the certificate to bind to.
    className 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.
    indexName String
    Name of the Vectorize index to bind to.
    json String
    JSON data to use.
    keyBase64 String
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    keyJwk String
    Key data in JSON Web Key format. Required if format is "jwk".
    namespace String
    Namespace to bind to.
    namespaceId String
    Namespace identifier tag.
    outbound WorkerVersionBindingOutbound
    Outbound worker.
    pipeline String
    Name of the Pipeline to bind to.
    queueName String
    Name of the Queue to bind to.
    scriptName String
    The script where the Durable Object is defined, if it is external to this Worker.
    secretName String
    Name of the secret in the store.
    service String
    Name of Worker to bind to.
    storeId 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.
    workflowName 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.
    bucketName string
    R2 bucket to bind to.
    certificateId string
    Identifier of the certificate to bind to.
    className 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.
    indexName string
    Name of the Vectorize index to bind to.
    json string
    JSON data to use.
    keyBase64 string
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    keyJwk string
    Key data in JSON Web Key format. Required if format is "jwk".
    namespace string
    Namespace to bind to.
    namespaceId string
    Namespace identifier tag.
    outbound WorkerVersionBindingOutbound
    Outbound worker.
    pipeline string
    Name of the Pipeline to bind to.
    queueName string
    Name of the Queue to bind to.
    scriptName string
    The script where the Durable Object is defined, if it is external to this Worker.
    secretName string
    Name of the secret in the store.
    service string
    Name of Worker to bind to.
    storeId string
    ID of the store containing the secret.
    text string
    The text value to use.
    usages string[]
    Allowed operations with the key. Learn more.
    workflowName 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 WorkerVersionBindingOutbound
    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.
    bucketName String
    R2 bucket to bind to.
    certificateId String
    Identifier of the certificate to bind to.
    className 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.
    indexName String
    Name of the Vectorize index to bind to.
    json String
    JSON data to use.
    keyBase64 String
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    keyJwk String
    Key data in JSON Web Key format. Required if format is "jwk".
    namespace String
    Namespace to bind to.
    namespaceId String
    Namespace identifier tag.
    outbound Property Map
    Outbound worker.
    pipeline String
    Name of the Pipeline to bind to.
    queueName String
    Name of the Queue to bind to.
    scriptName String
    The script where the Durable Object is defined, if it is external to this Worker.
    secretName String
    Name of the secret in the store.
    service String
    Name of Worker to bind to.
    storeId 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.
    workflowName 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 WorkerVersionBindingOutboundWorker
    Outbound worker.
    Params []string
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    Worker WorkerVersionBindingOutboundWorker
    Outbound worker.
    params List<String>
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker WorkerVersionBindingOutboundWorker
    Outbound worker.
    params string[]
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker WorkerVersionBindingOutboundWorker
    Outbound worker.
    params Sequence[str]
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker WorkerVersionBindingOutboundWorker
    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

    CpuMs int
    CPU time limit in milliseconds.
    CpuMs int
    CPU time limit in milliseconds.
    cpuMs Integer
    CPU time limit in milliseconds.
    cpuMs number
    CPU time limit in milliseconds.
    cpu_ms int
    CPU time limit in milliseconds.
    cpuMs Number
    CPU time limit in milliseconds.

    WorkerVersionMigrations, WorkerVersionMigrationsArgs

    DeletedClasses List<string>
    A list of classes to delete Durable Object namespaces from.
    NewClasses List<string>
    A list of classes to create Durable Object namespaces from.
    NewSqliteClasses List<string>
    A list of classes to create Durable Object namespaces with SQLite from.
    NewTag string
    Tag to set as the latest migration tag.
    OldTag string
    Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
    RenamedClasses List<WorkerVersionMigrationsRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    Steps List<WorkerVersionMigrationsStep>
    Migrations to apply in order.
    TransferredClasses List<WorkerVersionMigrationsTransferredClass>
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    DeletedClasses []string
    A list of classes to delete Durable Object namespaces from.
    NewClasses []string
    A list of classes to create Durable Object namespaces from.
    NewSqliteClasses []string
    A list of classes to create Durable Object namespaces with SQLite from.
    NewTag string
    Tag to set as the latest migration tag.
    OldTag string
    Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
    RenamedClasses []WorkerVersionMigrationsRenamedClass
    A list of classes with Durable Object namespaces that were renamed.
    Steps []WorkerVersionMigrationsStep
    Migrations to apply in order.
    TransferredClasses []WorkerVersionMigrationsTransferredClass
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deletedClasses List<String>
    A list of classes to delete Durable Object namespaces from.
    newClasses List<String>
    A list of classes to create Durable Object namespaces from.
    newSqliteClasses List<String>
    A list of classes to create Durable Object namespaces with SQLite from.
    newTag String
    Tag to set as the latest migration tag.
    oldTag String
    Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
    renamedClasses List<WorkerVersionMigrationsRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    steps List<WorkerVersionMigrationsStep>
    Migrations to apply in order.
    transferredClasses List<WorkerVersionMigrationsTransferredClass>
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deletedClasses string[]
    A list of classes to delete Durable Object namespaces from.
    newClasses string[]
    A list of classes to create Durable Object namespaces from.
    newSqliteClasses string[]
    A list of classes to create Durable Object namespaces with SQLite from.
    newTag string
    Tag to set as the latest migration tag.
    oldTag string
    Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
    renamedClasses WorkerVersionMigrationsRenamedClass[]
    A list of classes with Durable Object namespaces that were renamed.
    steps WorkerVersionMigrationsStep[]
    Migrations to apply in order.
    transferredClasses WorkerVersionMigrationsTransferredClass[]
    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_classes Sequence[str]
    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[WorkerVersionMigrationsRenamedClass]
    A list of classes with Durable Object namespaces that were renamed.
    steps Sequence[WorkerVersionMigrationsStep]
    Migrations to apply in order.
    transferred_classes Sequence[WorkerVersionMigrationsTransferredClass]
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deletedClasses List<String>
    A list of classes to delete Durable Object namespaces from.
    newClasses List<String>
    A list of classes to create Durable Object namespaces from.
    newSqliteClasses List<String>
    A list of classes to create Durable Object namespaces with SQLite from.
    newTag String
    Tag to set as the latest migration tag.
    oldTag String
    Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
    renamedClasses List<Property Map>
    A list of classes with Durable Object namespaces that were renamed.
    steps List<Property Map>
    Migrations to apply in order.
    transferredClasses 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

    From string
    To string
    From string
    To string
    from String
    to String
    from string
    to string
    from_ str
    to str
    from String
    to String

    WorkerVersionMigrationsStep, WorkerVersionMigrationsStepArgs

    DeletedClasses List<string>
    A list of classes to delete Durable Object namespaces from.
    NewClasses List<string>
    A list of classes to create Durable Object namespaces from.
    NewSqliteClasses List<string>
    A list of classes to create Durable Object namespaces with SQLite from.
    RenamedClasses List<WorkerVersionMigrationsStepRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    TransferredClasses List<WorkerVersionMigrationsStepTransferredClass>
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    DeletedClasses []string
    A list of classes to delete Durable Object namespaces from.
    NewClasses []string
    A list of classes to create Durable Object namespaces from.
    NewSqliteClasses []string
    A list of classes to create Durable Object namespaces with SQLite from.
    RenamedClasses []WorkerVersionMigrationsStepRenamedClass
    A list of classes with Durable Object namespaces that were renamed.
    TransferredClasses []WorkerVersionMigrationsStepTransferredClass
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deletedClasses List<String>
    A list of classes to delete Durable Object namespaces from.
    newClasses List<String>
    A list of classes to create Durable Object namespaces from.
    newSqliteClasses List<String>
    A list of classes to create Durable Object namespaces with SQLite from.
    renamedClasses List<WorkerVersionMigrationsStepRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses List<WorkerVersionMigrationsStepTransferredClass>
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deletedClasses string[]
    A list of classes to delete Durable Object namespaces from.
    newClasses string[]
    A list of classes to create Durable Object namespaces from.
    newSqliteClasses string[]
    A list of classes to create Durable Object namespaces with SQLite from.
    renamedClasses WorkerVersionMigrationsStepRenamedClass[]
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses WorkerVersionMigrationsStepTransferredClass[]
    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_classes Sequence[str]
    A list of classes to create Durable Object namespaces with SQLite from.
    renamed_classes Sequence[WorkerVersionMigrationsStepRenamedClass]
    A list of classes with Durable Object namespaces that were renamed.
    transferred_classes Sequence[WorkerVersionMigrationsStepTransferredClass]
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deletedClasses List<String>
    A list of classes to delete Durable Object namespaces from.
    newClasses List<String>
    A list of classes to create Durable Object namespaces from.
    newSqliteClasses List<String>
    A list of classes to create Durable Object namespaces with SQLite from.
    renamedClasses List<Property Map>
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses 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

    From string
    To string
    From string
    To string
    from String
    to String
    from string
    to string
    from_ str
    to str
    from String
    to String

    WorkerVersionMigrationsStepTransferredClass, WorkerVersionMigrationsStepTransferredClassArgs

    From string
    FromScript string
    To string
    From string
    FromScript string
    To string
    from String
    fromScript String
    to String
    from string
    fromScript string
    to string
    from_ str
    from_script str
    to str
    from String
    fromScript String
    to String

    WorkerVersionMigrationsTransferredClass, WorkerVersionMigrationsTransferredClassArgs

    From string
    FromScript string
    To string
    From string
    FromScript string
    To string
    from String
    fromScript String
    to String
    from string
    fromScript string
    to string
    from_ str
    from_script str
    to str
    from String
    fromScript String
    to String

    WorkerVersionModule, WorkerVersionModuleArgs

    ContentFile string
    The file path of the module content.
    ContentType string
    The content type of the module.
    Name string
    The name of the module.
    ContentSha256 string
    The SHA-256 hash of the module content.
    ContentFile string
    The file path of the module content.
    ContentType string
    The content type of the module.
    Name string
    The name of the module.
    ContentSha256 string
    The SHA-256 hash of the module content.
    contentFile String
    The file path of the module content.
    contentType String
    The content type of the module.
    name String
    The name of the module.
    contentSha256 String
    The SHA-256 hash of the module content.
    contentFile string
    The file path of the module content.
    contentType string
    The content type of the module.
    name string
    The name of the module.
    contentSha256 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.
    contentFile String
    The file path of the module content.
    contentType String
    The content type of the module.
    name String
    The name of the module.
    contentSha256 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.
    cloudflare logo
    Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi