Guide on how to retrieve and use secrets in your function calls
The secret_vault
function allows you to securely retrieve the contents of secrets added to your account.
To use the secret_vault
function, follow these steps:
First, import the secret_vault
function into your custom function:
Next, you can use the secret_vault function to retrieve your secret:
For a key-value type secret, the function returns a dictionary of key-value pairs. Example:
You can access this like a standard Python dictionary in your function code.
For a single type secret, the function returns the string containing the secret_value
. Example:
Guide on how to retrieve and use secrets in your function calls
The secret_vault
function allows you to securely retrieve the contents of secrets added to your account.
To use the secret_vault
function, follow these steps:
First, import the secret_vault
function into your custom function:
Next, you can use the secret_vault function to retrieve your secret:
For a key-value type secret, the function returns a dictionary of key-value pairs. Example:
You can access this like a standard Python dictionary in your function code.
For a single type secret, the function returns the string containing the secret_value
. Example: