HashiCorpSecret
classView source ↗
class HashiCorpSecret(secret_name: str)
Bases: Secret
Categories: secret
Secrets class representing a secret stored in Hashicorp Vault.
Attributes: secret_name (str): The name of the secret in Hashicorp Vault.
Methods: to_dict() -> dict: Convert the HashiCorpSecret object to a dictionary. secret_value() -> str: Get the secret value.
Initialize the HashiCorpSecret object.
Parameters
parameter
secret_namestrThe name of the secret in Hashicorp Vault.
Properties
property
secret_valuestrGet the secret value pointed at by the secret. To be used only during execution in the backend.
Returns: str: The secret value.
Methods
method
View source ↗to_dictdef to_dict() -> dict
Convert the HashiCorpSecret object to a dictionary.
Returns:
dict: A dictionary representation of the HashiCorpSecret object.