@InjectSecretString - 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).

@InjectSecretString

This decorator expects a secret ID string and SecretCache as the first and second arguments. The decorator returns the secret string value. The secret must contain a string.

from aws_secretsmanager_caching import SecretCache from aws_secretsmanager_caching import InjectKeywordedSecretString, InjectSecretString cache = SecretCache() @InjectSecretString ( 'mysecret' , cache ) def function_to_be_decorated( arg1, arg2, arg3):