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

Function inject_json_file_cache

awscli/customizations/sso/__init__.py:38–44  ·  view source on GitHub ↗
(session, **kwargs)

Source from the content-addressed store, hash-verified

36
37
38def inject_json_file_cache(session, **kwargs):
39 try:
40 cred_chain = session.get_component('credential_provider')
41 sso_provider = cred_chain.get_provider('sso')
42 sso_provider.cache = JSONFileCache(AWS_CREDS_CACHE_DIR)
43 except (ProfileNotFound, UnknownCredentialError):
44 return

Calls 3

JSONFileCacheClass · 0.85
get_providerMethod · 0.80
get_componentMethod · 0.45