GradientEdge CDK Utils
    Preparing search index...
    interface WorkerScriptProps {
        accountId?: Input<string | undefined>;
        annotations?: Input<WorkersScriptAnnotations | undefined>;
        assets?: Input<WorkersScriptAssets | undefined>;
        bindings?: Input<Input<WorkersScriptBinding>[] | undefined>;
        bodyPart?: Input<string | undefined>;
        compatibilityDate?: Input<string | undefined>;
        compatibilityFlags?: Input<Input<string>[] | undefined>;
        content?: Input<string | undefined>;
        contentFile?: Input<string | undefined>;
        contentSha256?: Input<string | undefined>;
        contentType?: Input<string | undefined>;
        keepAssets?: Input<boolean | undefined>;
        keepBindings?: Input<Input<string>[] | undefined>;
        limits?: Input<WorkersScriptLimits | undefined>;
        logpush?: Input<boolean | undefined>;
        mainModule?: Input<string | undefined>;
        migrations?: Input<WorkersScriptMigrations | undefined>;
        observability?: Input<WorkersScriptObservability | undefined>;
        placement?: Input<WorkersScriptPlacement | undefined>;
        routes?: WorkerRouteProps[];
        scriptName: Input<string>;
        tailConsumers?: Input<Input<WorkersScriptTailConsumer>[] | undefined>;
        usageModel?: Input<string | undefined>;
    }

    Hierarchy

    • WorkersScriptArgs
      • WorkerScriptProps
    Index

    Properties

    accountId?: Input<string | undefined>

    Identifier.

    annotations?: Input<WorkersScriptAnnotations | undefined>

    Annotations for the version created by this upload.

    assets?: Input<WorkersScriptAssets | undefined>

    Configuration for assets within a Worker.

    bindings?: Input<Input<WorkersScriptBinding>[] | undefined>

    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?: Input<string | undefined>

    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?: Input<string | undefined>

    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

    compatibilityFlags?: Input<Input<string>[] | undefined>

    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?: Input<string | undefined>

    Module or Service Worker contents of the Worker. Conflicts with contentFile.

    contentFile?: Input<string | undefined>

    Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.

    contentSha256?: Input<string | undefined>

    SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.

    contentType?: Input<string | undefined>

    Content-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").

    keepAssets?: Input<boolean | undefined>

    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.

    keepBindings?: Input<Input<string>[] | undefined>

    List of binding types to keep from previous_upload.

    limits?: Input<WorkersScriptLimits | undefined>

    Limits to apply for this Worker.

    logpush?: Input<boolean | undefined>

    Whether Logpush is turned on for the Worker.

    mainModule?: Input<string | undefined>

    Name of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.

    migrations?: Input<WorkersScriptMigrations | undefined>

    Migrations to apply for Durable Objects associated with this Worker.

    observability?: Input<WorkersScriptObservability | undefined>

    Observability settings for the Worker.

    placement?: Input<WorkersScriptPlacement | undefined>

    Configuration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.

    routes?: WorkerRouteProps[]

    Optional list of worker route configurations to create alongside the script

    scriptName: Input<string>

    Name of the script, used in URLs and route configuration.

    tailConsumers?: Input<Input<WorkersScriptTailConsumer>[] | undefined>

    List of Workers that will consume logs from the attached Worker.

    usageModel?: Input<string | undefined>

    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".