Skip to main content

CreateEdgeWorkerInput

Input for creating an edge worker.

input CreateEdgeWorkerInput {
environmentId: Int!
location: EdgeWorkerLocationInput
name: String!
onFailure: EdgeWorkerOnFailure
source: String
wasmBinary: String!
}

Fields

CreateEdgeWorkerInput.environmentId ● Int! non-null scalar common

The environment to create the worker on.

CreateEdgeWorkerInput.location ● EdgeWorkerLocationInput input common

An optional rule scoping which requests the worker runs on.

CreateEdgeWorkerInput.name ● String! non-null scalar common

The human-readable name of the edge worker.

CreateEdgeWorkerInput.onFailure ● EdgeWorkerOnFailure enum common

The behavior to apply when the worker errors at runtime.

CreateEdgeWorkerInput.source ● String scalar common

The original source code to store for reference.

CreateEdgeWorkerInput.wasmBinary ● String! non-null scalar common

The base64-encoded compiled WASM binary.

Member Of

createEdgeWorker mutation