workers_do_binding

APIs.ioEngineeringPlatform

Properties

Name Type Description
class_name string The exported class name of the Durable Object
environment string The environment of the script_name to bind to
name object
namespace_id object
script_name string The script where the Durable Object is defined, if it is external to this Worker
type string The class of resource that the binding provides.
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-workers-do-binding-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/workers_do_binding",
  "title": "workers_do_binding",
  "properties": {
    "class_name": {
      "description": "The exported class name of the Durable Object",
      "example": "MyDurableObject",
      "type": "string"
    },
    "environment": {
      "description": "The environment of the script_name to bind to",
      "example": "production",
      "type": "string"
    },
    "name": {
      "$ref": "#/components/schemas/workers_binding_name"
    },
    "namespace_id": {
      "$ref": "#/components/schemas/workers_namespace_identifier"
    },
    "script_name": {
      "description": "The script where the Durable Object is defined, if it is external to this Worker",
      "example": "my-other-worker",
      "type": "string"
    },
    "type": {
      "description": "The class of resource that the binding provides.",
      "enum": [
        "durable_object_namespace"
      ],
      "example": "durable_object_namespace",
      "type": "string"
    }
  },
  "required": [
    "name",
    "type",
    "class_name"
  ],
  "type": "object"
}