SecretCacheHook - Amazon Secrets Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

SecretCacheHook

An interface to hook into a a SecretCache to perform actions on the secrets being stored in the cache.

These are the available methods:

put

Prepares the object for storing in the cache.

Request syntax
response = hook.put( obj='secret_object' )
Parameters
  • obj (object) -- [Required] The secret or object that contains the secret.

Return type

object

get

Derives the object from the cached object.

Request syntax
response = hook.get( obj='secret_object' )
Parameters
  • obj (object) -- [Required] The secret or object that contains the secret.

Return type

object