WorkerScriptBinding

data class WorkerScriptBinding(val algorithm: String? = null, val bucketName: String? = null, val certificateId: String? = null, val className: String? = null, val dataset: String? = null, val environment: String? = null, val format: String? = null, val id: String? = null, val indexName: String? = null, val json: String? = null, val keyBase64: String? = null, val keyJwk: String? = null, val name: String, val namespace: String? = null, val namespaceId: String? = null, val outbound: WorkerScriptBindingOutbound? = null, val pipeline: String? = null, val queueName: String? = null, val scriptName: String? = null, val secretName: String? = null, val service: String? = null, val storeId: String? = null, val text: String? = null, val type: String, val usages: List<String>? = null)

Constructors

Link copied to clipboard
constructor(algorithm: String? = null, bucketName: String? = null, certificateId: String? = null, className: String? = null, dataset: String? = null, environment: String? = null, format: String? = null, id: String? = null, indexName: String? = null, json: String? = null, keyBase64: String? = null, keyJwk: String? = null, name: String, namespace: String? = null, namespaceId: String? = null, outbound: WorkerScriptBindingOutbound? = null, pipeline: String? = null, queueName: String? = null, scriptName: String? = null, secretName: String? = null, service: String? = null, storeId: String? = null, text: String? = null, type: String, usages: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val algorithm: String? = null

Algorithm-specific key parameters. Learn more.

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 format: String? = null

Data format of the key. Learn more. Available values: "raw", "pkcs8", "spki", "jwk".

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
val keyBase64: String? = null

Base64-encoded key data. Required if format is "raw", "pkcs8", or "spki".

Link copied to clipboard
val keyJwk: String? = null

Key data in JSON Web Key format. Required if format is "jwk".

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 pipeline: String? = null

Name of the Pipeline to bind to.

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 secretName: String? = null

Name of the secret in the store.

Link copied to clipboard
val service: String? = null

Name of Worker to bind to.

Link copied to clipboard
val storeId: String? = null

ID of the store containing the secret.

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

Link copied to clipboard
val usages: List<String>? = null

Allowed operations with the key. Learn more.