MCPcopy Create free account
hub / github.com/aws/aws-cli / get_login_token_cache_directory

Function get_login_token_cache_directory

awscli/botocore/utils.py:4161–4168  ·  view source on GitHub ↗

Returns which directory contains the login_session token files

()

Source from the content-addressed store, hash-verified

4159
4160
4161def get_login_token_cache_directory():
4162 """Returns which directory contains the login_session token files"""
4163 if 'AWS_LOGIN_CACHE_DIRECTORY' in os.environ:
4164 path = os.path.expandvars(os.environ['AWS_LOGIN_CACHE_DIRECTORY'])
4165 path = os.path.expanduser(path)
4166 return path
4167 else:
4168 return os.path.expanduser(os.path.join('~', '.aws', 'login', 'cache'))
4169
4170
4171class LoginCredentialsLoader:

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected