Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SecretEnvVar

import type { SecretEnvVar } from "https://googleapis.deno.dev/v1/cloudfunctions:v2.ts";

Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.

interface SecretEnvVar {
key?: string;
projectId?: string;
secret?: string;
version?: string;
}

§Properties

§
key?: string
[src]

Name of the environment variable.

§
projectId?: string
[src]

Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.

§
secret?: string
[src]

Name of the secret in secret manager (not the full resource name).

§
version?: string
[src]

Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.