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.
- checksums.yaml +5 -5
- data/lib/aws-sdk-docdb.rb +7 -4
- data/lib/aws-sdk-docdb/client.rb +99 -25
- data/lib/aws-sdk-docdb/client_api.rb +88 -0
- data/lib/aws-sdk-docdb/errors.rb +506 -0
- data/lib/aws-sdk-docdb/resource.rb +1 -0
- data/lib/aws-sdk-docdb/types.rb +288 -1
- data/lib/aws-sdk-docdb/waiters.rb +62 -0
- metadata +5 -5
data/lib/aws-sdk-docdb/types.rb
CHANGED
@@ -98,6 +98,16 @@ module Aws::DocDB
|
|
98
98
|
include Aws::Structure
|
99
99
|
end
|
100
100
|
|
101
|
+
# The specified CIDR IP or Amazon EC2 security group isn't authorized
|
102
|
+
# for the specified security group.
|
103
|
+
#
|
104
|
+
# Amazon DocumentDB also might not be authorized to perform necessary
|
105
|
+
# actions on your behalf using IAM.
|
106
|
+
#
|
107
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/AuthorizationNotFoundFault AWS API Documentation
|
108
|
+
#
|
109
|
+
class AuthorizationNotFoundFault < Aws::EmptyStructure; end
|
110
|
+
|
101
111
|
# Information about an Availability Zone.
|
102
112
|
#
|
103
113
|
# @!attribute [rw] name
|
@@ -179,6 +189,12 @@ module Aws::DocDB
|
|
179
189
|
include Aws::Structure
|
180
190
|
end
|
181
191
|
|
192
|
+
# `CertificateIdentifier` doesn't refer to an existing certificate.
|
193
|
+
#
|
194
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CertificateNotFoundFault AWS API Documentation
|
195
|
+
#
|
196
|
+
class CertificateNotFoundFault < Aws::EmptyStructure; end
|
197
|
+
|
182
198
|
# The configuration setting for the log types to be enabled for export
|
183
199
|
# to Amazon CloudWatch Logs for a specific instance or cluster.
|
184
200
|
#
|
@@ -682,7 +698,7 @@ module Aws::DocDB
|
|
682
698
|
#
|
683
699
|
# Constraints:
|
684
700
|
#
|
685
|
-
# * Must match the name of an existing `DBClusterParameterGroup`.
|
701
|
+
# * Must not match the name of an existing `DBClusterParameterGroup`.
|
686
702
|
#
|
687
703
|
# ^
|
688
704
|
#
|
@@ -1183,6 +1199,12 @@ module Aws::DocDB
|
|
1183
1199
|
include Aws::Structure
|
1184
1200
|
end
|
1185
1201
|
|
1202
|
+
# You already have a cluster with the given identifier.
|
1203
|
+
#
|
1204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterAlreadyExistsFault AWS API Documentation
|
1205
|
+
#
|
1206
|
+
class DBClusterAlreadyExistsFault < Aws::EmptyStructure; end
|
1207
|
+
|
1186
1208
|
# Contains information about an instance that is part of a cluster.
|
1187
1209
|
#
|
1188
1210
|
# @!attribute [rw] db_instance_identifier
|
@@ -1235,6 +1257,12 @@ module Aws::DocDB
|
|
1235
1257
|
include Aws::Structure
|
1236
1258
|
end
|
1237
1259
|
|
1260
|
+
# `DBClusterIdentifier` doesn't refer to an existing cluster.
|
1261
|
+
#
|
1262
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterNotFoundFault AWS API Documentation
|
1263
|
+
#
|
1264
|
+
class DBClusterNotFoundFault < Aws::EmptyStructure; end
|
1265
|
+
|
1238
1266
|
# Detailed information about a cluster parameter group.
|
1239
1267
|
#
|
1240
1268
|
# @!attribute [rw] db_cluster_parameter_group_name
|
@@ -1310,6 +1338,13 @@ module Aws::DocDB
|
|
1310
1338
|
include Aws::Structure
|
1311
1339
|
end
|
1312
1340
|
|
1341
|
+
# `DBClusterParameterGroupName` doesn't refer to an existing cluster
|
1342
|
+
# parameter group.
|
1343
|
+
#
|
1344
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterParameterGroupNotFoundFault AWS API Documentation
|
1345
|
+
#
|
1346
|
+
class DBClusterParameterGroupNotFoundFault < Aws::EmptyStructure; end
|
1347
|
+
|
1313
1348
|
# Represents the output of DBClusterParameterGroups.
|
1314
1349
|
#
|
1315
1350
|
# @!attribute [rw] marker
|
@@ -1330,6 +1365,13 @@ module Aws::DocDB
|
|
1330
1365
|
include Aws::Structure
|
1331
1366
|
end
|
1332
1367
|
|
1368
|
+
# The cluster can't be created because you have reached the maximum
|
1369
|
+
# allowed quota of clusters.
|
1370
|
+
#
|
1371
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterQuotaExceededFault AWS API Documentation
|
1372
|
+
#
|
1373
|
+
class DBClusterQuotaExceededFault < Aws::EmptyStructure; end
|
1374
|
+
|
1333
1375
|
# Describes an AWS Identity and Access Management (IAM) role that is
|
1334
1376
|
# associated with a cluster.
|
1335
1377
|
#
|
@@ -1463,6 +1505,12 @@ module Aws::DocDB
|
|
1463
1505
|
include Aws::Structure
|
1464
1506
|
end
|
1465
1507
|
|
1508
|
+
# You already have a cluster snapshot with the given identifier.
|
1509
|
+
#
|
1510
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterSnapshotAlreadyExistsFault AWS API Documentation
|
1511
|
+
#
|
1512
|
+
class DBClusterSnapshotAlreadyExistsFault < Aws::EmptyStructure; end
|
1513
|
+
|
1466
1514
|
# Contains the name and values of a manual cluster snapshot attribute.
|
1467
1515
|
#
|
1468
1516
|
# Manual cluster snapshot attributes are used to authorize other AWS
|
@@ -1532,6 +1580,13 @@ module Aws::DocDB
|
|
1532
1580
|
include Aws::Structure
|
1533
1581
|
end
|
1534
1582
|
|
1583
|
+
# `DBClusterSnapshotIdentifier` doesn't refer to an existing cluster
|
1584
|
+
# snapshot.
|
1585
|
+
#
|
1586
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterSnapshotNotFoundFault AWS API Documentation
|
1587
|
+
#
|
1588
|
+
class DBClusterSnapshotNotFoundFault < Aws::EmptyStructure; end
|
1589
|
+
|
1535
1590
|
# Detailed information about an engine version.
|
1536
1591
|
#
|
1537
1592
|
# @!attribute [rw] engine
|
@@ -1764,6 +1819,12 @@ module Aws::DocDB
|
|
1764
1819
|
include Aws::Structure
|
1765
1820
|
end
|
1766
1821
|
|
1822
|
+
# You already have a instance with the given identifier.
|
1823
|
+
#
|
1824
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBInstanceAlreadyExistsFault AWS API Documentation
|
1825
|
+
#
|
1826
|
+
class DBInstanceAlreadyExistsFault < Aws::EmptyStructure; end
|
1827
|
+
|
1767
1828
|
# Represents the output of DescribeDBInstances.
|
1768
1829
|
#
|
1769
1830
|
# @!attribute [rw] marker
|
@@ -1784,6 +1845,12 @@ module Aws::DocDB
|
|
1784
1845
|
include Aws::Structure
|
1785
1846
|
end
|
1786
1847
|
|
1848
|
+
# `DBInstanceIdentifier` doesn't refer to an existing instance.
|
1849
|
+
#
|
1850
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBInstanceNotFoundFault AWS API Documentation
|
1851
|
+
#
|
1852
|
+
class DBInstanceNotFoundFault < Aws::EmptyStructure; end
|
1853
|
+
|
1787
1854
|
# Provides a list of status information for an instance.
|
1788
1855
|
#
|
1789
1856
|
# @!attribute [rw] status_type
|
@@ -1815,6 +1882,43 @@ module Aws::DocDB
|
|
1815
1882
|
include Aws::Structure
|
1816
1883
|
end
|
1817
1884
|
|
1885
|
+
# A parameter group with the same name already exists.
|
1886
|
+
#
|
1887
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBParameterGroupAlreadyExistsFault AWS API Documentation
|
1888
|
+
#
|
1889
|
+
class DBParameterGroupAlreadyExistsFault < Aws::EmptyStructure; end
|
1890
|
+
|
1891
|
+
# `DBParameterGroupName` doesn't refer to an existing parameter group.
|
1892
|
+
#
|
1893
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBParameterGroupNotFoundFault AWS API Documentation
|
1894
|
+
#
|
1895
|
+
class DBParameterGroupNotFoundFault < Aws::EmptyStructure; end
|
1896
|
+
|
1897
|
+
# This request would cause you to exceed the allowed number of parameter
|
1898
|
+
# groups.
|
1899
|
+
#
|
1900
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBParameterGroupQuotaExceededFault AWS API Documentation
|
1901
|
+
#
|
1902
|
+
class DBParameterGroupQuotaExceededFault < Aws::EmptyStructure; end
|
1903
|
+
|
1904
|
+
# `DBSecurityGroupName` doesn't refer to an existing security group.
|
1905
|
+
#
|
1906
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSecurityGroupNotFoundFault AWS API Documentation
|
1907
|
+
#
|
1908
|
+
class DBSecurityGroupNotFoundFault < Aws::EmptyStructure; end
|
1909
|
+
|
1910
|
+
# `DBSnapshotIdentifier` is already being used by an existing snapshot.
|
1911
|
+
#
|
1912
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSnapshotAlreadyExistsFault AWS API Documentation
|
1913
|
+
#
|
1914
|
+
class DBSnapshotAlreadyExistsFault < Aws::EmptyStructure; end
|
1915
|
+
|
1916
|
+
# `DBSnapshotIdentifier` doesn't refer to an existing snapshot.
|
1917
|
+
#
|
1918
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSnapshotNotFoundFault AWS API Documentation
|
1919
|
+
#
|
1920
|
+
class DBSnapshotNotFoundFault < Aws::EmptyStructure; end
|
1921
|
+
|
1818
1922
|
# Detailed information about a subnet group.
|
1819
1923
|
#
|
1820
1924
|
# @!attribute [rw] db_subnet_group_name
|
@@ -1854,6 +1958,19 @@ module Aws::DocDB
|
|
1854
1958
|
include Aws::Structure
|
1855
1959
|
end
|
1856
1960
|
|
1961
|
+
# `DBSubnetGroupName` is already being used by an existing subnet group.
|
1962
|
+
#
|
1963
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSubnetGroupAlreadyExistsFault AWS API Documentation
|
1964
|
+
#
|
1965
|
+
class DBSubnetGroupAlreadyExistsFault < Aws::EmptyStructure; end
|
1966
|
+
|
1967
|
+
# Subnets in the subnet group should cover at least two Availability
|
1968
|
+
# Zones unless there is only one Availability Zone.
|
1969
|
+
#
|
1970
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSubnetGroupDoesNotCoverEnoughAZs AWS API Documentation
|
1971
|
+
#
|
1972
|
+
class DBSubnetGroupDoesNotCoverEnoughAZs < Aws::EmptyStructure; end
|
1973
|
+
|
1857
1974
|
# Represents the output of DescribeDBSubnetGroups.
|
1858
1975
|
#
|
1859
1976
|
# @!attribute [rw] marker
|
@@ -1874,6 +1991,33 @@ module Aws::DocDB
|
|
1874
1991
|
include Aws::Structure
|
1875
1992
|
end
|
1876
1993
|
|
1994
|
+
# `DBSubnetGroupName` doesn't refer to an existing subnet group.
|
1995
|
+
#
|
1996
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSubnetGroupNotFoundFault AWS API Documentation
|
1997
|
+
#
|
1998
|
+
class DBSubnetGroupNotFoundFault < Aws::EmptyStructure; end
|
1999
|
+
|
2000
|
+
# The request would cause you to exceed the allowed number of subnet
|
2001
|
+
# groups.
|
2002
|
+
#
|
2003
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSubnetGroupQuotaExceededFault AWS API Documentation
|
2004
|
+
#
|
2005
|
+
class DBSubnetGroupQuotaExceededFault < Aws::EmptyStructure; end
|
2006
|
+
|
2007
|
+
# The request would cause you to exceed the allowed number of subnets in
|
2008
|
+
# a subnet group.
|
2009
|
+
#
|
2010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBSubnetQuotaExceededFault AWS API Documentation
|
2011
|
+
#
|
2012
|
+
class DBSubnetQuotaExceededFault < Aws::EmptyStructure; end
|
2013
|
+
|
2014
|
+
# The upgrade failed because a resource that the depends on can't be
|
2015
|
+
# modified.
|
2016
|
+
#
|
2017
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBUpgradeDependencyFailureFault AWS API Documentation
|
2018
|
+
#
|
2019
|
+
class DBUpgradeDependencyFailureFault < Aws::EmptyStructure; end
|
2020
|
+
|
1877
2021
|
# Represents the input to DeleteDBCluster.
|
1878
2022
|
#
|
1879
2023
|
# @note When making an API call, you may pass DeleteDBClusterMessage
|
@@ -3286,6 +3430,110 @@ module Aws::DocDB
|
|
3286
3430
|
include Aws::Structure
|
3287
3431
|
end
|
3288
3432
|
|
3433
|
+
# The request would cause you to exceed the allowed number of instances.
|
3434
|
+
#
|
3435
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InstanceQuotaExceededFault AWS API Documentation
|
3436
|
+
#
|
3437
|
+
class InstanceQuotaExceededFault < Aws::EmptyStructure; end
|
3438
|
+
|
3439
|
+
# The cluster doesn't have enough capacity for the current operation.
|
3440
|
+
#
|
3441
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InsufficientDBClusterCapacityFault AWS API Documentation
|
3442
|
+
#
|
3443
|
+
class InsufficientDBClusterCapacityFault < Aws::EmptyStructure; end
|
3444
|
+
|
3445
|
+
# The specified instance class isn't available in the specified
|
3446
|
+
# Availability Zone.
|
3447
|
+
#
|
3448
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InsufficientDBInstanceCapacityFault AWS API Documentation
|
3449
|
+
#
|
3450
|
+
class InsufficientDBInstanceCapacityFault < Aws::EmptyStructure; end
|
3451
|
+
|
3452
|
+
# There is not enough storage available for the current action. You
|
3453
|
+
# might be able to resolve this error by updating your subnet group to
|
3454
|
+
# use different Availability Zones that have more storage available.
|
3455
|
+
#
|
3456
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InsufficientStorageClusterCapacityFault AWS API Documentation
|
3457
|
+
#
|
3458
|
+
class InsufficientStorageClusterCapacityFault < Aws::EmptyStructure; end
|
3459
|
+
|
3460
|
+
# The provided value isn't a valid cluster snapshot state.
|
3461
|
+
#
|
3462
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBClusterSnapshotStateFault AWS API Documentation
|
3463
|
+
#
|
3464
|
+
class InvalidDBClusterSnapshotStateFault < Aws::EmptyStructure; end
|
3465
|
+
|
3466
|
+
# The cluster isn't in a valid state.
|
3467
|
+
#
|
3468
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBClusterStateFault AWS API Documentation
|
3469
|
+
#
|
3470
|
+
class InvalidDBClusterStateFault < Aws::EmptyStructure; end
|
3471
|
+
|
3472
|
+
# The specified instance isn't in the *available* state.
|
3473
|
+
#
|
3474
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBInstanceStateFault AWS API Documentation
|
3475
|
+
#
|
3476
|
+
class InvalidDBInstanceStateFault < Aws::EmptyStructure; end
|
3477
|
+
|
3478
|
+
# The parameter group is in use, or it is in a state that is not valid.
|
3479
|
+
# If you are trying to delete the parameter group, you can't delete it
|
3480
|
+
# when the parameter group is in this state.
|
3481
|
+
#
|
3482
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBParameterGroupStateFault AWS API Documentation
|
3483
|
+
#
|
3484
|
+
class InvalidDBParameterGroupStateFault < Aws::EmptyStructure; end
|
3485
|
+
|
3486
|
+
# The state of the security group doesn't allow deletion.
|
3487
|
+
#
|
3488
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBSecurityGroupStateFault AWS API Documentation
|
3489
|
+
#
|
3490
|
+
class InvalidDBSecurityGroupStateFault < Aws::EmptyStructure; end
|
3491
|
+
|
3492
|
+
# The state of the snapshot doesn't allow deletion.
|
3493
|
+
#
|
3494
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBSnapshotStateFault AWS API Documentation
|
3495
|
+
#
|
3496
|
+
class InvalidDBSnapshotStateFault < Aws::EmptyStructure; end
|
3497
|
+
|
3498
|
+
# The subnet group can't be deleted because it's in use.
|
3499
|
+
#
|
3500
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBSubnetGroupStateFault AWS API Documentation
|
3501
|
+
#
|
3502
|
+
class InvalidDBSubnetGroupStateFault < Aws::EmptyStructure; end
|
3503
|
+
|
3504
|
+
# The subnet isn't in the *available* state.
|
3505
|
+
#
|
3506
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidDBSubnetStateFault AWS API Documentation
|
3507
|
+
#
|
3508
|
+
class InvalidDBSubnetStateFault < Aws::EmptyStructure; end
|
3509
|
+
|
3510
|
+
# You cannot restore from a virtual private cloud (VPC) backup to a
|
3511
|
+
# non-VPC DB instance.
|
3512
|
+
#
|
3513
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidRestoreFault AWS API Documentation
|
3514
|
+
#
|
3515
|
+
class InvalidRestoreFault < Aws::EmptyStructure; end
|
3516
|
+
|
3517
|
+
# The requested subnet is not valid, or multiple subnets were requested
|
3518
|
+
# that are not all in a common virtual private cloud (VPC).
|
3519
|
+
#
|
3520
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidSubnet AWS API Documentation
|
3521
|
+
#
|
3522
|
+
class InvalidSubnet < Aws::EmptyStructure; end
|
3523
|
+
|
3524
|
+
# The subnet group doesn't cover all Availability Zones after it is
|
3525
|
+
# created because of changes that were made.
|
3526
|
+
#
|
3527
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/InvalidVPCNetworkStateFault AWS API Documentation
|
3528
|
+
#
|
3529
|
+
class InvalidVPCNetworkStateFault < Aws::EmptyStructure; end
|
3530
|
+
|
3531
|
+
# An error occurred when accessing an AWS KMS key.
|
3532
|
+
#
|
3533
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/KMSKeyNotAccessibleFault AWS API Documentation
|
3534
|
+
#
|
3535
|
+
class KMSKeyNotAccessibleFault < Aws::EmptyStructure; end
|
3536
|
+
|
3289
3537
|
# Represents the input to ListTagsForResource.
|
3290
3538
|
#
|
3291
3539
|
# @note When making an API call, you may pass ListTagsForResourceMessage
|
@@ -4248,6 +4496,12 @@ module Aws::DocDB
|
|
4248
4496
|
include Aws::Structure
|
4249
4497
|
end
|
4250
4498
|
|
4499
|
+
# The specified resource ID was not found.
|
4500
|
+
#
|
4501
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ResourceNotFoundFault AWS API Documentation
|
4502
|
+
#
|
4503
|
+
class ResourceNotFoundFault < Aws::EmptyStructure; end
|
4504
|
+
|
4251
4505
|
# Represents the output of ApplyPendingMaintenanceAction.
|
4252
4506
|
#
|
4253
4507
|
# @!attribute [rw] resource_identifier
|
@@ -4601,6 +4855,19 @@ module Aws::DocDB
|
|
4601
4855
|
include Aws::Structure
|
4602
4856
|
end
|
4603
4857
|
|
4858
|
+
# You have exceeded the maximum number of accounts that you can share a
|
4859
|
+
# manual DB snapshot with.
|
4860
|
+
#
|
4861
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/SharedSnapshotQuotaExceededFault AWS API Documentation
|
4862
|
+
#
|
4863
|
+
class SharedSnapshotQuotaExceededFault < Aws::EmptyStructure; end
|
4864
|
+
|
4865
|
+
# The request would cause you to exceed the allowed number of snapshots.
|
4866
|
+
#
|
4867
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/SnapshotQuotaExceededFault AWS API Documentation
|
4868
|
+
#
|
4869
|
+
class SnapshotQuotaExceededFault < Aws::EmptyStructure; end
|
4870
|
+
|
4604
4871
|
# @note When making an API call, you may pass StartDBClusterMessage
|
4605
4872
|
# data as a hash:
|
4606
4873
|
#
|
@@ -4661,6 +4928,20 @@ module Aws::DocDB
|
|
4661
4928
|
include Aws::Structure
|
4662
4929
|
end
|
4663
4930
|
|
4931
|
+
# The request would cause you to exceed the allowed amount of storage
|
4932
|
+
# available across all instances.
|
4933
|
+
#
|
4934
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StorageQuotaExceededFault AWS API Documentation
|
4935
|
+
#
|
4936
|
+
class StorageQuotaExceededFault < Aws::EmptyStructure; end
|
4937
|
+
|
4938
|
+
# Storage of the specified `StorageType` can't be associated with the
|
4939
|
+
# DB instance.
|
4940
|
+
#
|
4941
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StorageTypeNotSupportedFault AWS API Documentation
|
4942
|
+
#
|
4943
|
+
class StorageTypeNotSupportedFault < Aws::EmptyStructure; end
|
4944
|
+
|
4664
4945
|
# Detailed information about a subnet.
|
4665
4946
|
#
|
4666
4947
|
# @!attribute [rw] subnet_identifier
|
@@ -4684,6 +4965,12 @@ module Aws::DocDB
|
|
4684
4965
|
include Aws::Structure
|
4685
4966
|
end
|
4686
4967
|
|
4968
|
+
# The subnet is already in use in the Availability Zone.
|
4969
|
+
#
|
4970
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/SubnetAlreadyInUse AWS API Documentation
|
4971
|
+
#
|
4972
|
+
class SubnetAlreadyInUse < Aws::EmptyStructure; end
|
4973
|
+
|
4687
4974
|
# Metadata assigned to an Amazon DocumentDB resource consisting of a
|
4688
4975
|
# key-value pair.
|
4689
4976
|
#
|
@@ -8,6 +8,68 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::DocDB
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | --------------------- | ------------------------------ | -------- | ------------- |
|
70
|
+
# | db_instance_available | {Client#describe_db_instances} | 30 | 60 |
|
71
|
+
# | db_instance_deleted | {Client#describe_db_instances} | 30 | 60 |
|
72
|
+
#
|
11
73
|
module Waiters
|
12
74
|
|
13
75
|
class DBInstanceAvailable
|