1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. WorkerScript
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
    Deprecated: cloudflare.index/workerscript.WorkerScript has been deprecated in favor of cloudflare.index/workersscript.WorkersScript

    Accepted Permissions

    • Workers Scripts Read
    • Workers Scripts Write
    • Workers Tail Read

    For more direct control over Workers resources, we recommend the beta cloudflare.Worker, cloudflare.WorkerVersion, and cloudflare.WorkersDeployment resources. See how to use them in the developer documentation.

    Create WorkerScript Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WorkerScript(name: string, args: WorkerScriptArgs, opts?: CustomResourceOptions);
    @overload
    def WorkerScript(resource_name: str,
                     args: WorkerScriptArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def WorkerScript(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_id: Optional[str] = None,
                     annotations: Optional[WorkerScriptAnnotationsArgs] = None,
                     assets: Optional[WorkerScriptAssetsArgs] = None,
                     bindings: Optional[Sequence[WorkerScriptBindingArgs]] = None,
                     body_part: Optional[str] = None,
                     compatibility_date: Optional[str] = None,
                     compatibility_flags: Optional[Sequence[str]] = None,
                     content: Optional[str] = None,
                     content_file: Optional[str] = None,
                     content_sha256: Optional[str] = None,
                     content_type: Optional[str] = None,
                     keep_assets: Optional[bool] = None,
                     keep_bindings: Optional[Sequence[str]] = None,
                     limits: Optional[WorkerScriptLimitsArgs] = None,
                     logpush: Optional[bool] = None,
                     main_module: Optional[str] = None,
                     migrations: Optional[WorkerScriptMigrationsArgs] = None,
                     observability: Optional[WorkerScriptObservabilityArgs] = None,
                     placement: Optional[WorkerScriptPlacementArgs] = None,
                     script_name: Optional[str] = None,
                     tail_consumers: Optional[Sequence[WorkerScriptTailConsumerArgs]] = None,
                     usage_model: Optional[str] = None)
    func NewWorkerScript(ctx *Context, name string, args WorkerScriptArgs, opts ...ResourceOption) (*WorkerScript, error)
    public WorkerScript(string name, WorkerScriptArgs args, CustomResourceOptions? opts = null)
    public WorkerScript(String name, WorkerScriptArgs args)
    public WorkerScript(String name, WorkerScriptArgs args, CustomResourceOptions options)
    
    type: cloudflare:WorkerScript
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_workerscript" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args WorkerScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WorkerScriptArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WorkerScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkerScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkerScriptArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    WorkerScript Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The WorkerScript resource accepts the following input properties:

    ScriptName string
    Name of the script, used in URLs and route configuration.
    AccountId string
    Identifier.
    Annotations WorkerScriptAnnotations
    Annotations for the version created by this upload.
    Assets WorkerScriptAssets
    Configuration for assets within a Worker.
    Bindings List<WorkerScriptBinding>
    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.
    BodyPart string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    Content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    ContentFile string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    ContentSha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    ContentType string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    KeepAssets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    KeepBindings List<string>
    List of binding types to keep from previous_upload.
    Limits WorkerScriptLimits
    Limits to apply for this Worker.
    Logpush bool
    Whether Logpush is turned on for the Worker.
    MainModule string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    Migrations WorkerScriptMigrations
    Migrations to apply for Durable Objects associated with this Worker.
    Observability WorkerScriptObservability
    Observability settings for the Worker.
    Placement WorkerScriptPlacement
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    TailConsumers List<WorkerScriptTailConsumer>
    List of Workers that will consume logs from the attached Worker.
    UsageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    ScriptName string
    Name of the script, used in URLs and route configuration.
    AccountId string
    Identifier.
    Annotations WorkerScriptAnnotationsArgs
    Annotations for the version created by this upload.
    Assets WorkerScriptAssetsArgs
    Configuration for assets within a Worker.
    Bindings []WorkerScriptBindingArgs
    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.
    BodyPart string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    Content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    ContentFile string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    ContentSha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    ContentType string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    KeepAssets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    KeepBindings []string
    List of binding types to keep from previous_upload.
    Limits WorkerScriptLimitsArgs
    Limits to apply for this Worker.
    Logpush bool
    Whether Logpush is turned on for the Worker.
    MainModule string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    Migrations WorkerScriptMigrationsArgs
    Migrations to apply for Durable Objects associated with this Worker.
    Observability WorkerScriptObservabilityArgs
    Observability settings for the Worker.
    Placement WorkerScriptPlacementArgs
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    TailConsumers []WorkerScriptTailConsumerArgs
    List of Workers that will consume logs from the attached Worker.
    UsageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    script_name string
    Name of the script, used in URLs and route configuration.
    account_id string
    Identifier.
    annotations object
    Annotations for the version created by this upload.
    assets object
    Configuration for assets within a Worker.
    bindings list(object)
    List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
    body_part string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    compatibility_date string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibility_flags list(string)
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibilityDate.
    content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    content_file string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    content_sha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    content_type string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    keep_assets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keep_bindings list(string)
    List of binding types to keep from previous_upload.
    limits object
    Limits to apply for this Worker.
    logpush bool
    Whether Logpush is turned on for the Worker.
    main_module string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrations object
    Migrations to apply for Durable Objects associated with this Worker.
    observability object
    Observability settings for the Worker.
    placement object
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    tail_consumers list(object)
    List of Workers that will consume logs from the attached Worker.
    usage_model string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    scriptName String
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    annotations WorkerScriptAnnotations
    Annotations for the version created by this upload.
    assets WorkerScriptAssets
    Configuration for assets within a Worker.
    bindings List<WorkerScriptBinding>
    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.
    bodyPart String
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    content String
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    contentFile String
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    contentSha256 String
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    contentType String
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    keepAssets Boolean
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keepBindings List<String>
    List of binding types to keep from previous_upload.
    limits WorkerScriptLimits
    Limits to apply for this Worker.
    logpush Boolean
    Whether Logpush is turned on for the Worker.
    mainModule String
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrations WorkerScriptMigrations
    Migrations to apply for Durable Objects associated with this Worker.
    observability WorkerScriptObservability
    Observability settings for the Worker.
    placement WorkerScriptPlacement
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    tailConsumers List<WorkerScriptTailConsumer>
    List of Workers that will consume logs from the attached Worker.
    usageModel String
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    scriptName string
    Name of the script, used in URLs and route configuration.
    accountId string
    Identifier.
    annotations WorkerScriptAnnotations
    Annotations for the version created by this upload.
    assets WorkerScriptAssets
    Configuration for assets within a Worker.
    bindings WorkerScriptBinding[]
    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.
    bodyPart string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    contentFile string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    contentSha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    contentType string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    keepAssets boolean
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keepBindings string[]
    List of binding types to keep from previous_upload.
    limits WorkerScriptLimits
    Limits to apply for this Worker.
    logpush boolean
    Whether Logpush is turned on for the Worker.
    mainModule string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrations WorkerScriptMigrations
    Migrations to apply for Durable Objects associated with this Worker.
    observability WorkerScriptObservability
    Observability settings for the Worker.
    placement WorkerScriptPlacement
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    tailConsumers WorkerScriptTailConsumer[]
    List of Workers that will consume logs from the attached Worker.
    usageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    script_name str
    Name of the script, used in URLs and route configuration.
    account_id str
    Identifier.
    annotations WorkerScriptAnnotationsArgs
    Annotations for the version created by this upload.
    assets WorkerScriptAssetsArgs
    Configuration for assets within a Worker.
    bindings Sequence[WorkerScriptBindingArgs]
    List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
    body_part str
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    compatibility_date str
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibility_flags Sequence[str]
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibilityDate.
    content str
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    content_file str
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    content_sha256 str
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    content_type str
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    keep_assets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keep_bindings Sequence[str]
    List of binding types to keep from previous_upload.
    limits WorkerScriptLimitsArgs
    Limits to apply for this Worker.
    logpush bool
    Whether Logpush is turned on for the Worker.
    main_module str
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrations WorkerScriptMigrationsArgs
    Migrations to apply for Durable Objects associated with this Worker.
    observability WorkerScriptObservabilityArgs
    Observability settings for the Worker.
    placement WorkerScriptPlacementArgs
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    tail_consumers Sequence[WorkerScriptTailConsumerArgs]
    List of Workers that will consume logs from the attached Worker.
    usage_model str
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    scriptName String
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    annotations Property Map
    Annotations for the version created by this upload.
    assets Property Map
    Configuration for assets within a Worker.
    bindings List<Property Map>
    List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
    bodyPart String
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    content String
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    contentFile String
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    contentSha256 String
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    contentType String
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    keepAssets Boolean
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keepBindings List<String>
    List of binding types to keep from previous_upload.
    limits Property Map
    Limits to apply for this Worker.
    logpush Boolean
    Whether Logpush is turned on for the Worker.
    mainModule String
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrations Property Map
    Migrations to apply for Durable Objects associated with this Worker.
    observability Property Map
    Observability settings for the Worker.
    placement Property Map
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    tailConsumers List<Property Map>
    List of Workers that will consume logs from the attached Worker.
    usageModel String
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".

    Outputs

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

    CreatedOn string
    When the script was created.
    Etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    Handlers List<string>
    The names of handlers exported as part of the default export.
    HasAssets bool
    Whether a Worker contains assets.
    HasModules bool
    Whether a Worker contains modules.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastDeployedFrom string
    The client most recently used to deploy this Worker.
    MigrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    ModifiedOn string
    When the script was last modified.
    NamedHandlers List<WorkerScriptNamedHandler>
    Named exports, such as Durable Object class implementations and named entrypoints.
    PlacementMode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    PlacementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    StartupTimeMs int
    CreatedOn string
    When the script was created.
    Etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    Handlers []string
    The names of handlers exported as part of the default export.
    HasAssets bool
    Whether a Worker contains assets.
    HasModules bool
    Whether a Worker contains modules.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastDeployedFrom string
    The client most recently used to deploy this Worker.
    MigrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    ModifiedOn string
    When the script was last modified.
    NamedHandlers []WorkerScriptNamedHandler
    Named exports, such as Durable Object class implementations and named entrypoints.
    PlacementMode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    PlacementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    StartupTimeMs int
    created_on string
    When the script was created.
    etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers list(string)
    The names of handlers exported as part of the default export.
    has_assets bool
    Whether a Worker contains assets.
    has_modules bool
    Whether a Worker contains modules.
    id string
    The provider-assigned unique ID for this managed resource.
    last_deployed_from string
    The client most recently used to deploy this Worker.
    migration_tag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modified_on string
    When the script was last modified.
    named_handlers list(object)
    Named exports, such as Durable Object class implementations and named entrypoints.
    placement_mode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placement_status string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    startup_time_ms number
    createdOn String
    When the script was created.
    etag String
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers List<String>
    The names of handlers exported as part of the default export.
    hasAssets Boolean
    Whether a Worker contains assets.
    hasModules Boolean
    Whether a Worker contains modules.
    id String
    The provider-assigned unique ID for this managed resource.
    lastDeployedFrom String
    The client most recently used to deploy this Worker.
    migrationTag String
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modifiedOn String
    When the script was last modified.
    namedHandlers List<WorkerScriptNamedHandler>
    Named exports, such as Durable Object class implementations and named entrypoints.
    placementMode String
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placementStatus String
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    startupTimeMs Integer
    createdOn string
    When the script was created.
    etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers string[]
    The names of handlers exported as part of the default export.
    hasAssets boolean
    Whether a Worker contains assets.
    hasModules boolean
    Whether a Worker contains modules.
    id string
    The provider-assigned unique ID for this managed resource.
    lastDeployedFrom string
    The client most recently used to deploy this Worker.
    migrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modifiedOn string
    When the script was last modified.
    namedHandlers WorkerScriptNamedHandler[]
    Named exports, such as Durable Object class implementations and named entrypoints.
    placementMode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    startupTimeMs number
    created_on str
    When the script was created.
    etag str
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers Sequence[str]
    The names of handlers exported as part of the default export.
    has_assets bool
    Whether a Worker contains assets.
    has_modules bool
    Whether a Worker contains modules.
    id str
    The provider-assigned unique ID for this managed resource.
    last_deployed_from str
    The client most recently used to deploy this Worker.
    migration_tag str
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modified_on str
    When the script was last modified.
    named_handlers Sequence[WorkerScriptNamedHandler]
    Named exports, such as Durable Object class implementations and named entrypoints.
    placement_mode str
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placement_status str
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    startup_time_ms int
    createdOn String
    When the script was created.
    etag String
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers List<String>
    The names of handlers exported as part of the default export.
    hasAssets Boolean
    Whether a Worker contains assets.
    hasModules Boolean
    Whether a Worker contains modules.
    id String
    The provider-assigned unique ID for this managed resource.
    lastDeployedFrom String
    The client most recently used to deploy this Worker.
    migrationTag String
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modifiedOn String
    When the script was last modified.
    namedHandlers List<Property Map>
    Named exports, such as Durable Object class implementations and named entrypoints.
    placementMode String
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placementStatus String
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    startupTimeMs Number

    Look up Existing WorkerScript Resource

    Get an existing WorkerScript resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: WorkerScriptState, opts?: CustomResourceOptions): WorkerScript
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            annotations: Optional[WorkerScriptAnnotationsArgs] = None,
            assets: Optional[WorkerScriptAssetsArgs] = None,
            bindings: Optional[Sequence[WorkerScriptBindingArgs]] = None,
            body_part: Optional[str] = None,
            compatibility_date: Optional[str] = None,
            compatibility_flags: Optional[Sequence[str]] = None,
            content: Optional[str] = None,
            content_file: Optional[str] = None,
            content_sha256: Optional[str] = None,
            content_type: Optional[str] = None,
            created_on: Optional[str] = None,
            etag: Optional[str] = None,
            handlers: Optional[Sequence[str]] = None,
            has_assets: Optional[bool] = None,
            has_modules: Optional[bool] = None,
            keep_assets: Optional[bool] = None,
            keep_bindings: Optional[Sequence[str]] = None,
            last_deployed_from: Optional[str] = None,
            limits: Optional[WorkerScriptLimitsArgs] = None,
            logpush: Optional[bool] = None,
            main_module: Optional[str] = None,
            migration_tag: Optional[str] = None,
            migrations: Optional[WorkerScriptMigrationsArgs] = None,
            modified_on: Optional[str] = None,
            named_handlers: Optional[Sequence[WorkerScriptNamedHandlerArgs]] = None,
            observability: Optional[WorkerScriptObservabilityArgs] = None,
            placement: Optional[WorkerScriptPlacementArgs] = None,
            placement_mode: Optional[str] = None,
            placement_status: Optional[str] = None,
            script_name: Optional[str] = None,
            startup_time_ms: Optional[int] = None,
            tail_consumers: Optional[Sequence[WorkerScriptTailConsumerArgs]] = None,
            usage_model: Optional[str] = None) -> WorkerScript
    func GetWorkerScript(ctx *Context, name string, id IDInput, state *WorkerScriptState, opts ...ResourceOption) (*WorkerScript, error)
    public static WorkerScript Get(string name, Input<string> id, WorkerScriptState? state, CustomResourceOptions? opts = null)
    public static WorkerScript get(String name, Output<String> id, WorkerScriptState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:WorkerScript    get:      id: ${id}
    import {
      to = cloudflare_workerscript.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Identifier.
    Annotations WorkerScriptAnnotations
    Annotations for the version created by this upload.
    Assets WorkerScriptAssets
    Configuration for assets within a Worker.
    Bindings List<WorkerScriptBinding>
    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.
    BodyPart string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    Content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    ContentFile string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    ContentSha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    ContentType string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    CreatedOn string
    When the script was created.
    Etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    Handlers List<string>
    The names of handlers exported as part of the default export.
    HasAssets bool
    Whether a Worker contains assets.
    HasModules bool
    Whether a Worker contains modules.
    KeepAssets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    KeepBindings List<string>
    List of binding types to keep from previous_upload.
    LastDeployedFrom string
    The client most recently used to deploy this Worker.
    Limits WorkerScriptLimits
    Limits to apply for this Worker.
    Logpush bool
    Whether Logpush is turned on for the Worker.
    MainModule string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    MigrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    Migrations WorkerScriptMigrations
    Migrations to apply for Durable Objects associated with this Worker.
    ModifiedOn string
    When the script was last modified.
    NamedHandlers List<WorkerScriptNamedHandler>
    Named exports, such as Durable Object class implementations and named entrypoints.
    Observability WorkerScriptObservability
    Observability settings for the Worker.
    Placement WorkerScriptPlacement
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    PlacementMode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    PlacementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    ScriptName string
    Name of the script, used in URLs and route configuration.
    StartupTimeMs int
    TailConsumers List<WorkerScriptTailConsumer>
    List of Workers that will consume logs from the attached Worker.
    UsageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    AccountId string
    Identifier.
    Annotations WorkerScriptAnnotationsArgs
    Annotations for the version created by this upload.
    Assets WorkerScriptAssetsArgs
    Configuration for assets within a Worker.
    Bindings []WorkerScriptBindingArgs
    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.
    BodyPart string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    Content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    ContentFile string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    ContentSha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    ContentType string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    CreatedOn string
    When the script was created.
    Etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    Handlers []string
    The names of handlers exported as part of the default export.
    HasAssets bool
    Whether a Worker contains assets.
    HasModules bool
    Whether a Worker contains modules.
    KeepAssets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    KeepBindings []string
    List of binding types to keep from previous_upload.
    LastDeployedFrom string
    The client most recently used to deploy this Worker.
    Limits WorkerScriptLimitsArgs
    Limits to apply for this Worker.
    Logpush bool
    Whether Logpush is turned on for the Worker.
    MainModule string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    MigrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    Migrations WorkerScriptMigrationsArgs
    Migrations to apply for Durable Objects associated with this Worker.
    ModifiedOn string
    When the script was last modified.
    NamedHandlers []WorkerScriptNamedHandlerArgs
    Named exports, such as Durable Object class implementations and named entrypoints.
    Observability WorkerScriptObservabilityArgs
    Observability settings for the Worker.
    Placement WorkerScriptPlacementArgs
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    PlacementMode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    PlacementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    ScriptName string
    Name of the script, used in URLs and route configuration.
    StartupTimeMs int
    TailConsumers []WorkerScriptTailConsumerArgs
    List of Workers that will consume logs from the attached Worker.
    UsageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    account_id string
    Identifier.
    annotations object
    Annotations for the version created by this upload.
    assets object
    Configuration for assets within a Worker.
    bindings list(object)
    List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
    body_part string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    compatibility_date string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibility_flags list(string)
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibilityDate.
    content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    content_file string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    content_sha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    content_type string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    created_on string
    When the script was created.
    etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers list(string)
    The names of handlers exported as part of the default export.
    has_assets bool
    Whether a Worker contains assets.
    has_modules bool
    Whether a Worker contains modules.
    keep_assets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keep_bindings list(string)
    List of binding types to keep from previous_upload.
    last_deployed_from string
    The client most recently used to deploy this Worker.
    limits object
    Limits to apply for this Worker.
    logpush bool
    Whether Logpush is turned on for the Worker.
    main_module string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migration_tag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    migrations object
    Migrations to apply for Durable Objects associated with this Worker.
    modified_on string
    When the script was last modified.
    named_handlers list(object)
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability object
    Observability settings for the Worker.
    placement object
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    placement_mode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placement_status string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    script_name string
    Name of the script, used in URLs and route configuration.
    startup_time_ms number
    tail_consumers list(object)
    List of Workers that will consume logs from the attached Worker.
    usage_model string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    accountId String
    Identifier.
    annotations WorkerScriptAnnotations
    Annotations for the version created by this upload.
    assets WorkerScriptAssets
    Configuration for assets within a Worker.
    bindings List<WorkerScriptBinding>
    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.
    bodyPart String
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    content String
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    contentFile String
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    contentSha256 String
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    contentType String
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    createdOn String
    When the script was created.
    etag String
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers List<String>
    The names of handlers exported as part of the default export.
    hasAssets Boolean
    Whether a Worker contains assets.
    hasModules Boolean
    Whether a Worker contains modules.
    keepAssets Boolean
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keepBindings List<String>
    List of binding types to keep from previous_upload.
    lastDeployedFrom String
    The client most recently used to deploy this Worker.
    limits WorkerScriptLimits
    Limits to apply for this Worker.
    logpush Boolean
    Whether Logpush is turned on for the Worker.
    mainModule String
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrationTag String
    The tag of the Durable Object migration that was most recently applied for this Worker.
    migrations WorkerScriptMigrations
    Migrations to apply for Durable Objects associated with this Worker.
    modifiedOn String
    When the script was last modified.
    namedHandlers List<WorkerScriptNamedHandler>
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability WorkerScriptObservability
    Observability settings for the Worker.
    placement WorkerScriptPlacement
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    placementMode String
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placementStatus String
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    scriptName String
    Name of the script, used in URLs and route configuration.
    startupTimeMs Integer
    tailConsumers List<WorkerScriptTailConsumer>
    List of Workers that will consume logs from the attached Worker.
    usageModel String
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    accountId string
    Identifier.
    annotations WorkerScriptAnnotations
    Annotations for the version created by this upload.
    assets WorkerScriptAssets
    Configuration for assets within a Worker.
    bindings WorkerScriptBinding[]
    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.
    bodyPart string
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    content string
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    contentFile string
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    contentSha256 string
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    contentType string
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    createdOn string
    When the script was created.
    etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers string[]
    The names of handlers exported as part of the default export.
    hasAssets boolean
    Whether a Worker contains assets.
    hasModules boolean
    Whether a Worker contains modules.
    keepAssets boolean
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keepBindings string[]
    List of binding types to keep from previous_upload.
    lastDeployedFrom string
    The client most recently used to deploy this Worker.
    limits WorkerScriptLimits
    Limits to apply for this Worker.
    logpush boolean
    Whether Logpush is turned on for the Worker.
    mainModule string
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    migrations WorkerScriptMigrations
    Migrations to apply for Durable Objects associated with this Worker.
    modifiedOn string
    When the script was last modified.
    namedHandlers WorkerScriptNamedHandler[]
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability WorkerScriptObservability
    Observability settings for the Worker.
    placement WorkerScriptPlacement
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    placementMode string
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    scriptName string
    Name of the script, used in URLs and route configuration.
    startupTimeMs number
    tailConsumers WorkerScriptTailConsumer[]
    List of Workers that will consume logs from the attached Worker.
    usageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    account_id str
    Identifier.
    annotations WorkerScriptAnnotationsArgs
    Annotations for the version created by this upload.
    assets WorkerScriptAssetsArgs
    Configuration for assets within a Worker.
    bindings Sequence[WorkerScriptBindingArgs]
    List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
    body_part str
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    compatibility_date str
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibility_flags Sequence[str]
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibilityDate.
    content str
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    content_file str
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    content_sha256 str
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    content_type str
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    created_on str
    When the script was created.
    etag str
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers Sequence[str]
    The names of handlers exported as part of the default export.
    has_assets bool
    Whether a Worker contains assets.
    has_modules bool
    Whether a Worker contains modules.
    keep_assets bool
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keep_bindings Sequence[str]
    List of binding types to keep from previous_upload.
    last_deployed_from str
    The client most recently used to deploy this Worker.
    limits WorkerScriptLimitsArgs
    Limits to apply for this Worker.
    logpush bool
    Whether Logpush is turned on for the Worker.
    main_module str
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migration_tag str
    The tag of the Durable Object migration that was most recently applied for this Worker.
    migrations WorkerScriptMigrationsArgs
    Migrations to apply for Durable Objects associated with this Worker.
    modified_on str
    When the script was last modified.
    named_handlers Sequence[WorkerScriptNamedHandlerArgs]
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability WorkerScriptObservabilityArgs
    Observability settings for the Worker.
    placement WorkerScriptPlacementArgs
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    placement_mode str
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placement_status str
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    script_name str
    Name of the script, used in URLs and route configuration.
    startup_time_ms int
    tail_consumers Sequence[WorkerScriptTailConsumerArgs]
    List of Workers that will consume logs from the attached Worker.
    usage_model str
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    accountId String
    Identifier.
    annotations Property Map
    Annotations for the version created by this upload.
    assets Property Map
    Configuration for assets within a Worker.
    bindings List<Property Map>
    List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
    bodyPart String
    Name of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
    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 compatibilityDate.
    content String
    Module or Service Worker contents of the Worker. Conflicts with contentFile.
    contentFile String
    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
    contentSha256 String
    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
    contentType String
    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
    createdOn String
    When the script was created.
    etag String
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers List<String>
    The names of handlers exported as part of the default export.
    hasAssets Boolean
    Whether a Worker contains assets.
    hasModules Boolean
    Whether a Worker contains modules.
    keepAssets Boolean
    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
    keepBindings List<String>
    List of binding types to keep from previous_upload.
    lastDeployedFrom String
    The client most recently used to deploy this Worker.
    limits Property Map
    Limits to apply for this Worker.
    logpush Boolean
    Whether Logpush is turned on for the Worker.
    mainModule String
    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
    migrationTag String
    The tag of the Durable Object migration that was most recently applied for this Worker.
    migrations Property Map
    Migrations to apply for Durable Objects associated with this Worker.
    modifiedOn String
    When the script was last modified.
    namedHandlers List<Property Map>
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability Property Map
    Observability settings for the Worker.
    placement Property Map
    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
    placementMode String
    Available values: "smart", "targeted".

    Deprecated: This attribute is deprecated.

    placementStatus String
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    scriptName String
    Name of the script, used in URLs and route configuration.
    startupTimeMs Number
    tailConsumers List<Property Map>
    List of Workers that will consume logs from the attached Worker.
    usageModel String
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".

    Supporting Types

    WorkerScriptAnnotations, WorkerScriptAnnotationsArgs

    WorkersMessage string
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    WorkersTag string
    User-provided identifier for the version. Maximum 100 bytes.
    WorkersTriggeredBy string
    Indicates the trigger that created this version. Server-set value.
    WorkersMessage string
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    WorkersTag string
    User-provided identifier for the version. Maximum 100 bytes.
    WorkersTriggeredBy string
    Indicates the trigger that created this version. Server-set value.
    workers_message string
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    workers_tag string
    User-provided identifier for the version. Maximum 100 bytes.
    workers_triggered_by string
    Indicates the trigger that created this version. Server-set value.
    workersMessage String
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    workersTag String
    User-provided identifier for the version. Maximum 100 bytes.
    workersTriggeredBy String
    Indicates the trigger that created this version. Server-set value.
    workersMessage string
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    workersTag string
    User-provided identifier for the version. Maximum 100 bytes.
    workersTriggeredBy string
    Indicates the trigger that created this version. Server-set value.
    workers_message str
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    workers_tag str
    User-provided identifier for the version. Maximum 100 bytes.
    workers_triggered_by str
    Indicates the trigger that created this version. Server-set value.
    workersMessage String
    Human-readable message about the version. Truncated to 1000 bytes if longer.
    workersTag String
    User-provided identifier for the version. Maximum 100 bytes.
    workersTriggeredBy String
    Indicates the trigger that created this version. Server-set value.

    WorkerScriptAssets, WorkerScriptAssetsArgs

    AssetManifestSha256 string
    The SHA-256 hash of the asset manifest of files to upload.
    Config WorkerScriptAssetsConfig
    Configuration for assets within a Worker.
    Directory string
    Path to the directory containing asset files to upload.
    Jwt string
    Token provided upon successful upload of all files from a registered manifest.
    AssetManifestSha256 string
    The SHA-256 hash of the asset manifest of files to upload.
    Config WorkerScriptAssetsConfig
    Configuration for assets within a Worker.
    Directory string
    Path to the directory containing asset files to upload.
    Jwt string
    Token provided upon successful upload of all files from a registered manifest.
    asset_manifest_sha256 string
    The SHA-256 hash of the asset manifest of files to upload.
    config object
    Configuration for assets within a Worker.
    directory string
    Path to the directory containing asset files to upload.
    jwt string
    Token provided upon successful upload of all files from a registered manifest.
    assetManifestSha256 String
    The SHA-256 hash of the asset manifest of files to upload.
    config WorkerScriptAssetsConfig
    Configuration for assets within a Worker.
    directory String
    Path to the directory containing asset files to upload.
    jwt String
    Token provided upon successful upload of all files from a registered manifest.
    assetManifestSha256 string
    The SHA-256 hash of the asset manifest of files to upload.
    config WorkerScriptAssetsConfig
    Configuration for assets within a Worker.
    directory string
    Path to the directory containing asset files to upload.
    jwt string
    Token provided upon successful upload of all files from a registered manifest.
    asset_manifest_sha256 str
    The SHA-256 hash of the asset manifest of files to upload.
    config WorkerScriptAssetsConfig
    Configuration for assets within a Worker.
    directory str
    Path to the directory containing asset files to upload.
    jwt str
    Token provided upon successful upload of all files from a registered manifest.
    assetManifestSha256 String
    The SHA-256 hash of the asset manifest of files to upload.
    config Property Map
    Configuration for assets within a Worker.
    directory String
    Path to the directory containing asset files to upload.
    jwt String
    Token provided upon successful upload of all files from a registered manifest.

    WorkerScriptAssetsConfig, WorkerScriptAssetsConfigArgs

    Headers string
    The contents of a _headers file (used to attach custom headers on asset responses).
    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".
    Redirects string
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    RunWorkerFirst object
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    ServeDirectly bool
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    Headers string
    The contents of a _headers file (used to attach custom headers on asset responses).
    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".
    Redirects string
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    RunWorkerFirst interface{}
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    ServeDirectly bool
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    headers string
    The contents of a _headers file (used to attach custom headers on asset responses).
    html_handling string
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    not_found_handling 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".
    redirects string
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    run_worker_first any
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    serve_directly bool
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    headers String
    The contents of a _headers file (used to attach custom headers on asset responses).
    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".
    redirects String
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    runWorkerFirst Object
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    serveDirectly Boolean
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    headers string
    The contents of a _headers file (used to attach custom headers on asset responses).
    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".
    redirects string
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    runWorkerFirst any
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    serveDirectly boolean
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    headers str
    The contents of a _headers file (used to attach custom headers on asset responses).
    html_handling str
    Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
    not_found_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".
    redirects str
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    run_worker_first Any
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    serve_directly bool
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    headers String
    The contents of a _headers file (used to attach custom headers on asset responses).
    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".
    redirects String
    The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
    runWorkerFirst Any
    When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
    serveDirectly Boolean
    When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

    Deprecated: This attribute is deprecated.

    WorkerScriptBinding, WorkerScriptBindingArgs

    Name string
    A JavaScript variable name for the binding.
    Type string
    The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    Algorithm string
    Algorithm-specific key parameters. Learn more.
    AllowedDestinationAddresses List<string>
    List of allowed destination addresses.
    AllowedSenderAddresses List<string>
    List of allowed sender addresses.
    AppId string
    ID of the Flagship app to bind to for feature flag evaluation.
    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.
    DatabaseId string
    Identifier of the D1 database to bind to.
    Dataset string
    The name of the dataset to bind to.
    DestinationAddress string
    Destination address for the email.
    DispatchNamespace string
    The dispatch namespace the Durable Object script belongs to.
    Entrypoint string
    Entrypoint to invoke on the target Worker.
    Environment string
    The environment of the scriptName to bind to.
    Format string
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    Id string
    Identifier of the D1 database to bind to.
    IndexName string
    Name of the Vectorize index to bind to.
    InstanceName string
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    Json string
    JSON data to use.
    Jurisdiction string
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    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
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    NamespaceId string
    Namespace identifier tag.
    NetworkId string
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    OldName string
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    Outbound WorkerScriptBindingOutbound
    Outbound worker.
    Part string
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    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.
    ServiceId string
    Identifier of the VPC service to bind to.
    Simple WorkerScriptBindingSimple
    A simple rate limit.
    StoreId string
    ID of the store containing the secret.
    Text string
    The text value to use.
    TunnelId string
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    Usages List<string>
    Allowed operations with the key. Learn more.
    VersionId string
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    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", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    Algorithm string
    Algorithm-specific key parameters. Learn more.
    AllowedDestinationAddresses []string
    List of allowed destination addresses.
    AllowedSenderAddresses []string
    List of allowed sender addresses.
    AppId string
    ID of the Flagship app to bind to for feature flag evaluation.
    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.
    DatabaseId string
    Identifier of the D1 database to bind to.
    Dataset string
    The name of the dataset to bind to.
    DestinationAddress string
    Destination address for the email.
    DispatchNamespace string
    The dispatch namespace the Durable Object script belongs to.
    Entrypoint string
    Entrypoint to invoke on the target Worker.
    Environment string
    The environment of the scriptName to bind to.
    Format string
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    Id string
    Identifier of the D1 database to bind to.
    IndexName string
    Name of the Vectorize index to bind to.
    InstanceName string
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    Json string
    JSON data to use.
    Jurisdiction string
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    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
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    NamespaceId string
    Namespace identifier tag.
    NetworkId string
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    OldName string
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    Outbound WorkerScriptBindingOutbound
    Outbound worker.
    Part string
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    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.
    ServiceId string
    Identifier of the VPC service to bind to.
    Simple WorkerScriptBindingSimple
    A simple rate limit.
    StoreId string
    ID of the store containing the secret.
    Text string
    The text value to use.
    TunnelId string
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    Usages []string
    Allowed operations with the key. Learn more.
    VersionId string
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    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", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    algorithm string
    Algorithm-specific key parameters. Learn more.
    allowed_destination_addresses list(string)
    List of allowed destination addresses.
    allowed_sender_addresses list(string)
    List of allowed sender addresses.
    app_id string
    ID of the Flagship app to bind to for feature flag evaluation.
    bucket_name string
    R2 bucket to bind to.
    certificate_id string
    Identifier of the certificate to bind to.
    class_name string
    The exported class name of the Durable Object.
    database_id string
    Identifier of the D1 database to bind to.
    dataset string
    The name of the dataset to bind to.
    destination_address string
    Destination address for the email.
    dispatch_namespace string
    The dispatch namespace the Durable Object script belongs to.
    entrypoint string
    Entrypoint to invoke on the target Worker.
    environment string
    The environment of the scriptName to bind to.
    format string
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    id string
    Identifier of the D1 database to bind to.
    index_name string
    Name of the Vectorize index to bind to.
    instance_name string
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    json string
    JSON data to use.
    jurisdiction string
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    key_base64 string
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    key_jwk string
    Key data in JSON Web Key format. Required if format is "jwk".
    namespace string
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    namespace_id string
    Namespace identifier tag.
    network_id string
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    old_name string
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    outbound object
    Outbound worker.
    part string
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    pipeline string
    Name of the Pipeline to bind to.
    queue_name string
    Name of the Queue to bind to.
    script_name string
    The script where the Durable Object is defined, if it is external to this Worker.
    secret_name string
    Name of the secret in the store.
    service string
    Name of Worker to bind to.
    service_id string
    Identifier of the VPC service to bind to.
    simple object
    A simple rate limit.
    store_id string
    ID of the store containing the secret.
    text string
    The text value to use.
    tunnel_id string
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    usages list(string)
    Allowed operations with the key. Learn more.
    version_id string
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    workflow_name string
    Name of the Workflow to bind to.
    name String
    A JavaScript variable name for the binding.
    type String
    The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    algorithm String
    Algorithm-specific key parameters. Learn more.
    allowedDestinationAddresses List<String>
    List of allowed destination addresses.
    allowedSenderAddresses List<String>
    List of allowed sender addresses.
    appId String
    ID of the Flagship app to bind to for feature flag evaluation.
    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.
    databaseId String
    Identifier of the D1 database to bind to.
    dataset String
    The name of the dataset to bind to.
    destinationAddress String
    Destination address for the email.
    dispatchNamespace String
    The dispatch namespace the Durable Object script belongs to.
    entrypoint String
    Entrypoint to invoke on the target Worker.
    environment String
    The environment of the scriptName to bind to.
    format String
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    id String
    Identifier of the D1 database to bind to.
    indexName String
    Name of the Vectorize index to bind to.
    instanceName String
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    json String
    JSON data to use.
    jurisdiction String
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    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
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    namespaceId String
    Namespace identifier tag.
    networkId String
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    oldName String
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    outbound WorkerScriptBindingOutbound
    Outbound worker.
    part String
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    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.
    serviceId String
    Identifier of the VPC service to bind to.
    simple WorkerScriptBindingSimple
    A simple rate limit.
    storeId String
    ID of the store containing the secret.
    text String
    The text value to use.
    tunnelId String
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    usages List<String>
    Allowed operations with the key. Learn more.
    versionId String
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    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", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    algorithm string
    Algorithm-specific key parameters. Learn more.
    allowedDestinationAddresses string[]
    List of allowed destination addresses.
    allowedSenderAddresses string[]
    List of allowed sender addresses.
    appId string
    ID of the Flagship app to bind to for feature flag evaluation.
    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.
    databaseId string
    Identifier of the D1 database to bind to.
    dataset string
    The name of the dataset to bind to.
    destinationAddress string
    Destination address for the email.
    dispatchNamespace string
    The dispatch namespace the Durable Object script belongs to.
    entrypoint string
    Entrypoint to invoke on the target Worker.
    environment string
    The environment of the scriptName to bind to.
    format string
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    id string
    Identifier of the D1 database to bind to.
    indexName string
    Name of the Vectorize index to bind to.
    instanceName string
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    json string
    JSON data to use.
    jurisdiction string
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    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
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    namespaceId string
    Namespace identifier tag.
    networkId string
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    oldName string
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    outbound WorkerScriptBindingOutbound
    Outbound worker.
    part string
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    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.
    serviceId string
    Identifier of the VPC service to bind to.
    simple WorkerScriptBindingSimple
    A simple rate limit.
    storeId string
    ID of the store containing the secret.
    text string
    The text value to use.
    tunnelId string
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    usages string[]
    Allowed operations with the key. Learn more.
    versionId string
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    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", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    algorithm str
    Algorithm-specific key parameters. Learn more.
    allowed_destination_addresses Sequence[str]
    List of allowed destination addresses.
    allowed_sender_addresses Sequence[str]
    List of allowed sender addresses.
    app_id str
    ID of the Flagship app to bind to for feature flag evaluation.
    bucket_name str
    R2 bucket to bind to.
    certificate_id str
    Identifier of the certificate to bind to.
    class_name str
    The exported class name of the Durable Object.
    database_id str
    Identifier of the D1 database to bind to.
    dataset str
    The name of the dataset to bind to.
    destination_address str
    Destination address for the email.
    dispatch_namespace str
    The dispatch namespace the Durable Object script belongs to.
    entrypoint str
    Entrypoint to invoke on the target Worker.
    environment str
    The environment of the scriptName to bind to.
    format str
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    id str
    Identifier of the D1 database to bind to.
    index_name str
    Name of the Vectorize index to bind to.
    instance_name str
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    json str
    JSON data to use.
    jurisdiction str
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    key_base64 str
    Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".
    key_jwk str
    Key data in JSON Web Key format. Required if format is "jwk".
    namespace str
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    namespace_id str
    Namespace identifier tag.
    network_id str
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    old_name str
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    outbound WorkerScriptBindingOutbound
    Outbound worker.
    part str
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    pipeline str
    Name of the Pipeline to bind to.
    queue_name str
    Name of the Queue to bind to.
    script_name str
    The script where the Durable Object is defined, if it is external to this Worker.
    secret_name str
    Name of the secret in the store.
    service str
    Name of Worker to bind to.
    service_id str
    Identifier of the VPC service to bind to.
    simple WorkerScriptBindingSimple
    A simple rate limit.
    store_id str
    ID of the store containing the secret.
    text str
    The text value to use.
    tunnel_id str
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    usages Sequence[str]
    Allowed operations with the key. Learn more.
    version_id str
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    workflow_name str
    Name of the Workflow to bind to.
    name String
    A JavaScript variable name for the binding.
    type String
    The kind of resource that the binding provides. Available values: "ai", "aisearch", "aisearchnamespace", "analyticsengine", "assets", "browser", "d1", "datablob", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "inherit", "images", "json", "kvnamespace", "media", "mtlscertificate", "plaintext", "pipelines", "queue", "ratelimit", "r2bucket", "secrettext", "sendemail", "service", "textblob", "vectorize", "versionmetadata", "secretsstoresecret", "secretkey", "workflow", "wasmmodule", "vpcservice", "vpcnetwork".
    algorithm String
    Algorithm-specific key parameters. Learn more.
    allowedDestinationAddresses List<String>
    List of allowed destination addresses.
    allowedSenderAddresses List<String>
    List of allowed sender addresses.
    appId String
    ID of the Flagship app to bind to for feature flag evaluation.
    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.
    databaseId String
    Identifier of the D1 database to bind to.
    dataset String
    The name of the dataset to bind to.
    destinationAddress String
    Destination address for the email.
    dispatchNamespace String
    The dispatch namespace the Durable Object script belongs to.
    entrypoint String
    Entrypoint to invoke on the target Worker.
    environment String
    The environment of the scriptName to bind to.
    format String
    Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".
    id String
    Identifier of the D1 database to bind to.
    indexName String
    Name of the Vectorize index to bind to.
    instanceName String
    The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.
    json String
    JSON data to use.
    jurisdiction String
    The jurisdiction of the R2 bucket. Available values: "eu", "fedramp", "fedramp-high".
    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
    The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field.
    namespaceId String
    Namespace identifier tag.
    networkId String
    Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id.
    oldName String
    The old name of the inherited binding. If set, the binding will be renamed from oldName to name in the new version. If not set, the binding will keep the same name between versions.
    outbound Property Map
    Outbound worker.
    part String
    The name of the file containing the data content. Only accepted for service worker syntax Workers.
    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.
    serviceId String
    Identifier of the VPC service to bind to.
    simple Property Map
    A simple rate limit.
    storeId String
    ID of the store containing the secret.
    text String
    The text value to use.
    tunnelId String
    UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
    usages List<String>
    Allowed operations with the key. Learn more.
    versionId String
    Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version.
    workflowName String
    Name of the Workflow to bind to.

    WorkerScriptBindingOutbound, WorkerScriptBindingOutboundArgs

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

    WorkerScriptBindingOutboundWorker, WorkerScriptBindingOutboundWorkerArgs

    Environment string
    Environment of the outbound worker.
    Service string
    Name of the outbound worker.
    Environment string
    Environment of the outbound worker.
    Service string
    Name of the outbound worker.
    environment string
    Environment of the outbound worker.
    service string
    Name of the outbound worker.
    environment String
    Environment of the outbound worker.
    service String
    Name of the outbound worker.
    environment string
    Environment of the outbound worker.
    service string
    Name of the outbound worker.
    environment str
    Environment of the outbound worker.
    service str
    Name of the outbound worker.
    environment String
    Environment of the outbound worker.
    service String
    Name of the outbound worker.

    WorkerScriptBindingSimple, WorkerScriptBindingSimpleArgs

    Limit double
    The rate limit value.
    Period int
    The rate limit period in seconds.
    Limit float64
    The rate limit value.
    Period int
    The rate limit period in seconds.
    limit number
    The rate limit value.
    period number
    The rate limit period in seconds.
    limit Double
    The rate limit value.
    period Integer
    The rate limit period in seconds.
    limit number
    The rate limit value.
    period number
    The rate limit period in seconds.
    limit float
    The rate limit value.
    period int
    The rate limit period in seconds.
    limit Number
    The rate limit value.
    period Number
    The rate limit period in seconds.

    WorkerScriptLimits, WorkerScriptLimitsArgs

    CpuMs int
    The amount of CPU time this Worker can use in milliseconds.
    Subrequests int
    The number of subrequests this Worker can make per request.
    CpuMs int
    The amount of CPU time this Worker can use in milliseconds.
    Subrequests int
    The number of subrequests this Worker can make per request.
    cpu_ms number
    The amount of CPU time this Worker can use in milliseconds.
    subrequests number
    The number of subrequests this Worker can make per request.
    cpuMs Integer
    The amount of CPU time this Worker can use in milliseconds.
    subrequests Integer
    The number of subrequests this Worker can make per request.
    cpuMs number
    The amount of CPU time this Worker can use in milliseconds.
    subrequests number
    The number of subrequests this Worker can make per request.
    cpu_ms int
    The amount of CPU time this Worker can use in milliseconds.
    subrequests int
    The number of subrequests this Worker can make per request.
    cpuMs Number
    The amount of CPU time this Worker can use in milliseconds.
    subrequests Number
    The number of subrequests this Worker can make per request.

    WorkerScriptMigrations, WorkerScriptMigrationsArgs

    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<WorkerScriptMigrationsRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    Steps List<WorkerScriptMigrationsStep>
    Migrations to apply in order.
    TransferredClasses List<WorkerScriptMigrationsTransferredClass>
    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 []WorkerScriptMigrationsRenamedClass
    A list of classes with Durable Object namespaces that were renamed.
    Steps []WorkerScriptMigrationsStep
    Migrations to apply in order.
    TransferredClasses []WorkerScriptMigrationsTransferredClass
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deleted_classes list(string)
    A list of classes to delete Durable Object namespaces from.
    new_classes list(string)
    A list of classes to create Durable Object namespaces from.
    new_sqlite_classes list(string)
    A list of classes to create Durable Object namespaces with SQLite from.
    new_tag string
    Tag to set as the latest migration tag.
    old_tag string
    Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
    renamed_classes list(object)
    A list of classes with Durable Object namespaces that were renamed.
    steps list(object)
    Migrations to apply in order.
    transferred_classes list(object)
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    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<WorkerScriptMigrationsRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    steps List<WorkerScriptMigrationsStep>
    Migrations to apply in order.
    transferredClasses List<WorkerScriptMigrationsTransferredClass>
    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 WorkerScriptMigrationsRenamedClass[]
    A list of classes with Durable Object namespaces that were renamed.
    steps WorkerScriptMigrationsStep[]
    Migrations to apply in order.
    transferredClasses WorkerScriptMigrationsTransferredClass[]
    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[WorkerScriptMigrationsRenamedClass]
    A list of classes with Durable Object namespaces that were renamed.
    steps Sequence[WorkerScriptMigrationsStep]
    Migrations to apply in order.
    transferred_classes Sequence[WorkerScriptMigrationsTransferredClass]
    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.

    WorkerScriptMigrationsRenamedClass, WorkerScriptMigrationsRenamedClassArgs

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

    WorkerScriptMigrationsStep, WorkerScriptMigrationsStepArgs

    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<WorkerScriptMigrationsStepRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    TransferredClasses List<WorkerScriptMigrationsStepTransferredClass>
    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 []WorkerScriptMigrationsStepRenamedClass
    A list of classes with Durable Object namespaces that were renamed.
    TransferredClasses []WorkerScriptMigrationsStepTransferredClass
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    deleted_classes list(string)
    A list of classes to delete Durable Object namespaces from.
    new_classes list(string)
    A list of classes to create Durable Object namespaces from.
    new_sqlite_classes list(string)
    A list of classes to create Durable Object namespaces with SQLite from.
    renamed_classes list(object)
    A list of classes with Durable Object namespaces that were renamed.
    transferred_classes list(object)
    A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.
    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<WorkerScriptMigrationsStepRenamedClass>
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses List<WorkerScriptMigrationsStepTransferredClass>
    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 WorkerScriptMigrationsStepRenamedClass[]
    A list of classes with Durable Object namespaces that were renamed.
    transferredClasses WorkerScriptMigrationsStepTransferredClass[]
    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[WorkerScriptMigrationsStepRenamedClass]
    A list of classes with Durable Object namespaces that were renamed.
    transferred_classes Sequence[WorkerScriptMigrationsStepTransferredClass]
    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.

    WorkerScriptMigrationsStepRenamedClass, WorkerScriptMigrationsStepRenamedClassArgs

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

    WorkerScriptMigrationsStepTransferredClass, WorkerScriptMigrationsStepTransferredClassArgs

    From string
    FromScript string
    To string
    From string
    FromScript string
    To string
    from string
    from_script 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

    WorkerScriptMigrationsTransferredClass, WorkerScriptMigrationsTransferredClassArgs

    From string
    FromScript string
    To string
    From string
    FromScript string
    To string
    from string
    from_script 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

    WorkerScriptNamedHandler, WorkerScriptNamedHandlerArgs

    Handlers List<string>
    The names of handlers exported as part of the named export.
    Name string
    The name of the export.
    Handlers []string
    The names of handlers exported as part of the named export.
    Name string
    The name of the export.
    handlers list(string)
    The names of handlers exported as part of the named export.
    name string
    The name of the export.
    handlers List<String>
    The names of handlers exported as part of the named export.
    name String
    The name of the export.
    handlers string[]
    The names of handlers exported as part of the named export.
    name string
    The name of the export.
    handlers Sequence[str]
    The names of handlers exported as part of the named export.
    name str
    The name of the export.
    handlers List<String>
    The names of handlers exported as part of the named export.
    name String
    The name of the export.

    WorkerScriptObservability, WorkerScriptObservabilityArgs

    Enabled bool
    Whether observability is enabled for the Worker.
    HeadSamplingRate double
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Logs WorkerScriptObservabilityLogs
    Log settings for the Worker.
    Traces WorkerScriptObservabilityTraces
    Trace settings for the Worker.
    Enabled bool
    Whether observability is enabled for the Worker.
    HeadSamplingRate float64
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Logs WorkerScriptObservabilityLogs
    Log settings for the Worker.
    Traces WorkerScriptObservabilityTraces
    Trace settings for the Worker.
    enabled bool
    Whether observability is enabled for the Worker.
    head_sampling_rate number
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs object
    Log settings for the Worker.
    traces object
    Trace settings for the Worker.
    enabled Boolean
    Whether observability is enabled for the Worker.
    headSamplingRate Double
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs WorkerScriptObservabilityLogs
    Log settings for the Worker.
    traces WorkerScriptObservabilityTraces
    Trace settings for the Worker.
    enabled boolean
    Whether observability is enabled for the Worker.
    headSamplingRate number
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs WorkerScriptObservabilityLogs
    Log settings for the Worker.
    traces WorkerScriptObservabilityTraces
    Trace settings for the Worker.
    enabled bool
    Whether observability is enabled for the Worker.
    head_sampling_rate float
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs WorkerScriptObservabilityLogs
    Log settings for the Worker.
    traces WorkerScriptObservabilityTraces
    Trace settings for the Worker.
    enabled Boolean
    Whether observability is enabled for the Worker.
    headSamplingRate Number
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs Property Map
    Log settings for the Worker.
    traces Property Map
    Trace settings for the Worker.

    WorkerScriptObservabilityLogs, WorkerScriptObservabilityLogsArgs

    Enabled bool
    Whether logs are enabled for the Worker.
    InvocationLogs bool
    Whether invocation logs are enabled for the Worker.
    Destinations List<string>
    A list of destinations where logs will be exported to.
    HeadSamplingRate double
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Persist bool
    Whether log persistence is enabled for the Worker.
    Enabled bool
    Whether logs are enabled for the Worker.
    InvocationLogs bool
    Whether invocation logs are enabled for the Worker.
    Destinations []string
    A list of destinations where logs will be exported to.
    HeadSamplingRate float64
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Persist bool
    Whether log persistence is enabled for the Worker.
    enabled bool
    Whether logs are enabled for the Worker.
    invocation_logs bool
    Whether invocation logs are enabled for the Worker.
    destinations list(string)
    A list of destinations where logs will be exported to.
    head_sampling_rate number
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist bool
    Whether log persistence is enabled for the Worker.
    enabled Boolean
    Whether logs are enabled for the Worker.
    invocationLogs Boolean
    Whether invocation logs are enabled for the Worker.
    destinations List<String>
    A list of destinations where logs will be exported to.
    headSamplingRate Double
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist Boolean
    Whether log persistence is enabled for the Worker.
    enabled boolean
    Whether logs are enabled for the Worker.
    invocationLogs boolean
    Whether invocation logs are enabled for the Worker.
    destinations string[]
    A list of destinations where logs will be exported to.
    headSamplingRate number
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist boolean
    Whether log persistence is enabled for the Worker.
    enabled bool
    Whether logs are enabled for the Worker.
    invocation_logs bool
    Whether invocation logs are enabled for the Worker.
    destinations Sequence[str]
    A list of destinations where logs will be exported to.
    head_sampling_rate float
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist bool
    Whether log persistence is enabled for the Worker.
    enabled Boolean
    Whether logs are enabled for the Worker.
    invocationLogs Boolean
    Whether invocation logs are enabled for the Worker.
    destinations List<String>
    A list of destinations where logs will be exported to.
    headSamplingRate Number
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist Boolean
    Whether log persistence is enabled for the Worker.

    WorkerScriptObservabilityTraces, WorkerScriptObservabilityTracesArgs

    Destinations List<string>
    A list of destinations where traces will be exported to.
    Enabled bool
    Whether traces are enabled for the Worker.
    HeadSamplingRate double
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Persist bool
    Whether trace persistence is enabled for the Worker.
    Destinations []string
    A list of destinations where traces will be exported to.
    Enabled bool
    Whether traces are enabled for the Worker.
    HeadSamplingRate float64
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Persist bool
    Whether trace persistence is enabled for the Worker.
    destinations list(string)
    A list of destinations where traces will be exported to.
    enabled bool
    Whether traces are enabled for the Worker.
    head_sampling_rate number
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist bool
    Whether trace persistence is enabled for the Worker.
    destinations List<String>
    A list of destinations where traces will be exported to.
    enabled Boolean
    Whether traces are enabled for the Worker.
    headSamplingRate Double
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist Boolean
    Whether trace persistence is enabled for the Worker.
    destinations string[]
    A list of destinations where traces will be exported to.
    enabled boolean
    Whether traces are enabled for the Worker.
    headSamplingRate number
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist boolean
    Whether trace persistence is enabled for the Worker.
    destinations Sequence[str]
    A list of destinations where traces will be exported to.
    enabled bool
    Whether traces are enabled for the Worker.
    head_sampling_rate float
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist bool
    Whether trace persistence is enabled for the Worker.
    destinations List<String>
    A list of destinations where traces will be exported to.
    enabled Boolean
    Whether traces are enabled for the Worker.
    headSamplingRate Number
    The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    persist Boolean
    Whether trace persistence is enabled for the Worker.

    WorkerScriptPlacement, WorkerScriptPlacementArgs

    Host string
    TCP host and port for targeted placement.
    Hostname string
    HTTP hostname for targeted placement.
    LastAnalyzedAt string
    The last time the script was analyzed for Smart Placement.
    Mode string
    Enables Smart Placement. Available values: "smart", "targeted".
    Region string
    Cloud region for targeted placement in format 'provider:region'.
    Status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    Targets List<WorkerScriptPlacementTarget>
    Array of placement targets (currently limited to single target).
    Host string
    TCP host and port for targeted placement.
    Hostname string
    HTTP hostname for targeted placement.
    LastAnalyzedAt string
    The last time the script was analyzed for Smart Placement.
    Mode string
    Enables Smart Placement. Available values: "smart", "targeted".
    Region string
    Cloud region for targeted placement in format 'provider:region'.
    Status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    Targets []WorkerScriptPlacementTarget
    Array of placement targets (currently limited to single target).
    host string
    TCP host and port for targeted placement.
    hostname string
    HTTP hostname for targeted placement.
    last_analyzed_at string
    The last time the script was analyzed for Smart Placement.
    mode string
    Enables Smart Placement. Available values: "smart", "targeted".
    region string
    Cloud region for targeted placement in format 'provider:region'.
    status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    targets list(object)
    Array of placement targets (currently limited to single target).
    host String
    TCP host and port for targeted placement.
    hostname String
    HTTP hostname for targeted placement.
    lastAnalyzedAt String
    The last time the script was analyzed for Smart Placement.
    mode String
    Enables Smart Placement. Available values: "smart", "targeted".
    region String
    Cloud region for targeted placement in format 'provider:region'.
    status String
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    targets List<WorkerScriptPlacementTarget>
    Array of placement targets (currently limited to single target).
    host string
    TCP host and port for targeted placement.
    hostname string
    HTTP hostname for targeted placement.
    lastAnalyzedAt string
    The last time the script was analyzed for Smart Placement.
    mode string
    Enables Smart Placement. Available values: "smart", "targeted".
    region string
    Cloud region for targeted placement in format 'provider:region'.
    status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    targets WorkerScriptPlacementTarget[]
    Array of placement targets (currently limited to single target).
    host str
    TCP host and port for targeted placement.
    hostname str
    HTTP hostname for targeted placement.
    last_analyzed_at str
    The last time the script was analyzed for Smart Placement.
    mode str
    Enables Smart Placement. Available values: "smart", "targeted".
    region str
    Cloud region for targeted placement in format 'provider:region'.
    status str
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    targets Sequence[WorkerScriptPlacementTarget]
    Array of placement targets (currently limited to single target).
    host String
    TCP host and port for targeted placement.
    hostname String
    HTTP hostname for targeted placement.
    lastAnalyzedAt String
    The last time the script was analyzed for Smart Placement.
    mode String
    Enables Smart Placement. Available values: "smart", "targeted".
    region String
    Cloud region for targeted placement in format 'provider:region'.
    status String
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    targets List<Property Map>
    Array of placement targets (currently limited to single target).

    WorkerScriptPlacementTarget, WorkerScriptPlacementTargetArgs

    Host string
    TCP host:port for targeted placement.
    Hostname string
    HTTP hostname for targeted placement.
    Region string
    Cloud region in format 'provider:region'.
    Host string
    TCP host:port for targeted placement.
    Hostname string
    HTTP hostname for targeted placement.
    Region string
    Cloud region in format 'provider:region'.
    host string
    TCP host:port for targeted placement.
    hostname string
    HTTP hostname for targeted placement.
    region string
    Cloud region in format 'provider:region'.
    host String
    TCP host:port for targeted placement.
    hostname String
    HTTP hostname for targeted placement.
    region String
    Cloud region in format 'provider:region'.
    host string
    TCP host:port for targeted placement.
    hostname string
    HTTP hostname for targeted placement.
    region string
    Cloud region in format 'provider:region'.
    host str
    TCP host:port for targeted placement.
    hostname str
    HTTP hostname for targeted placement.
    region str
    Cloud region in format 'provider:region'.
    host String
    TCP host:port for targeted placement.
    hostname String
    HTTP hostname for targeted placement.
    region String
    Cloud region in format 'provider:region'.

    WorkerScriptTailConsumer, WorkerScriptTailConsumerArgs

    Service string
    Name of Worker that is to be the consumer.
    Environment string
    Optional environment if the Worker utilizes one.
    Namespace string
    Optional dispatch namespace the script belongs to.
    Service string
    Name of Worker that is to be the consumer.
    Environment string
    Optional environment if the Worker utilizes one.
    Namespace string
    Optional dispatch namespace the script belongs to.
    service string
    Name of Worker that is to be the consumer.
    environment string
    Optional environment if the Worker utilizes one.
    namespace string
    Optional dispatch namespace the script belongs to.
    service String
    Name of Worker that is to be the consumer.
    environment String
    Optional environment if the Worker utilizes one.
    namespace String
    Optional dispatch namespace the script belongs to.
    service string
    Name of Worker that is to be the consumer.
    environment string
    Optional environment if the Worker utilizes one.
    namespace string
    Optional dispatch namespace the script belongs to.
    service str
    Name of Worker that is to be the consumer.
    environment str
    Optional environment if the Worker utilizes one.
    namespace str
    Optional dispatch namespace the script belongs to.
    service String
    Name of Worker that is to be the consumer.
    environment String
    Optional environment if the Worker utilizes one.
    namespace String
    Optional dispatch namespace the script belongs to.

    Import

    $ pulumi import cloudflare:index/workerScript:WorkerScript example '<account_id>/<script_name>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.