-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
370 lines (311 loc) · 14.5 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package docdb
const (
// ErrCodeAuthorizationNotFoundFault for service response error code
// "AuthorizationNotFound".
//
// The specified CIDR IP or Amazon EC2 security group isn't authorized for the
// specified security group.
//
// Amazon DocumentDB also might not be authorized to perform necessary actions
// on your behalf using IAM.
ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound"
// ErrCodeCertificateNotFoundFault for service response error code
// "CertificateNotFound".
//
// CertificateIdentifier doesn't refer to an existing certificate.
ErrCodeCertificateNotFoundFault = "CertificateNotFound"
// ErrCodeDBClusterAlreadyExistsFault for service response error code
// "DBClusterAlreadyExistsFault".
//
// You already have a cluster with the given identifier.
ErrCodeDBClusterAlreadyExistsFault = "DBClusterAlreadyExistsFault"
// ErrCodeDBClusterNotFoundFault for service response error code
// "DBClusterNotFoundFault".
//
// DBClusterIdentifier doesn't refer to an existing cluster.
ErrCodeDBClusterNotFoundFault = "DBClusterNotFoundFault"
// ErrCodeDBClusterParameterGroupNotFoundFault for service response error code
// "DBClusterParameterGroupNotFound".
//
// DBClusterParameterGroupName doesn't refer to an existing cluster parameter
// group.
ErrCodeDBClusterParameterGroupNotFoundFault = "DBClusterParameterGroupNotFound"
// ErrCodeDBClusterQuotaExceededFault for service response error code
// "DBClusterQuotaExceededFault".
//
// The cluster can't be created because you have reached the maximum allowed
// quota of clusters.
ErrCodeDBClusterQuotaExceededFault = "DBClusterQuotaExceededFault"
// ErrCodeDBClusterSnapshotAlreadyExistsFault for service response error code
// "DBClusterSnapshotAlreadyExistsFault".
//
// You already have a cluster snapshot with the given identifier.
ErrCodeDBClusterSnapshotAlreadyExistsFault = "DBClusterSnapshotAlreadyExistsFault"
// ErrCodeDBClusterSnapshotNotFoundFault for service response error code
// "DBClusterSnapshotNotFoundFault".
//
// DBClusterSnapshotIdentifier doesn't refer to an existing cluster snapshot.
ErrCodeDBClusterSnapshotNotFoundFault = "DBClusterSnapshotNotFoundFault"
// ErrCodeDBInstanceAlreadyExistsFault for service response error code
// "DBInstanceAlreadyExists".
//
// You already have a instance with the given identifier.
ErrCodeDBInstanceAlreadyExistsFault = "DBInstanceAlreadyExists"
// ErrCodeDBInstanceNotFoundFault for service response error code
// "DBInstanceNotFound".
//
// DBInstanceIdentifier doesn't refer to an existing instance.
ErrCodeDBInstanceNotFoundFault = "DBInstanceNotFound"
// ErrCodeDBParameterGroupAlreadyExistsFault for service response error code
// "DBParameterGroupAlreadyExists".
//
// A parameter group with the same name already exists.
ErrCodeDBParameterGroupAlreadyExistsFault = "DBParameterGroupAlreadyExists"
// ErrCodeDBParameterGroupNotFoundFault for service response error code
// "DBParameterGroupNotFound".
//
// DBParameterGroupName doesn't refer to an existing parameter group.
ErrCodeDBParameterGroupNotFoundFault = "DBParameterGroupNotFound"
// ErrCodeDBParameterGroupQuotaExceededFault for service response error code
// "DBParameterGroupQuotaExceeded".
//
// This request would cause you to exceed the allowed number of parameter groups.
ErrCodeDBParameterGroupQuotaExceededFault = "DBParameterGroupQuotaExceeded"
// ErrCodeDBSecurityGroupNotFoundFault for service response error code
// "DBSecurityGroupNotFound".
//
// DBSecurityGroupName doesn't refer to an existing security group.
ErrCodeDBSecurityGroupNotFoundFault = "DBSecurityGroupNotFound"
// ErrCodeDBSnapshotAlreadyExistsFault for service response error code
// "DBSnapshotAlreadyExists".
//
// DBSnapshotIdentifier is already being used by an existing snapshot.
ErrCodeDBSnapshotAlreadyExistsFault = "DBSnapshotAlreadyExists"
// ErrCodeDBSnapshotNotFoundFault for service response error code
// "DBSnapshotNotFound".
//
// DBSnapshotIdentifier doesn't refer to an existing snapshot.
ErrCodeDBSnapshotNotFoundFault = "DBSnapshotNotFound"
// ErrCodeDBSubnetGroupAlreadyExistsFault for service response error code
// "DBSubnetGroupAlreadyExists".
//
// DBSubnetGroupName is already being used by an existing subnet group.
ErrCodeDBSubnetGroupAlreadyExistsFault = "DBSubnetGroupAlreadyExists"
// ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs for service response error code
// "DBSubnetGroupDoesNotCoverEnoughAZs".
//
// Subnets in the subnet group should cover at least two Availability Zones
// unless there is only one Availability Zone.
ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs = "DBSubnetGroupDoesNotCoverEnoughAZs"
// ErrCodeDBSubnetGroupNotFoundFault for service response error code
// "DBSubnetGroupNotFoundFault".
//
// DBSubnetGroupName doesn't refer to an existing subnet group.
ErrCodeDBSubnetGroupNotFoundFault = "DBSubnetGroupNotFoundFault"
// ErrCodeDBSubnetGroupQuotaExceededFault for service response error code
// "DBSubnetGroupQuotaExceeded".
//
// The request would cause you to exceed the allowed number of subnet groups.
ErrCodeDBSubnetGroupQuotaExceededFault = "DBSubnetGroupQuotaExceeded"
// ErrCodeDBSubnetQuotaExceededFault for service response error code
// "DBSubnetQuotaExceededFault".
//
// The request would cause you to exceed the allowed number of subnets in a
// subnet group.
ErrCodeDBSubnetQuotaExceededFault = "DBSubnetQuotaExceededFault"
// ErrCodeDBUpgradeDependencyFailureFault for service response error code
// "DBUpgradeDependencyFailure".
//
// The upgrade failed because a resource that the depends on can't be modified.
ErrCodeDBUpgradeDependencyFailureFault = "DBUpgradeDependencyFailure"
// ErrCodeEventSubscriptionQuotaExceededFault for service response error code
// "EventSubscriptionQuotaExceeded".
//
// You have reached the maximum number of event subscriptions.
ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded"
// ErrCodeGlobalClusterAlreadyExistsFault for service response error code
// "GlobalClusterAlreadyExistsFault".
//
// The GlobalClusterIdentifier already exists. Choose a new global cluster identifier
// (unique name) to create a new global cluster.
ErrCodeGlobalClusterAlreadyExistsFault = "GlobalClusterAlreadyExistsFault"
// ErrCodeGlobalClusterNotFoundFault for service response error code
// "GlobalClusterNotFoundFault".
//
// The GlobalClusterIdentifier doesn't refer to an existing global cluster.
ErrCodeGlobalClusterNotFoundFault = "GlobalClusterNotFoundFault"
// ErrCodeGlobalClusterQuotaExceededFault for service response error code
// "GlobalClusterQuotaExceededFault".
//
// The number of global clusters for this account is already at the maximum
// allowed.
ErrCodeGlobalClusterQuotaExceededFault = "GlobalClusterQuotaExceededFault"
// ErrCodeInstanceQuotaExceededFault for service response error code
// "InstanceQuotaExceeded".
//
// The request would cause you to exceed the allowed number of instances.
ErrCodeInstanceQuotaExceededFault = "InstanceQuotaExceeded"
// ErrCodeInsufficientDBClusterCapacityFault for service response error code
// "InsufficientDBClusterCapacityFault".
//
// The cluster doesn't have enough capacity for the current operation.
ErrCodeInsufficientDBClusterCapacityFault = "InsufficientDBClusterCapacityFault"
// ErrCodeInsufficientDBInstanceCapacityFault for service response error code
// "InsufficientDBInstanceCapacity".
//
// The specified instance class isn't available in the specified Availability
// Zone.
ErrCodeInsufficientDBInstanceCapacityFault = "InsufficientDBInstanceCapacity"
// ErrCodeInsufficientStorageClusterCapacityFault for service response error code
// "InsufficientStorageClusterCapacity".
//
// There is not enough storage available for the current action. You might be
// able to resolve this error by updating your subnet group to use different
// Availability Zones that have more storage available.
ErrCodeInsufficientStorageClusterCapacityFault = "InsufficientStorageClusterCapacity"
// ErrCodeInvalidDBClusterSnapshotStateFault for service response error code
// "InvalidDBClusterSnapshotStateFault".
//
// The provided value isn't a valid cluster snapshot state.
ErrCodeInvalidDBClusterSnapshotStateFault = "InvalidDBClusterSnapshotStateFault"
// ErrCodeInvalidDBClusterStateFault for service response error code
// "InvalidDBClusterStateFault".
//
// The cluster isn't in a valid state.
ErrCodeInvalidDBClusterStateFault = "InvalidDBClusterStateFault"
// ErrCodeInvalidDBInstanceStateFault for service response error code
// "InvalidDBInstanceState".
//
// The specified instance isn't in the available state.
ErrCodeInvalidDBInstanceStateFault = "InvalidDBInstanceState"
// ErrCodeInvalidDBParameterGroupStateFault for service response error code
// "InvalidDBParameterGroupState".
//
// The parameter group is in use, or it is in a state that is not valid. If
// you are trying to delete the parameter group, you can't delete it when the
// parameter group is in this state.
ErrCodeInvalidDBParameterGroupStateFault = "InvalidDBParameterGroupState"
// ErrCodeInvalidDBSecurityGroupStateFault for service response error code
// "InvalidDBSecurityGroupState".
//
// The state of the security group doesn't allow deletion.
ErrCodeInvalidDBSecurityGroupStateFault = "InvalidDBSecurityGroupState"
// ErrCodeInvalidDBSnapshotStateFault for service response error code
// "InvalidDBSnapshotState".
//
// The state of the snapshot doesn't allow deletion.
ErrCodeInvalidDBSnapshotStateFault = "InvalidDBSnapshotState"
// ErrCodeInvalidDBSubnetGroupStateFault for service response error code
// "InvalidDBSubnetGroupStateFault".
//
// The subnet group can't be deleted because it's in use.
ErrCodeInvalidDBSubnetGroupStateFault = "InvalidDBSubnetGroupStateFault"
// ErrCodeInvalidDBSubnetStateFault for service response error code
// "InvalidDBSubnetStateFault".
//
// The subnet isn't in the available state.
ErrCodeInvalidDBSubnetStateFault = "InvalidDBSubnetStateFault"
// ErrCodeInvalidEventSubscriptionStateFault for service response error code
// "InvalidEventSubscriptionState".
//
// Someone else might be modifying a subscription. Wait a few seconds, and try
// again.
ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState"
// ErrCodeInvalidGlobalClusterStateFault for service response error code
// "InvalidGlobalClusterStateFault".
//
// The requested operation can't be performed while the cluster is in this state.
ErrCodeInvalidGlobalClusterStateFault = "InvalidGlobalClusterStateFault"
// ErrCodeInvalidRestoreFault for service response error code
// "InvalidRestoreFault".
//
// You cannot restore from a virtual private cloud (VPC) backup to a non-VPC
// DB instance.
ErrCodeInvalidRestoreFault = "InvalidRestoreFault"
// ErrCodeInvalidSubnet for service response error code
// "InvalidSubnet".
//
// The requested subnet is not valid, or multiple subnets were requested that
// are not all in a common virtual private cloud (VPC).
ErrCodeInvalidSubnet = "InvalidSubnet"
// ErrCodeInvalidVPCNetworkStateFault for service response error code
// "InvalidVPCNetworkStateFault".
//
// The subnet group doesn't cover all Availability Zones after it is created
// because of changes that were made.
ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault"
// ErrCodeKMSKeyNotAccessibleFault for service response error code
// "KMSKeyNotAccessibleFault".
//
// An error occurred when accessing an KMS key.
ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault"
// ErrCodeResourceNotFoundFault for service response error code
// "ResourceNotFoundFault".
//
// The specified resource ID was not found.
ErrCodeResourceNotFoundFault = "ResourceNotFoundFault"
// ErrCodeSNSInvalidTopicFault for service response error code
// "SNSInvalidTopic".
//
// Amazon SNS has responded that there is a problem with the specified topic.
ErrCodeSNSInvalidTopicFault = "SNSInvalidTopic"
// ErrCodeSNSNoAuthorizationFault for service response error code
// "SNSNoAuthorization".
//
// You do not have permission to publish to the SNS topic Amazon Resource Name
// (ARN).
ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorization"
// ErrCodeSNSTopicArnNotFoundFault for service response error code
// "SNSTopicArnNotFound".
//
// The SNS topic Amazon Resource Name (ARN) does not exist.
ErrCodeSNSTopicArnNotFoundFault = "SNSTopicArnNotFound"
// ErrCodeSharedSnapshotQuotaExceededFault for service response error code
// "SharedSnapshotQuotaExceeded".
//
// You have exceeded the maximum number of accounts that you can share a manual
// DB snapshot with.
ErrCodeSharedSnapshotQuotaExceededFault = "SharedSnapshotQuotaExceeded"
// ErrCodeSnapshotQuotaExceededFault for service response error code
// "SnapshotQuotaExceeded".
//
// The request would cause you to exceed the allowed number of snapshots.
ErrCodeSnapshotQuotaExceededFault = "SnapshotQuotaExceeded"
// ErrCodeSourceNotFoundFault for service response error code
// "SourceNotFound".
//
// The requested source could not be found.
ErrCodeSourceNotFoundFault = "SourceNotFound"
// ErrCodeStorageQuotaExceededFault for service response error code
// "StorageQuotaExceeded".
//
// The request would cause you to exceed the allowed amount of storage available
// across all instances.
ErrCodeStorageQuotaExceededFault = "StorageQuotaExceeded"
// ErrCodeStorageTypeNotSupportedFault for service response error code
// "StorageTypeNotSupported".
//
// Storage of the specified StorageType can't be associated with the DB instance.
ErrCodeStorageTypeNotSupportedFault = "StorageTypeNotSupported"
// ErrCodeSubnetAlreadyInUse for service response error code
// "SubnetAlreadyInUse".
//
// The subnet is already in use in the Availability Zone.
ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse"
// ErrCodeSubscriptionAlreadyExistFault for service response error code
// "SubscriptionAlreadyExist".
//
// The provided subscription name already exists.
ErrCodeSubscriptionAlreadyExistFault = "SubscriptionAlreadyExist"
// ErrCodeSubscriptionCategoryNotFoundFault for service response error code
// "SubscriptionCategoryNotFound".
//
// The provided category does not exist.
ErrCodeSubscriptionCategoryNotFoundFault = "SubscriptionCategoryNotFound"
// ErrCodeSubscriptionNotFoundFault for service response error code
// "SubscriptionNotFound".
//
// The subscription name does not exist.
ErrCodeSubscriptionNotFoundFault = "SubscriptionNotFound"
)