method IGcpSecretsClient.accessSecretVersion
IGcpSecretsClient.accessSecretVersion(name: string): Promise<string | null>

Accesses the latest enabled version of a secret.

Parameters

name: string

The secret name (short id; the provider builds the resource path)

Return Type

Promise<string | null>

The secret string, or null when it does not exist

Usage

import { type IGcpSecretsClient } from "secrets-plugin/src/index.ts";