github.com/aavshr/aws-sdk-go@v1.41.3/service/kinesis/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package kinesis 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 provided iterator exceeds the maximum age allowed. 15 ErrCodeExpiredIteratorException = "ExpiredIteratorException" 16 17 // ErrCodeExpiredNextTokenException for service response error code 18 // "ExpiredNextTokenException". 19 // 20 // The pagination token passed to the operation is expired. 21 ErrCodeExpiredNextTokenException = "ExpiredNextTokenException" 22 23 // ErrCodeInternalFailureException for service response error code 24 // "InternalFailureException". 25 // 26 // The processing of the request failed because of an unknown error, exception, 27 // or failure. 28 ErrCodeInternalFailureException = "InternalFailureException" 29 30 // ErrCodeInvalidArgumentException for service response error code 31 // "InvalidArgumentException". 32 // 33 // A specified parameter exceeds its restrictions, is not supported, or can't 34 // be used. For more information, see the returned message. 35 ErrCodeInvalidArgumentException = "InvalidArgumentException" 36 37 // ErrCodeKMSAccessDeniedException for service response error code 38 // "KMSAccessDeniedException". 39 // 40 // The ciphertext references a key that doesn't exist or that you don't have 41 // access to. 42 ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException" 43 44 // ErrCodeKMSDisabledException for service response error code 45 // "KMSDisabledException". 46 // 47 // The request was rejected because the specified customer master key (CMK) 48 // isn't enabled. 49 ErrCodeKMSDisabledException = "KMSDisabledException" 50 51 // ErrCodeKMSInvalidStateException for service response error code 52 // "KMSInvalidStateException". 53 // 54 // The request was rejected because the state of the specified resource isn't 55 // valid for this request. For more information, see How Key State Affects Use 56 // of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) 57 // in the AWS Key Management Service Developer Guide. 58 ErrCodeKMSInvalidStateException = "KMSInvalidStateException" 59 60 // ErrCodeKMSNotFoundException for service response error code 61 // "KMSNotFoundException". 62 // 63 // The request was rejected because the specified entity or resource can't be 64 // found. 65 ErrCodeKMSNotFoundException = "KMSNotFoundException" 66 67 // ErrCodeKMSOptInRequired for service response error code 68 // "KMSOptInRequired". 69 // 70 // The AWS access key ID needs a subscription for the service. 71 ErrCodeKMSOptInRequired = "KMSOptInRequired" 72 73 // ErrCodeKMSThrottlingException for service response error code 74 // "KMSThrottlingException". 75 // 76 // The request was denied due to request throttling. For more information about 77 // throttling, see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) 78 // in the AWS Key Management Service Developer Guide. 79 ErrCodeKMSThrottlingException = "KMSThrottlingException" 80 81 // ErrCodeLimitExceededException for service response error code 82 // "LimitExceededException". 83 // 84 // The requested resource exceeds the maximum number allowed, or the number 85 // of concurrent stream requests exceeds the maximum number allowed. 86 ErrCodeLimitExceededException = "LimitExceededException" 87 88 // ErrCodeProvisionedThroughputExceededException for service response error code 89 // "ProvisionedThroughputExceededException". 90 // 91 // The request rate for the stream is too high, or the requested data is too 92 // large for the available throughput. Reduce the frequency or size of your 93 // requests. For more information, see Streams Limits (https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) 94 // in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and 95 // Exponential Backoff in AWS (https://docs.aws.amazon.com/general/latest/gr/api-retries.html) 96 // in the AWS General Reference. 97 ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" 98 99 // ErrCodeResourceInUseException for service response error code 100 // "ResourceInUseException". 101 // 102 // The resource is not available for this operation. For successful operation, 103 // the resource must be in the ACTIVE state. 104 ErrCodeResourceInUseException = "ResourceInUseException" 105 106 // ErrCodeResourceNotFoundException for service response error code 107 // "ResourceNotFoundException". 108 // 109 // The requested resource could not be found. The stream might not be specified 110 // correctly. 111 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 112 ) 113 114 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 115 "ExpiredIteratorException": newErrorExpiredIteratorException, 116 "ExpiredNextTokenException": newErrorExpiredNextTokenException, 117 "InternalFailureException": newErrorInternalFailureException, 118 "InvalidArgumentException": newErrorInvalidArgumentException, 119 "KMSAccessDeniedException": newErrorKMSAccessDeniedException, 120 "KMSDisabledException": newErrorKMSDisabledException, 121 "KMSInvalidStateException": newErrorKMSInvalidStateException, 122 "KMSNotFoundException": newErrorKMSNotFoundException, 123 "KMSOptInRequired": newErrorKMSOptInRequired, 124 "KMSThrottlingException": newErrorKMSThrottlingException, 125 "LimitExceededException": newErrorLimitExceededException, 126 "ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException, 127 "ResourceInUseException": newErrorResourceInUseException, 128 "ResourceNotFoundException": newErrorResourceNotFoundException, 129 }