GetWorkersSecretResult

data class GetWorkersSecretResult(val accountId: String, val dispatchNamespace: String, val id: String, val name: String, val scriptName: String, val secretName: String? = null, val type: String)

A collection of values returned by getWorkersSecret.

Constructors

Link copied to clipboard
constructor(accountId: String, dispatchNamespace: String, id: String, name: String, scriptName: String, secretName: String? = null, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Identifier

Link copied to clipboard

Name of the Workers for Platforms dispatch namespace.

Link copied to clipboard
val id: String

A JavaScript variable name for the secret binding.

Link copied to clipboard

The name of this secret, this is what will be used to access it inside the Worker.

Link copied to clipboard

Name of the script, used in URLs and route configuration.

Link copied to clipboard
val secretName: String? = null

A JavaScript variable name for the secret binding.

Link copied to clipboard

The type of secret. Available values: "secret_text".