Skip to main content
Version: Beta 🚧

Functions

create_cached_client​

Creates and caches a client instance of the specified class with given arguments.
 
This function is optimized for reuse across multiple calls of an on-demand feature view, ensuring the same client instance is used when possible.

Parameters

  • client_class () - The class of the client to instantiate.

  • args () -

  • kwargs () -

Returns

An instance of the specified client class.

get_secretsmanager_cache​

Creates and returns a cached SecretCache instance for AWS Secrets Manager.

get_tecton_secret​

Retrieves a secret value from the Tecton-specific Secrets Manager scope. This is not for users to use directly, but for Tecton to use internally.

Parameters

  • scope (str) - The scope of the secret.

  • key (str) - The key of the secret.

Returns

str: The secret value as a string.

retrieve_secret_value​

Retrieves a secret value from AWS Secrets Manager by its name.
 
This function is optimized for multiple calls within an on-demand feature view, avoiding repeated AWS Secrets Manager API calls for the same secret.

Parameters

  • secret_name (str) - The name of the secret to retrieve.

Returns

str: The secret value as a string.

Was this page helpful?