Skip to main content
Version: 0.9.2

HashiCorpSecret

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_namestr

The name of the secret in Hashicorp Vault.

Properties

property
secret_valuestr

Get the secret value pointed at by the secret. To be used only during execution in the backend.

Returns: str: The secret value.

Methods

to_dict
def to_dict() -> dict

Convert the HashiCorpSecret object to a dictionary.

Returns:

dict: A dictionary representation of the HashiCorpSecret object.