github.com/aavshr/aws-sdk-go@v1.41.3/service/timestreamwrite/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package timestreamwrite 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // You are not authorized to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // Timestream was unable to process this request because it contains resource 21 // that already exists. 22 ErrCodeConflictException = "ConflictException" 23 24 // ErrCodeInternalServerException for service response error code 25 // "InternalServerException". 26 // 27 // Timestream was unable to fully process this request because of an internal 28 // server error. 29 ErrCodeInternalServerException = "InternalServerException" 30 31 // ErrCodeInvalidEndpointException for service response error code 32 // "InvalidEndpointException". 33 // 34 // The requested endpoint was invalid. 35 ErrCodeInvalidEndpointException = "InvalidEndpointException" 36 37 // ErrCodeRejectedRecordsException for service response error code 38 // "RejectedRecordsException". 39 // 40 // WriteRecords would throw this exception in the following cases: 41 // 42 // * Records with duplicate data where there are multiple records with the 43 // same dimensions, timestamps, and measure names but different measure values. 44 // 45 // * Records with timestamps that lie outside the retention duration of the 46 // memory store 47 // 48 // * Records with dimensions or measures that exceed the Timestream defined 49 // limits. 50 // 51 // For more information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) 52 // in the Timestream Developer Guide. 53 ErrCodeRejectedRecordsException = "RejectedRecordsException" 54 55 // ErrCodeResourceNotFoundException for service response error code 56 // "ResourceNotFoundException". 57 // 58 // The operation tried to access a nonexistent resource. The resource might 59 // not be specified correctly, or its status might not be ACTIVE. 60 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 61 62 // ErrCodeServiceQuotaExceededException for service response error code 63 // "ServiceQuotaExceededException". 64 // 65 // Instance quota of resource exceeded for this account. 66 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 67 68 // ErrCodeThrottlingException for service response error code 69 // "ThrottlingException". 70 // 71 // Too many requests were made by a user exceeding service quotas. The request 72 // was throttled. 73 ErrCodeThrottlingException = "ThrottlingException" 74 75 // ErrCodeValidationException for service response error code 76 // "ValidationException". 77 // 78 // Invalid or malformed request. 79 ErrCodeValidationException = "ValidationException" 80 ) 81 82 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 83 "AccessDeniedException": newErrorAccessDeniedException, 84 "ConflictException": newErrorConflictException, 85 "InternalServerException": newErrorInternalServerException, 86 "InvalidEndpointException": newErrorInvalidEndpointException, 87 "RejectedRecordsException": newErrorRejectedRecordsException, 88 "ResourceNotFoundException": newErrorResourceNotFoundException, 89 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 90 "ThrottlingException": newErrorThrottlingException, 91 "ValidationException": newErrorValidationException, 92 }