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

cloudflare.getWorkerVersion

Explore with Pulumi AI

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleWorkerVersion = cloudflare.getWorkerVersion({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        workerId: "023e105f4ecef8ad9ca31a8372d0c353",
        versionId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        include: "modules",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_worker_version = cloudflare.get_worker_version(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        worker_id="023e105f4ecef8ad9ca31a8372d0c353",
        version_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        include="modules")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupWorkerVersion(ctx, &cloudflare.LookupWorkerVersionArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			WorkerId:  "023e105f4ecef8ad9ca31a8372d0c353",
    			VersionId: pulumi.StringRef("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
    			Include:   pulumi.StringRef("modules"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleWorkerVersion = Cloudflare.GetWorkerVersion.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            WorkerId = "023e105f4ecef8ad9ca31a8372d0c353",
            VersionId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            Include = "modules",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetWorkerVersionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleWorkerVersion = CloudflareFunctions.getWorkerVersion(GetWorkerVersionArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .workerId("023e105f4ecef8ad9ca31a8372d0c353")
                .versionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .include("modules")
                .build());
    
        }
    }
    
    variables:
      exampleWorkerVersion:
        fn::invoke:
          function: cloudflare:getWorkerVersion
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            workerId: 023e105f4ecef8ad9ca31a8372d0c353
            versionId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
            include: modules
    

    Using getWorkerVersion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getWorkerVersion(args: GetWorkerVersionArgs, opts?: InvokeOptions): Promise<GetWorkerVersionResult>
    function getWorkerVersionOutput(args: GetWorkerVersionOutputArgs, opts?: InvokeOptions): Output<GetWorkerVersionResult>
    def get_worker_version(account_id: Optional[str] = None,
                           include: Optional[str] = None,
                           version_id: Optional[str] = None,
                           worker_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetWorkerVersionResult
    def get_worker_version_output(account_id: Optional[pulumi.Input[str]] = None,
                           include: Optional[pulumi.Input[str]] = None,
                           version_id: Optional[pulumi.Input[str]] = None,
                           worker_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetWorkerVersionResult]
    func LookupWorkerVersion(ctx *Context, args *LookupWorkerVersionArgs, opts ...InvokeOption) (*LookupWorkerVersionResult, error)
    func LookupWorkerVersionOutput(ctx *Context, args *LookupWorkerVersionOutputArgs, opts ...InvokeOption) LookupWorkerVersionResultOutput

    > Note: This function is named LookupWorkerVersion in the Go SDK.

    public static class GetWorkerVersion 
    {
        public static Task<GetWorkerVersionResult> InvokeAsync(GetWorkerVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkerVersionResult> Invoke(GetWorkerVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkerVersionResult> getWorkerVersion(GetWorkerVersionArgs args, InvokeOptions options)
    public static Output<GetWorkerVersionResult> getWorkerVersion(GetWorkerVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkerVersion:getWorkerVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    WorkerId string
    Identifier.
    Include string
    Available values: "modules".
    VersionId string
    AccountId string
    Identifier.
    WorkerId string
    Identifier.
    Include string
    Available values: "modules".
    VersionId string
    accountId String
    Identifier.
    workerId String
    Identifier.
    include String
    Available values: "modules".
    versionId String
    accountId string
    Identifier.
    workerId string
    Identifier.
    include string
    Available values: "modules".
    versionId string
    account_id str
    Identifier.
    worker_id str
    Identifier.
    include str
    Available values: "modules".
    version_id str
    accountId String
    Identifier.
    workerId String
    Identifier.
    include String
    Available values: "modules".
    versionId String

    getWorkerVersion Result

    The following output properties are available:

    AccountId string
    Identifier.
    Annotations GetWorkerVersionAnnotations
    Metadata about the version.
    Assets GetWorkerVersionAssets
    Configuration for assets within a Worker.
    Bindings List<GetWorkerVersionBinding>
    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.
    Id string
    The ID of this resource.
    Limits GetWorkerVersionLimits
    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 GetWorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    Modules List<GetWorkerVersionModule>
    Code, sourcemaps, and other content used at runtime.
    Number int
    The integer version number, starting from one.
    Placement GetWorkerVersionPlacement
    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.
    Include string
    Available values: "modules".
    VersionId string
    AccountId string
    Identifier.
    Annotations GetWorkerVersionAnnotations
    Metadata about the version.
    Assets GetWorkerVersionAssets
    Configuration for assets within a Worker.
    Bindings []GetWorkerVersionBinding
    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.
    Id string
    The ID of this resource.
    Limits GetWorkerVersionLimits
    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 GetWorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    Modules []GetWorkerVersionModule
    Code, sourcemaps, and other content used at runtime.
    Number int
    The integer version number, starting from one.
    Placement GetWorkerVersionPlacement
    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.
    Include string
    Available values: "modules".
    VersionId string
    accountId String
    Identifier.
    annotations GetWorkerVersionAnnotations
    Metadata about the version.
    assets GetWorkerVersionAssets
    Configuration for assets within a Worker.
    bindings List<GetWorkerVersionBinding>
    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.
    id String
    The ID of this resource.
    limits GetWorkerVersionLimits
    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 GetWorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules List<GetWorkerVersionModule>
    Code, sourcemaps, and other content used at runtime.
    number Integer
    The integer version number, starting from one.
    placement GetWorkerVersionPlacement
    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.
    include String
    Available values: "modules".
    versionId String
    accountId string
    Identifier.
    annotations GetWorkerVersionAnnotations
    Metadata about the version.
    assets GetWorkerVersionAssets
    Configuration for assets within a Worker.
    bindings GetWorkerVersionBinding[]
    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.
    id string
    The ID of this resource.
    limits GetWorkerVersionLimits
    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 GetWorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules GetWorkerVersionModule[]
    Code, sourcemaps, and other content used at runtime.
    number number
    The integer version number, starting from one.
    placement GetWorkerVersionPlacement
    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.
    include string
    Available values: "modules".
    versionId string
    account_id str
    Identifier.
    annotations GetWorkerVersionAnnotations
    Metadata about the version.
    assets GetWorkerVersionAssets
    Configuration for assets within a Worker.
    bindings Sequence[GetWorkerVersionBinding]
    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.
    id str
    The ID of this resource.
    limits GetWorkerVersionLimits
    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 GetWorkerVersionMigrations
    Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
    modules Sequence[GetWorkerVersionModule]
    Code, sourcemaps, and other content used at runtime.
    number int
    The integer version number, starting from one.
    placement GetWorkerVersionPlacement
    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.
    include str
    Available values: "modules".
    version_id str
    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.
    id String
    The ID of this resource.
    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.
    include String
    Available values: "modules".
    versionId String

    Supporting Types

    GetWorkerVersionAnnotations

    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.

    GetWorkerVersionAssets

    Config GetWorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    Jwt string
    Token provided upon successful upload of all files from a registered manifest.
    Config GetWorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    Jwt string
    Token provided upon successful upload of all files from a registered manifest.
    config GetWorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    jwt String
    Token provided upon successful upload of all files from a registered manifest.
    config GetWorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    jwt string
    Token provided upon successful upload of all files from a registered manifest.
    config GetWorkerVersionAssetsConfig
    Configuration for assets within a Worker.
    jwt str
    Token provided upon successful upload of all files from a registered manifest.
    config Property Map
    Configuration for assets within a Worker.
    jwt String
    Token provided upon successful upload of all files from a registered manifest.

    GetWorkerVersionAssetsConfig

    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.

    GetWorkerVersionBinding

    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".
    Name string
    A JavaScript variable name for the binding.
    Namespace string
    Namespace to bind to.
    NamespaceId string
    Namespace identifier tag.
    Outbound GetWorkerVersionBindingOutbound
    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.
    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".
    Usages List<string>
    Allowed operations with the key. Learn more.
    WorkflowName string
    Name of the Workflow to bind to.
    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".
    Name string
    A JavaScript variable name for the binding.
    Namespace string
    Namespace to bind to.
    NamespaceId string
    Namespace identifier tag.
    Outbound GetWorkerVersionBindingOutbound
    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.
    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".
    Usages []string
    Allowed operations with the key. Learn more.
    WorkflowName string
    Name of the Workflow to bind to.
    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".
    name String
    A JavaScript variable name for the binding.
    namespace String
    Namespace to bind to.
    namespaceId String
    Namespace identifier tag.
    outbound GetWorkerVersionBindingOutbound
    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.
    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".
    usages List<String>
    Allowed operations with the key. Learn more.
    workflowName String
    Name of the Workflow to bind to.
    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".
    name string
    A JavaScript variable name for the binding.
    namespace string
    Namespace to bind to.
    namespaceId string
    Namespace identifier tag.
    outbound GetWorkerVersionBindingOutbound
    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.
    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".
    usages string[]
    Allowed operations with the key. Learn more.
    workflowName string
    Name of the Workflow to bind to.
    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".
    name str
    A JavaScript variable name for the binding.
    namespace str
    Namespace to bind to.
    namespace_id str
    Namespace identifier tag.
    outbound GetWorkerVersionBindingOutbound
    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.
    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".
    usages Sequence[str]
    Allowed operations with the key. Learn more.
    workflow_name str
    Name of the Workflow to bind to.
    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".
    name String
    A JavaScript variable name for the binding.
    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.
    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".
    usages List<String>
    Allowed operations with the key. Learn more.
    workflowName String
    Name of the Workflow to bind to.

    GetWorkerVersionBindingOutbound

    Params List<string>
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    Worker GetWorkerVersionBindingOutboundWorker
    Outbound worker.
    Params []string
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    Worker GetWorkerVersionBindingOutboundWorker
    Outbound worker.
    params List<String>
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker GetWorkerVersionBindingOutboundWorker
    Outbound worker.
    params string[]
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker GetWorkerVersionBindingOutboundWorker
    Outbound worker.
    params Sequence[str]
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker GetWorkerVersionBindingOutboundWorker
    Outbound worker.
    params List<String>
    Pass information from the Dispatch Worker to the Outbound Worker through the parameters.
    worker Property Map
    Outbound worker.

    GetWorkerVersionBindingOutboundWorker

    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.

    GetWorkerVersionLimits

    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.

    GetWorkerVersionMigrations

    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<GetWorkerVersionMigrationsRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    Steps List<GetWorkerVersionMigrationsStep>
    Migrations to apply in order.
    TransferredClasses List<GetWorkerVersionMigrationsTransferredClass>
    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 []GetWorkerVersionMigrationsRenamedClass
    A list of classes with Durable Object namespaces that were renamed.
    Steps []GetWorkerVersionMigrationsStep
    Migrations to apply in order.
    TransferredClasses []GetWorkerVersionMigrationsTransferredClass
    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<GetWorkerVersionMigrationsRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    steps List<GetWorkerVersionMigrationsStep>
    Migrations to apply in order.
    transferredClasses List<GetWorkerVersionMigrationsTransferredClass>
    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 GetWorkerVersionMigrationsRenamedClass[]
    A list of classes with Durable Object namespaces that were renamed.
    steps GetWorkerVersionMigrationsStep[]
    Migrations to apply in order.
    transferredClasses GetWorkerVersionMigrationsTransferredClass[]
    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[GetWorkerVersionMigrationsRenamedClass]
    A list of classes with Durable Object namespaces that were renamed.
    steps Sequence[GetWorkerVersionMigrationsStep]
    Migrations to apply in order.
    transferred_classes Sequence[GetWorkerVersionMigrationsTransferredClass]
    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.

    GetWorkerVersionMigrationsRenamedClass

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

    GetWorkerVersionMigrationsStep

    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<GetWorkerVersionMigrationsStepRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    TransferredClasses List<GetWorkerVersionMigrationsStepTransferredClass>
    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 []GetWorkerVersionMigrationsStepRenamedClass
    A list of classes with Durable Object namespaces that were renamed.
    TransferredClasses []GetWorkerVersionMigrationsStepTransferredClass
    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<GetWorkerVersionMigrationsStepRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses List<GetWorkerVersionMigrationsStepTransferredClass>
    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 GetWorkerVersionMigrationsStepRenamedClass[]
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses GetWorkerVersionMigrationsStepTransferredClass[]
    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[GetWorkerVersionMigrationsStepRenamedClass]
    A list of classes with Durable Object namespaces that were renamed.
    transferred_classes Sequence[GetWorkerVersionMigrationsStepTransferredClass]
    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.

    GetWorkerVersionMigrationsStepRenamedClass

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

    GetWorkerVersionMigrationsStepTransferredClass

    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

    GetWorkerVersionMigrationsTransferredClass

    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

    GetWorkerVersionModule

    ContentBase64 string
    The base64-encoded module content.
    ContentType string
    The content type of the module.
    Name string
    The name of the module.
    ContentBase64 string
    The base64-encoded module content.
    ContentType string
    The content type of the module.
    Name string
    The name of the module.
    contentBase64 String
    The base64-encoded module content.
    contentType String
    The content type of the module.
    name String
    The name of the module.
    contentBase64 string
    The base64-encoded module content.
    contentType string
    The content type of the module.
    name string
    The name of the module.
    content_base64 str
    The base64-encoded module content.
    content_type str
    The content type of the module.
    name str
    The name of the module.
    contentBase64 String
    The base64-encoded module content.
    contentType String
    The content type of the module.
    name String
    The name of the module.

    GetWorkerVersionPlacement

    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".

    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