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

Method __init__

awscli/customizations/login/login.py:66–85  ·  view source on GitHub ↗
(
        self,
        session,
        token_loader=None,
        config_file_writer=None,
    )

Source from the content-addressed store, hash-verified

64 ]
65
66 def __init__(
67 self,
68 session,
69 token_loader=None,
70 config_file_writer=None,
71 ):
72 super().__init__(session)
73
74 # Records if we had to prompt the user for a region,
75 # which we'll save to the profile when we do
76 self._prompted_for_region = False
77
78 if token_loader is None:
79 token_cache = JSONFileCache(get_login_token_cache_directory())
80 token_loader = LoginCredentialsLoader(token_cache)
81 self._token_loader = token_loader
82
83 if config_file_writer is None:
84 config_file_writer = ConfigFileWriter()
85 self._config_file_writer = config_file_writer
86
87 def _run_main(self, parsed_args, parsed_globals):
88 region = self._resolve_region(parsed_globals)

Callers

nothing calls this directly

Calls 4

JSONFileCacheClass · 0.90
ConfigFileWriterClass · 0.90

Tested by

no test coverage detected