forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
492 lines (414 loc) · 19.4 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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package rds
const (
// ErrCodeAuthorizationAlreadyExistsFault for service response error code
// "AuthorizationAlreadyExists".
//
// The specified CIDRIP or EC2 security group is already authorized for the
// specified DB security group.
ErrCodeAuthorizationAlreadyExistsFault = "AuthorizationAlreadyExists"
// ErrCodeAuthorizationNotFoundFault for service response error code
// "AuthorizationNotFound".
//
// Specified CIDRIP or EC2 security group is not authorized for the specified
// DB security group.
//
// RDS may not also be authorized via IAM to perform necessary actions on your
// behalf.
ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound"
// ErrCodeAuthorizationQuotaExceededFault for service response error code
// "AuthorizationQuotaExceeded".
//
// DB security group authorization quota has been reached.
ErrCodeAuthorizationQuotaExceededFault = "AuthorizationQuotaExceeded"
// ErrCodeCertificateNotFoundFault for service response error code
// "CertificateNotFound".
//
// CertificateIdentifier does not refer to an existing certificate.
ErrCodeCertificateNotFoundFault = "CertificateNotFound"
// ErrCodeDBClusterAlreadyExistsFault for service response error code
// "DBClusterAlreadyExistsFault".
//
// User already has a DB cluster with the given identifier.
ErrCodeDBClusterAlreadyExistsFault = "DBClusterAlreadyExistsFault"
// ErrCodeDBClusterNotFoundFault for service response error code
// "DBClusterNotFoundFault".
//
// DBClusterIdentifier does not refer to an existing DB cluster.
ErrCodeDBClusterNotFoundFault = "DBClusterNotFoundFault"
// ErrCodeDBClusterParameterGroupNotFoundFault for service response error code
// "DBClusterParameterGroupNotFound".
//
// DBClusterParameterGroupName does not refer to an existing DB Cluster parameter
// group.
ErrCodeDBClusterParameterGroupNotFoundFault = "DBClusterParameterGroupNotFound"
// ErrCodeDBClusterQuotaExceededFault for service response error code
// "DBClusterQuotaExceededFault".
//
// User attempted to create a new DB cluster and the user has already reached
// the maximum allowed DB cluster quota.
ErrCodeDBClusterQuotaExceededFault = "DBClusterQuotaExceededFault"
// ErrCodeDBClusterRoleAlreadyExistsFault for service response error code
// "DBClusterRoleAlreadyExists".
//
// The specified IAM role Amazon Resource Name (ARN) is already associated with
// the specified DB cluster.
ErrCodeDBClusterRoleAlreadyExistsFault = "DBClusterRoleAlreadyExists"
// ErrCodeDBClusterRoleNotFoundFault for service response error code
// "DBClusterRoleNotFound".
//
// The specified IAM role Amazon Resource Name (ARN) is not associated with
// the specified DB cluster.
ErrCodeDBClusterRoleNotFoundFault = "DBClusterRoleNotFound"
// ErrCodeDBClusterRoleQuotaExceededFault for service response error code
// "DBClusterRoleQuotaExceeded".
//
// You have exceeded the maximum number of IAM roles that can be associated
// with the specified DB cluster.
ErrCodeDBClusterRoleQuotaExceededFault = "DBClusterRoleQuotaExceeded"
// ErrCodeDBClusterSnapshotAlreadyExistsFault for service response error code
// "DBClusterSnapshotAlreadyExistsFault".
//
// User already has a DB cluster snapshot with the given identifier.
ErrCodeDBClusterSnapshotAlreadyExistsFault = "DBClusterSnapshotAlreadyExistsFault"
// ErrCodeDBClusterSnapshotNotFoundFault for service response error code
// "DBClusterSnapshotNotFoundFault".
//
// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
ErrCodeDBClusterSnapshotNotFoundFault = "DBClusterSnapshotNotFoundFault"
// ErrCodeDBInstanceAlreadyExistsFault for service response error code
// "DBInstanceAlreadyExists".
//
// User already has a DB instance with the given identifier.
ErrCodeDBInstanceAlreadyExistsFault = "DBInstanceAlreadyExists"
// ErrCodeDBInstanceNotFoundFault for service response error code
// "DBInstanceNotFound".
//
// DBInstanceIdentifier does not refer to an existing DB instance.
ErrCodeDBInstanceNotFoundFault = "DBInstanceNotFound"
// ErrCodeDBLogFileNotFoundFault for service response error code
// "DBLogFileNotFoundFault".
//
// LogFileName does not refer to an existing DB log file.
ErrCodeDBLogFileNotFoundFault = "DBLogFileNotFoundFault"
// ErrCodeDBParameterGroupAlreadyExistsFault for service response error code
// "DBParameterGroupAlreadyExists".
//
// A DB parameter group with the same name exists.
ErrCodeDBParameterGroupAlreadyExistsFault = "DBParameterGroupAlreadyExists"
// ErrCodeDBParameterGroupNotFoundFault for service response error code
// "DBParameterGroupNotFound".
//
// DBParameterGroupName does not refer to an existing DB parameter group.
ErrCodeDBParameterGroupNotFoundFault = "DBParameterGroupNotFound"
// ErrCodeDBParameterGroupQuotaExceededFault for service response error code
// "DBParameterGroupQuotaExceeded".
//
// Request would result in user exceeding the allowed number of DB parameter
// groups.
ErrCodeDBParameterGroupQuotaExceededFault = "DBParameterGroupQuotaExceeded"
// ErrCodeDBSecurityGroupAlreadyExistsFault for service response error code
// "DBSecurityGroupAlreadyExists".
//
// A DB security group with the name specified in DBSecurityGroupName already
// exists.
ErrCodeDBSecurityGroupAlreadyExistsFault = "DBSecurityGroupAlreadyExists"
// ErrCodeDBSecurityGroupNotFoundFault for service response error code
// "DBSecurityGroupNotFound".
//
// DBSecurityGroupName does not refer to an existing DB security group.
ErrCodeDBSecurityGroupNotFoundFault = "DBSecurityGroupNotFound"
// ErrCodeDBSecurityGroupNotSupportedFault for service response error code
// "DBSecurityGroupNotSupported".
//
// A DB security group is not allowed for this action.
ErrCodeDBSecurityGroupNotSupportedFault = "DBSecurityGroupNotSupported"
// ErrCodeDBSecurityGroupQuotaExceededFault for service response error code
// "QuotaExceeded.DBSecurityGroup".
//
// Request would result in user exceeding the allowed number of DB security
// groups.
ErrCodeDBSecurityGroupQuotaExceededFault = "QuotaExceeded.DBSecurityGroup"
// ErrCodeDBSnapshotAlreadyExistsFault for service response error code
// "DBSnapshotAlreadyExists".
//
// DBSnapshotIdentifier is already used by an existing snapshot.
ErrCodeDBSnapshotAlreadyExistsFault = "DBSnapshotAlreadyExists"
// ErrCodeDBSnapshotNotFoundFault for service response error code
// "DBSnapshotNotFound".
//
// DBSnapshotIdentifier does not refer to an existing DB snapshot.
ErrCodeDBSnapshotNotFoundFault = "DBSnapshotNotFound"
// ErrCodeDBSubnetGroupAlreadyExistsFault for service response error code
// "DBSubnetGroupAlreadyExists".
//
// DBSubnetGroupName is already used by an existing DB subnet group.
ErrCodeDBSubnetGroupAlreadyExistsFault = "DBSubnetGroupAlreadyExists"
// ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs for service response error code
// "DBSubnetGroupDoesNotCoverEnoughAZs".
//
// Subnets in the DB subnet group should cover at least two Availability Zones
// unless there is only one Availability Zone.
ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs = "DBSubnetGroupDoesNotCoverEnoughAZs"
// ErrCodeDBSubnetGroupNotAllowedFault for service response error code
// "DBSubnetGroupNotAllowedFault".
//
// Indicates that the DBSubnetGroup should not be specified while creating read
// replicas that lie in the same region as the source instance.
ErrCodeDBSubnetGroupNotAllowedFault = "DBSubnetGroupNotAllowedFault"
// ErrCodeDBSubnetGroupNotFoundFault for service response error code
// "DBSubnetGroupNotFoundFault".
//
// DBSubnetGroupName does not refer to an existing DB subnet group.
ErrCodeDBSubnetGroupNotFoundFault = "DBSubnetGroupNotFoundFault"
// ErrCodeDBSubnetGroupQuotaExceededFault for service response error code
// "DBSubnetGroupQuotaExceeded".
//
// Request would result in user exceeding the allowed number of DB subnet groups.
ErrCodeDBSubnetGroupQuotaExceededFault = "DBSubnetGroupQuotaExceeded"
// ErrCodeDBSubnetQuotaExceededFault for service response error code
// "DBSubnetQuotaExceededFault".
//
// Request would result in user exceeding the allowed number of subnets in a
// DB subnet groups.
ErrCodeDBSubnetQuotaExceededFault = "DBSubnetQuotaExceededFault"
// ErrCodeDBUpgradeDependencyFailureFault for service response error code
// "DBUpgradeDependencyFailure".
//
// The DB upgrade failed because a resource the DB depends on could not be modified.
ErrCodeDBUpgradeDependencyFailureFault = "DBUpgradeDependencyFailure"
// ErrCodeDomainNotFoundFault for service response error code
// "DomainNotFoundFault".
//
// Domain does not refer to an existing Active Directory Domain.
ErrCodeDomainNotFoundFault = "DomainNotFoundFault"
// ErrCodeEventSubscriptionQuotaExceededFault for service response error code
// "EventSubscriptionQuotaExceeded".
//
// You have reached the maximum number of event subscriptions.
ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded"
// ErrCodeInstanceQuotaExceededFault for service response error code
// "InstanceQuotaExceeded".
//
// Request would result in user exceeding the allowed number of DB instances.
ErrCodeInstanceQuotaExceededFault = "InstanceQuotaExceeded"
// ErrCodeInsufficientDBClusterCapacityFault for service response error code
// "InsufficientDBClusterCapacityFault".
//
// The DB cluster does not have enough capacity for the current operation.
ErrCodeInsufficientDBClusterCapacityFault = "InsufficientDBClusterCapacityFault"
// ErrCodeInsufficientDBInstanceCapacityFault for service response error code
// "InsufficientDBInstanceCapacity".
//
// Specified DB instance class is not available in the specified Availability
// Zone.
ErrCodeInsufficientDBInstanceCapacityFault = "InsufficientDBInstanceCapacity"
// ErrCodeInsufficientStorageClusterCapacityFault for service response error code
// "InsufficientStorageClusterCapacity".
//
// There is insufficient storage available for the current action. You may 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 supplied value is not a valid DB cluster snapshot state.
ErrCodeInvalidDBClusterSnapshotStateFault = "InvalidDBClusterSnapshotStateFault"
// ErrCodeInvalidDBClusterStateFault for service response error code
// "InvalidDBClusterStateFault".
//
// The DB cluster is not in a valid state.
ErrCodeInvalidDBClusterStateFault = "InvalidDBClusterStateFault"
// ErrCodeInvalidDBInstanceStateFault for service response error code
// "InvalidDBInstanceState".
//
// The specified DB instance is not in the available state.
ErrCodeInvalidDBInstanceStateFault = "InvalidDBInstanceState"
// ErrCodeInvalidDBParameterGroupStateFault for service response error code
// "InvalidDBParameterGroupState".
//
// The DB parameter group is in use or is in an invalid state. If you are attempting
// to delete the parameter group, you cannot delete it when the parameter group
// is in this state.
ErrCodeInvalidDBParameterGroupStateFault = "InvalidDBParameterGroupState"
// ErrCodeInvalidDBSecurityGroupStateFault for service response error code
// "InvalidDBSecurityGroupState".
//
// The state of the DB security group does not allow deletion.
ErrCodeInvalidDBSecurityGroupStateFault = "InvalidDBSecurityGroupState"
// ErrCodeInvalidDBSnapshotStateFault for service response error code
// "InvalidDBSnapshotState".
//
// The state of the DB snapshot does not allow deletion.
ErrCodeInvalidDBSnapshotStateFault = "InvalidDBSnapshotState"
// ErrCodeInvalidDBSubnetGroupFault for service response error code
// "InvalidDBSubnetGroupFault".
//
// Indicates the DBSubnetGroup does not belong to the same VPC as that of an
// existing cross region read replica of the same source instance.
ErrCodeInvalidDBSubnetGroupFault = "InvalidDBSubnetGroupFault"
// ErrCodeInvalidDBSubnetGroupStateFault for service response error code
// "InvalidDBSubnetGroupStateFault".
//
// The DB subnet group cannot be deleted because it is in use.
ErrCodeInvalidDBSubnetGroupStateFault = "InvalidDBSubnetGroupStateFault"
// ErrCodeInvalidDBSubnetStateFault for service response error code
// "InvalidDBSubnetStateFault".
//
// The DB subnet is not in the available state.
ErrCodeInvalidDBSubnetStateFault = "InvalidDBSubnetStateFault"
// ErrCodeInvalidEventSubscriptionStateFault for service response error code
// "InvalidEventSubscriptionState".
//
// This error can occur if someone else is modifying a subscription. You should
// retry the action.
ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState"
// ErrCodeInvalidOptionGroupStateFault for service response error code
// "InvalidOptionGroupStateFault".
//
// The option group is not in the available state.
ErrCodeInvalidOptionGroupStateFault = "InvalidOptionGroupStateFault"
// ErrCodeInvalidRestoreFault for service response error code
// "InvalidRestoreFault".
//
// Cannot restore from vpc backup to non-vpc DB instance.
ErrCodeInvalidRestoreFault = "InvalidRestoreFault"
// ErrCodeInvalidS3BucketFault for service response error code
// "InvalidS3BucketFault".
//
// The specified Amazon S3 bucket name could not be found or Amazon RDS is not
// authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName
// and S3IngestionRoleArn values and try again.
ErrCodeInvalidS3BucketFault = "InvalidS3BucketFault"
// ErrCodeInvalidSubnet for service response error code
// "InvalidSubnet".
//
// The requested subnet is invalid, or multiple subnets were requested that
// are not all in a common VPC.
ErrCodeInvalidSubnet = "InvalidSubnet"
// ErrCodeInvalidVPCNetworkStateFault for service response error code
// "InvalidVPCNetworkStateFault".
//
// DB subnet group does not cover all Availability Zones after it is created
// because users' change.
ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault"
// ErrCodeKMSKeyNotAccessibleFault for service response error code
// "KMSKeyNotAccessibleFault".
//
// Error accessing KMS key.
ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault"
// ErrCodeOptionGroupAlreadyExistsFault for service response error code
// "OptionGroupAlreadyExistsFault".
//
// The option group you are trying to create already exists.
ErrCodeOptionGroupAlreadyExistsFault = "OptionGroupAlreadyExistsFault"
// ErrCodeOptionGroupNotFoundFault for service response error code
// "OptionGroupNotFoundFault".
//
// The specified option group could not be found.
ErrCodeOptionGroupNotFoundFault = "OptionGroupNotFoundFault"
// ErrCodeOptionGroupQuotaExceededFault for service response error code
// "OptionGroupQuotaExceededFault".
//
// The quota of 20 option groups was exceeded for this AWS account.
ErrCodeOptionGroupQuotaExceededFault = "OptionGroupQuotaExceededFault"
// ErrCodePointInTimeRestoreNotEnabledFault for service response error code
// "PointInTimeRestoreNotEnabled".
//
// SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod
// equal to 0.
ErrCodePointInTimeRestoreNotEnabledFault = "PointInTimeRestoreNotEnabled"
// ErrCodeProvisionedIopsNotAvailableInAZFault for service response error code
// "ProvisionedIopsNotAvailableInAZFault".
//
// Provisioned IOPS not available in the specified Availability Zone.
ErrCodeProvisionedIopsNotAvailableInAZFault = "ProvisionedIopsNotAvailableInAZFault"
// ErrCodeReservedDBInstanceAlreadyExistsFault for service response error code
// "ReservedDBInstanceAlreadyExists".
//
// User already has a reservation with the given identifier.
ErrCodeReservedDBInstanceAlreadyExistsFault = "ReservedDBInstanceAlreadyExists"
// ErrCodeReservedDBInstanceNotFoundFault for service response error code
// "ReservedDBInstanceNotFound".
//
// The specified reserved DB Instance not found.
ErrCodeReservedDBInstanceNotFoundFault = "ReservedDBInstanceNotFound"
// ErrCodeReservedDBInstanceQuotaExceededFault for service response error code
// "ReservedDBInstanceQuotaExceeded".
//
// Request would exceed the user's DB Instance quota.
ErrCodeReservedDBInstanceQuotaExceededFault = "ReservedDBInstanceQuotaExceeded"
// ErrCodeReservedDBInstancesOfferingNotFoundFault for service response error code
// "ReservedDBInstancesOfferingNotFound".
//
// Specified offering does not exist.
ErrCodeReservedDBInstancesOfferingNotFoundFault = "ReservedDBInstancesOfferingNotFound"
// ErrCodeResourceNotFoundFault for service response error code
// "ResourceNotFoundFault".
//
// The specified resource ID was not found.
ErrCodeResourceNotFoundFault = "ResourceNotFoundFault"
// ErrCodeSNSInvalidTopicFault for service response error code
// "SNSInvalidTopic".
//
// SNS has responded that there is a problem with the SND topic specified.
ErrCodeSNSInvalidTopicFault = "SNSInvalidTopic"
// ErrCodeSNSNoAuthorizationFault for service response error code
// "SNSNoAuthorization".
//
// You do not have permission to publish to the SNS topic ARN.
ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorization"
// ErrCodeSNSTopicArnNotFoundFault for service response error code
// "SNSTopicArnNotFound".
//
// The SNS topic 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".
//
// Request would result in user exceeding the allowed number of DB 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".
//
// Request would result in user exceeding the allowed amount of storage available
// across all DB instances.
ErrCodeStorageQuotaExceededFault = "StorageQuotaExceeded"
// ErrCodeStorageTypeNotSupportedFault for service response error code
// "StorageTypeNotSupported".
//
// StorageType specified cannot be associated with the DB Instance.
ErrCodeStorageTypeNotSupportedFault = "StorageTypeNotSupported"
// ErrCodeSubnetAlreadyInUse for service response error code
// "SubnetAlreadyInUse".
//
// The DB subnet is already in use in the Availability Zone.
ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse"
// ErrCodeSubscriptionAlreadyExistFault for service response error code
// "SubscriptionAlreadyExist".
//
// The supplied subscription name already exists.
ErrCodeSubscriptionAlreadyExistFault = "SubscriptionAlreadyExist"
// ErrCodeSubscriptionCategoryNotFoundFault for service response error code
// "SubscriptionCategoryNotFound".
//
// The supplied category does not exist.
ErrCodeSubscriptionCategoryNotFoundFault = "SubscriptionCategoryNotFound"
// ErrCodeSubscriptionNotFoundFault for service response error code
// "SubscriptionNotFound".
//
// The subscription name does not exist.
ErrCodeSubscriptionNotFoundFault = "SubscriptionNotFound"
)