public sealed class SecretManagerSecret : IMessage<SecretManagerSecret>, IEquatable<SecretManagerSecret>, IDeepCloneable<SecretManagerSecret>, IBufferMessage, IMessage
Pairs a secret environment variable with a SecretVersion in Secret Manager.
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThe latest version of \u003ccode\u003eSecretManagerSecret\u003c/code\u003e is 2.15.0, with several earlier versions available, going back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSecretManagerSecret\u003c/code\u003e is a class that pairs a secret environment variable with a specific \u003ccode\u003eSecretVersion\u003c/code\u003e in Secret Manager.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerSecret\u003c/code\u003e class has three main properties: \u003ccode\u003eEnv\u003c/code\u003e (environment variable name), \u003ccode\u003eVersionName\u003c/code\u003e (resource name of the \u003ccode\u003eSecretVersion\u003c/code\u003e), and \u003ccode\u003eVersionNameAsSecretVersionName\u003c/code\u003e (typed view over \u003ccode\u003eVersionName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eSecretManagerSecret\u003c/code\u003e class: a default constructor and one that takes another \u003ccode\u003eSecretManagerSecret\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]