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

Method _seconds_remaining

awscli/botocore/credentials.py:518–520  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 self._account_id = value
517
518 def _seconds_remaining(self):
519 delta = self._expiry_time - self._time_fetcher()
520 return total_seconds(delta)
521
522 def refresh_needed(self, refresh_in=None):
523 """Check if a refresh is needed.

Callers 1

refresh_neededMethod · 0.95

Calls 1

total_secondsFunction · 0.90

Tested by

no test coverage detected