@aws-sdk/client-docdb 3.920.0 → 3.921.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +44 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_query.js +33 -0
- package/dist-types/commands/CreateGlobalClusterCommand.d.ts +13 -0
- package/dist-types/commands/DeleteGlobalClusterCommand.d.ts +13 -0
- package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +13 -0
- package/dist-types/commands/FailoverGlobalClusterCommand.d.ts +13 -0
- package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +13 -0
- package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +13 -0
- package/dist-types/commands/SwitchoverGlobalClusterCommand.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +84 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/package.json +35 -35
package/dist-cjs/index.js
CHANGED
|
@@ -647,6 +647,15 @@ class SubscriptionCategoryNotFoundFault extends DocDBServiceException {
|
|
|
647
647
|
Object.setPrototypeOf(this, SubscriptionCategoryNotFoundFault.prototype);
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
+
const FailoverStatus = {
|
|
651
|
+
CANCELLING: "cancelling",
|
|
652
|
+
FAILING_OVER: "failing-over",
|
|
653
|
+
PENDING: "pending",
|
|
654
|
+
};
|
|
655
|
+
const GlobalClusterMemberSynchronizationStatus = {
|
|
656
|
+
CONNECTED: "connected",
|
|
657
|
+
PENDING_RESYNC: "pending-resync",
|
|
658
|
+
};
|
|
650
659
|
class GlobalClusterAlreadyExistsFault extends DocDBServiceException {
|
|
651
660
|
name = "GlobalClusterAlreadyExistsFault";
|
|
652
661
|
$fault = "client";
|
|
@@ -5618,6 +5627,22 @@ const de_FailoverGlobalClusterResult = (output, context) => {
|
|
|
5618
5627
|
}
|
|
5619
5628
|
return contents;
|
|
5620
5629
|
};
|
|
5630
|
+
const de_FailoverState = (output, context) => {
|
|
5631
|
+
const contents = {};
|
|
5632
|
+
if (output[_St] != null) {
|
|
5633
|
+
contents[_St] = smithyClient.expectString(output[_St]);
|
|
5634
|
+
}
|
|
5635
|
+
if (output[_FDCA] != null) {
|
|
5636
|
+
contents[_FDCA] = smithyClient.expectString(output[_FDCA]);
|
|
5637
|
+
}
|
|
5638
|
+
if (output[_TDCA] != null) {
|
|
5639
|
+
contents[_TDCA] = smithyClient.expectString(output[_TDCA]);
|
|
5640
|
+
}
|
|
5641
|
+
if (output[_IDLA] != null) {
|
|
5642
|
+
contents[_IDLA] = smithyClient.parseBoolean(output[_IDLA]);
|
|
5643
|
+
}
|
|
5644
|
+
return contents;
|
|
5645
|
+
};
|
|
5621
5646
|
const de_GlobalCluster = (output, context) => {
|
|
5622
5647
|
const contents = {};
|
|
5623
5648
|
if (output[_GCI] != null) {
|
|
@@ -5653,6 +5678,15 @@ const de_GlobalCluster = (output, context) => {
|
|
|
5653
5678
|
else if (output[_GCM] != null && output[_GCM][_GCMl] != null) {
|
|
5654
5679
|
contents[_GCM] = de_GlobalClusterMemberList(smithyClient.getArrayIfSingleItem(output[_GCM][_GCMl]));
|
|
5655
5680
|
}
|
|
5681
|
+
if (output[_FS] != null) {
|
|
5682
|
+
contents[_FS] = de_FailoverState(output[_FS]);
|
|
5683
|
+
}
|
|
5684
|
+
if (String(output.TagList).trim() === "") {
|
|
5685
|
+
contents[_TL] = [];
|
|
5686
|
+
}
|
|
5687
|
+
else if (output[_TL] != null && output[_TL][_Ta] != null) {
|
|
5688
|
+
contents[_TL] = de_TagList(smithyClient.getArrayIfSingleItem(output[_TL][_Ta]));
|
|
5689
|
+
}
|
|
5656
5690
|
return contents;
|
|
5657
5691
|
};
|
|
5658
5692
|
const de_GlobalClusterAlreadyExistsFault = (output, context) => {
|
|
@@ -5683,6 +5717,9 @@ const de_GlobalClusterMember = (output, context) => {
|
|
|
5683
5717
|
if (output[_IW] != null) {
|
|
5684
5718
|
contents[_IW] = smithyClient.parseBoolean(output[_IW]);
|
|
5685
5719
|
}
|
|
5720
|
+
if (output[_SSy] != null) {
|
|
5721
|
+
contents[_SSy] = smithyClient.expectString(output[_SSy]);
|
|
5722
|
+
}
|
|
5686
5723
|
return contents;
|
|
5687
5724
|
};
|
|
5688
5725
|
const de_GlobalClusterMemberList = (output, context) => {
|
|
@@ -6570,8 +6607,10 @@ const _F = "Filters";
|
|
|
6570
6607
|
const _FAD = "ForcedApplyDate";
|
|
6571
6608
|
const _FDBC = "FailoverDBCluster";
|
|
6572
6609
|
const _FDBSI = "FinalDBSnapshotIdentifier";
|
|
6610
|
+
const _FDCA = "FromDbClusterArn";
|
|
6573
6611
|
const _FF = "ForceFailover";
|
|
6574
6612
|
const _FGC = "FailoverGlobalCluster";
|
|
6613
|
+
const _FS = "FailoverState";
|
|
6575
6614
|
const _GC = "GlobalCluster";
|
|
6576
6615
|
const _GCA = "GlobalClusterArn";
|
|
6577
6616
|
const _GCI = "GlobalClusterIdentifier";
|
|
@@ -6583,6 +6622,7 @@ const _HZI = "HostedZoneId";
|
|
|
6583
6622
|
const _I = "Iops";
|
|
6584
6623
|
const _ICT = "InstanceCreateTime";
|
|
6585
6624
|
const _ICW = "IsClusterWriter";
|
|
6625
|
+
const _IDLA = "IsDataLossAllowed";
|
|
6586
6626
|
const _IM = "IsModifiable";
|
|
6587
6627
|
const _IMVU = "IsMajorVersionUpgrade";
|
|
6588
6628
|
const _IOONAMT = "IOOptimizedNextAllowedModificationTime";
|
|
@@ -6696,6 +6736,7 @@ const _SN = "SubscriptionName";
|
|
|
6696
6736
|
const _SNT = "SupportedNetworkTypes";
|
|
6697
6737
|
const _SS = "SecretStatus";
|
|
6698
6738
|
const _SSu = "SubnetStatus";
|
|
6739
|
+
const _SSy = "SynchronizationStatus";
|
|
6699
6740
|
const _ST = "StorageType";
|
|
6700
6741
|
const _STA = "SnsTopicArn";
|
|
6701
6742
|
const _STn = "SnapshotType";
|
|
@@ -6713,6 +6754,7 @@ const _TDBCPGD = "TargetDBClusterParameterGroupDescription";
|
|
|
6713
6754
|
const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier";
|
|
6714
6755
|
const _TDBCSI = "TargetDBClusterSnapshotIdentifier";
|
|
6715
6756
|
const _TDBII = "TargetDBInstanceIdentifier";
|
|
6757
|
+
const _TDCA = "ToDbClusterArn";
|
|
6716
6758
|
const _TDCI = "TargetDbClusterIdentifier";
|
|
6717
6759
|
const _TK = "TagKeys";
|
|
6718
6760
|
const _TL = "TagList";
|
|
@@ -8057,7 +8099,9 @@ exports.DocDBServiceException = DocDBServiceException;
|
|
|
8057
8099
|
exports.EventSubscriptionQuotaExceededFault = EventSubscriptionQuotaExceededFault;
|
|
8058
8100
|
exports.FailoverDBClusterCommand = FailoverDBClusterCommand;
|
|
8059
8101
|
exports.FailoverGlobalClusterCommand = FailoverGlobalClusterCommand;
|
|
8102
|
+
exports.FailoverStatus = FailoverStatus;
|
|
8060
8103
|
exports.GlobalClusterAlreadyExistsFault = GlobalClusterAlreadyExistsFault;
|
|
8104
|
+
exports.GlobalClusterMemberSynchronizationStatus = GlobalClusterMemberSynchronizationStatus;
|
|
8061
8105
|
exports.GlobalClusterNotFoundFault = GlobalClusterNotFoundFault;
|
|
8062
8106
|
exports.GlobalClusterQuotaExceededFault = GlobalClusterQuotaExceededFault;
|
|
8063
8107
|
exports.InstanceQuotaExceededFault = InstanceQuotaExceededFault;
|
|
@@ -527,6 +527,15 @@ export class SubscriptionCategoryNotFoundFault extends __BaseException {
|
|
|
527
527
|
Object.setPrototypeOf(this, SubscriptionCategoryNotFoundFault.prototype);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
+
export const FailoverStatus = {
|
|
531
|
+
CANCELLING: "cancelling",
|
|
532
|
+
FAILING_OVER: "failing-over",
|
|
533
|
+
PENDING: "pending",
|
|
534
|
+
};
|
|
535
|
+
export const GlobalClusterMemberSynchronizationStatus = {
|
|
536
|
+
CONNECTED: "connected",
|
|
537
|
+
PENDING_RESYNC: "pending-resync",
|
|
538
|
+
};
|
|
530
539
|
export class GlobalClusterAlreadyExistsFault extends __BaseException {
|
|
531
540
|
name = "GlobalClusterAlreadyExistsFault";
|
|
532
541
|
$fault = "client";
|
|
@@ -4793,6 +4793,22 @@ const de_FailoverGlobalClusterResult = (output, context) => {
|
|
|
4793
4793
|
}
|
|
4794
4794
|
return contents;
|
|
4795
4795
|
};
|
|
4796
|
+
const de_FailoverState = (output, context) => {
|
|
4797
|
+
const contents = {};
|
|
4798
|
+
if (output[_St] != null) {
|
|
4799
|
+
contents[_St] = __expectString(output[_St]);
|
|
4800
|
+
}
|
|
4801
|
+
if (output[_FDCA] != null) {
|
|
4802
|
+
contents[_FDCA] = __expectString(output[_FDCA]);
|
|
4803
|
+
}
|
|
4804
|
+
if (output[_TDCA] != null) {
|
|
4805
|
+
contents[_TDCA] = __expectString(output[_TDCA]);
|
|
4806
|
+
}
|
|
4807
|
+
if (output[_IDLA] != null) {
|
|
4808
|
+
contents[_IDLA] = __parseBoolean(output[_IDLA]);
|
|
4809
|
+
}
|
|
4810
|
+
return contents;
|
|
4811
|
+
};
|
|
4796
4812
|
const de_GlobalCluster = (output, context) => {
|
|
4797
4813
|
const contents = {};
|
|
4798
4814
|
if (output[_GCI] != null) {
|
|
@@ -4828,6 +4844,15 @@ const de_GlobalCluster = (output, context) => {
|
|
|
4828
4844
|
else if (output[_GCM] != null && output[_GCM][_GCMl] != null) {
|
|
4829
4845
|
contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context);
|
|
4830
4846
|
}
|
|
4847
|
+
if (output[_FS] != null) {
|
|
4848
|
+
contents[_FS] = de_FailoverState(output[_FS], context);
|
|
4849
|
+
}
|
|
4850
|
+
if (String(output.TagList).trim() === "") {
|
|
4851
|
+
contents[_TL] = [];
|
|
4852
|
+
}
|
|
4853
|
+
else if (output[_TL] != null && output[_TL][_Ta] != null) {
|
|
4854
|
+
contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context);
|
|
4855
|
+
}
|
|
4831
4856
|
return contents;
|
|
4832
4857
|
};
|
|
4833
4858
|
const de_GlobalClusterAlreadyExistsFault = (output, context) => {
|
|
@@ -4858,6 +4883,9 @@ const de_GlobalClusterMember = (output, context) => {
|
|
|
4858
4883
|
if (output[_IW] != null) {
|
|
4859
4884
|
contents[_IW] = __parseBoolean(output[_IW]);
|
|
4860
4885
|
}
|
|
4886
|
+
if (output[_SSy] != null) {
|
|
4887
|
+
contents[_SSy] = __expectString(output[_SSy]);
|
|
4888
|
+
}
|
|
4861
4889
|
return contents;
|
|
4862
4890
|
};
|
|
4863
4891
|
const de_GlobalClusterMemberList = (output, context) => {
|
|
@@ -5749,8 +5777,10 @@ const _F = "Filters";
|
|
|
5749
5777
|
const _FAD = "ForcedApplyDate";
|
|
5750
5778
|
const _FDBC = "FailoverDBCluster";
|
|
5751
5779
|
const _FDBSI = "FinalDBSnapshotIdentifier";
|
|
5780
|
+
const _FDCA = "FromDbClusterArn";
|
|
5752
5781
|
const _FF = "ForceFailover";
|
|
5753
5782
|
const _FGC = "FailoverGlobalCluster";
|
|
5783
|
+
const _FS = "FailoverState";
|
|
5754
5784
|
const _GC = "GlobalCluster";
|
|
5755
5785
|
const _GCA = "GlobalClusterArn";
|
|
5756
5786
|
const _GCI = "GlobalClusterIdentifier";
|
|
@@ -5762,6 +5792,7 @@ const _HZI = "HostedZoneId";
|
|
|
5762
5792
|
const _I = "Iops";
|
|
5763
5793
|
const _ICT = "InstanceCreateTime";
|
|
5764
5794
|
const _ICW = "IsClusterWriter";
|
|
5795
|
+
const _IDLA = "IsDataLossAllowed";
|
|
5765
5796
|
const _IM = "IsModifiable";
|
|
5766
5797
|
const _IMVU = "IsMajorVersionUpgrade";
|
|
5767
5798
|
const _IOONAMT = "IOOptimizedNextAllowedModificationTime";
|
|
@@ -5875,6 +5906,7 @@ const _SN = "SubscriptionName";
|
|
|
5875
5906
|
const _SNT = "SupportedNetworkTypes";
|
|
5876
5907
|
const _SS = "SecretStatus";
|
|
5877
5908
|
const _SSu = "SubnetStatus";
|
|
5909
|
+
const _SSy = "SynchronizationStatus";
|
|
5878
5910
|
const _ST = "StorageType";
|
|
5879
5911
|
const _STA = "SnsTopicArn";
|
|
5880
5912
|
const _STn = "SnapshotType";
|
|
@@ -5892,6 +5924,7 @@ const _TDBCPGD = "TargetDBClusterParameterGroupDescription";
|
|
|
5892
5924
|
const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier";
|
|
5893
5925
|
const _TDBCSI = "TargetDBClusterSnapshotIdentifier";
|
|
5894
5926
|
const _TDBII = "TargetDBInstanceIdentifier";
|
|
5927
|
+
const _TDCA = "ToDbClusterArn";
|
|
5895
5928
|
const _TDCI = "TargetDbClusterIdentifier";
|
|
5896
5929
|
const _TK = "TagKeys";
|
|
5897
5930
|
const _TL = "TagList";
|
|
@@ -72,6 +72,19 @@ declare const CreateGlobalClusterCommand_base: {
|
|
|
72
72
|
* // "STRING_VALUE",
|
|
73
73
|
* // ],
|
|
74
74
|
* // IsWriter: true || false,
|
|
75
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
76
|
+
* // },
|
|
77
|
+
* // ],
|
|
78
|
+
* // FailoverState: { // FailoverState
|
|
79
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
80
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
81
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
82
|
+
* // IsDataLossAllowed: true || false,
|
|
83
|
+
* // },
|
|
84
|
+
* // TagList: [ // TagList
|
|
85
|
+
* // { // Tag
|
|
86
|
+
* // Key: "STRING_VALUE",
|
|
87
|
+
* // Value: "STRING_VALUE",
|
|
75
88
|
* // },
|
|
76
89
|
* // ],
|
|
77
90
|
* // },
|
|
@@ -62,6 +62,19 @@ declare const DeleteGlobalClusterCommand_base: {
|
|
|
62
62
|
* // "STRING_VALUE",
|
|
63
63
|
* // ],
|
|
64
64
|
* // IsWriter: true || false,
|
|
65
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // FailoverState: { // FailoverState
|
|
69
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
70
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
71
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
72
|
+
* // IsDataLossAllowed: true || false,
|
|
73
|
+
* // },
|
|
74
|
+
* // TagList: [ // TagList
|
|
75
|
+
* // { // Tag
|
|
76
|
+
* // Key: "STRING_VALUE",
|
|
77
|
+
* // Value: "STRING_VALUE",
|
|
65
78
|
* // },
|
|
66
79
|
* // ],
|
|
67
80
|
* // },
|
|
@@ -74,6 +74,19 @@ declare const DescribeGlobalClustersCommand_base: {
|
|
|
74
74
|
* // "STRING_VALUE",
|
|
75
75
|
* // ],
|
|
76
76
|
* // IsWriter: true || false,
|
|
77
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // FailoverState: { // FailoverState
|
|
81
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
82
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
83
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
84
|
+
* // IsDataLossAllowed: true || false,
|
|
85
|
+
* // },
|
|
86
|
+
* // TagList: [ // TagList
|
|
87
|
+
* // { // Tag
|
|
88
|
+
* // Key: "STRING_VALUE",
|
|
89
|
+
* // Value: "STRING_VALUE",
|
|
77
90
|
* // },
|
|
78
91
|
* // ],
|
|
79
92
|
* // },
|
|
@@ -65,6 +65,19 @@ declare const FailoverGlobalClusterCommand_base: {
|
|
|
65
65
|
* // "STRING_VALUE",
|
|
66
66
|
* // ],
|
|
67
67
|
* // IsWriter: true || false,
|
|
68
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // FailoverState: { // FailoverState
|
|
72
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
73
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
74
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
75
|
+
* // IsDataLossAllowed: true || false,
|
|
76
|
+
* // },
|
|
77
|
+
* // TagList: [ // TagList
|
|
78
|
+
* // { // Tag
|
|
79
|
+
* // Key: "STRING_VALUE",
|
|
80
|
+
* // Value: "STRING_VALUE",
|
|
68
81
|
* // },
|
|
69
82
|
* // ],
|
|
70
83
|
* // },
|
|
@@ -64,6 +64,19 @@ declare const ModifyGlobalClusterCommand_base: {
|
|
|
64
64
|
* // "STRING_VALUE",
|
|
65
65
|
* // ],
|
|
66
66
|
* // IsWriter: true || false,
|
|
67
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
68
|
+
* // },
|
|
69
|
+
* // ],
|
|
70
|
+
* // FailoverState: { // FailoverState
|
|
71
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
72
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
73
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
74
|
+
* // IsDataLossAllowed: true || false,
|
|
75
|
+
* // },
|
|
76
|
+
* // TagList: [ // TagList
|
|
77
|
+
* // { // Tag
|
|
78
|
+
* // Key: "STRING_VALUE",
|
|
79
|
+
* // Value: "STRING_VALUE",
|
|
67
80
|
* // },
|
|
68
81
|
* // ],
|
|
69
82
|
* // },
|
|
@@ -63,6 +63,19 @@ declare const RemoveFromGlobalClusterCommand_base: {
|
|
|
63
63
|
* // "STRING_VALUE",
|
|
64
64
|
* // ],
|
|
65
65
|
* // IsWriter: true || false,
|
|
66
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // FailoverState: { // FailoverState
|
|
70
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
71
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
72
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
73
|
+
* // IsDataLossAllowed: true || false,
|
|
74
|
+
* // },
|
|
75
|
+
* // TagList: [ // TagList
|
|
76
|
+
* // { // Tag
|
|
77
|
+
* // Key: "STRING_VALUE",
|
|
78
|
+
* // Value: "STRING_VALUE",
|
|
66
79
|
* // },
|
|
67
80
|
* // ],
|
|
68
81
|
* // },
|
|
@@ -60,6 +60,19 @@ declare const SwitchoverGlobalClusterCommand_base: {
|
|
|
60
60
|
* // "STRING_VALUE",
|
|
61
61
|
* // ],
|
|
62
62
|
* // IsWriter: true || false,
|
|
63
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // FailoverState: { // FailoverState
|
|
67
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
68
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
69
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
70
|
+
* // IsDataLossAllowed: true || false,
|
|
71
|
+
* // },
|
|
72
|
+
* // TagList: [ // TagList
|
|
73
|
+
* // { // Tag
|
|
74
|
+
* // Key: "STRING_VALUE",
|
|
75
|
+
* // Value: "STRING_VALUE",
|
|
63
76
|
* // },
|
|
64
77
|
* // ],
|
|
65
78
|
* // },
|
|
@@ -2581,6 +2581,74 @@ export interface CreateGlobalClusterMessage {
|
|
|
2581
2581
|
*/
|
|
2582
2582
|
StorageEncrypted?: boolean | undefined;
|
|
2583
2583
|
}
|
|
2584
|
+
/**
|
|
2585
|
+
* @public
|
|
2586
|
+
* @enum
|
|
2587
|
+
*/
|
|
2588
|
+
export declare const FailoverStatus: {
|
|
2589
|
+
readonly CANCELLING: "cancelling";
|
|
2590
|
+
readonly FAILING_OVER: "failing-over";
|
|
2591
|
+
readonly PENDING: "pending";
|
|
2592
|
+
};
|
|
2593
|
+
/**
|
|
2594
|
+
* @public
|
|
2595
|
+
*/
|
|
2596
|
+
export type FailoverStatus = (typeof FailoverStatus)[keyof typeof FailoverStatus];
|
|
2597
|
+
/**
|
|
2598
|
+
* <p>Contains the state of scheduled or in-process operations on an Amazon DocumentDB global cluster.
|
|
2599
|
+
* This data type is empty unless a switchover or failover operation is scheduled or is in progress on the global cluster.</p>
|
|
2600
|
+
* @public
|
|
2601
|
+
*/
|
|
2602
|
+
export interface FailoverState {
|
|
2603
|
+
/**
|
|
2604
|
+
* <p>The current status of the global cluster. Possible values are as follows:</p>
|
|
2605
|
+
* <ul>
|
|
2606
|
+
* <li>
|
|
2607
|
+
* <p>
|
|
2608
|
+
* <b>pending</b> – The service received a request to switch over or fail over the global cluster.
|
|
2609
|
+
* The global cluster's primary cluster and the specified secondary cluster are being verified before the operation starts.</p>
|
|
2610
|
+
* </li>
|
|
2611
|
+
* <li>
|
|
2612
|
+
* <p>
|
|
2613
|
+
* <b>failing-over</b> – The chosen secondary cluster is being promoted to become the new primary cluster to fail over the global cluster.</p>
|
|
2614
|
+
* </li>
|
|
2615
|
+
* <li>
|
|
2616
|
+
* <p>
|
|
2617
|
+
* <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>
|
|
2618
|
+
* </li>
|
|
2619
|
+
* </ul>
|
|
2620
|
+
* @public
|
|
2621
|
+
*/
|
|
2622
|
+
Status?: FailoverStatus | undefined;
|
|
2623
|
+
/**
|
|
2624
|
+
* <p>The Amazon Resource Name (ARN) of the Amazon DocumentDB cluster that is currently being demoted, and which is associated with this state.</p>
|
|
2625
|
+
* @public
|
|
2626
|
+
*/
|
|
2627
|
+
FromDbClusterArn?: string | undefined;
|
|
2628
|
+
/**
|
|
2629
|
+
* <p>The Amazon Resource Name (ARN) of the Amazon DocumentDB cluster that is currently being promoted, and which is associated with this state.</p>
|
|
2630
|
+
* @public
|
|
2631
|
+
*/
|
|
2632
|
+
ToDbClusterArn?: string | undefined;
|
|
2633
|
+
/**
|
|
2634
|
+
* <p>Indicates whether the operation is a global switchover or a global failover.
|
|
2635
|
+
* If data loss is allowed, then the operation is a global failover. Otherwise, it's a switchover.</p>
|
|
2636
|
+
* @public
|
|
2637
|
+
*/
|
|
2638
|
+
IsDataLossAllowed?: boolean | undefined;
|
|
2639
|
+
}
|
|
2640
|
+
/**
|
|
2641
|
+
* @public
|
|
2642
|
+
* @enum
|
|
2643
|
+
*/
|
|
2644
|
+
export declare const GlobalClusterMemberSynchronizationStatus: {
|
|
2645
|
+
readonly CONNECTED: "connected";
|
|
2646
|
+
readonly PENDING_RESYNC: "pending-resync";
|
|
2647
|
+
};
|
|
2648
|
+
/**
|
|
2649
|
+
* @public
|
|
2650
|
+
*/
|
|
2651
|
+
export type GlobalClusterMemberSynchronizationStatus = (typeof GlobalClusterMemberSynchronizationStatus)[keyof typeof GlobalClusterMemberSynchronizationStatus];
|
|
2584
2652
|
/**
|
|
2585
2653
|
* <p>A data structure with information about any primary and secondary clusters associated with an Amazon DocumentDB global clusters. </p>
|
|
2586
2654
|
* @public
|
|
@@ -2601,6 +2669,11 @@ export interface GlobalClusterMember {
|
|
|
2601
2669
|
* @public
|
|
2602
2670
|
*/
|
|
2603
2671
|
IsWriter?: boolean | undefined;
|
|
2672
|
+
/**
|
|
2673
|
+
* <p>The status of synchronization of each Amazon DocumentDB cluster in the global cluster.</p>
|
|
2674
|
+
* @public
|
|
2675
|
+
*/
|
|
2676
|
+
SynchronizationStatus?: GlobalClusterMemberSynchronizationStatus | undefined;
|
|
2604
2677
|
}
|
|
2605
2678
|
/**
|
|
2606
2679
|
* <p>A data type representing an Amazon DocumentDB global cluster.</p>
|
|
@@ -2658,6 +2731,17 @@ export interface GlobalCluster {
|
|
|
2658
2731
|
* @public
|
|
2659
2732
|
*/
|
|
2660
2733
|
GlobalClusterMembers?: GlobalClusterMember[] | undefined;
|
|
2734
|
+
/**
|
|
2735
|
+
* <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.
|
|
2736
|
+
* This object is empty unless the <code>SwitchoverGlobalCluster</code> or <code>FailoverGlobalCluster</code> operation was called on this global cluster.</p>
|
|
2737
|
+
* @public
|
|
2738
|
+
*/
|
|
2739
|
+
FailoverState?: FailoverState | undefined;
|
|
2740
|
+
/**
|
|
2741
|
+
* <p>A list of global cluster tags.</p>
|
|
2742
|
+
* @public
|
|
2743
|
+
*/
|
|
2744
|
+
TagList?: Tag[] | undefined;
|
|
2661
2745
|
}
|
|
2662
2746
|
/**
|
|
2663
2747
|
* @public
|
|
@@ -686,10 +686,30 @@ export interface CreateGlobalClusterMessage {
|
|
|
686
686
|
DatabaseName?: string | undefined;
|
|
687
687
|
StorageEncrypted?: boolean | undefined;
|
|
688
688
|
}
|
|
689
|
+
export declare const FailoverStatus: {
|
|
690
|
+
readonly CANCELLING: "cancelling";
|
|
691
|
+
readonly FAILING_OVER: "failing-over";
|
|
692
|
+
readonly PENDING: "pending";
|
|
693
|
+
};
|
|
694
|
+
export type FailoverStatus =
|
|
695
|
+
(typeof FailoverStatus)[keyof typeof FailoverStatus];
|
|
696
|
+
export interface FailoverState {
|
|
697
|
+
Status?: FailoverStatus | undefined;
|
|
698
|
+
FromDbClusterArn?: string | undefined;
|
|
699
|
+
ToDbClusterArn?: string | undefined;
|
|
700
|
+
IsDataLossAllowed?: boolean | undefined;
|
|
701
|
+
}
|
|
702
|
+
export declare const GlobalClusterMemberSynchronizationStatus: {
|
|
703
|
+
readonly CONNECTED: "connected";
|
|
704
|
+
readonly PENDING_RESYNC: "pending-resync";
|
|
705
|
+
};
|
|
706
|
+
export type GlobalClusterMemberSynchronizationStatus =
|
|
707
|
+
(typeof GlobalClusterMemberSynchronizationStatus)[keyof typeof GlobalClusterMemberSynchronizationStatus];
|
|
689
708
|
export interface GlobalClusterMember {
|
|
690
709
|
DBClusterArn?: string | undefined;
|
|
691
710
|
Readers?: string[] | undefined;
|
|
692
711
|
IsWriter?: boolean | undefined;
|
|
712
|
+
SynchronizationStatus?: GlobalClusterMemberSynchronizationStatus | undefined;
|
|
693
713
|
}
|
|
694
714
|
export interface GlobalCluster {
|
|
695
715
|
GlobalClusterIdentifier?: string | undefined;
|
|
@@ -702,6 +722,8 @@ export interface GlobalCluster {
|
|
|
702
722
|
StorageEncrypted?: boolean | undefined;
|
|
703
723
|
DeletionProtection?: boolean | undefined;
|
|
704
724
|
GlobalClusterMembers?: GlobalClusterMember[] | undefined;
|
|
725
|
+
FailoverState?: FailoverState | undefined;
|
|
726
|
+
TagList?: Tag[] | undefined;
|
|
705
727
|
}
|
|
706
728
|
export interface CreateGlobalClusterResult {
|
|
707
729
|
GlobalCluster?: GlobalCluster | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-docdb",
|
|
3
3
|
"description": "AWS SDK for JavaScript Docdb Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.921.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-docdb",
|
|
@@ -20,44 +20,44 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-sdk-rds": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
-
"@smithy/core": "^3.17.
|
|
37
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
38
|
-
"@smithy/hash-node": "^4.2.
|
|
39
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
40
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
-
"@smithy/middleware-serde": "^4.2.
|
|
44
|
-
"@smithy/middleware-stack": "^4.2.
|
|
45
|
-
"@smithy/node-config-provider": "^4.3.
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
47
|
-
"@smithy/protocol-http": "^5.3.
|
|
48
|
-
"@smithy/smithy-client": "^4.9.
|
|
49
|
-
"@smithy/types": "^4.8.
|
|
50
|
-
"@smithy/url-parser": "^4.2.
|
|
23
|
+
"@aws-sdk/core": "3.921.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.921.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.921.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.921.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.921.0",
|
|
28
|
+
"@aws-sdk/middleware-sdk-rds": "3.921.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.921.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.921.0",
|
|
31
|
+
"@aws-sdk/types": "3.921.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.921.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.921.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.921.0",
|
|
35
|
+
"@smithy/config-resolver": "^4.4.1",
|
|
36
|
+
"@smithy/core": "^3.17.2",
|
|
37
|
+
"@smithy/fetch-http-handler": "^5.3.5",
|
|
38
|
+
"@smithy/hash-node": "^4.2.4",
|
|
39
|
+
"@smithy/invalid-dependency": "^4.2.4",
|
|
40
|
+
"@smithy/middleware-content-length": "^4.2.4",
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.3.6",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.6",
|
|
43
|
+
"@smithy/middleware-serde": "^4.2.4",
|
|
44
|
+
"@smithy/middleware-stack": "^4.2.4",
|
|
45
|
+
"@smithy/node-config-provider": "^4.3.4",
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.4",
|
|
47
|
+
"@smithy/protocol-http": "^5.3.4",
|
|
48
|
+
"@smithy/smithy-client": "^4.9.2",
|
|
49
|
+
"@smithy/types": "^4.8.1",
|
|
50
|
+
"@smithy/url-parser": "^4.2.4",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
-
"@smithy/util-endpoints": "^3.2.
|
|
57
|
-
"@smithy/util-middleware": "^4.2.
|
|
58
|
-
"@smithy/util-retry": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.5",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.7",
|
|
56
|
+
"@smithy/util-endpoints": "^3.2.4",
|
|
57
|
+
"@smithy/util-middleware": "^4.2.4",
|
|
58
|
+
"@smithy/util-retry": "^4.2.4",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.0",
|
|
60
|
-
"@smithy/util-waiter": "^4.2.
|
|
60
|
+
"@smithy/util-waiter": "^4.2.4",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|