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

Method __init__

awscli/botocore/credentials.py:404–433  ·  view source on GitHub ↗
(
        self,
        access_key,
        secret_key,
        token,
        expiry_time,
        refresh_using,
        method,
        time_fetcher=_local_now,
        advisory_timeout=None,
        mandatory_timeout=None,
        account_id=None,
    )

Source from the content-addressed store, hash-verified

402 _mandatory_refresh_timeout = _DEFAULT_MANDATORY_REFRESH_TIMEOUT
403
404 def __init__(
405 self,
406 access_key,
407 secret_key,
408 token,
409 expiry_time,
410 refresh_using,
411 method,
412 time_fetcher=_local_now,
413 advisory_timeout=None,
414 mandatory_timeout=None,
415 account_id=None,
416 ):
417 self._refresh_using = refresh_using
418 self._access_key = access_key
419 self._secret_key = secret_key
420 self._token = token
421 self._account_id = account_id
422 self._expiry_time = expiry_time
423 self._time_fetcher = time_fetcher
424 self._refresh_lock = threading.Lock()
425 self.method = method
426 self._frozen_credentials = ReadOnlyCredentials(
427 access_key, secret_key, token, account_id
428 )
429 self._normalize()
430 if advisory_timeout is not None:
431 self._advisory_refresh_timeout = advisory_timeout
432 if mandatory_timeout is not None:
433 self._mandatory_refresh_timeout = mandatory_timeout
434
435 def _normalize(self):
436 self._access_key = botocore.compat.ensure_unicode(self._access_key)

Callers

nothing calls this directly

Calls 1

_normalizeMethod · 0.95

Tested by

no test coverage detected