aws-sdk-docdb 1.13.0 → 1.18.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,9 +6,515 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::DocDB
9
+
10
+ # When DocDB returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::DocDB::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all DocDB errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::DocDB::Errors::ServiceError
18
+ # # rescues all DocDB API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AuthorizationNotFoundFault}
29
+ # * {CertificateNotFoundFault}
30
+ # * {DBClusterAlreadyExistsFault}
31
+ # * {DBClusterNotFoundFault}
32
+ # * {DBClusterParameterGroupNotFoundFault}
33
+ # * {DBClusterQuotaExceededFault}
34
+ # * {DBClusterSnapshotAlreadyExistsFault}
35
+ # * {DBClusterSnapshotNotFoundFault}
36
+ # * {DBInstanceAlreadyExistsFault}
37
+ # * {DBInstanceNotFoundFault}
38
+ # * {DBParameterGroupAlreadyExistsFault}
39
+ # * {DBParameterGroupNotFoundFault}
40
+ # * {DBParameterGroupQuotaExceededFault}
41
+ # * {DBSecurityGroupNotFoundFault}
42
+ # * {DBSnapshotAlreadyExistsFault}
43
+ # * {DBSnapshotNotFoundFault}
44
+ # * {DBSubnetGroupAlreadyExistsFault}
45
+ # * {DBSubnetGroupDoesNotCoverEnoughAZs}
46
+ # * {DBSubnetGroupNotFoundFault}
47
+ # * {DBSubnetGroupQuotaExceededFault}
48
+ # * {DBSubnetQuotaExceededFault}
49
+ # * {DBUpgradeDependencyFailureFault}
50
+ # * {InstanceQuotaExceededFault}
51
+ # * {InsufficientDBClusterCapacityFault}
52
+ # * {InsufficientDBInstanceCapacityFault}
53
+ # * {InsufficientStorageClusterCapacityFault}
54
+ # * {InvalidDBClusterSnapshotStateFault}
55
+ # * {InvalidDBClusterStateFault}
56
+ # * {InvalidDBInstanceStateFault}
57
+ # * {InvalidDBParameterGroupStateFault}
58
+ # * {InvalidDBSecurityGroupStateFault}
59
+ # * {InvalidDBSnapshotStateFault}
60
+ # * {InvalidDBSubnetGroupStateFault}
61
+ # * {InvalidDBSubnetStateFault}
62
+ # * {InvalidRestoreFault}
63
+ # * {InvalidSubnet}
64
+ # * {InvalidVPCNetworkStateFault}
65
+ # * {KMSKeyNotAccessibleFault}
66
+ # * {ResourceNotFoundFault}
67
+ # * {SharedSnapshotQuotaExceededFault}
68
+ # * {SnapshotQuotaExceededFault}
69
+ # * {StorageQuotaExceededFault}
70
+ # * {StorageTypeNotSupportedFault}
71
+ # * {SubnetAlreadyInUse}
72
+ #
73
+ # Additionally, error classes are dynamically generated for service errors based on the error code
74
+ # if they are not defined above.
9
75
  module Errors
10
76
 
11
77
  extend Aws::Errors::DynamicErrors
12
78
 
79
+ class AuthorizationNotFoundFault < ServiceError
80
+
81
+ # @param [Seahorse::Client::RequestContext] context
82
+ # @param [String] message
83
+ # @param [Aws::DocDB::Types::AuthorizationNotFoundFault] data
84
+ def initialize(context, message, data = Aws::EmptyStructure.new)
85
+ super(context, message, data)
86
+ end
87
+ end
88
+
89
+ class CertificateNotFoundFault < ServiceError
90
+
91
+ # @param [Seahorse::Client::RequestContext] context
92
+ # @param [String] message
93
+ # @param [Aws::DocDB::Types::CertificateNotFoundFault] data
94
+ def initialize(context, message, data = Aws::EmptyStructure.new)
95
+ super(context, message, data)
96
+ end
97
+ end
98
+
99
+ class DBClusterAlreadyExistsFault < ServiceError
100
+
101
+ # @param [Seahorse::Client::RequestContext] context
102
+ # @param [String] message
103
+ # @param [Aws::DocDB::Types::DBClusterAlreadyExistsFault] data
104
+ def initialize(context, message, data = Aws::EmptyStructure.new)
105
+ super(context, message, data)
106
+ end
107
+ end
108
+
109
+ class DBClusterNotFoundFault < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::DocDB::Types::DBClusterNotFoundFault] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+ end
118
+
119
+ class DBClusterParameterGroupNotFoundFault < ServiceError
120
+
121
+ # @param [Seahorse::Client::RequestContext] context
122
+ # @param [String] message
123
+ # @param [Aws::DocDB::Types::DBClusterParameterGroupNotFoundFault] data
124
+ def initialize(context, message, data = Aws::EmptyStructure.new)
125
+ super(context, message, data)
126
+ end
127
+ end
128
+
129
+ class DBClusterQuotaExceededFault < ServiceError
130
+
131
+ # @param [Seahorse::Client::RequestContext] context
132
+ # @param [String] message
133
+ # @param [Aws::DocDB::Types::DBClusterQuotaExceededFault] data
134
+ def initialize(context, message, data = Aws::EmptyStructure.new)
135
+ super(context, message, data)
136
+ end
137
+ end
138
+
139
+ class DBClusterSnapshotAlreadyExistsFault < ServiceError
140
+
141
+ # @param [Seahorse::Client::RequestContext] context
142
+ # @param [String] message
143
+ # @param [Aws::DocDB::Types::DBClusterSnapshotAlreadyExistsFault] data
144
+ def initialize(context, message, data = Aws::EmptyStructure.new)
145
+ super(context, message, data)
146
+ end
147
+ end
148
+
149
+ class DBClusterSnapshotNotFoundFault < ServiceError
150
+
151
+ # @param [Seahorse::Client::RequestContext] context
152
+ # @param [String] message
153
+ # @param [Aws::DocDB::Types::DBClusterSnapshotNotFoundFault] data
154
+ def initialize(context, message, data = Aws::EmptyStructure.new)
155
+ super(context, message, data)
156
+ end
157
+ end
158
+
159
+ class DBInstanceAlreadyExistsFault < ServiceError
160
+
161
+ # @param [Seahorse::Client::RequestContext] context
162
+ # @param [String] message
163
+ # @param [Aws::DocDB::Types::DBInstanceAlreadyExistsFault] data
164
+ def initialize(context, message, data = Aws::EmptyStructure.new)
165
+ super(context, message, data)
166
+ end
167
+ end
168
+
169
+ class DBInstanceNotFoundFault < ServiceError
170
+
171
+ # @param [Seahorse::Client::RequestContext] context
172
+ # @param [String] message
173
+ # @param [Aws::DocDB::Types::DBInstanceNotFoundFault] data
174
+ def initialize(context, message, data = Aws::EmptyStructure.new)
175
+ super(context, message, data)
176
+ end
177
+ end
178
+
179
+ class DBParameterGroupAlreadyExistsFault < ServiceError
180
+
181
+ # @param [Seahorse::Client::RequestContext] context
182
+ # @param [String] message
183
+ # @param [Aws::DocDB::Types::DBParameterGroupAlreadyExistsFault] data
184
+ def initialize(context, message, data = Aws::EmptyStructure.new)
185
+ super(context, message, data)
186
+ end
187
+ end
188
+
189
+ class DBParameterGroupNotFoundFault < ServiceError
190
+
191
+ # @param [Seahorse::Client::RequestContext] context
192
+ # @param [String] message
193
+ # @param [Aws::DocDB::Types::DBParameterGroupNotFoundFault] data
194
+ def initialize(context, message, data = Aws::EmptyStructure.new)
195
+ super(context, message, data)
196
+ end
197
+ end
198
+
199
+ class DBParameterGroupQuotaExceededFault < ServiceError
200
+
201
+ # @param [Seahorse::Client::RequestContext] context
202
+ # @param [String] message
203
+ # @param [Aws::DocDB::Types::DBParameterGroupQuotaExceededFault] data
204
+ def initialize(context, message, data = Aws::EmptyStructure.new)
205
+ super(context, message, data)
206
+ end
207
+ end
208
+
209
+ class DBSecurityGroupNotFoundFault < ServiceError
210
+
211
+ # @param [Seahorse::Client::RequestContext] context
212
+ # @param [String] message
213
+ # @param [Aws::DocDB::Types::DBSecurityGroupNotFoundFault] data
214
+ def initialize(context, message, data = Aws::EmptyStructure.new)
215
+ super(context, message, data)
216
+ end
217
+ end
218
+
219
+ class DBSnapshotAlreadyExistsFault < ServiceError
220
+
221
+ # @param [Seahorse::Client::RequestContext] context
222
+ # @param [String] message
223
+ # @param [Aws::DocDB::Types::DBSnapshotAlreadyExistsFault] data
224
+ def initialize(context, message, data = Aws::EmptyStructure.new)
225
+ super(context, message, data)
226
+ end
227
+ end
228
+
229
+ class DBSnapshotNotFoundFault < ServiceError
230
+
231
+ # @param [Seahorse::Client::RequestContext] context
232
+ # @param [String] message
233
+ # @param [Aws::DocDB::Types::DBSnapshotNotFoundFault] data
234
+ def initialize(context, message, data = Aws::EmptyStructure.new)
235
+ super(context, message, data)
236
+ end
237
+ end
238
+
239
+ class DBSubnetGroupAlreadyExistsFault < ServiceError
240
+
241
+ # @param [Seahorse::Client::RequestContext] context
242
+ # @param [String] message
243
+ # @param [Aws::DocDB::Types::DBSubnetGroupAlreadyExistsFault] data
244
+ def initialize(context, message, data = Aws::EmptyStructure.new)
245
+ super(context, message, data)
246
+ end
247
+ end
248
+
249
+ class DBSubnetGroupDoesNotCoverEnoughAZs < ServiceError
250
+
251
+ # @param [Seahorse::Client::RequestContext] context
252
+ # @param [String] message
253
+ # @param [Aws::DocDB::Types::DBSubnetGroupDoesNotCoverEnoughAZs] data
254
+ def initialize(context, message, data = Aws::EmptyStructure.new)
255
+ super(context, message, data)
256
+ end
257
+ end
258
+
259
+ class DBSubnetGroupNotFoundFault < ServiceError
260
+
261
+ # @param [Seahorse::Client::RequestContext] context
262
+ # @param [String] message
263
+ # @param [Aws::DocDB::Types::DBSubnetGroupNotFoundFault] data
264
+ def initialize(context, message, data = Aws::EmptyStructure.new)
265
+ super(context, message, data)
266
+ end
267
+ end
268
+
269
+ class DBSubnetGroupQuotaExceededFault < ServiceError
270
+
271
+ # @param [Seahorse::Client::RequestContext] context
272
+ # @param [String] message
273
+ # @param [Aws::DocDB::Types::DBSubnetGroupQuotaExceededFault] data
274
+ def initialize(context, message, data = Aws::EmptyStructure.new)
275
+ super(context, message, data)
276
+ end
277
+ end
278
+
279
+ class DBSubnetQuotaExceededFault < ServiceError
280
+
281
+ # @param [Seahorse::Client::RequestContext] context
282
+ # @param [String] message
283
+ # @param [Aws::DocDB::Types::DBSubnetQuotaExceededFault] data
284
+ def initialize(context, message, data = Aws::EmptyStructure.new)
285
+ super(context, message, data)
286
+ end
287
+ end
288
+
289
+ class DBUpgradeDependencyFailureFault < ServiceError
290
+
291
+ # @param [Seahorse::Client::RequestContext] context
292
+ # @param [String] message
293
+ # @param [Aws::DocDB::Types::DBUpgradeDependencyFailureFault] data
294
+ def initialize(context, message, data = Aws::EmptyStructure.new)
295
+ super(context, message, data)
296
+ end
297
+ end
298
+
299
+ class InstanceQuotaExceededFault < ServiceError
300
+
301
+ # @param [Seahorse::Client::RequestContext] context
302
+ # @param [String] message
303
+ # @param [Aws::DocDB::Types::InstanceQuotaExceededFault] data
304
+ def initialize(context, message, data = Aws::EmptyStructure.new)
305
+ super(context, message, data)
306
+ end
307
+ end
308
+
309
+ class InsufficientDBClusterCapacityFault < ServiceError
310
+
311
+ # @param [Seahorse::Client::RequestContext] context
312
+ # @param [String] message
313
+ # @param [Aws::DocDB::Types::InsufficientDBClusterCapacityFault] data
314
+ def initialize(context, message, data = Aws::EmptyStructure.new)
315
+ super(context, message, data)
316
+ end
317
+ end
318
+
319
+ class InsufficientDBInstanceCapacityFault < ServiceError
320
+
321
+ # @param [Seahorse::Client::RequestContext] context
322
+ # @param [String] message
323
+ # @param [Aws::DocDB::Types::InsufficientDBInstanceCapacityFault] data
324
+ def initialize(context, message, data = Aws::EmptyStructure.new)
325
+ super(context, message, data)
326
+ end
327
+ end
328
+
329
+ class InsufficientStorageClusterCapacityFault < ServiceError
330
+
331
+ # @param [Seahorse::Client::RequestContext] context
332
+ # @param [String] message
333
+ # @param [Aws::DocDB::Types::InsufficientStorageClusterCapacityFault] data
334
+ def initialize(context, message, data = Aws::EmptyStructure.new)
335
+ super(context, message, data)
336
+ end
337
+ end
338
+
339
+ class InvalidDBClusterSnapshotStateFault < ServiceError
340
+
341
+ # @param [Seahorse::Client::RequestContext] context
342
+ # @param [String] message
343
+ # @param [Aws::DocDB::Types::InvalidDBClusterSnapshotStateFault] data
344
+ def initialize(context, message, data = Aws::EmptyStructure.new)
345
+ super(context, message, data)
346
+ end
347
+ end
348
+
349
+ class InvalidDBClusterStateFault < ServiceError
350
+
351
+ # @param [Seahorse::Client::RequestContext] context
352
+ # @param [String] message
353
+ # @param [Aws::DocDB::Types::InvalidDBClusterStateFault] data
354
+ def initialize(context, message, data = Aws::EmptyStructure.new)
355
+ super(context, message, data)
356
+ end
357
+ end
358
+
359
+ class InvalidDBInstanceStateFault < ServiceError
360
+
361
+ # @param [Seahorse::Client::RequestContext] context
362
+ # @param [String] message
363
+ # @param [Aws::DocDB::Types::InvalidDBInstanceStateFault] data
364
+ def initialize(context, message, data = Aws::EmptyStructure.new)
365
+ super(context, message, data)
366
+ end
367
+ end
368
+
369
+ class InvalidDBParameterGroupStateFault < ServiceError
370
+
371
+ # @param [Seahorse::Client::RequestContext] context
372
+ # @param [String] message
373
+ # @param [Aws::DocDB::Types::InvalidDBParameterGroupStateFault] data
374
+ def initialize(context, message, data = Aws::EmptyStructure.new)
375
+ super(context, message, data)
376
+ end
377
+ end
378
+
379
+ class InvalidDBSecurityGroupStateFault < ServiceError
380
+
381
+ # @param [Seahorse::Client::RequestContext] context
382
+ # @param [String] message
383
+ # @param [Aws::DocDB::Types::InvalidDBSecurityGroupStateFault] data
384
+ def initialize(context, message, data = Aws::EmptyStructure.new)
385
+ super(context, message, data)
386
+ end
387
+ end
388
+
389
+ class InvalidDBSnapshotStateFault < ServiceError
390
+
391
+ # @param [Seahorse::Client::RequestContext] context
392
+ # @param [String] message
393
+ # @param [Aws::DocDB::Types::InvalidDBSnapshotStateFault] data
394
+ def initialize(context, message, data = Aws::EmptyStructure.new)
395
+ super(context, message, data)
396
+ end
397
+ end
398
+
399
+ class InvalidDBSubnetGroupStateFault < ServiceError
400
+
401
+ # @param [Seahorse::Client::RequestContext] context
402
+ # @param [String] message
403
+ # @param [Aws::DocDB::Types::InvalidDBSubnetGroupStateFault] data
404
+ def initialize(context, message, data = Aws::EmptyStructure.new)
405
+ super(context, message, data)
406
+ end
407
+ end
408
+
409
+ class InvalidDBSubnetStateFault < ServiceError
410
+
411
+ # @param [Seahorse::Client::RequestContext] context
412
+ # @param [String] message
413
+ # @param [Aws::DocDB::Types::InvalidDBSubnetStateFault] data
414
+ def initialize(context, message, data = Aws::EmptyStructure.new)
415
+ super(context, message, data)
416
+ end
417
+ end
418
+
419
+ class InvalidRestoreFault < ServiceError
420
+
421
+ # @param [Seahorse::Client::RequestContext] context
422
+ # @param [String] message
423
+ # @param [Aws::DocDB::Types::InvalidRestoreFault] data
424
+ def initialize(context, message, data = Aws::EmptyStructure.new)
425
+ super(context, message, data)
426
+ end
427
+ end
428
+
429
+ class InvalidSubnet < ServiceError
430
+
431
+ # @param [Seahorse::Client::RequestContext] context
432
+ # @param [String] message
433
+ # @param [Aws::DocDB::Types::InvalidSubnet] data
434
+ def initialize(context, message, data = Aws::EmptyStructure.new)
435
+ super(context, message, data)
436
+ end
437
+ end
438
+
439
+ class InvalidVPCNetworkStateFault < ServiceError
440
+
441
+ # @param [Seahorse::Client::RequestContext] context
442
+ # @param [String] message
443
+ # @param [Aws::DocDB::Types::InvalidVPCNetworkStateFault] data
444
+ def initialize(context, message, data = Aws::EmptyStructure.new)
445
+ super(context, message, data)
446
+ end
447
+ end
448
+
449
+ class KMSKeyNotAccessibleFault < ServiceError
450
+
451
+ # @param [Seahorse::Client::RequestContext] context
452
+ # @param [String] message
453
+ # @param [Aws::DocDB::Types::KMSKeyNotAccessibleFault] data
454
+ def initialize(context, message, data = Aws::EmptyStructure.new)
455
+ super(context, message, data)
456
+ end
457
+ end
458
+
459
+ class ResourceNotFoundFault < ServiceError
460
+
461
+ # @param [Seahorse::Client::RequestContext] context
462
+ # @param [String] message
463
+ # @param [Aws::DocDB::Types::ResourceNotFoundFault] data
464
+ def initialize(context, message, data = Aws::EmptyStructure.new)
465
+ super(context, message, data)
466
+ end
467
+ end
468
+
469
+ class SharedSnapshotQuotaExceededFault < ServiceError
470
+
471
+ # @param [Seahorse::Client::RequestContext] context
472
+ # @param [String] message
473
+ # @param [Aws::DocDB::Types::SharedSnapshotQuotaExceededFault] data
474
+ def initialize(context, message, data = Aws::EmptyStructure.new)
475
+ super(context, message, data)
476
+ end
477
+ end
478
+
479
+ class SnapshotQuotaExceededFault < ServiceError
480
+
481
+ # @param [Seahorse::Client::RequestContext] context
482
+ # @param [String] message
483
+ # @param [Aws::DocDB::Types::SnapshotQuotaExceededFault] data
484
+ def initialize(context, message, data = Aws::EmptyStructure.new)
485
+ super(context, message, data)
486
+ end
487
+ end
488
+
489
+ class StorageQuotaExceededFault < ServiceError
490
+
491
+ # @param [Seahorse::Client::RequestContext] context
492
+ # @param [String] message
493
+ # @param [Aws::DocDB::Types::StorageQuotaExceededFault] data
494
+ def initialize(context, message, data = Aws::EmptyStructure.new)
495
+ super(context, message, data)
496
+ end
497
+ end
498
+
499
+ class StorageTypeNotSupportedFault < ServiceError
500
+
501
+ # @param [Seahorse::Client::RequestContext] context
502
+ # @param [String] message
503
+ # @param [Aws::DocDB::Types::StorageTypeNotSupportedFault] data
504
+ def initialize(context, message, data = Aws::EmptyStructure.new)
505
+ super(context, message, data)
506
+ end
507
+ end
508
+
509
+ class SubnetAlreadyInUse < ServiceError
510
+
511
+ # @param [Seahorse::Client::RequestContext] context
512
+ # @param [String] message
513
+ # @param [Aws::DocDB::Types::SubnetAlreadyInUse] data
514
+ def initialize(context, message, data = Aws::EmptyStructure.new)
515
+ super(context, message, data)
516
+ end
517
+ end
518
+
13
519
  end
14
520
  end