aws-sdk-docdb 1.60.0 → 1.62.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
2
  SHA256:
3
- metadata.gz: 2d4a8f64c109b83ad942e27a8bbc1152aa417e8e3ff0055dcf568d9a15f9a8a8
4
- data.tar.gz: 54d7fc1c71b21a71c593972a83a400e935b8cdc378c3edccbb6290896a34b74b
3
+ metadata.gz: 817f04f5833c59accd72e7b7ade7075fa70e5d8b93f34b1739594f56114a30c3
4
+ data.tar.gz: fa6eb30ced91756ff204cece521eb8a7dad62c87847a856128a9d005182fbc8d
5
5
  SHA512:
6
- metadata.gz: fb82834dfef5d26108fa62e2fe6c00a8248ad51dc459300ab26e8d9f751c7d231f996d43c5a6c75703a519f2a6dd88052efd4d098e0be8c85ca8d674904da73c
7
- data.tar.gz: dae5eaa01878b8b0672d9f3dad88bdb69f31dd5f5db80e598e08eac9173265b498332f1153ee177e308635b0356af63fe8985a0cfde4e03a8ca2bd54941dc340
6
+ metadata.gz: bb7307d8f0d73c1978414ae0782f038ff539a42696269002af9bce0d9e1fadc904e5d7c6ae69e651d3ea2a344e7789fdb5e6099b21efb958454c5cd489331bb3
7
+ data.tar.gz: 6603dcccc463fcfb25067ee473fb7c968404950a9e52f0a3d361549a7b06c5a71cfe7f5ebccd5f6a8da753a8b97a883e019fa21c060d40b2388bf61ccf2922ae
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.62.0 (2024-04-16)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.61.0 (2024-04-03)
10
+ ------------------
11
+
12
+ * Feature - This release adds Global Cluster Switchover capability which enables you to change your global cluster's primary AWS Region, the region that serves writes, while preserving the replication between all regions in the global cluster.
13
+
4
14
  1.60.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.60.0
1
+ 1.62.0
@@ -5357,6 +5357,76 @@ module Aws::DocDB
5357
5357
  req.send_request(options)
5358
5358
  end
5359
5359
 
5360
+ # Switches over the specified secondary Amazon DocumentDB cluster to be
5361
+ # the new primary Amazon DocumentDB cluster in the global database
5362
+ # cluster.
5363
+ #
5364
+ # @option params [required, String] :global_cluster_identifier
5365
+ # The identifier of the Amazon DocumentDB global database cluster to
5366
+ # switch over. The identifier is the unique key assigned by the user
5367
+ # when the cluster is created. In other words, it's the name of the
5368
+ # global cluster. This parameter isn’t case-sensitive.
5369
+ #
5370
+ # Constraints:
5371
+ #
5372
+ # * Must match the identifier of an existing global cluster (Amazon
5373
+ # DocumentDB global database).
5374
+ #
5375
+ # * Minimum length of 1. Maximum length of 255.
5376
+ #
5377
+ # Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
5378
+ #
5379
+ # @option params [required, String] :target_db_cluster_identifier
5380
+ # The identifier of the secondary Amazon DocumentDB cluster to promote
5381
+ # to the new primary for the global database cluster. Use the Amazon
5382
+ # Resource Name (ARN) for the identifier so that Amazon DocumentDB can
5383
+ # locate the cluster in its Amazon Web Services region.
5384
+ #
5385
+ # Constraints:
5386
+ #
5387
+ # * Must match the identifier of an existing secondary cluster.
5388
+ #
5389
+ # * Minimum length of 1. Maximum length of 255.
5390
+ #
5391
+ # Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
5392
+ #
5393
+ # @return [Types::SwitchoverGlobalClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5394
+ #
5395
+ # * {Types::SwitchoverGlobalClusterResult#global_cluster #global_cluster} => Types::GlobalCluster
5396
+ #
5397
+ # @example Request syntax with placeholder values
5398
+ #
5399
+ # resp = client.switchover_global_cluster({
5400
+ # global_cluster_identifier: "GlobalClusterIdentifier", # required
5401
+ # target_db_cluster_identifier: "String", # required
5402
+ # })
5403
+ #
5404
+ # @example Response structure
5405
+ #
5406
+ # resp.global_cluster.global_cluster_identifier #=> String
5407
+ # resp.global_cluster.global_cluster_resource_id #=> String
5408
+ # resp.global_cluster.global_cluster_arn #=> String
5409
+ # resp.global_cluster.status #=> String
5410
+ # resp.global_cluster.engine #=> String
5411
+ # resp.global_cluster.engine_version #=> String
5412
+ # resp.global_cluster.database_name #=> String
5413
+ # resp.global_cluster.storage_encrypted #=> Boolean
5414
+ # resp.global_cluster.deletion_protection #=> Boolean
5415
+ # resp.global_cluster.global_cluster_members #=> Array
5416
+ # resp.global_cluster.global_cluster_members[0].db_cluster_arn #=> String
5417
+ # resp.global_cluster.global_cluster_members[0].readers #=> Array
5418
+ # resp.global_cluster.global_cluster_members[0].readers[0] #=> String
5419
+ # resp.global_cluster.global_cluster_members[0].is_writer #=> Boolean
5420
+ #
5421
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/SwitchoverGlobalCluster AWS API Documentation
5422
+ #
5423
+ # @overload switchover_global_cluster(params = {})
5424
+ # @param [Hash] params ({})
5425
+ def switchover_global_cluster(params = {}, options = {})
5426
+ req = build_request(:switchover_global_cluster, params)
5427
+ req.send_request(options)
5428
+ end
5429
+
5360
5430
  # @!endgroup
5361
5431
 
5362
5432
  # @param params ({})
@@ -5370,7 +5440,7 @@ module Aws::DocDB
5370
5440
  params: params,
5371
5441
  config: config)
5372
5442
  context[:gem_name] = 'aws-sdk-docdb'
5373
- context[:gem_version] = '1.60.0'
5443
+ context[:gem_version] = '1.62.0'
5374
5444
  Seahorse::Client::Request.new(handlers, context)
5375
5445
  end
5376
5446
 
@@ -20,7 +20,7 @@ module Aws::DocDB
20
20
  ApplyPendingMaintenanceActionMessage = Shapes::StructureShape.new(name: 'ApplyPendingMaintenanceActionMessage')
21
21
  ApplyPendingMaintenanceActionResult = Shapes::StructureShape.new(name: 'ApplyPendingMaintenanceActionResult')
22
22
  AttributeValueList = Shapes::ListShape.new(name: 'AttributeValueList')
23
- AuthorizationNotFoundFault = Shapes::StructureShape.new(name: 'AuthorizationNotFoundFault')
23
+ AuthorizationNotFoundFault = Shapes::StructureShape.new(name: 'AuthorizationNotFoundFault', error: {"code"=>"AuthorizationNotFound", "httpStatusCode"=>404, "senderFault"=>true})
24
24
  AvailabilityZone = Shapes::StructureShape.new(name: 'AvailabilityZone')
25
25
  AvailabilityZoneList = Shapes::ListShape.new(name: 'AvailabilityZoneList')
26
26
  AvailabilityZones = Shapes::ListShape.new(name: 'AvailabilityZones')
@@ -31,7 +31,7 @@ module Aws::DocDB
31
31
  CertificateDetails = Shapes::StructureShape.new(name: 'CertificateDetails')
32
32
  CertificateList = Shapes::ListShape.new(name: 'CertificateList')
33
33
  CertificateMessage = Shapes::StructureShape.new(name: 'CertificateMessage')
34
- CertificateNotFoundFault = Shapes::StructureShape.new(name: 'CertificateNotFoundFault')
34
+ CertificateNotFoundFault = Shapes::StructureShape.new(name: 'CertificateNotFoundFault', error: {"code"=>"CertificateNotFound", "httpStatusCode"=>404, "senderFault"=>true})
35
35
  CloudwatchLogsExportConfiguration = Shapes::StructureShape.new(name: 'CloudwatchLogsExportConfiguration')
36
36
  CopyDBClusterParameterGroupMessage = Shapes::StructureShape.new(name: 'CopyDBClusterParameterGroupMessage')
37
37
  CopyDBClusterParameterGroupResult = Shapes::StructureShape.new(name: 'CopyDBClusterParameterGroupResult')
@@ -52,54 +52,54 @@ module Aws::DocDB
52
52
  CreateGlobalClusterMessage = Shapes::StructureShape.new(name: 'CreateGlobalClusterMessage')
53
53
  CreateGlobalClusterResult = Shapes::StructureShape.new(name: 'CreateGlobalClusterResult')
54
54
  DBCluster = Shapes::StructureShape.new(name: 'DBCluster')
55
- DBClusterAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBClusterAlreadyExistsFault')
55
+ DBClusterAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBClusterAlreadyExistsFault', error: {"code"=>"DBClusterAlreadyExistsFault", "httpStatusCode"=>400, "senderFault"=>true})
56
56
  DBClusterList = Shapes::ListShape.new(name: 'DBClusterList')
57
57
  DBClusterMember = Shapes::StructureShape.new(name: 'DBClusterMember')
58
58
  DBClusterMemberList = Shapes::ListShape.new(name: 'DBClusterMemberList')
59
59
  DBClusterMessage = Shapes::StructureShape.new(name: 'DBClusterMessage')
60
- DBClusterNotFoundFault = Shapes::StructureShape.new(name: 'DBClusterNotFoundFault')
60
+ DBClusterNotFoundFault = Shapes::StructureShape.new(name: 'DBClusterNotFoundFault', error: {"code"=>"DBClusterNotFoundFault", "httpStatusCode"=>404, "senderFault"=>true})
61
61
  DBClusterParameterGroup = Shapes::StructureShape.new(name: 'DBClusterParameterGroup')
62
62
  DBClusterParameterGroupDetails = Shapes::StructureShape.new(name: 'DBClusterParameterGroupDetails')
63
63
  DBClusterParameterGroupList = Shapes::ListShape.new(name: 'DBClusterParameterGroupList')
64
64
  DBClusterParameterGroupNameMessage = Shapes::StructureShape.new(name: 'DBClusterParameterGroupNameMessage')
65
- DBClusterParameterGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBClusterParameterGroupNotFoundFault')
65
+ DBClusterParameterGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBClusterParameterGroupNotFoundFault', error: {"code"=>"DBClusterParameterGroupNotFound", "httpStatusCode"=>404, "senderFault"=>true})
66
66
  DBClusterParameterGroupsMessage = Shapes::StructureShape.new(name: 'DBClusterParameterGroupsMessage')
67
- DBClusterQuotaExceededFault = Shapes::StructureShape.new(name: 'DBClusterQuotaExceededFault')
67
+ DBClusterQuotaExceededFault = Shapes::StructureShape.new(name: 'DBClusterQuotaExceededFault', error: {"code"=>"DBClusterQuotaExceededFault", "httpStatusCode"=>403, "senderFault"=>true})
68
68
  DBClusterRole = Shapes::StructureShape.new(name: 'DBClusterRole')
69
69
  DBClusterRoles = Shapes::ListShape.new(name: 'DBClusterRoles')
70
70
  DBClusterSnapshot = Shapes::StructureShape.new(name: 'DBClusterSnapshot')
71
- DBClusterSnapshotAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBClusterSnapshotAlreadyExistsFault')
71
+ DBClusterSnapshotAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBClusterSnapshotAlreadyExistsFault', error: {"code"=>"DBClusterSnapshotAlreadyExistsFault", "httpStatusCode"=>400, "senderFault"=>true})
72
72
  DBClusterSnapshotAttribute = Shapes::StructureShape.new(name: 'DBClusterSnapshotAttribute')
73
73
  DBClusterSnapshotAttributeList = Shapes::ListShape.new(name: 'DBClusterSnapshotAttributeList')
74
74
  DBClusterSnapshotAttributesResult = Shapes::StructureShape.new(name: 'DBClusterSnapshotAttributesResult')
75
75
  DBClusterSnapshotList = Shapes::ListShape.new(name: 'DBClusterSnapshotList')
76
76
  DBClusterSnapshotMessage = Shapes::StructureShape.new(name: 'DBClusterSnapshotMessage')
77
- DBClusterSnapshotNotFoundFault = Shapes::StructureShape.new(name: 'DBClusterSnapshotNotFoundFault')
77
+ DBClusterSnapshotNotFoundFault = Shapes::StructureShape.new(name: 'DBClusterSnapshotNotFoundFault', error: {"code"=>"DBClusterSnapshotNotFoundFault", "httpStatusCode"=>404, "senderFault"=>true})
78
78
  DBEngineVersion = Shapes::StructureShape.new(name: 'DBEngineVersion')
79
79
  DBEngineVersionList = Shapes::ListShape.new(name: 'DBEngineVersionList')
80
80
  DBEngineVersionMessage = Shapes::StructureShape.new(name: 'DBEngineVersionMessage')
81
81
  DBInstance = Shapes::StructureShape.new(name: 'DBInstance')
82
- DBInstanceAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBInstanceAlreadyExistsFault')
82
+ DBInstanceAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBInstanceAlreadyExistsFault', error: {"code"=>"DBInstanceAlreadyExists", "httpStatusCode"=>400, "senderFault"=>true})
83
83
  DBInstanceList = Shapes::ListShape.new(name: 'DBInstanceList')
84
84
  DBInstanceMessage = Shapes::StructureShape.new(name: 'DBInstanceMessage')
85
- DBInstanceNotFoundFault = Shapes::StructureShape.new(name: 'DBInstanceNotFoundFault')
85
+ DBInstanceNotFoundFault = Shapes::StructureShape.new(name: 'DBInstanceNotFoundFault', error: {"code"=>"DBInstanceNotFound", "httpStatusCode"=>404, "senderFault"=>true})
86
86
  DBInstanceStatusInfo = Shapes::StructureShape.new(name: 'DBInstanceStatusInfo')
87
87
  DBInstanceStatusInfoList = Shapes::ListShape.new(name: 'DBInstanceStatusInfoList')
88
- DBParameterGroupAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBParameterGroupAlreadyExistsFault')
89
- DBParameterGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBParameterGroupNotFoundFault')
90
- DBParameterGroupQuotaExceededFault = Shapes::StructureShape.new(name: 'DBParameterGroupQuotaExceededFault')
91
- DBSecurityGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBSecurityGroupNotFoundFault')
92
- DBSnapshotAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBSnapshotAlreadyExistsFault')
93
- DBSnapshotNotFoundFault = Shapes::StructureShape.new(name: 'DBSnapshotNotFoundFault')
88
+ DBParameterGroupAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBParameterGroupAlreadyExistsFault', error: {"code"=>"DBParameterGroupAlreadyExists", "httpStatusCode"=>400, "senderFault"=>true})
89
+ DBParameterGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBParameterGroupNotFoundFault', error: {"code"=>"DBParameterGroupNotFound", "httpStatusCode"=>404, "senderFault"=>true})
90
+ DBParameterGroupQuotaExceededFault = Shapes::StructureShape.new(name: 'DBParameterGroupQuotaExceededFault', error: {"code"=>"DBParameterGroupQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
91
+ DBSecurityGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBSecurityGroupNotFoundFault', error: {"code"=>"DBSecurityGroupNotFound", "httpStatusCode"=>404, "senderFault"=>true})
92
+ DBSnapshotAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBSnapshotAlreadyExistsFault', error: {"code"=>"DBSnapshotAlreadyExists", "httpStatusCode"=>400, "senderFault"=>true})
93
+ DBSnapshotNotFoundFault = Shapes::StructureShape.new(name: 'DBSnapshotNotFoundFault', error: {"code"=>"DBSnapshotNotFound", "httpStatusCode"=>404, "senderFault"=>true})
94
94
  DBSubnetGroup = Shapes::StructureShape.new(name: 'DBSubnetGroup')
95
- DBSubnetGroupAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBSubnetGroupAlreadyExistsFault')
96
- DBSubnetGroupDoesNotCoverEnoughAZs = Shapes::StructureShape.new(name: 'DBSubnetGroupDoesNotCoverEnoughAZs')
95
+ DBSubnetGroupAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBSubnetGroupAlreadyExistsFault', error: {"code"=>"DBSubnetGroupAlreadyExists", "httpStatusCode"=>400, "senderFault"=>true})
96
+ DBSubnetGroupDoesNotCoverEnoughAZs = Shapes::StructureShape.new(name: 'DBSubnetGroupDoesNotCoverEnoughAZs', error: {"code"=>"DBSubnetGroupDoesNotCoverEnoughAZs", "httpStatusCode"=>400, "senderFault"=>true})
97
97
  DBSubnetGroupMessage = Shapes::StructureShape.new(name: 'DBSubnetGroupMessage')
98
- DBSubnetGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBSubnetGroupNotFoundFault')
99
- DBSubnetGroupQuotaExceededFault = Shapes::StructureShape.new(name: 'DBSubnetGroupQuotaExceededFault')
98
+ DBSubnetGroupNotFoundFault = Shapes::StructureShape.new(name: 'DBSubnetGroupNotFoundFault', error: {"code"=>"DBSubnetGroupNotFoundFault", "httpStatusCode"=>404, "senderFault"=>true})
99
+ DBSubnetGroupQuotaExceededFault = Shapes::StructureShape.new(name: 'DBSubnetGroupQuotaExceededFault', error: {"code"=>"DBSubnetGroupQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
100
100
  DBSubnetGroups = Shapes::ListShape.new(name: 'DBSubnetGroups')
101
- DBSubnetQuotaExceededFault = Shapes::StructureShape.new(name: 'DBSubnetQuotaExceededFault')
102
- DBUpgradeDependencyFailureFault = Shapes::StructureShape.new(name: 'DBUpgradeDependencyFailureFault')
101
+ DBSubnetQuotaExceededFault = Shapes::StructureShape.new(name: 'DBSubnetQuotaExceededFault', error: {"code"=>"DBSubnetQuotaExceededFault", "httpStatusCode"=>400, "senderFault"=>true})
102
+ DBUpgradeDependencyFailureFault = Shapes::StructureShape.new(name: 'DBUpgradeDependencyFailureFault', error: {"code"=>"DBUpgradeDependencyFailure", "httpStatusCode"=>400, "senderFault"=>true})
103
103
  DeleteDBClusterMessage = Shapes::StructureShape.new(name: 'DeleteDBClusterMessage')
104
104
  DeleteDBClusterParameterGroupMessage = Shapes::StructureShape.new(name: 'DeleteDBClusterParameterGroupMessage')
105
105
  DeleteDBClusterResult = Shapes::StructureShape.new(name: 'DeleteDBClusterResult')
@@ -139,7 +139,7 @@ module Aws::DocDB
139
139
  EventCategoriesMessage = Shapes::StructureShape.new(name: 'EventCategoriesMessage')
140
140
  EventList = Shapes::ListShape.new(name: 'EventList')
141
141
  EventSubscription = Shapes::StructureShape.new(name: 'EventSubscription')
142
- EventSubscriptionQuotaExceededFault = Shapes::StructureShape.new(name: 'EventSubscriptionQuotaExceededFault')
142
+ EventSubscriptionQuotaExceededFault = Shapes::StructureShape.new(name: 'EventSubscriptionQuotaExceededFault', error: {"code"=>"EventSubscriptionQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
143
143
  EventSubscriptionsList = Shapes::ListShape.new(name: 'EventSubscriptionsList')
144
144
  EventSubscriptionsMessage = Shapes::StructureShape.new(name: 'EventSubscriptionsMessage')
145
145
  EventsMessage = Shapes::StructureShape.new(name: 'EventsMessage')
@@ -149,34 +149,34 @@ module Aws::DocDB
149
149
  FilterList = Shapes::ListShape.new(name: 'FilterList')
150
150
  FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
151
151
  GlobalCluster = Shapes::StructureShape.new(name: 'GlobalCluster')
152
- GlobalClusterAlreadyExistsFault = Shapes::StructureShape.new(name: 'GlobalClusterAlreadyExistsFault')
152
+ GlobalClusterAlreadyExistsFault = Shapes::StructureShape.new(name: 'GlobalClusterAlreadyExistsFault', error: {"code"=>"GlobalClusterAlreadyExistsFault", "httpStatusCode"=>400, "senderFault"=>true})
153
153
  GlobalClusterIdentifier = Shapes::StringShape.new(name: 'GlobalClusterIdentifier')
154
154
  GlobalClusterList = Shapes::ListShape.new(name: 'GlobalClusterList')
155
155
  GlobalClusterMember = Shapes::StructureShape.new(name: 'GlobalClusterMember')
156
156
  GlobalClusterMemberList = Shapes::ListShape.new(name: 'GlobalClusterMemberList')
157
- GlobalClusterNotFoundFault = Shapes::StructureShape.new(name: 'GlobalClusterNotFoundFault')
158
- GlobalClusterQuotaExceededFault = Shapes::StructureShape.new(name: 'GlobalClusterQuotaExceededFault')
157
+ GlobalClusterNotFoundFault = Shapes::StructureShape.new(name: 'GlobalClusterNotFoundFault', error: {"code"=>"GlobalClusterNotFoundFault", "httpStatusCode"=>404, "senderFault"=>true})
158
+ GlobalClusterQuotaExceededFault = Shapes::StructureShape.new(name: 'GlobalClusterQuotaExceededFault', error: {"code"=>"GlobalClusterQuotaExceededFault", "httpStatusCode"=>400, "senderFault"=>true})
159
159
  GlobalClustersMessage = Shapes::StructureShape.new(name: 'GlobalClustersMessage')
160
- InstanceQuotaExceededFault = Shapes::StructureShape.new(name: 'InstanceQuotaExceededFault')
161
- InsufficientDBClusterCapacityFault = Shapes::StructureShape.new(name: 'InsufficientDBClusterCapacityFault')
162
- InsufficientDBInstanceCapacityFault = Shapes::StructureShape.new(name: 'InsufficientDBInstanceCapacityFault')
163
- InsufficientStorageClusterCapacityFault = Shapes::StructureShape.new(name: 'InsufficientStorageClusterCapacityFault')
160
+ InstanceQuotaExceededFault = Shapes::StructureShape.new(name: 'InstanceQuotaExceededFault', error: {"code"=>"InstanceQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
161
+ InsufficientDBClusterCapacityFault = Shapes::StructureShape.new(name: 'InsufficientDBClusterCapacityFault', error: {"code"=>"InsufficientDBClusterCapacityFault", "httpStatusCode"=>403, "senderFault"=>true})
162
+ InsufficientDBInstanceCapacityFault = Shapes::StructureShape.new(name: 'InsufficientDBInstanceCapacityFault', error: {"code"=>"InsufficientDBInstanceCapacity", "httpStatusCode"=>400, "senderFault"=>true})
163
+ InsufficientStorageClusterCapacityFault = Shapes::StructureShape.new(name: 'InsufficientStorageClusterCapacityFault', error: {"code"=>"InsufficientStorageClusterCapacity", "httpStatusCode"=>400, "senderFault"=>true})
164
164
  Integer = Shapes::IntegerShape.new(name: 'Integer')
165
165
  IntegerOptional = Shapes::IntegerShape.new(name: 'IntegerOptional')
166
- InvalidDBClusterSnapshotStateFault = Shapes::StructureShape.new(name: 'InvalidDBClusterSnapshotStateFault')
167
- InvalidDBClusterStateFault = Shapes::StructureShape.new(name: 'InvalidDBClusterStateFault')
168
- InvalidDBInstanceStateFault = Shapes::StructureShape.new(name: 'InvalidDBInstanceStateFault')
169
- InvalidDBParameterGroupStateFault = Shapes::StructureShape.new(name: 'InvalidDBParameterGroupStateFault')
170
- InvalidDBSecurityGroupStateFault = Shapes::StructureShape.new(name: 'InvalidDBSecurityGroupStateFault')
171
- InvalidDBSnapshotStateFault = Shapes::StructureShape.new(name: 'InvalidDBSnapshotStateFault')
172
- InvalidDBSubnetGroupStateFault = Shapes::StructureShape.new(name: 'InvalidDBSubnetGroupStateFault')
173
- InvalidDBSubnetStateFault = Shapes::StructureShape.new(name: 'InvalidDBSubnetStateFault')
174
- InvalidEventSubscriptionStateFault = Shapes::StructureShape.new(name: 'InvalidEventSubscriptionStateFault')
175
- InvalidGlobalClusterStateFault = Shapes::StructureShape.new(name: 'InvalidGlobalClusterStateFault')
176
- InvalidRestoreFault = Shapes::StructureShape.new(name: 'InvalidRestoreFault')
177
- InvalidSubnet = Shapes::StructureShape.new(name: 'InvalidSubnet')
178
- InvalidVPCNetworkStateFault = Shapes::StructureShape.new(name: 'InvalidVPCNetworkStateFault')
179
- KMSKeyNotAccessibleFault = Shapes::StructureShape.new(name: 'KMSKeyNotAccessibleFault')
166
+ InvalidDBClusterSnapshotStateFault = Shapes::StructureShape.new(name: 'InvalidDBClusterSnapshotStateFault', error: {"code"=>"InvalidDBClusterSnapshotStateFault", "httpStatusCode"=>400, "senderFault"=>true})
167
+ InvalidDBClusterStateFault = Shapes::StructureShape.new(name: 'InvalidDBClusterStateFault', error: {"code"=>"InvalidDBClusterStateFault", "httpStatusCode"=>400, "senderFault"=>true})
168
+ InvalidDBInstanceStateFault = Shapes::StructureShape.new(name: 'InvalidDBInstanceStateFault', error: {"code"=>"InvalidDBInstanceState", "httpStatusCode"=>400, "senderFault"=>true})
169
+ InvalidDBParameterGroupStateFault = Shapes::StructureShape.new(name: 'InvalidDBParameterGroupStateFault', error: {"code"=>"InvalidDBParameterGroupState", "httpStatusCode"=>400, "senderFault"=>true})
170
+ InvalidDBSecurityGroupStateFault = Shapes::StructureShape.new(name: 'InvalidDBSecurityGroupStateFault', error: {"code"=>"InvalidDBSecurityGroupState", "httpStatusCode"=>400, "senderFault"=>true})
171
+ InvalidDBSnapshotStateFault = Shapes::StructureShape.new(name: 'InvalidDBSnapshotStateFault', error: {"code"=>"InvalidDBSnapshotState", "httpStatusCode"=>400, "senderFault"=>true})
172
+ InvalidDBSubnetGroupStateFault = Shapes::StructureShape.new(name: 'InvalidDBSubnetGroupStateFault', error: {"code"=>"InvalidDBSubnetGroupStateFault", "httpStatusCode"=>400, "senderFault"=>true})
173
+ InvalidDBSubnetStateFault = Shapes::StructureShape.new(name: 'InvalidDBSubnetStateFault', error: {"code"=>"InvalidDBSubnetStateFault", "httpStatusCode"=>400, "senderFault"=>true})
174
+ InvalidEventSubscriptionStateFault = Shapes::StructureShape.new(name: 'InvalidEventSubscriptionStateFault', error: {"code"=>"InvalidEventSubscriptionState", "httpStatusCode"=>400, "senderFault"=>true})
175
+ InvalidGlobalClusterStateFault = Shapes::StructureShape.new(name: 'InvalidGlobalClusterStateFault', error: {"code"=>"InvalidGlobalClusterStateFault", "httpStatusCode"=>400, "senderFault"=>true})
176
+ InvalidRestoreFault = Shapes::StructureShape.new(name: 'InvalidRestoreFault', error: {"code"=>"InvalidRestoreFault", "httpStatusCode"=>400, "senderFault"=>true})
177
+ InvalidSubnet = Shapes::StructureShape.new(name: 'InvalidSubnet', error: {"code"=>"InvalidSubnet", "httpStatusCode"=>400, "senderFault"=>true})
178
+ InvalidVPCNetworkStateFault = Shapes::StructureShape.new(name: 'InvalidVPCNetworkStateFault', error: {"code"=>"InvalidVPCNetworkStateFault", "httpStatusCode"=>400, "senderFault"=>true})
179
+ KMSKeyNotAccessibleFault = Shapes::StructureShape.new(name: 'KMSKeyNotAccessibleFault', error: {"code"=>"KMSKeyNotAccessibleFault", "httpStatusCode"=>400, "senderFault"=>true})
180
180
  KeyList = Shapes::ListShape.new(name: 'KeyList')
181
181
  ListTagsForResourceMessage = Shapes::StructureShape.new(name: 'ListTagsForResourceMessage')
182
182
  LogTypeList = Shapes::ListShape.new(name: 'LogTypeList')
@@ -214,34 +214,36 @@ module Aws::DocDB
214
214
  RemoveSourceIdentifierFromSubscriptionResult = Shapes::StructureShape.new(name: 'RemoveSourceIdentifierFromSubscriptionResult')
215
215
  RemoveTagsFromResourceMessage = Shapes::StructureShape.new(name: 'RemoveTagsFromResourceMessage')
216
216
  ResetDBClusterParameterGroupMessage = Shapes::StructureShape.new(name: 'ResetDBClusterParameterGroupMessage')
217
- ResourceNotFoundFault = Shapes::StructureShape.new(name: 'ResourceNotFoundFault')
217
+ ResourceNotFoundFault = Shapes::StructureShape.new(name: 'ResourceNotFoundFault', error: {"code"=>"ResourceNotFoundFault", "httpStatusCode"=>404, "senderFault"=>true})
218
218
  ResourcePendingMaintenanceActions = Shapes::StructureShape.new(name: 'ResourcePendingMaintenanceActions')
219
219
  RestoreDBClusterFromSnapshotMessage = Shapes::StructureShape.new(name: 'RestoreDBClusterFromSnapshotMessage')
220
220
  RestoreDBClusterFromSnapshotResult = Shapes::StructureShape.new(name: 'RestoreDBClusterFromSnapshotResult')
221
221
  RestoreDBClusterToPointInTimeMessage = Shapes::StructureShape.new(name: 'RestoreDBClusterToPointInTimeMessage')
222
222
  RestoreDBClusterToPointInTimeResult = Shapes::StructureShape.new(name: 'RestoreDBClusterToPointInTimeResult')
223
- SNSInvalidTopicFault = Shapes::StructureShape.new(name: 'SNSInvalidTopicFault')
224
- SNSNoAuthorizationFault = Shapes::StructureShape.new(name: 'SNSNoAuthorizationFault')
225
- SNSTopicArnNotFoundFault = Shapes::StructureShape.new(name: 'SNSTopicArnNotFoundFault')
226
- SharedSnapshotQuotaExceededFault = Shapes::StructureShape.new(name: 'SharedSnapshotQuotaExceededFault')
227
- SnapshotQuotaExceededFault = Shapes::StructureShape.new(name: 'SnapshotQuotaExceededFault')
223
+ SNSInvalidTopicFault = Shapes::StructureShape.new(name: 'SNSInvalidTopicFault', error: {"code"=>"SNSInvalidTopic", "httpStatusCode"=>400, "senderFault"=>true})
224
+ SNSNoAuthorizationFault = Shapes::StructureShape.new(name: 'SNSNoAuthorizationFault', error: {"code"=>"SNSNoAuthorization", "httpStatusCode"=>400, "senderFault"=>true})
225
+ SNSTopicArnNotFoundFault = Shapes::StructureShape.new(name: 'SNSTopicArnNotFoundFault', error: {"code"=>"SNSTopicArnNotFound", "httpStatusCode"=>404, "senderFault"=>true})
226
+ SharedSnapshotQuotaExceededFault = Shapes::StructureShape.new(name: 'SharedSnapshotQuotaExceededFault', error: {"code"=>"SharedSnapshotQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
227
+ SnapshotQuotaExceededFault = Shapes::StructureShape.new(name: 'SnapshotQuotaExceededFault', error: {"code"=>"SnapshotQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
228
228
  SourceIdsList = Shapes::ListShape.new(name: 'SourceIdsList')
229
- SourceNotFoundFault = Shapes::StructureShape.new(name: 'SourceNotFoundFault')
229
+ SourceNotFoundFault = Shapes::StructureShape.new(name: 'SourceNotFoundFault', error: {"code"=>"SourceNotFound", "httpStatusCode"=>404, "senderFault"=>true})
230
230
  SourceType = Shapes::StringShape.new(name: 'SourceType')
231
231
  StartDBClusterMessage = Shapes::StructureShape.new(name: 'StartDBClusterMessage')
232
232
  StartDBClusterResult = Shapes::StructureShape.new(name: 'StartDBClusterResult')
233
233
  StopDBClusterMessage = Shapes::StructureShape.new(name: 'StopDBClusterMessage')
234
234
  StopDBClusterResult = Shapes::StructureShape.new(name: 'StopDBClusterResult')
235
- StorageQuotaExceededFault = Shapes::StructureShape.new(name: 'StorageQuotaExceededFault')
236
- StorageTypeNotSupportedFault = Shapes::StructureShape.new(name: 'StorageTypeNotSupportedFault')
235
+ StorageQuotaExceededFault = Shapes::StructureShape.new(name: 'StorageQuotaExceededFault', error: {"code"=>"StorageQuotaExceeded", "httpStatusCode"=>400, "senderFault"=>true})
236
+ StorageTypeNotSupportedFault = Shapes::StructureShape.new(name: 'StorageTypeNotSupportedFault', error: {"code"=>"StorageTypeNotSupported", "httpStatusCode"=>400, "senderFault"=>true})
237
237
  String = Shapes::StringShape.new(name: 'String')
238
238
  Subnet = Shapes::StructureShape.new(name: 'Subnet')
239
- SubnetAlreadyInUse = Shapes::StructureShape.new(name: 'SubnetAlreadyInUse')
239
+ SubnetAlreadyInUse = Shapes::StructureShape.new(name: 'SubnetAlreadyInUse', error: {"code"=>"SubnetAlreadyInUse", "httpStatusCode"=>400, "senderFault"=>true})
240
240
  SubnetIdentifierList = Shapes::ListShape.new(name: 'SubnetIdentifierList')
241
241
  SubnetList = Shapes::ListShape.new(name: 'SubnetList')
242
- SubscriptionAlreadyExistFault = Shapes::StructureShape.new(name: 'SubscriptionAlreadyExistFault')
243
- SubscriptionCategoryNotFoundFault = Shapes::StructureShape.new(name: 'SubscriptionCategoryNotFoundFault')
244
- SubscriptionNotFoundFault = Shapes::StructureShape.new(name: 'SubscriptionNotFoundFault')
242
+ SubscriptionAlreadyExistFault = Shapes::StructureShape.new(name: 'SubscriptionAlreadyExistFault', error: {"code"=>"SubscriptionAlreadyExist", "httpStatusCode"=>400, "senderFault"=>true})
243
+ SubscriptionCategoryNotFoundFault = Shapes::StructureShape.new(name: 'SubscriptionCategoryNotFoundFault', error: {"code"=>"SubscriptionCategoryNotFound", "httpStatusCode"=>404, "senderFault"=>true})
244
+ SubscriptionNotFoundFault = Shapes::StructureShape.new(name: 'SubscriptionNotFoundFault', error: {"code"=>"SubscriptionNotFound", "httpStatusCode"=>404, "senderFault"=>true})
245
+ SwitchoverGlobalClusterMessage = Shapes::StructureShape.new(name: 'SwitchoverGlobalClusterMessage')
246
+ SwitchoverGlobalClusterResult = Shapes::StructureShape.new(name: 'SwitchoverGlobalClusterResult')
245
247
  TStamp = Shapes::TimestampShape.new(name: 'TStamp')
246
248
  Tag = Shapes::StructureShape.new(name: 'Tag')
247
249
  TagList = Shapes::ListShape.new(name: 'TagList')
@@ -1216,6 +1218,13 @@ module Aws::DocDB
1216
1218
 
1217
1219
  SubscriptionNotFoundFault.struct_class = Types::SubscriptionNotFoundFault
1218
1220
 
1221
+ SwitchoverGlobalClusterMessage.add_member(:global_cluster_identifier, Shapes::ShapeRef.new(shape: GlobalClusterIdentifier, required: true, location_name: "GlobalClusterIdentifier"))
1222
+ SwitchoverGlobalClusterMessage.add_member(:target_db_cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TargetDbClusterIdentifier"))
1223
+ SwitchoverGlobalClusterMessage.struct_class = Types::SwitchoverGlobalClusterMessage
1224
+
1225
+ SwitchoverGlobalClusterResult.add_member(:global_cluster, Shapes::ShapeRef.new(shape: GlobalCluster, location_name: "GlobalCluster"))
1226
+ SwitchoverGlobalClusterResult.struct_class = Types::SwitchoverGlobalClusterResult
1227
+
1219
1228
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: String, location_name: "Key"))
1220
1229
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
1221
1230
  Tag.struct_class = Types::Tag
@@ -1963,6 +1972,18 @@ module Aws::DocDB
1963
1972
  o.errors << Shapes::ShapeRef.new(shape: InvalidDBClusterStateFault)
1964
1973
  o.errors << Shapes::ShapeRef.new(shape: InvalidDBInstanceStateFault)
1965
1974
  end)
1975
+
1976
+ api.add_operation(:switchover_global_cluster, Seahorse::Model::Operation.new.tap do |o|
1977
+ o.name = "SwitchoverGlobalCluster"
1978
+ o.http_method = "POST"
1979
+ o.http_request_uri = "/"
1980
+ o.input = Shapes::ShapeRef.new(shape: SwitchoverGlobalClusterMessage)
1981
+ o.output = Shapes::ShapeRef.new(shape: SwitchoverGlobalClusterResult)
1982
+ o.errors << Shapes::ShapeRef.new(shape: GlobalClusterNotFoundFault)
1983
+ o.errors << Shapes::ShapeRef.new(shape: InvalidGlobalClusterStateFault)
1984
+ o.errors << Shapes::ShapeRef.new(shape: DBClusterNotFoundFault)
1985
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBClusterStateFault)
1986
+ end)
1966
1987
  end
1967
1988
 
1968
1989
  end
@@ -754,5 +754,19 @@ module Aws::DocDB
754
754
  end
755
755
  end
756
756
 
757
+ class SwitchoverGlobalCluster
758
+ def self.build(context)
759
+ unless context.config.regional_endpoint
760
+ endpoint = context.config.endpoint.to_s
761
+ end
762
+ Aws::DocDB::EndpointParameters.new(
763
+ region: context.config.region,
764
+ use_dual_stack: context.config.use_dualstack_endpoint,
765
+ use_fips: context.config.use_fips_endpoint,
766
+ endpoint: endpoint,
767
+ )
768
+ end
769
+ end
770
+
757
771
  end
758
772
  end
@@ -164,6 +164,8 @@ module Aws::DocDB
164
164
  Aws::DocDB::Endpoints::StartDBCluster.build(context)
165
165
  when :stop_db_cluster
166
166
  Aws::DocDB::Endpoints::StopDBCluster.build(context)
167
+ when :switchover_global_cluster
168
+ Aws::DocDB::Endpoints::SwitchoverGlobalCluster.build(context)
167
169
  end
168
170
  end
169
171
  end
@@ -5594,6 +5594,58 @@ module Aws::DocDB
5594
5594
  #
5595
5595
  class SubscriptionNotFoundFault < Aws::EmptyStructure; end
5596
5596
 
5597
+ # @!attribute [rw] global_cluster_identifier
5598
+ # The identifier of the Amazon DocumentDB global database cluster to
5599
+ # switch over. The identifier is the unique key assigned by the user
5600
+ # when the cluster is created. In other words, it's the name of the
5601
+ # global cluster. This parameter isn’t case-sensitive.
5602
+ #
5603
+ # Constraints:
5604
+ #
5605
+ # * Must match the identifier of an existing global cluster (Amazon
5606
+ # DocumentDB global database).
5607
+ #
5608
+ # * Minimum length of 1. Maximum length of 255.
5609
+ #
5610
+ # Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
5611
+ # @return [String]
5612
+ #
5613
+ # @!attribute [rw] target_db_cluster_identifier
5614
+ # The identifier of the secondary Amazon DocumentDB cluster to promote
5615
+ # to the new primary for the global database cluster. Use the Amazon
5616
+ # Resource Name (ARN) for the identifier so that Amazon DocumentDB can
5617
+ # locate the cluster in its Amazon Web Services region.
5618
+ #
5619
+ # Constraints:
5620
+ #
5621
+ # * Must match the identifier of an existing secondary cluster.
5622
+ #
5623
+ # * Minimum length of 1. Maximum length of 255.
5624
+ #
5625
+ # Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
5626
+ # @return [String]
5627
+ #
5628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/SwitchoverGlobalClusterMessage AWS API Documentation
5629
+ #
5630
+ class SwitchoverGlobalClusterMessage < Struct.new(
5631
+ :global_cluster_identifier,
5632
+ :target_db_cluster_identifier)
5633
+ SENSITIVE = []
5634
+ include Aws::Structure
5635
+ end
5636
+
5637
+ # @!attribute [rw] global_cluster
5638
+ # A data type representing an Amazon DocumentDB global cluster.
5639
+ # @return [Types::GlobalCluster]
5640
+ #
5641
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/SwitchoverGlobalClusterResult AWS API Documentation
5642
+ #
5643
+ class SwitchoverGlobalClusterResult < Struct.new(
5644
+ :global_cluster)
5645
+ SENSITIVE = []
5646
+ include Aws::Structure
5647
+ end
5648
+
5597
5649
  # Metadata assigned to an Amazon DocumentDB resource consisting of a
5598
5650
  # key-value pair.
5599
5651
  #
data/lib/aws-sdk-docdb.rb CHANGED
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-docdb/customizations'
53
53
  # @!group service
54
54
  module Aws::DocDB
55
55
 
56
- GEM_VERSION = '1.60.0'
56
+ GEM_VERSION = '1.62.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -963,6 +963,17 @@ module Aws
963
963
  ) -> _StopDBClusterResponseSuccess
964
964
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopDBClusterResponseSuccess
965
965
 
966
+ interface _SwitchoverGlobalClusterResponseSuccess
967
+ include ::Seahorse::Client::_ResponseSuccess[Types::SwitchoverGlobalClusterResult]
968
+ def global_cluster: () -> Types::GlobalCluster
969
+ end
970
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DocDB/Client.html#switchover_global_cluster-instance_method
971
+ def switchover_global_cluster: (
972
+ global_cluster_identifier: ::String,
973
+ target_db_cluster_identifier: ::String
974
+ ) -> _SwitchoverGlobalClusterResponseSuccess
975
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SwitchoverGlobalClusterResponseSuccess
976
+
966
977
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DocDB/Client.html#wait_until-instance_method
967
978
  def wait_until: (:db_instance_available waiter_name,
968
979
  ?db_instance_identifier: ::String,
data/sig/types.rbs CHANGED
@@ -1221,6 +1221,17 @@ module Aws::DocDB
1221
1221
  class SubscriptionNotFoundFault < Aws::EmptyStructure
1222
1222
  end
1223
1223
 
1224
+ class SwitchoverGlobalClusterMessage
1225
+ attr_accessor global_cluster_identifier: ::String
1226
+ attr_accessor target_db_cluster_identifier: ::String
1227
+ SENSITIVE: []
1228
+ end
1229
+
1230
+ class SwitchoverGlobalClusterResult
1231
+ attr_accessor global_cluster: Types::GlobalCluster
1232
+ SENSITIVE: []
1233
+ end
1234
+
1224
1235
  class Tag
1225
1236
  attr_accessor key: ::String
1226
1237
  attr_accessor value: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-docdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.60.0
4
+ version: 1.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core