in src/aws_secretsmanager_caching/secret_cache.py [0:0]
def get_secret_string(self, secret_id, version_stage=None):
"""Get the secret string value from the cache.
:type secret_id: str
:param secret_id: The secret identifier
:type version_stage: str
:param version_stage: The stage for the requested version.
:rtype: str
:return: The associated secret string value
"""
secret = self._get_cached_secret(secret_id).get_secret_value(version_stage)
if secret is None:
return secret
return secret.get("SecretString")