WorkersScriptBinding

data class WorkersScriptBinding(val bucketName: String? = null, val certificateId: String? = null, val className: String? = null, val dataset: String? = null, val environment: String? = null, val id: String? = null, val indexName: String? = null, val json: String? = null, val name: String, val namespace: String? = null, val namespaceId: String? = null, val outbound: WorkersScriptBindingOutbound? = null, val queueName: String? = null, val scriptName: String? = null, val service: String? = null, val text: String? = null, val type: String)

Constructors

Link copied to clipboard
constructor(bucketName: String? = null, certificateId: String? = null, className: String? = null, dataset: String? = null, environment: String? = null, id: String? = null, indexName: String? = null, json: String? = null, name: String, namespace: String? = null, namespaceId: String? = null, outbound: WorkersScriptBindingOutbound? = null, queueName: String? = null, scriptName: String? = null, service: String? = null, text: String? = null, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bucketName: String? = null

R2 bucket to bind to.

Link copied to clipboard
val certificateId: String? = null

Identifier of the certificate to bind to.

Link copied to clipboard
val className: String? = null

The exported class name of the Durable Object.

Link copied to clipboard
val dataset: String? = null

The name of the dataset to bind to.

Link copied to clipboard
val environment: String? = null

The environment of the script_name to bind to.

Link copied to clipboard
val id: String? = null

Identifier of the D1 database to bind to.

Link copied to clipboard
val indexName: String? = null

Name of the Vectorize index to bind to.

Link copied to clipboard
val json: String? = null

JSON data to use.

Link copied to clipboard

A JavaScript variable name for the binding.

Link copied to clipboard
val namespace: String? = null

Namespace to bind to.

Link copied to clipboard
val namespaceId: String? = null

Namespace identifier tag.

Link copied to clipboard

Outbound worker.

Link copied to clipboard
val queueName: String? = null

Name of the Queue to bind to.

Link copied to clipboard
val scriptName: String? = null

The script where the Durable Object is defined, if it is external to this Worker.

Link copied to clipboard
val service: String? = null

Name of Worker to bind to.

Link copied to clipboard
val text: String? = null

The text value to use.

Link copied to clipboard

The kind of resource that the binding provides. Available values: "ai", "analyticsengine", "assets", "browserrendering", "d1", "dispatchnamespace", "durableobjectnamespace", "hyperdrive", "json", "kvnamespace", "mtlscertificate", "plaintext", "queue", "r2bucket", "secrettext", "service", "tailconsumer", "vectorize", "versionmetadata".