pub struct SecretEnvVar {
pub key: Option<String>,
pub project_id: Option<String>,
pub secret: Option<String>,
pub version: Option<String>,
}Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<String>Name of the environment variable.
project_id: Option<String>Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function’s project assuming that the secret exists in the same project as of the function.
secret: Option<String>Name of the secret in secret manager (not the full resource name).
version: Option<String>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.
Trait Implementations§
Source§impl Clone for SecretEnvVar
impl Clone for SecretEnvVar
Source§fn clone(&self) -> SecretEnvVar
fn clone(&self) -> SecretEnvVar
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more