GradientEdge CDK Utils
    Preparing search index...
    interface WorkerScriptProps {
        accountId: Input<string>;
        annotations?: Input<WorkersScriptAnnotations | undefined>;
        assets?: Input<WorkersScriptAssets | undefined>;
        bindings?: Input<Input<WorkersScriptBinding>[] | undefined>;
        bindingsInherit?: Input<string | undefined>;
        bodyPart?: Input<string | undefined>;
        cacheOptions?: Input<WorkersScriptCacheOptions | undefined>;
        codeUpdateStrategy?: Input<WorkersScriptCodeUpdateStrategy | 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>;
        exports?: Input<{ [key: string]: Input<WorkersScriptExports> } | undefined>;
        files?: Input<{ [key: string]: Input<WorkersScriptFiles> } | undefined>;
        force?: Input<boolean | 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>;
        packageDependencies?: Input<
            Input<WorkersScriptPackageDependency>[]
            | undefined,
        >;
        placement?: Input<WorkersScriptPlacement | undefined>;
        routes?: WorkerRouteProps[];
        scriptName: Input<string>;
        tailConsumers?: Input<Input<WorkersScriptTailConsumer>[] | undefined>;
        usageModel?: Input<string | undefined>;
    }

    Hierarchy

    • WorkersScriptArgs
      • WorkerScriptProps
    Index
    accountId: Input<string>

    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.

    bindingsInherit?: Input<string | undefined>

    When set to "strict", the upload will fail with error 10057 if any inherit type bindings cannot be resolved against the latest uploaded version of the Worker, which may not be the deployed version. Without this, unresolvable inherit bindings are silently dropped. Available values: "strict".

    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.

    cacheOptions?: Input<WorkersScriptCacheOptions | undefined>

    Global CacheW configuration for the Worker. When caching is on, the platform provisions a cloudflare.app zone for the Worker. A type: worker entry in the exports map can override this value for a single entrypoint.

    codeUpdateStrategy?: Input<WorkersScriptCodeUpdateStrategy | undefined>

    Choose whether to apply Durable Object code updates immediately or defer them. When omitted, the default strategy applies.

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

    exports?: Input<{ [key: string]: Input<WorkersScriptExports> } | undefined>

    Per-entrypoint export configuration. Keys are the export names; values describe the entrypoint's kind and per-entrypoint cache behavior.

    files?: Input<{ [key: string]: Input<WorkersScriptFiles> } | undefined>

    Additional modules and data files to include in the multipart Worker upload. Map keys are multipart part names referenced by binding part values and module imports.

    force?: Input<boolean | undefined>

    If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.

    keepAssets?: Input<boolean | undefined>

    Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token. An explicit assets upload takes precedence over keepAssets.

    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.

    packageDependencies?: Input<Input<WorkersScriptPackageDependency>[] | undefined>

    The list of npm packages that were installed and used when this Worker was built.

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