aws-sdk-docdb 1.14.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8f01828e3752de7939321062254b4ce355493820
4
- data.tar.gz: 917a9497769ab6c2d7f2dffcbb96983fbd608337
2
+ SHA256:
3
+ metadata.gz: cbbfa6c3e8726095329fa2926516d8a89192d175ab28225716440d93da421ed0
4
+ data.tar.gz: 82e4899a17d0d4292f30b461ff45b8381152d5e984565fb155282148deaa0def
5
5
  SHA512:
6
- metadata.gz: 68536d2b838d5b4ebda4a49a8cc3b13b335a6cc47d6335f6f9b55e084a1cd1c38771384bbb53780c6bb796c935c54b7c34302bffecdccef7c4882859483a06af
7
- data.tar.gz: 2a7787ad406587912c50e450d1221159db5a92dd4c425543c59e7c4e319ecd8a51ccc1a39e975256fec8b372b1e60c563c1db102ab267d9effb5374731ff3aca
6
+ metadata.gz: d0a834af8eedd96600ce92b5ba87006b310eb7d20ec9d02d3cfc228aaf438f859b6db7a7c8dec7973223711bb4e88e4612854269b77fe0208ae4703562fcfd4d
7
+ data.tar.gz: 0746ca598870a6bd388fa4e834e66824e616e0783fd0cedcc89ca4a1e061ce97f235d4bc419bab3e8a7050ac7ba9b4d6d494ff98630ae81c32188433fea0cd03
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-docdb/customizations'
25
25
  # methods each accept a hash of request parameters and return a response
26
26
  # structure.
27
27
  #
28
+ # doc_db = Aws::DocDB::Client.new
29
+ # resp = doc_db.add_tags_to_resource(params)
30
+ #
28
31
  # See {Client} for more information.
29
32
  #
30
33
  # # Errors
31
34
  #
32
- # Errors returned from Amazon DocumentDB with MongoDB compatibility all
33
- # extend {Errors::ServiceError}.
35
+ # Errors returned from Amazon DocumentDB with MongoDB compatibility are defined in the
36
+ # {Errors} module and all extend {Errors::ServiceError}.
34
37
  #
35
38
  # begin
36
39
  # # do stuff
37
40
  # rescue Aws::DocDB::Errors::ServiceError
38
- # # rescues all service API errors
41
+ # # rescues all Amazon DocumentDB with MongoDB compatibility API errors
39
42
  # end
40
43
  #
41
44
  # See {Errors} for more information.
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-docdb/customizations'
43
46
  # @service
44
47
  module Aws::DocDB
45
48
 
46
- GEM_VERSION = '1.14.0'
49
+ GEM_VERSION = '1.15.0'
47
50
 
48
51
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/query.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:docdb)
31
31
 
32
32
  module Aws::DocDB
33
+ # An API client for DocDB. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::DocDB::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -108,6 +120,12 @@ module Aws::DocDB
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::DocDB
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -166,15 +188,29 @@ module Aws::DocDB
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,30 @@ module Aws::DocDB
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
190
245
  #
191
246
  # @option options [String] :secret_access_key
192
247
  #
@@ -209,16 +264,16 @@ module Aws::DocDB
209
264
  # requests through. Formatted like 'http://proxy.com:123'.
210
265
  #
211
266
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
267
+ # seconds to wait when opening a HTTP session before raising a
213
268
  # `Timeout::Error`.
214
269
  #
215
270
  # @option options [Integer] :http_read_timeout (60) The default
216
271
  # number of seconds to wait for response data. This value can
217
272
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
273
+ # per-request on the session yielded by {#session_for}.
219
274
  #
220
275
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
276
+ # seconds a connection is allowed to sit idle before it is
222
277
  # considered stale. Stale connections are closed and removed
223
278
  # from the pool before making a request.
224
279
  #
@@ -227,7 +282,7 @@ module Aws::DocDB
227
282
  # request body. This option has no effect unless the request has
228
283
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
284
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
285
+ # request on the session yielded by {#session_for}.
231
286
  #
232
287
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
288
  # HTTP debug output will be sent to the `:logger`.
@@ -4167,7 +4222,7 @@ module Aws::DocDB
4167
4222
  params: params,
4168
4223
  config: config)
4169
4224
  context[:gem_name] = 'aws-sdk-docdb'
4170
- context[:gem_version] = '1.14.0'
4225
+ context[:gem_version] = '1.15.0'
4171
4226
  Seahorse::Client::Request.new(handlers, context)
4172
4227
  end
4173
4228
 
@@ -217,6 +217,8 @@ module Aws::DocDB
217
217
 
218
218
  AttributeValueList.member = Shapes::ShapeRef.new(shape: String, location_name: "AttributeValue")
219
219
 
220
+ AuthorizationNotFoundFault.struct_class = Types::AuthorizationNotFoundFault
221
+
220
222
  AvailabilityZone.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
221
223
  AvailabilityZone.struct_class = Types::AvailabilityZone
222
224
 
@@ -238,6 +240,8 @@ module Aws::DocDB
238
240
  CertificateMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
239
241
  CertificateMessage.struct_class = Types::CertificateMessage
240
242
 
243
+ CertificateNotFoundFault.struct_class = Types::CertificateNotFoundFault
244
+
241
245
  CloudwatchLogsExportConfiguration.add_member(:enable_log_types, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnableLogTypes"))
242
246
  CloudwatchLogsExportConfiguration.add_member(:disable_log_types, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "DisableLogTypes"))
243
247
  CloudwatchLogsExportConfiguration.struct_class = Types::CloudwatchLogsExportConfiguration
@@ -356,6 +360,8 @@ module Aws::DocDB
356
360
  DBCluster.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: Boolean, location_name: "DeletionProtection"))
357
361
  DBCluster.struct_class = Types::DBCluster
358
362
 
363
+ DBClusterAlreadyExistsFault.struct_class = Types::DBClusterAlreadyExistsFault
364
+
359
365
  DBClusterList.member = Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster")
360
366
 
361
367
  DBClusterMember.add_member(:db_instance_identifier, Shapes::ShapeRef.new(shape: String, location_name: "DBInstanceIdentifier"))
@@ -370,6 +376,8 @@ module Aws::DocDB
370
376
  DBClusterMessage.add_member(:db_clusters, Shapes::ShapeRef.new(shape: DBClusterList, location_name: "DBClusters"))
371
377
  DBClusterMessage.struct_class = Types::DBClusterMessage
372
378
 
379
+ DBClusterNotFoundFault.struct_class = Types::DBClusterNotFoundFault
380
+
373
381
  DBClusterParameterGroup.add_member(:db_cluster_parameter_group_name, Shapes::ShapeRef.new(shape: String, location_name: "DBClusterParameterGroupName"))
374
382
  DBClusterParameterGroup.add_member(:db_parameter_group_family, Shapes::ShapeRef.new(shape: String, location_name: "DBParameterGroupFamily"))
375
383
  DBClusterParameterGroup.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
@@ -385,10 +393,14 @@ module Aws::DocDB
385
393
  DBClusterParameterGroupNameMessage.add_member(:db_cluster_parameter_group_name, Shapes::ShapeRef.new(shape: String, location_name: "DBClusterParameterGroupName"))
386
394
  DBClusterParameterGroupNameMessage.struct_class = Types::DBClusterParameterGroupNameMessage
387
395
 
396
+ DBClusterParameterGroupNotFoundFault.struct_class = Types::DBClusterParameterGroupNotFoundFault
397
+
388
398
  DBClusterParameterGroupsMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
389
399
  DBClusterParameterGroupsMessage.add_member(:db_cluster_parameter_groups, Shapes::ShapeRef.new(shape: DBClusterParameterGroupList, location_name: "DBClusterParameterGroups"))
390
400
  DBClusterParameterGroupsMessage.struct_class = Types::DBClusterParameterGroupsMessage
391
401
 
402
+ DBClusterQuotaExceededFault.struct_class = Types::DBClusterQuotaExceededFault
403
+
392
404
  DBClusterRole.add_member(:role_arn, Shapes::ShapeRef.new(shape: String, location_name: "RoleArn"))
393
405
  DBClusterRole.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
394
406
  DBClusterRole.struct_class = Types::DBClusterRole
@@ -414,6 +426,8 @@ module Aws::DocDB
414
426
  DBClusterSnapshot.add_member(:source_db_cluster_snapshot_arn, Shapes::ShapeRef.new(shape: String, location_name: "SourceDBClusterSnapshotArn"))
415
427
  DBClusterSnapshot.struct_class = Types::DBClusterSnapshot
416
428
 
429
+ DBClusterSnapshotAlreadyExistsFault.struct_class = Types::DBClusterSnapshotAlreadyExistsFault
430
+
417
431
  DBClusterSnapshotAttribute.add_member(:attribute_name, Shapes::ShapeRef.new(shape: String, location_name: "AttributeName"))
418
432
  DBClusterSnapshotAttribute.add_member(:attribute_values, Shapes::ShapeRef.new(shape: AttributeValueList, location_name: "AttributeValues"))
419
433
  DBClusterSnapshotAttribute.struct_class = Types::DBClusterSnapshotAttribute
@@ -430,6 +444,8 @@ module Aws::DocDB
430
444
  DBClusterSnapshotMessage.add_member(:db_cluster_snapshots, Shapes::ShapeRef.new(shape: DBClusterSnapshotList, location_name: "DBClusterSnapshots"))
431
445
  DBClusterSnapshotMessage.struct_class = Types::DBClusterSnapshotMessage
432
446
 
447
+ DBClusterSnapshotNotFoundFault.struct_class = Types::DBClusterSnapshotNotFoundFault
448
+
433
449
  DBEngineVersion.add_member(:engine, Shapes::ShapeRef.new(shape: String, location_name: "Engine"))
434
450
  DBEngineVersion.add_member(:engine_version, Shapes::ShapeRef.new(shape: String, location_name: "EngineVersion"))
435
451
  DBEngineVersion.add_member(:db_parameter_group_family, Shapes::ShapeRef.new(shape: String, location_name: "DBParameterGroupFamily"))
@@ -474,12 +490,16 @@ module Aws::DocDB
474
490
  DBInstance.add_member(:enabled_cloudwatch_logs_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnabledCloudwatchLogsExports"))
475
491
  DBInstance.struct_class = Types::DBInstance
476
492
 
493
+ DBInstanceAlreadyExistsFault.struct_class = Types::DBInstanceAlreadyExistsFault
494
+
477
495
  DBInstanceList.member = Shapes::ShapeRef.new(shape: DBInstance, location_name: "DBInstance")
478
496
 
479
497
  DBInstanceMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
480
498
  DBInstanceMessage.add_member(:db_instances, Shapes::ShapeRef.new(shape: DBInstanceList, location_name: "DBInstances"))
481
499
  DBInstanceMessage.struct_class = Types::DBInstanceMessage
482
500
 
501
+ DBInstanceNotFoundFault.struct_class = Types::DBInstanceNotFoundFault
502
+
483
503
  DBInstanceStatusInfo.add_member(:status_type, Shapes::ShapeRef.new(shape: String, location_name: "StatusType"))
484
504
  DBInstanceStatusInfo.add_member(:normal, Shapes::ShapeRef.new(shape: Boolean, location_name: "Normal"))
485
505
  DBInstanceStatusInfo.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
@@ -488,6 +508,18 @@ module Aws::DocDB
488
508
 
489
509
  DBInstanceStatusInfoList.member = Shapes::ShapeRef.new(shape: DBInstanceStatusInfo, location_name: "DBInstanceStatusInfo")
490
510
 
511
+ DBParameterGroupAlreadyExistsFault.struct_class = Types::DBParameterGroupAlreadyExistsFault
512
+
513
+ DBParameterGroupNotFoundFault.struct_class = Types::DBParameterGroupNotFoundFault
514
+
515
+ DBParameterGroupQuotaExceededFault.struct_class = Types::DBParameterGroupQuotaExceededFault
516
+
517
+ DBSecurityGroupNotFoundFault.struct_class = Types::DBSecurityGroupNotFoundFault
518
+
519
+ DBSnapshotAlreadyExistsFault.struct_class = Types::DBSnapshotAlreadyExistsFault
520
+
521
+ DBSnapshotNotFoundFault.struct_class = Types::DBSnapshotNotFoundFault
522
+
491
523
  DBSubnetGroup.add_member(:db_subnet_group_name, Shapes::ShapeRef.new(shape: String, location_name: "DBSubnetGroupName"))
492
524
  DBSubnetGroup.add_member(:db_subnet_group_description, Shapes::ShapeRef.new(shape: String, location_name: "DBSubnetGroupDescription"))
493
525
  DBSubnetGroup.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "VpcId"))
@@ -496,12 +528,24 @@ module Aws::DocDB
496
528
  DBSubnetGroup.add_member(:db_subnet_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "DBSubnetGroupArn"))
497
529
  DBSubnetGroup.struct_class = Types::DBSubnetGroup
498
530
 
531
+ DBSubnetGroupAlreadyExistsFault.struct_class = Types::DBSubnetGroupAlreadyExistsFault
532
+
533
+ DBSubnetGroupDoesNotCoverEnoughAZs.struct_class = Types::DBSubnetGroupDoesNotCoverEnoughAZs
534
+
499
535
  DBSubnetGroupMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
500
536
  DBSubnetGroupMessage.add_member(:db_subnet_groups, Shapes::ShapeRef.new(shape: DBSubnetGroups, location_name: "DBSubnetGroups"))
501
537
  DBSubnetGroupMessage.struct_class = Types::DBSubnetGroupMessage
502
538
 
539
+ DBSubnetGroupNotFoundFault.struct_class = Types::DBSubnetGroupNotFoundFault
540
+
541
+ DBSubnetGroupQuotaExceededFault.struct_class = Types::DBSubnetGroupQuotaExceededFault
542
+
503
543
  DBSubnetGroups.member = Shapes::ShapeRef.new(shape: DBSubnetGroup, location_name: "DBSubnetGroup")
504
544
 
545
+ DBSubnetQuotaExceededFault.struct_class = Types::DBSubnetQuotaExceededFault
546
+
547
+ DBUpgradeDependencyFailureFault.struct_class = Types::DBUpgradeDependencyFailureFault
548
+
505
549
  DeleteDBClusterMessage.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterIdentifier"))
506
550
  DeleteDBClusterMessage.add_member(:skip_final_snapshot, Shapes::ShapeRef.new(shape: Boolean, location_name: "SkipFinalSnapshot"))
507
551
  DeleteDBClusterMessage.add_member(:final_db_snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "FinalDBSnapshotIdentifier"))
@@ -682,6 +726,38 @@ module Aws::DocDB
682
726
 
683
727
  FilterValueList.member = Shapes::ShapeRef.new(shape: String, location_name: "Value")
684
728
 
729
+ InstanceQuotaExceededFault.struct_class = Types::InstanceQuotaExceededFault
730
+
731
+ InsufficientDBClusterCapacityFault.struct_class = Types::InsufficientDBClusterCapacityFault
732
+
733
+ InsufficientDBInstanceCapacityFault.struct_class = Types::InsufficientDBInstanceCapacityFault
734
+
735
+ InsufficientStorageClusterCapacityFault.struct_class = Types::InsufficientStorageClusterCapacityFault
736
+
737
+ InvalidDBClusterSnapshotStateFault.struct_class = Types::InvalidDBClusterSnapshotStateFault
738
+
739
+ InvalidDBClusterStateFault.struct_class = Types::InvalidDBClusterStateFault
740
+
741
+ InvalidDBInstanceStateFault.struct_class = Types::InvalidDBInstanceStateFault
742
+
743
+ InvalidDBParameterGroupStateFault.struct_class = Types::InvalidDBParameterGroupStateFault
744
+
745
+ InvalidDBSecurityGroupStateFault.struct_class = Types::InvalidDBSecurityGroupStateFault
746
+
747
+ InvalidDBSnapshotStateFault.struct_class = Types::InvalidDBSnapshotStateFault
748
+
749
+ InvalidDBSubnetGroupStateFault.struct_class = Types::InvalidDBSubnetGroupStateFault
750
+
751
+ InvalidDBSubnetStateFault.struct_class = Types::InvalidDBSubnetStateFault
752
+
753
+ InvalidRestoreFault.struct_class = Types::InvalidRestoreFault
754
+
755
+ InvalidSubnet.struct_class = Types::InvalidSubnet
756
+
757
+ InvalidVPCNetworkStateFault.struct_class = Types::InvalidVPCNetworkStateFault
758
+
759
+ KMSKeyNotAccessibleFault.struct_class = Types::KMSKeyNotAccessibleFault
760
+
685
761
  KeyList.member = Shapes::ShapeRef.new(shape: String)
686
762
 
687
763
  ListTagsForResourceMessage.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceName"))
@@ -822,6 +898,8 @@ module Aws::DocDB
822
898
  ResetDBClusterParameterGroupMessage.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersList, location_name: "Parameters"))
823
899
  ResetDBClusterParameterGroupMessage.struct_class = Types::ResetDBClusterParameterGroupMessage
824
900
 
901
+ ResourceNotFoundFault.struct_class = Types::ResourceNotFoundFault
902
+
825
903
  ResourcePendingMaintenanceActions.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ResourceIdentifier"))
826
904
  ResourcePendingMaintenanceActions.add_member(:pending_maintenance_action_details, Shapes::ShapeRef.new(shape: PendingMaintenanceActionDetails, location_name: "PendingMaintenanceActionDetails"))
827
905
  ResourcePendingMaintenanceActions.struct_class = Types::ResourcePendingMaintenanceActions
@@ -859,6 +937,10 @@ module Aws::DocDB
859
937
  RestoreDBClusterToPointInTimeResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
860
938
  RestoreDBClusterToPointInTimeResult.struct_class = Types::RestoreDBClusterToPointInTimeResult
861
939
 
940
+ SharedSnapshotQuotaExceededFault.struct_class = Types::SharedSnapshotQuotaExceededFault
941
+
942
+ SnapshotQuotaExceededFault.struct_class = Types::SnapshotQuotaExceededFault
943
+
862
944
  StartDBClusterMessage.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterIdentifier"))
863
945
  StartDBClusterMessage.struct_class = Types::StartDBClusterMessage
864
946
 
@@ -871,11 +953,17 @@ module Aws::DocDB
871
953
  StopDBClusterResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
872
954
  StopDBClusterResult.struct_class = Types::StopDBClusterResult
873
955
 
956
+ StorageQuotaExceededFault.struct_class = Types::StorageQuotaExceededFault
957
+
958
+ StorageTypeNotSupportedFault.struct_class = Types::StorageTypeNotSupportedFault
959
+
874
960
  Subnet.add_member(:subnet_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SubnetIdentifier"))
875
961
  Subnet.add_member(:subnet_availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZone, location_name: "SubnetAvailabilityZone"))
876
962
  Subnet.add_member(:subnet_status, Shapes::ShapeRef.new(shape: String, location_name: "SubnetStatus"))
877
963
  Subnet.struct_class = Types::Subnet
878
964
 
965
+ SubnetAlreadyInUse.struct_class = Types::SubnetAlreadyInUse
966
+
879
967
  SubnetIdentifierList.member = Shapes::ShapeRef.new(shape: String, location_name: "SubnetIdentifier")
880
968
 
881
969
  SubnetList.member = Shapes::ShapeRef.new(shape: Subnet, location_name: "Subnet")
@@ -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