github.com/aavshr/aws-sdk-go@v1.41.3/service/dynamodbstreams/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package dynamodbstreams
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeExpiredIteratorException for service response error code
    12  	// "ExpiredIteratorException".
    13  	//
    14  	// The shard iterator has expired and can no longer be used to retrieve stream
    15  	// records. A shard iterator expires 15 minutes after it is retrieved using
    16  	// the GetShardIterator action.
    17  	ErrCodeExpiredIteratorException = "ExpiredIteratorException"
    18  
    19  	// ErrCodeInternalServerError for service response error code
    20  	// "InternalServerError".
    21  	//
    22  	// An error occurred on the server side.
    23  	ErrCodeInternalServerError = "InternalServerError"
    24  
    25  	// ErrCodeLimitExceededException for service response error code
    26  	// "LimitExceededException".
    27  	//
    28  	// There is no limit to the number of daily on-demand backups that can be taken.
    29  	//
    30  	// Up to 50 simultaneous table operations are allowed per account. These operations
    31  	// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
    32  	// and RestoreTableToPointInTime.
    33  	//
    34  	// The only exception is when you are creating a table with one or more secondary
    35  	// indexes. You can have up to 25 such requests running at a time; however,
    36  	// if the table or index specifications are complex, DynamoDB might temporarily
    37  	// reduce the number of concurrent operations.
    38  	//
    39  	// There is a soft account quota of 256 tables.
    40  	ErrCodeLimitExceededException = "LimitExceededException"
    41  
    42  	// ErrCodeResourceNotFoundException for service response error code
    43  	// "ResourceNotFoundException".
    44  	//
    45  	// The operation tried to access a nonexistent table or index. The resource
    46  	// might not be specified correctly, or its status might not be ACTIVE.
    47  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    48  
    49  	// ErrCodeTrimmedDataAccessException for service response error code
    50  	// "TrimmedDataAccessException".
    51  	//
    52  	// The operation attempted to read past the oldest stream record in a shard.
    53  	//
    54  	// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records
    55  	// whose age exceeds this limit are subject to removal (trimming) from the stream.
    56  	// You might receive a TrimmedDataAccessException if:
    57  	//
    58  	//    * You request a shard iterator with a sequence number older than the trim
    59  	//    point (24 hours).
    60  	//
    61  	//    * You obtain a shard iterator, but before you use the iterator in a GetRecords
    62  	//    request, a stream record in the shard exceeds the 24 hour period and is
    63  	//    trimmed. This causes the iterator to access a record that no longer exists.
    64  	ErrCodeTrimmedDataAccessException = "TrimmedDataAccessException"
    65  )
    66  
    67  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    68  	"ExpiredIteratorException":   newErrorExpiredIteratorException,
    69  	"InternalServerError":        newErrorInternalServerError,
    70  	"LimitExceededException":     newErrorLimitExceededException,
    71  	"ResourceNotFoundException":  newErrorResourceNotFoundException,
    72  	"TrimmedDataAccessException": newErrorTrimmedDataAccessException,
    73  }