-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
258 lines (205 loc) · 11.7 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package memorydb
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeACLAlreadyExistsFault for service response error code
// "ACLAlreadyExistsFault".
ErrCodeACLAlreadyExistsFault = "ACLAlreadyExistsFault"
// ErrCodeACLNotFoundFault for service response error code
// "ACLNotFoundFault".
ErrCodeACLNotFoundFault = "ACLNotFoundFault"
// ErrCodeACLQuotaExceededFault for service response error code
// "ACLQuotaExceededFault".
ErrCodeACLQuotaExceededFault = "ACLQuotaExceededFault"
// ErrCodeAPICallRateForCustomerExceededFault for service response error code
// "APICallRateForCustomerExceededFault".
ErrCodeAPICallRateForCustomerExceededFault = "APICallRateForCustomerExceededFault"
// ErrCodeClusterAlreadyExistsFault for service response error code
// "ClusterAlreadyExistsFault".
ErrCodeClusterAlreadyExistsFault = "ClusterAlreadyExistsFault"
// ErrCodeClusterNotFoundFault for service response error code
// "ClusterNotFoundFault".
ErrCodeClusterNotFoundFault = "ClusterNotFoundFault"
// ErrCodeClusterQuotaForCustomerExceededFault for service response error code
// "ClusterQuotaForCustomerExceededFault".
ErrCodeClusterQuotaForCustomerExceededFault = "ClusterQuotaForCustomerExceededFault"
// ErrCodeDefaultUserRequired for service response error code
// "DefaultUserRequired".
ErrCodeDefaultUserRequired = "DefaultUserRequired"
// ErrCodeDuplicateUserNameFault for service response error code
// "DuplicateUserNameFault".
ErrCodeDuplicateUserNameFault = "DuplicateUserNameFault"
// ErrCodeInsufficientClusterCapacityFault for service response error code
// "InsufficientClusterCapacityFault".
ErrCodeInsufficientClusterCapacityFault = "InsufficientClusterCapacityFault"
// ErrCodeInvalidACLStateFault for service response error code
// "InvalidACLStateFault".
ErrCodeInvalidACLStateFault = "InvalidACLStateFault"
// ErrCodeInvalidARNFault for service response error code
// "InvalidARNFault".
ErrCodeInvalidARNFault = "InvalidARNFault"
// ErrCodeInvalidClusterStateFault for service response error code
// "InvalidClusterStateFault".
ErrCodeInvalidClusterStateFault = "InvalidClusterStateFault"
// ErrCodeInvalidCredentialsException for service response error code
// "InvalidCredentialsException".
ErrCodeInvalidCredentialsException = "InvalidCredentialsException"
// ErrCodeInvalidKMSKeyFault for service response error code
// "InvalidKMSKeyFault".
ErrCodeInvalidKMSKeyFault = "InvalidKMSKeyFault"
// ErrCodeInvalidNodeStateFault for service response error code
// "InvalidNodeStateFault".
ErrCodeInvalidNodeStateFault = "InvalidNodeStateFault"
// ErrCodeInvalidParameterCombinationException for service response error code
// "InvalidParameterCombinationException".
ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException"
// ErrCodeInvalidParameterGroupStateFault for service response error code
// "InvalidParameterGroupStateFault".
ErrCodeInvalidParameterGroupStateFault = "InvalidParameterGroupStateFault"
// ErrCodeInvalidParameterValueException for service response error code
// "InvalidParameterValueException".
ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
// ErrCodeInvalidSnapshotStateFault for service response error code
// "InvalidSnapshotStateFault".
ErrCodeInvalidSnapshotStateFault = "InvalidSnapshotStateFault"
// ErrCodeInvalidSubnet for service response error code
// "InvalidSubnet".
ErrCodeInvalidSubnet = "InvalidSubnet"
// ErrCodeInvalidUserStateFault for service response error code
// "InvalidUserStateFault".
ErrCodeInvalidUserStateFault = "InvalidUserStateFault"
// ErrCodeInvalidVPCNetworkStateFault for service response error code
// "InvalidVPCNetworkStateFault".
ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault"
// ErrCodeNoOperationFault for service response error code
// "NoOperationFault".
ErrCodeNoOperationFault = "NoOperationFault"
// ErrCodeNodeQuotaForClusterExceededFault for service response error code
// "NodeQuotaForClusterExceededFault".
ErrCodeNodeQuotaForClusterExceededFault = "NodeQuotaForClusterExceededFault"
// ErrCodeNodeQuotaForCustomerExceededFault for service response error code
// "NodeQuotaForCustomerExceededFault".
ErrCodeNodeQuotaForCustomerExceededFault = "NodeQuotaForCustomerExceededFault"
// ErrCodeParameterGroupAlreadyExistsFault for service response error code
// "ParameterGroupAlreadyExistsFault".
ErrCodeParameterGroupAlreadyExistsFault = "ParameterGroupAlreadyExistsFault"
// ErrCodeParameterGroupNotFoundFault for service response error code
// "ParameterGroupNotFoundFault".
ErrCodeParameterGroupNotFoundFault = "ParameterGroupNotFoundFault"
// ErrCodeParameterGroupQuotaExceededFault for service response error code
// "ParameterGroupQuotaExceededFault".
ErrCodeParameterGroupQuotaExceededFault = "ParameterGroupQuotaExceededFault"
// ErrCodeServiceLinkedRoleNotFoundFault for service response error code
// "ServiceLinkedRoleNotFoundFault".
ErrCodeServiceLinkedRoleNotFoundFault = "ServiceLinkedRoleNotFoundFault"
// ErrCodeServiceUpdateNotFoundFault for service response error code
// "ServiceUpdateNotFoundFault".
ErrCodeServiceUpdateNotFoundFault = "ServiceUpdateNotFoundFault"
// ErrCodeShardNotFoundFault for service response error code
// "ShardNotFoundFault".
ErrCodeShardNotFoundFault = "ShardNotFoundFault"
// ErrCodeShardsPerClusterQuotaExceededFault for service response error code
// "ShardsPerClusterQuotaExceededFault".
ErrCodeShardsPerClusterQuotaExceededFault = "ShardsPerClusterQuotaExceededFault"
// ErrCodeSnapshotAlreadyExistsFault for service response error code
// "SnapshotAlreadyExistsFault".
ErrCodeSnapshotAlreadyExistsFault = "SnapshotAlreadyExistsFault"
// ErrCodeSnapshotNotFoundFault for service response error code
// "SnapshotNotFoundFault".
ErrCodeSnapshotNotFoundFault = "SnapshotNotFoundFault"
// ErrCodeSnapshotQuotaExceededFault for service response error code
// "SnapshotQuotaExceededFault".
ErrCodeSnapshotQuotaExceededFault = "SnapshotQuotaExceededFault"
// ErrCodeSubnetGroupAlreadyExistsFault for service response error code
// "SubnetGroupAlreadyExistsFault".
ErrCodeSubnetGroupAlreadyExistsFault = "SubnetGroupAlreadyExistsFault"
// ErrCodeSubnetGroupInUseFault for service response error code
// "SubnetGroupInUseFault".
ErrCodeSubnetGroupInUseFault = "SubnetGroupInUseFault"
// ErrCodeSubnetGroupNotFoundFault for service response error code
// "SubnetGroupNotFoundFault".
ErrCodeSubnetGroupNotFoundFault = "SubnetGroupNotFoundFault"
// ErrCodeSubnetGroupQuotaExceededFault for service response error code
// "SubnetGroupQuotaExceededFault".
ErrCodeSubnetGroupQuotaExceededFault = "SubnetGroupQuotaExceededFault"
// ErrCodeSubnetInUse for service response error code
// "SubnetInUse".
ErrCodeSubnetInUse = "SubnetInUse"
// ErrCodeSubnetNotAllowedFault for service response error code
// "SubnetNotAllowedFault".
ErrCodeSubnetNotAllowedFault = "SubnetNotAllowedFault"
// ErrCodeSubnetQuotaExceededFault for service response error code
// "SubnetQuotaExceededFault".
ErrCodeSubnetQuotaExceededFault = "SubnetQuotaExceededFault"
// ErrCodeTagNotFoundFault for service response error code
// "TagNotFoundFault".
ErrCodeTagNotFoundFault = "TagNotFoundFault"
// ErrCodeTagQuotaPerResourceExceeded for service response error code
// "TagQuotaPerResourceExceeded".
ErrCodeTagQuotaPerResourceExceeded = "TagQuotaPerResourceExceeded"
// ErrCodeTestFailoverNotAvailableFault for service response error code
// "TestFailoverNotAvailableFault".
ErrCodeTestFailoverNotAvailableFault = "TestFailoverNotAvailableFault"
// ErrCodeUserAlreadyExistsFault for service response error code
// "UserAlreadyExistsFault".
ErrCodeUserAlreadyExistsFault = "UserAlreadyExistsFault"
// ErrCodeUserNotFoundFault for service response error code
// "UserNotFoundFault".
ErrCodeUserNotFoundFault = "UserNotFoundFault"
// ErrCodeUserQuotaExceededFault for service response error code
// "UserQuotaExceededFault".
ErrCodeUserQuotaExceededFault = "UserQuotaExceededFault"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ACLAlreadyExistsFault": newErrorACLAlreadyExistsFault,
"ACLNotFoundFault": newErrorACLNotFoundFault,
"ACLQuotaExceededFault": newErrorACLQuotaExceededFault,
"APICallRateForCustomerExceededFault": newErrorAPICallRateForCustomerExceededFault,
"ClusterAlreadyExistsFault": newErrorClusterAlreadyExistsFault,
"ClusterNotFoundFault": newErrorClusterNotFoundFault,
"ClusterQuotaForCustomerExceededFault": newErrorClusterQuotaForCustomerExceededFault,
"DefaultUserRequired": newErrorDefaultUserRequired,
"DuplicateUserNameFault": newErrorDuplicateUserNameFault,
"InsufficientClusterCapacityFault": newErrorInsufficientClusterCapacityFault,
"InvalidACLStateFault": newErrorInvalidACLStateFault,
"InvalidARNFault": newErrorInvalidARNFault,
"InvalidClusterStateFault": newErrorInvalidClusterStateFault,
"InvalidCredentialsException": newErrorInvalidCredentialsException,
"InvalidKMSKeyFault": newErrorInvalidKMSKeyFault,
"InvalidNodeStateFault": newErrorInvalidNodeStateFault,
"InvalidParameterCombinationException": newErrorInvalidParameterCombinationException,
"InvalidParameterGroupStateFault": newErrorInvalidParameterGroupStateFault,
"InvalidParameterValueException": newErrorInvalidParameterValueException,
"InvalidSnapshotStateFault": newErrorInvalidSnapshotStateFault,
"InvalidSubnet": newErrorInvalidSubnet,
"InvalidUserStateFault": newErrorInvalidUserStateFault,
"InvalidVPCNetworkStateFault": newErrorInvalidVPCNetworkStateFault,
"NoOperationFault": newErrorNoOperationFault,
"NodeQuotaForClusterExceededFault": newErrorNodeQuotaForClusterExceededFault,
"NodeQuotaForCustomerExceededFault": newErrorNodeQuotaForCustomerExceededFault,
"ParameterGroupAlreadyExistsFault": newErrorParameterGroupAlreadyExistsFault,
"ParameterGroupNotFoundFault": newErrorParameterGroupNotFoundFault,
"ParameterGroupQuotaExceededFault": newErrorParameterGroupQuotaExceededFault,
"ServiceLinkedRoleNotFoundFault": newErrorServiceLinkedRoleNotFoundFault,
"ServiceUpdateNotFoundFault": newErrorServiceUpdateNotFoundFault,
"ShardNotFoundFault": newErrorShardNotFoundFault,
"ShardsPerClusterQuotaExceededFault": newErrorShardsPerClusterQuotaExceededFault,
"SnapshotAlreadyExistsFault": newErrorSnapshotAlreadyExistsFault,
"SnapshotNotFoundFault": newErrorSnapshotNotFoundFault,
"SnapshotQuotaExceededFault": newErrorSnapshotQuotaExceededFault,
"SubnetGroupAlreadyExistsFault": newErrorSubnetGroupAlreadyExistsFault,
"SubnetGroupInUseFault": newErrorSubnetGroupInUseFault,
"SubnetGroupNotFoundFault": newErrorSubnetGroupNotFoundFault,
"SubnetGroupQuotaExceededFault": newErrorSubnetGroupQuotaExceededFault,
"SubnetInUse": newErrorSubnetInUse,
"SubnetNotAllowedFault": newErrorSubnetNotAllowedFault,
"SubnetQuotaExceededFault": newErrorSubnetQuotaExceededFault,
"TagNotFoundFault": newErrorTagNotFoundFault,
"TagQuotaPerResourceExceeded": newErrorTagQuotaPerResourceExceeded,
"TestFailoverNotAvailableFault": newErrorTestFailoverNotAvailableFault,
"UserAlreadyExistsFault": newErrorUserAlreadyExistsFault,
"UserNotFoundFault": newErrorUserNotFoundFault,
"UserQuotaExceededFault": newErrorUserQuotaExceededFault,
}