-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
105 lines (88 loc) · 4.34 KB
/
errors.go
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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package cognitosync
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAlreadyStreamedException for service response error code
// "AlreadyStreamedException".
//
// An exception thrown when a bulk publish operation is requested less than
// 24 hours after a previous bulk publish operation completed successfully.
ErrCodeAlreadyStreamedException = "AlreadyStreamedException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Thrown if there are parallel requests to modify a resource.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeDuplicateRequestException for service response error code
// "DuplicateRequestException".
//
// An exception thrown when there is an IN_PROGRESS bulk publish operation for
// the given identity pool.
ErrCodeDuplicateRequestException = "DuplicateRequestException"
// ErrCodeInternalErrorException for service response error code
// "InternalErrorException".
//
// Indicates an internal service error.
ErrCodeInternalErrorException = "InternalErrorException"
// ErrCodeInvalidConfigurationException for service response error code
// "InvalidConfigurationException".
ErrCodeInvalidConfigurationException = "InvalidConfigurationException"
// ErrCodeInvalidLambdaFunctionOutputException for service response error code
// "InvalidLambdaFunctionOutputException".
//
// The AWS Lambda function returned invalid output or an exception.
ErrCodeInvalidLambdaFunctionOutputException = "InvalidLambdaFunctionOutputException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// Thrown when a request parameter does not comply with the associated constraints.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeLambdaThrottledException for service response error code
// "LambdaThrottledException".
//
// AWS Lambda throttled your account, please contact AWS Support
ErrCodeLambdaThrottledException = "LambdaThrottledException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Thrown when the limit on the number of objects or operations has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotAuthorizedException for service response error code
// "NotAuthorizedException".
//
// Thrown when a user is not authorized to access the requested resource.
ErrCodeNotAuthorizedException = "NotAuthorizedException"
// ErrCodeResourceConflictException for service response error code
// "ResourceConflictException".
//
// Thrown if an update can't be applied because the resource was changed by
// another call and this would result in a conflict.
ErrCodeResourceConflictException = "ResourceConflictException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// Thrown if the resource doesn't exist.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// Thrown if the request is throttled.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AlreadyStreamedException": newErrorAlreadyStreamedException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"DuplicateRequestException": newErrorDuplicateRequestException,
"InternalErrorException": newErrorInternalErrorException,
"InvalidConfigurationException": newErrorInvalidConfigurationException,
"InvalidLambdaFunctionOutputException": newErrorInvalidLambdaFunctionOutputException,
"InvalidParameterException": newErrorInvalidParameterException,
"LambdaThrottledException": newErrorLambdaThrottledException,
"LimitExceededException": newErrorLimitExceededException,
"NotAuthorizedException": newErrorNotAuthorizedException,
"ResourceConflictException": newErrorResourceConflictException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"TooManyRequestsException": newErrorTooManyRequestsException,
}