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

Method refresher

awscli/botocore/utils.py:1492–1503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1490
1491 def build_refresh_callback(self, bucket):
1492 def refresher():
1493 response = self._client.create_session(Bucket=bucket)
1494 creds = response['Credentials']
1495 expiration = self._serialize_if_needed(
1496 creds['Expiration'], iso=True
1497 )
1498 return {
1499 "access_key": creds['AccessKeyId'],
1500 "secret_key": creds['SecretAccessKey'],
1501 "token": creds['SessionToken'],
1502 "expiry_time": expiration,
1503 }
1504
1505 return refresher
1506

Callers

nothing calls this directly

Calls 2

_serialize_if_neededMethod · 0.95
create_sessionMethod · 0.45

Tested by

no test coverage detected