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