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

Class RequestExceededException

awscli/s3transfer/bandwidth.py:17–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17class RequestExceededException(Exception):
18 def __init__(self, requested_amt, retry_time):
19 """Error when requested amount exceeds what is allowed
20
21 The request that raised this error should be retried after waiting
22 the time specified by ``retry_time``.
23
24 :type requested_amt: int
25 :param requested_amt: The originally requested byte amount
26
27 :type retry_time: float
28 :param retry_time: The length in time to wait to retry for the
29 requested amount
30 """
31 self.requested_amt = requested_amt
32 self.retry_time = retry_time
33 msg = f'Request amount {requested_amt} exceeded the amount available. Retry in {retry_time}'
34 super().__init__(msg)
35
36
37class RequestToken:

Calls

no outgoing calls

Tested by 1