Skip to content

Commit 503bec2

Browse files
author
AWS
committed
Amazon DocumentDB with MongoDB compatibility Update: Adding FailoverState and TagList to GlobalCluster and SynchronizationStatus to GlobalClusterMember.
1 parent 4f00b41 commit 503bec2

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon DocumentDB with MongoDB compatibility",
4+
"contributor": "",
5+
"description": "Adding FailoverState and TagList to GlobalCluster and SynchronizationStatus to GlobalClusterMember."
6+
}

services/docdb/src/main/resources/codegen-resources/service-2.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3458,6 +3458,37 @@
34583458
"GlobalCluster":{"shape":"GlobalCluster"}
34593459
}
34603460
},
3461+
"FailoverState":{
3462+
"type":"structure",
3463+
"members":{
3464+
"Status":{
3465+
"shape":"FailoverStatus",
3466+
"documentation":"<p>The current status of the global cluster. Possible values are as follows:</p> <ul> <li> <p> <b>pending</b> – The service received a request to switch over or fail over the global cluster. The global cluster's primary cluster and the specified secondary cluster are being verified before the operation starts.</p> </li> <li> <p> <b>failing-over</b> – The chosen secondary cluster is being promoted to become the new primary cluster to fail over the global cluster.</p> </li> <li> <p> <b>cancelling</b> – The request to switch over or fail over the global cluster was cancelled and the primary cluster and the selected secondary cluster are returning to their previous states.</p> </li> </ul>"
3467+
},
3468+
"FromDbClusterArn":{
3469+
"shape":"String",
3470+
"documentation":"<p>The Amazon Resource Name (ARN) of the Amazon DocumentDB cluster that is currently being demoted, and which is associated with this state.</p>"
3471+
},
3472+
"ToDbClusterArn":{
3473+
"shape":"String",
3474+
"documentation":"<p>The Amazon Resource Name (ARN) of the Amazon DocumentDB cluster that is currently being promoted, and which is associated with this state.</p>"
3475+
},
3476+
"IsDataLossAllowed":{
3477+
"shape":"Boolean",
3478+
"documentation":"<p>Indicates whether the operation is a global switchover or a global failover. If data loss is allowed, then the operation is a global failover. Otherwise, it's a switchover.</p>"
3479+
}
3480+
},
3481+
"documentation":"<p>Contains the state of scheduled or in-process operations on an Amazon DocumentDB global cluster. This data type is empty unless a switchover or failover operation is scheduled or is in progress on the global cluster.</p>",
3482+
"wrapper":true
3483+
},
3484+
"FailoverStatus":{
3485+
"type":"string",
3486+
"enum":[
3487+
"pending",
3488+
"failing-over",
3489+
"cancelling"
3490+
]
3491+
},
34613492
"Filter":{
34623493
"type":"structure",
34633494
"required":[
@@ -3532,6 +3563,14 @@
35323563
"GlobalClusterMembers":{
35333564
"shape":"GlobalClusterMemberList",
35343565
"documentation":"<p>The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. </p>"
3566+
},
3567+
"FailoverState":{
3568+
"shape":"FailoverState",
3569+
"documentation":"<p>A data object containing all properties for the current state of an in-process or pending switchover or failover process for this global cluster. This object is empty unless the <code>SwitchoverGlobalCluster</code> or <code>FailoverGlobalCluster</code> operation was called on this global cluster.</p>"
3570+
},
3571+
"TagList":{
3572+
"shape":"TagList",
3573+
"documentation":"<p>A list of global cluster tags.</p>"
35353574
}
35363575
},
35373576
"documentation":"<p>A data type representing an Amazon DocumentDB global cluster.</p>",
@@ -3575,6 +3614,10 @@
35753614
"IsWriter":{
35763615
"shape":"Boolean",
35773616
"documentation":"<p> Specifies whether the Amazon DocumentDB cluster is the primary cluster (that is, has read-write capability) for the Amazon DocumentDB global cluster with which it is associated. </p>"
3617+
},
3618+
"SynchronizationStatus":{
3619+
"shape":"GlobalClusterMemberSynchronizationStatus",
3620+
"documentation":"<p>The status of synchronization of each Amazon DocumentDB cluster in the global cluster.</p>"
35783621
}
35793622
},
35803623
"documentation":"<p>A data structure with information about any primary and secondary clusters associated with an Amazon DocumentDB global clusters. </p>",
@@ -3587,6 +3630,13 @@
35873630
"locationName":"GlobalClusterMember"
35883631
}
35893632
},
3633+
"GlobalClusterMemberSynchronizationStatus":{
3634+
"type":"string",
3635+
"enum":[
3636+
"connected",
3637+
"pending-resync"
3638+
]
3639+
},
35903640
"GlobalClusterNotFoundFault":{
35913641
"type":"structure",
35923642
"members":{},

0 commit comments

Comments
 (0)