DynamoDB / Client / exceptions / ProvisionedThroughputExceededException

ProvisionedThroughputExceededException

class DynamoDB.Client.exceptions.ProvisionedThroughputExceededException

The request was denied due to request throttling. For detailed information about why the request was throttled and the ARN of the impacted resource, find the ThrottlingReason field in the returned exception. The Amazon Web Services SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide.

Example

try:
  ...
except client.exceptions.ProvisionedThroughputExceededException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'message': 'string',
    'ThrottlingReasons': [
        {
            'reason': 'string',
            'resource': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request was denied due to request throttling. For detailed information about why the request was throttled and the ARN of the impacted resource, find the ThrottlingReason field in the returned exception. The Amazon Web Services SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide.

    • message (string) –

      You exceeded your maximum allowed provisioned throughput.

    • ThrottlingReasons (list) –

      A list of ThrottlingReason that provide detailed diagnostic information about why the request was throttled.

      • (dict) –

        Represents the specific reason why a DynamoDB request was throttled and the ARN of the impacted resource. This helps identify exactly what resource is being throttled, what type of operation caused it, and why the throttling occurred.

        • reason (string) –

          The reason for throttling. The throttling reason follows a specific format: ResourceType+OperationType+LimitType:

          • Resource Type (What is being throttled): Table or Index

          • Operation Type (What kind of operation): Read or Write

          • Limit Type (Why the throttling occurred):

            • ProvisionedThroughputExceeded: The request rate is exceeding the provisioned throughput capacity (read or write capacity units) configured for a table or a global secondary index (GSI) in provisioned capacity mode.

            • AccountLimitExceeded: The request rate has caused a table or global secondary index (GSI) in on-demand mode to exceed the per-table account-level service quotas for read/write throughput in the current Amazon Web Services Region.

            • KeyRangeThroughputExceeded: The request rate directed at a specific partition key value has exceeded the internal partition-level throughput limits, indicating uneven access patterns across the table’s or GSI’s key space.

            • MaxOnDemandThroughputExceeded: The request rate has exceeded the configured maximum throughput limits set for a table or index in on-demand capacity mode.

          Examples of complete throttling reasons:

          • TableReadProvisionedThroughputExceeded

          • IndexWriteAccountLimitExceeded

          This helps identify exactly what resource is being throttled, what type of operation caused it, and why the throttling occurred.

        • resource (string) –

          The Amazon Resource Name (ARN) of the DynamoDB table or index that experienced the throttling event.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.