@aws-sdk/client-docdb 3.631.0 → 3.632.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/README.md +8 -0
- package/dist-cjs/index.js +68 -0
- package/dist-es/DocDB.js +2 -0
- package/dist-es/commands/FailoverGlobalClusterCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +49 -0
- package/dist-types/DocDB.d.ts +7 -0
- package/dist-types/DocDBClient.d.ts +3 -2
- package/dist-types/commands/FailoverGlobalClusterCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +73 -0
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/DocDB.d.ts +17 -0
- package/dist-types/ts3.4/DocDBClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/FailoverGlobalClusterCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -492,6 +492,14 @@ FailoverDBCluster
|
|
|
492
492
|
|
|
493
493
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb/command/FailoverDBClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/FailoverDBClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/FailoverDBClusterCommandOutput/)
|
|
494
494
|
|
|
495
|
+
</details>
|
|
496
|
+
<details>
|
|
497
|
+
<summary>
|
|
498
|
+
FailoverGlobalCluster
|
|
499
|
+
</summary>
|
|
500
|
+
|
|
501
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb/command/FailoverGlobalClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/FailoverGlobalClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/FailoverGlobalClusterCommandOutput/)
|
|
502
|
+
|
|
495
503
|
</details>
|
|
496
504
|
<details>
|
|
497
505
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __export(src_exports, {
|
|
|
84
84
|
DocDBServiceException: () => DocDBServiceException,
|
|
85
85
|
EventSubscriptionQuotaExceededFault: () => EventSubscriptionQuotaExceededFault,
|
|
86
86
|
FailoverDBClusterCommand: () => FailoverDBClusterCommand,
|
|
87
|
+
FailoverGlobalClusterCommand: () => FailoverGlobalClusterCommand,
|
|
87
88
|
GlobalClusterAlreadyExistsFault: () => GlobalClusterAlreadyExistsFault,
|
|
88
89
|
GlobalClusterNotFoundFault: () => GlobalClusterNotFoundFault,
|
|
89
90
|
GlobalClusterQuotaExceededFault: () => GlobalClusterQuotaExceededFault,
|
|
@@ -1666,6 +1667,16 @@ var se_FailoverDBClusterCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1666
1667
|
});
|
|
1667
1668
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1668
1669
|
}, "se_FailoverDBClusterCommand");
|
|
1670
|
+
var se_FailoverGlobalClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1671
|
+
const headers = SHARED_HEADERS;
|
|
1672
|
+
let body;
|
|
1673
|
+
body = buildFormUrlencodedString({
|
|
1674
|
+
...se_FailoverGlobalClusterMessage(input, context),
|
|
1675
|
+
[_A]: _FGC,
|
|
1676
|
+
[_V]: _
|
|
1677
|
+
});
|
|
1678
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1679
|
+
}, "se_FailoverGlobalClusterCommand");
|
|
1669
1680
|
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1670
1681
|
const headers = SHARED_HEADERS;
|
|
1671
1682
|
let body;
|
|
@@ -2308,6 +2319,19 @@ var de_FailoverDBClusterCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2308
2319
|
};
|
|
2309
2320
|
return response;
|
|
2310
2321
|
}, "de_FailoverDBClusterCommand");
|
|
2322
|
+
var de_FailoverGlobalClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2323
|
+
if (output.statusCode >= 300) {
|
|
2324
|
+
return de_CommandError(output, context);
|
|
2325
|
+
}
|
|
2326
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
2327
|
+
let contents = {};
|
|
2328
|
+
contents = de_FailoverGlobalClusterResult(data.FailoverGlobalClusterResult, context);
|
|
2329
|
+
const response = {
|
|
2330
|
+
$metadata: deserializeMetadata(output),
|
|
2331
|
+
...contents
|
|
2332
|
+
};
|
|
2333
|
+
return response;
|
|
2334
|
+
}, "de_FailoverGlobalClusterCommand");
|
|
2311
2335
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2312
2336
|
if (output.statusCode >= 300) {
|
|
2313
2337
|
return de_CommandError(output, context);
|
|
@@ -4183,6 +4207,22 @@ var se_FailoverDBClusterMessage = /* @__PURE__ */ __name((input, context) => {
|
|
|
4183
4207
|
}
|
|
4184
4208
|
return entries;
|
|
4185
4209
|
}, "se_FailoverDBClusterMessage");
|
|
4210
|
+
var se_FailoverGlobalClusterMessage = /* @__PURE__ */ __name((input, context) => {
|
|
4211
|
+
const entries = {};
|
|
4212
|
+
if (input[_GCI] != null) {
|
|
4213
|
+
entries[_GCI] = input[_GCI];
|
|
4214
|
+
}
|
|
4215
|
+
if (input[_TDCI] != null) {
|
|
4216
|
+
entries[_TDCI] = input[_TDCI];
|
|
4217
|
+
}
|
|
4218
|
+
if (input[_ADL] != null) {
|
|
4219
|
+
entries[_ADL] = input[_ADL];
|
|
4220
|
+
}
|
|
4221
|
+
if (input[_Sw] != null) {
|
|
4222
|
+
entries[_Sw] = input[_Sw];
|
|
4223
|
+
}
|
|
4224
|
+
return entries;
|
|
4225
|
+
}, "se_FailoverGlobalClusterMessage");
|
|
4186
4226
|
var se_Filter = /* @__PURE__ */ __name((input, context) => {
|
|
4187
4227
|
var _a;
|
|
4188
4228
|
const entries = {};
|
|
@@ -5911,6 +5951,13 @@ var de_FailoverDBClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
|
5911
5951
|
}
|
|
5912
5952
|
return contents;
|
|
5913
5953
|
}, "de_FailoverDBClusterResult");
|
|
5954
|
+
var de_FailoverGlobalClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
5955
|
+
const contents = {};
|
|
5956
|
+
if (output[_GC] != null) {
|
|
5957
|
+
contents[_GC] = de_GlobalCluster(output[_GC], context);
|
|
5958
|
+
}
|
|
5959
|
+
return contents;
|
|
5960
|
+
}, "de_FailoverGlobalClusterResult");
|
|
5914
5961
|
var de_GlobalCluster = /* @__PURE__ */ __name((output, context) => {
|
|
5915
5962
|
const contents = {};
|
|
5916
5963
|
if (output[_GCI] != null) {
|
|
@@ -6652,6 +6699,7 @@ var _ = "2014-10-31";
|
|
|
6652
6699
|
var _A = "Action";
|
|
6653
6700
|
var _AA = "ApplyAction";
|
|
6654
6701
|
var _AAAD = "AutoAppliedAfterDate";
|
|
6702
|
+
var _ADL = "AllowDataLoss";
|
|
6655
6703
|
var _AI = "ApplyImmediately";
|
|
6656
6704
|
var _AM = "ApplyMethod";
|
|
6657
6705
|
var _AMVU = "AutoMinorVersionUpgrade";
|
|
@@ -6794,6 +6842,7 @@ var _FAD = "ForcedApplyDate";
|
|
|
6794
6842
|
var _FDBC = "FailoverDBCluster";
|
|
6795
6843
|
var _FDBSI = "FinalDBSnapshotIdentifier";
|
|
6796
6844
|
var _FF = "ForceFailover";
|
|
6845
|
+
var _FGC = "FailoverGlobalCluster";
|
|
6797
6846
|
var _GC = "GlobalCluster";
|
|
6798
6847
|
var _GCA = "GlobalClusterArn";
|
|
6799
6848
|
var _GCI = "GlobalClusterIdentifier";
|
|
@@ -6916,6 +6965,7 @@ var _STta = "StatusType";
|
|
|
6916
6965
|
var _St = "Status";
|
|
6917
6966
|
var _Su = "Subnets";
|
|
6918
6967
|
var _Sub = "Subnet";
|
|
6968
|
+
var _Sw = "Switchover";
|
|
6919
6969
|
var _T = "Tags";
|
|
6920
6970
|
var _TDBCPGD = "TargetDBClusterParameterGroupDescription";
|
|
6921
6971
|
var _TDBCPGI = "TargetDBClusterParameterGroupIdentifier";
|
|
@@ -7530,6 +7580,22 @@ var _FailoverDBClusterCommand = class _FailoverDBClusterCommand extends import_s
|
|
|
7530
7580
|
__name(_FailoverDBClusterCommand, "FailoverDBClusterCommand");
|
|
7531
7581
|
var FailoverDBClusterCommand = _FailoverDBClusterCommand;
|
|
7532
7582
|
|
|
7583
|
+
// src/commands/FailoverGlobalClusterCommand.ts
|
|
7584
|
+
|
|
7585
|
+
|
|
7586
|
+
|
|
7587
|
+
var _FailoverGlobalClusterCommand = class _FailoverGlobalClusterCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
7588
|
+
...commonParams
|
|
7589
|
+
}).m(function(Command, cs, config, o) {
|
|
7590
|
+
return [
|
|
7591
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
7592
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
7593
|
+
];
|
|
7594
|
+
}).s("AmazonRDSv19", "FailoverGlobalCluster", {}).n("DocDBClient", "FailoverGlobalClusterCommand").f(void 0, void 0).ser(se_FailoverGlobalClusterCommand).de(de_FailoverGlobalClusterCommand).build() {
|
|
7595
|
+
};
|
|
7596
|
+
__name(_FailoverGlobalClusterCommand, "FailoverGlobalClusterCommand");
|
|
7597
|
+
var FailoverGlobalClusterCommand = _FailoverGlobalClusterCommand;
|
|
7598
|
+
|
|
7533
7599
|
// src/commands/ListTagsForResourceCommand.ts
|
|
7534
7600
|
|
|
7535
7601
|
|
|
@@ -7856,6 +7922,7 @@ var commands = {
|
|
|
7856
7922
|
DescribeOrderableDBInstanceOptionsCommand,
|
|
7857
7923
|
DescribePendingMaintenanceActionsCommand,
|
|
7858
7924
|
FailoverDBClusterCommand,
|
|
7925
|
+
FailoverGlobalClusterCommand,
|
|
7859
7926
|
ListTagsForResourceCommand,
|
|
7860
7927
|
ModifyDBClusterCommand,
|
|
7861
7928
|
ModifyDBClusterParameterGroupCommand,
|
|
@@ -8192,6 +8259,7 @@ var waitUntilDBInstanceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
8192
8259
|
DescribeOrderableDBInstanceOptionsCommand,
|
|
8193
8260
|
DescribePendingMaintenanceActionsCommand,
|
|
8194
8261
|
FailoverDBClusterCommand,
|
|
8262
|
+
FailoverGlobalClusterCommand,
|
|
8195
8263
|
ListTagsForResourceCommand,
|
|
8196
8264
|
ModifyDBClusterCommand,
|
|
8197
8265
|
ModifyDBClusterParameterGroupCommand,
|
package/dist-es/DocDB.js
CHANGED
|
@@ -35,6 +35,7 @@ import { DescribeGlobalClustersCommand, } from "./commands/DescribeGlobalCluster
|
|
|
35
35
|
import { DescribeOrderableDBInstanceOptionsCommand, } from "./commands/DescribeOrderableDBInstanceOptionsCommand";
|
|
36
36
|
import { DescribePendingMaintenanceActionsCommand, } from "./commands/DescribePendingMaintenanceActionsCommand";
|
|
37
37
|
import { FailoverDBClusterCommand, } from "./commands/FailoverDBClusterCommand";
|
|
38
|
+
import { FailoverGlobalClusterCommand, } from "./commands/FailoverGlobalClusterCommand";
|
|
38
39
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
39
40
|
import { ModifyDBClusterCommand, } from "./commands/ModifyDBClusterCommand";
|
|
40
41
|
import { ModifyDBClusterParameterGroupCommand, } from "./commands/ModifyDBClusterParameterGroupCommand";
|
|
@@ -91,6 +92,7 @@ const commands = {
|
|
|
91
92
|
DescribeOrderableDBInstanceOptionsCommand,
|
|
92
93
|
DescribePendingMaintenanceActionsCommand,
|
|
93
94
|
FailoverDBClusterCommand,
|
|
95
|
+
FailoverGlobalClusterCommand,
|
|
94
96
|
ListTagsForResourceCommand,
|
|
95
97
|
ModifyDBClusterCommand,
|
|
96
98
|
ModifyDBClusterParameterGroupCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_FailoverGlobalClusterCommand, se_FailoverGlobalClusterCommand } from "../protocols/Aws_query";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class FailoverGlobalClusterCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonRDSv19", "FailoverGlobalCluster", {})
|
|
19
|
+
.n("DocDBClient", "FailoverGlobalClusterCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_FailoverGlobalClusterCommand)
|
|
22
|
+
.de(de_FailoverGlobalClusterCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -34,6 +34,7 @@ export * from "./DescribeGlobalClustersCommand";
|
|
|
34
34
|
export * from "./DescribeOrderableDBInstanceOptionsCommand";
|
|
35
35
|
export * from "./DescribePendingMaintenanceActionsCommand";
|
|
36
36
|
export * from "./FailoverDBClusterCommand";
|
|
37
|
+
export * from "./FailoverGlobalClusterCommand";
|
|
37
38
|
export * from "./ListTagsForResourceCommand";
|
|
38
39
|
export * from "./ModifyDBClusterCommand";
|
|
39
40
|
export * from "./ModifyDBClusterParameterGroupCommand";
|
|
@@ -363,6 +363,16 @@ export const se_FailoverDBClusterCommand = async (input, context) => {
|
|
|
363
363
|
});
|
|
364
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
365
|
};
|
|
366
|
+
export const se_FailoverGlobalClusterCommand = async (input, context) => {
|
|
367
|
+
const headers = SHARED_HEADERS;
|
|
368
|
+
let body;
|
|
369
|
+
body = buildFormUrlencodedString({
|
|
370
|
+
...se_FailoverGlobalClusterMessage(input, context),
|
|
371
|
+
[_A]: _FGC,
|
|
372
|
+
[_V]: _,
|
|
373
|
+
});
|
|
374
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
|
+
};
|
|
366
376
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
367
377
|
const headers = SHARED_HEADERS;
|
|
368
378
|
let body;
|
|
@@ -1002,6 +1012,19 @@ export const de_FailoverDBClusterCommand = async (output, context) => {
|
|
|
1002
1012
|
};
|
|
1003
1013
|
return response;
|
|
1004
1014
|
};
|
|
1015
|
+
export const de_FailoverGlobalClusterCommand = async (output, context) => {
|
|
1016
|
+
if (output.statusCode >= 300) {
|
|
1017
|
+
return de_CommandError(output, context);
|
|
1018
|
+
}
|
|
1019
|
+
const data = await parseBody(output.body, context);
|
|
1020
|
+
let contents = {};
|
|
1021
|
+
contents = de_FailoverGlobalClusterResult(data.FailoverGlobalClusterResult, context);
|
|
1022
|
+
const response = {
|
|
1023
|
+
$metadata: deserializeMetadata(output),
|
|
1024
|
+
...contents,
|
|
1025
|
+
};
|
|
1026
|
+
return response;
|
|
1027
|
+
};
|
|
1005
1028
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1006
1029
|
if (output.statusCode >= 300) {
|
|
1007
1030
|
return de_CommandError(output, context);
|
|
@@ -2849,6 +2872,22 @@ const se_FailoverDBClusterMessage = (input, context) => {
|
|
|
2849
2872
|
}
|
|
2850
2873
|
return entries;
|
|
2851
2874
|
};
|
|
2875
|
+
const se_FailoverGlobalClusterMessage = (input, context) => {
|
|
2876
|
+
const entries = {};
|
|
2877
|
+
if (input[_GCI] != null) {
|
|
2878
|
+
entries[_GCI] = input[_GCI];
|
|
2879
|
+
}
|
|
2880
|
+
if (input[_TDCI] != null) {
|
|
2881
|
+
entries[_TDCI] = input[_TDCI];
|
|
2882
|
+
}
|
|
2883
|
+
if (input[_ADL] != null) {
|
|
2884
|
+
entries[_ADL] = input[_ADL];
|
|
2885
|
+
}
|
|
2886
|
+
if (input[_Sw] != null) {
|
|
2887
|
+
entries[_Sw] = input[_Sw];
|
|
2888
|
+
}
|
|
2889
|
+
return entries;
|
|
2890
|
+
};
|
|
2852
2891
|
const se_Filter = (input, context) => {
|
|
2853
2892
|
const entries = {};
|
|
2854
2893
|
if (input[_N] != null) {
|
|
@@ -4636,6 +4675,13 @@ const de_FailoverDBClusterResult = (output, context) => {
|
|
|
4636
4675
|
}
|
|
4637
4676
|
return contents;
|
|
4638
4677
|
};
|
|
4678
|
+
const de_FailoverGlobalClusterResult = (output, context) => {
|
|
4679
|
+
const contents = {};
|
|
4680
|
+
if (output[_GC] != null) {
|
|
4681
|
+
contents[_GC] = de_GlobalCluster(output[_GC], context);
|
|
4682
|
+
}
|
|
4683
|
+
return contents;
|
|
4684
|
+
};
|
|
4639
4685
|
const de_GlobalCluster = (output, context) => {
|
|
4640
4686
|
const contents = {};
|
|
4641
4687
|
if (output[_GCI] != null) {
|
|
@@ -5416,6 +5462,7 @@ const _ = "2014-10-31";
|
|
|
5416
5462
|
const _A = "Action";
|
|
5417
5463
|
const _AA = "ApplyAction";
|
|
5418
5464
|
const _AAAD = "AutoAppliedAfterDate";
|
|
5465
|
+
const _ADL = "AllowDataLoss";
|
|
5419
5466
|
const _AI = "ApplyImmediately";
|
|
5420
5467
|
const _AM = "ApplyMethod";
|
|
5421
5468
|
const _AMVU = "AutoMinorVersionUpgrade";
|
|
@@ -5558,6 +5605,7 @@ const _FAD = "ForcedApplyDate";
|
|
|
5558
5605
|
const _FDBC = "FailoverDBCluster";
|
|
5559
5606
|
const _FDBSI = "FinalDBSnapshotIdentifier";
|
|
5560
5607
|
const _FF = "ForceFailover";
|
|
5608
|
+
const _FGC = "FailoverGlobalCluster";
|
|
5561
5609
|
const _GC = "GlobalCluster";
|
|
5562
5610
|
const _GCA = "GlobalClusterArn";
|
|
5563
5611
|
const _GCI = "GlobalClusterIdentifier";
|
|
@@ -5680,6 +5728,7 @@ const _STta = "StatusType";
|
|
|
5680
5728
|
const _St = "Status";
|
|
5681
5729
|
const _Su = "Subnets";
|
|
5682
5730
|
const _Sub = "Subnet";
|
|
5731
|
+
const _Sw = "Switchover";
|
|
5683
5732
|
const _T = "Tags";
|
|
5684
5733
|
const _TDBCPGD = "TargetDBClusterParameterGroupDescription";
|
|
5685
5734
|
const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier";
|
package/dist-types/DocDB.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { DescribeGlobalClustersCommandInput, DescribeGlobalClustersCommandOutput
|
|
|
35
35
|
import { DescribeOrderableDBInstanceOptionsCommandInput, DescribeOrderableDBInstanceOptionsCommandOutput } from "./commands/DescribeOrderableDBInstanceOptionsCommand";
|
|
36
36
|
import { DescribePendingMaintenanceActionsCommandInput, DescribePendingMaintenanceActionsCommandOutput } from "./commands/DescribePendingMaintenanceActionsCommand";
|
|
37
37
|
import { FailoverDBClusterCommandInput, FailoverDBClusterCommandOutput } from "./commands/FailoverDBClusterCommand";
|
|
38
|
+
import { FailoverGlobalClusterCommandInput, FailoverGlobalClusterCommandOutput } from "./commands/FailoverGlobalClusterCommand";
|
|
38
39
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
39
40
|
import { ModifyDBClusterCommandInput, ModifyDBClusterCommandOutput } from "./commands/ModifyDBClusterCommand";
|
|
40
41
|
import { ModifyDBClusterParameterGroupCommandInput, ModifyDBClusterParameterGroupCommandOutput } from "./commands/ModifyDBClusterParameterGroupCommand";
|
|
@@ -284,6 +285,12 @@ export interface DocDB {
|
|
|
284
285
|
failoverDBCluster(args: FailoverDBClusterCommandInput, options?: __HttpHandlerOptions): Promise<FailoverDBClusterCommandOutput>;
|
|
285
286
|
failoverDBCluster(args: FailoverDBClusterCommandInput, cb: (err: any, data?: FailoverDBClusterCommandOutput) => void): void;
|
|
286
287
|
failoverDBCluster(args: FailoverDBClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: FailoverDBClusterCommandOutput) => void): void;
|
|
288
|
+
/**
|
|
289
|
+
* @see {@link FailoverGlobalClusterCommand}
|
|
290
|
+
*/
|
|
291
|
+
failoverGlobalCluster(args: FailoverGlobalClusterCommandInput, options?: __HttpHandlerOptions): Promise<FailoverGlobalClusterCommandOutput>;
|
|
292
|
+
failoverGlobalCluster(args: FailoverGlobalClusterCommandInput, cb: (err: any, data?: FailoverGlobalClusterCommandOutput) => void): void;
|
|
293
|
+
failoverGlobalCluster(args: FailoverGlobalClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: FailoverGlobalClusterCommandOutput) => void): void;
|
|
287
294
|
/**
|
|
288
295
|
* @see {@link ListTagsForResourceCommand}
|
|
289
296
|
*/
|
|
@@ -43,6 +43,7 @@ import { DescribeGlobalClustersCommandInput, DescribeGlobalClustersCommandOutput
|
|
|
43
43
|
import { DescribeOrderableDBInstanceOptionsCommandInput, DescribeOrderableDBInstanceOptionsCommandOutput } from "./commands/DescribeOrderableDBInstanceOptionsCommand";
|
|
44
44
|
import { DescribePendingMaintenanceActionsCommandInput, DescribePendingMaintenanceActionsCommandOutput } from "./commands/DescribePendingMaintenanceActionsCommand";
|
|
45
45
|
import { FailoverDBClusterCommandInput, FailoverDBClusterCommandOutput } from "./commands/FailoverDBClusterCommand";
|
|
46
|
+
import { FailoverGlobalClusterCommandInput, FailoverGlobalClusterCommandOutput } from "./commands/FailoverGlobalClusterCommand";
|
|
46
47
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
47
48
|
import { ModifyDBClusterCommandInput, ModifyDBClusterCommandOutput } from "./commands/ModifyDBClusterCommand";
|
|
48
49
|
import { ModifyDBClusterParameterGroupCommandInput, ModifyDBClusterParameterGroupCommandOutput } from "./commands/ModifyDBClusterParameterGroupCommand";
|
|
@@ -67,11 +68,11 @@ export { __Client };
|
|
|
67
68
|
/**
|
|
68
69
|
* @public
|
|
69
70
|
*/
|
|
70
|
-
export type ServiceInputTypes = AddSourceIdentifierToSubscriptionCommandInput | AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | CopyDBClusterParameterGroupCommandInput | CopyDBClusterSnapshotCommandInput | CreateDBClusterCommandInput | CreateDBClusterParameterGroupCommandInput | CreateDBClusterSnapshotCommandInput | CreateDBInstanceCommandInput | CreateDBSubnetGroupCommandInput | CreateEventSubscriptionCommandInput | CreateGlobalClusterCommandInput | DeleteDBClusterCommandInput | DeleteDBClusterParameterGroupCommandInput | DeleteDBClusterSnapshotCommandInput | DeleteDBInstanceCommandInput | DeleteDBSubnetGroupCommandInput | DeleteEventSubscriptionCommandInput | DeleteGlobalClusterCommandInput | DescribeCertificatesCommandInput | DescribeDBClusterParameterGroupsCommandInput | DescribeDBClusterParametersCommandInput | DescribeDBClusterSnapshotAttributesCommandInput | DescribeDBClusterSnapshotsCommandInput | DescribeDBClustersCommandInput | DescribeDBEngineVersionsCommandInput | DescribeDBInstancesCommandInput | DescribeDBSubnetGroupsCommandInput | DescribeEngineDefaultClusterParametersCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeGlobalClustersCommandInput | DescribeOrderableDBInstanceOptionsCommandInput | DescribePendingMaintenanceActionsCommandInput | FailoverDBClusterCommandInput | ListTagsForResourceCommandInput | ModifyDBClusterCommandInput | ModifyDBClusterParameterGroupCommandInput | ModifyDBClusterSnapshotAttributeCommandInput | ModifyDBInstanceCommandInput | ModifyDBSubnetGroupCommandInput | ModifyEventSubscriptionCommandInput | ModifyGlobalClusterCommandInput | RebootDBInstanceCommandInput | RemoveFromGlobalClusterCommandInput | RemoveSourceIdentifierFromSubscriptionCommandInput | RemoveTagsFromResourceCommandInput | ResetDBClusterParameterGroupCommandInput | RestoreDBClusterFromSnapshotCommandInput | RestoreDBClusterToPointInTimeCommandInput | StartDBClusterCommandInput | StopDBClusterCommandInput | SwitchoverGlobalClusterCommandInput;
|
|
71
|
+
export type ServiceInputTypes = AddSourceIdentifierToSubscriptionCommandInput | AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | CopyDBClusterParameterGroupCommandInput | CopyDBClusterSnapshotCommandInput | CreateDBClusterCommandInput | CreateDBClusterParameterGroupCommandInput | CreateDBClusterSnapshotCommandInput | CreateDBInstanceCommandInput | CreateDBSubnetGroupCommandInput | CreateEventSubscriptionCommandInput | CreateGlobalClusterCommandInput | DeleteDBClusterCommandInput | DeleteDBClusterParameterGroupCommandInput | DeleteDBClusterSnapshotCommandInput | DeleteDBInstanceCommandInput | DeleteDBSubnetGroupCommandInput | DeleteEventSubscriptionCommandInput | DeleteGlobalClusterCommandInput | DescribeCertificatesCommandInput | DescribeDBClusterParameterGroupsCommandInput | DescribeDBClusterParametersCommandInput | DescribeDBClusterSnapshotAttributesCommandInput | DescribeDBClusterSnapshotsCommandInput | DescribeDBClustersCommandInput | DescribeDBEngineVersionsCommandInput | DescribeDBInstancesCommandInput | DescribeDBSubnetGroupsCommandInput | DescribeEngineDefaultClusterParametersCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeGlobalClustersCommandInput | DescribeOrderableDBInstanceOptionsCommandInput | DescribePendingMaintenanceActionsCommandInput | FailoverDBClusterCommandInput | FailoverGlobalClusterCommandInput | ListTagsForResourceCommandInput | ModifyDBClusterCommandInput | ModifyDBClusterParameterGroupCommandInput | ModifyDBClusterSnapshotAttributeCommandInput | ModifyDBInstanceCommandInput | ModifyDBSubnetGroupCommandInput | ModifyEventSubscriptionCommandInput | ModifyGlobalClusterCommandInput | RebootDBInstanceCommandInput | RemoveFromGlobalClusterCommandInput | RemoveSourceIdentifierFromSubscriptionCommandInput | RemoveTagsFromResourceCommandInput | ResetDBClusterParameterGroupCommandInput | RestoreDBClusterFromSnapshotCommandInput | RestoreDBClusterToPointInTimeCommandInput | StartDBClusterCommandInput | StopDBClusterCommandInput | SwitchoverGlobalClusterCommandInput;
|
|
71
72
|
/**
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
|
-
export type ServiceOutputTypes = AddSourceIdentifierToSubscriptionCommandOutput | AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | CopyDBClusterParameterGroupCommandOutput | CopyDBClusterSnapshotCommandOutput | CreateDBClusterCommandOutput | CreateDBClusterParameterGroupCommandOutput | CreateDBClusterSnapshotCommandOutput | CreateDBInstanceCommandOutput | CreateDBSubnetGroupCommandOutput | CreateEventSubscriptionCommandOutput | CreateGlobalClusterCommandOutput | DeleteDBClusterCommandOutput | DeleteDBClusterParameterGroupCommandOutput | DeleteDBClusterSnapshotCommandOutput | DeleteDBInstanceCommandOutput | DeleteDBSubnetGroupCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteGlobalClusterCommandOutput | DescribeCertificatesCommandOutput | DescribeDBClusterParameterGroupsCommandOutput | DescribeDBClusterParametersCommandOutput | DescribeDBClusterSnapshotAttributesCommandOutput | DescribeDBClusterSnapshotsCommandOutput | DescribeDBClustersCommandOutput | DescribeDBEngineVersionsCommandOutput | DescribeDBInstancesCommandOutput | DescribeDBSubnetGroupsCommandOutput | DescribeEngineDefaultClusterParametersCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeGlobalClustersCommandOutput | DescribeOrderableDBInstanceOptionsCommandOutput | DescribePendingMaintenanceActionsCommandOutput | FailoverDBClusterCommandOutput | ListTagsForResourceCommandOutput | ModifyDBClusterCommandOutput | ModifyDBClusterParameterGroupCommandOutput | ModifyDBClusterSnapshotAttributeCommandOutput | ModifyDBInstanceCommandOutput | ModifyDBSubnetGroupCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyGlobalClusterCommandOutput | RebootDBInstanceCommandOutput | RemoveFromGlobalClusterCommandOutput | RemoveSourceIdentifierFromSubscriptionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetDBClusterParameterGroupCommandOutput | RestoreDBClusterFromSnapshotCommandOutput | RestoreDBClusterToPointInTimeCommandOutput | StartDBClusterCommandOutput | StopDBClusterCommandOutput | SwitchoverGlobalClusterCommandOutput;
|
|
75
|
+
export type ServiceOutputTypes = AddSourceIdentifierToSubscriptionCommandOutput | AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | CopyDBClusterParameterGroupCommandOutput | CopyDBClusterSnapshotCommandOutput | CreateDBClusterCommandOutput | CreateDBClusterParameterGroupCommandOutput | CreateDBClusterSnapshotCommandOutput | CreateDBInstanceCommandOutput | CreateDBSubnetGroupCommandOutput | CreateEventSubscriptionCommandOutput | CreateGlobalClusterCommandOutput | DeleteDBClusterCommandOutput | DeleteDBClusterParameterGroupCommandOutput | DeleteDBClusterSnapshotCommandOutput | DeleteDBInstanceCommandOutput | DeleteDBSubnetGroupCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteGlobalClusterCommandOutput | DescribeCertificatesCommandOutput | DescribeDBClusterParameterGroupsCommandOutput | DescribeDBClusterParametersCommandOutput | DescribeDBClusterSnapshotAttributesCommandOutput | DescribeDBClusterSnapshotsCommandOutput | DescribeDBClustersCommandOutput | DescribeDBEngineVersionsCommandOutput | DescribeDBInstancesCommandOutput | DescribeDBSubnetGroupsCommandOutput | DescribeEngineDefaultClusterParametersCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeGlobalClustersCommandOutput | DescribeOrderableDBInstanceOptionsCommandOutput | DescribePendingMaintenanceActionsCommandOutput | FailoverDBClusterCommandOutput | FailoverGlobalClusterCommandOutput | ListTagsForResourceCommandOutput | ModifyDBClusterCommandOutput | ModifyDBClusterParameterGroupCommandOutput | ModifyDBClusterSnapshotAttributeCommandOutput | ModifyDBInstanceCommandOutput | ModifyDBSubnetGroupCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyGlobalClusterCommandOutput | RebootDBInstanceCommandOutput | RemoveFromGlobalClusterCommandOutput | RemoveSourceIdentifierFromSubscriptionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetDBClusterParameterGroupCommandOutput | RestoreDBClusterFromSnapshotCommandOutput | RestoreDBClusterToPointInTimeCommandOutput | StartDBClusterCommandOutput | StopDBClusterCommandOutput | SwitchoverGlobalClusterCommandOutput;
|
|
75
76
|
/**
|
|
76
77
|
* @public
|
|
77
78
|
*/
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBClient";
|
|
4
|
+
import { FailoverGlobalClusterMessage, FailoverGlobalClusterResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link FailoverGlobalClusterCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface FailoverGlobalClusterCommandInput extends FailoverGlobalClusterMessage {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link FailoverGlobalClusterCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface FailoverGlobalClusterCommandOutput extends FailoverGlobalClusterResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const FailoverGlobalClusterCommand_base: {
|
|
25
|
+
new (input: FailoverGlobalClusterCommandInput): import("@smithy/smithy-client").CommandImpl<FailoverGlobalClusterCommandInput, FailoverGlobalClusterCommandOutput, DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: FailoverGlobalClusterCommandInput): import("@smithy/smithy-client").CommandImpl<FailoverGlobalClusterCommandInput, FailoverGlobalClusterCommandOutput, DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Promotes the specified secondary DB cluster to be the primary DB cluster in the global cluster when failing over a global cluster occurs.</p>
|
|
31
|
+
* <p>Use this operation to respond to an unplanned event, such as a regional disaster in the primary region.
|
|
32
|
+
* Failing over can result in a loss of write transaction data that wasn't replicated to the chosen secondary before the failover event occurred.
|
|
33
|
+
* However, the recovery process that promotes a DB instance on the chosen seconday DB cluster to be the primary writer DB instance guarantees that the data is in a transactionally consistent state.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { DocDBClient, FailoverGlobalClusterCommand } from "@aws-sdk/client-docdb"; // ES Modules import
|
|
38
|
+
* // const { DocDBClient, FailoverGlobalClusterCommand } = require("@aws-sdk/client-docdb"); // CommonJS import
|
|
39
|
+
* const client = new DocDBClient(config);
|
|
40
|
+
* const input = { // FailoverGlobalClusterMessage
|
|
41
|
+
* GlobalClusterIdentifier: "STRING_VALUE", // required
|
|
42
|
+
* TargetDbClusterIdentifier: "STRING_VALUE", // required
|
|
43
|
+
* AllowDataLoss: true || false,
|
|
44
|
+
* Switchover: true || false,
|
|
45
|
+
* };
|
|
46
|
+
* const command = new FailoverGlobalClusterCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // FailoverGlobalClusterResult
|
|
49
|
+
* // GlobalCluster: { // GlobalCluster
|
|
50
|
+
* // GlobalClusterIdentifier: "STRING_VALUE",
|
|
51
|
+
* // GlobalClusterResourceId: "STRING_VALUE",
|
|
52
|
+
* // GlobalClusterArn: "STRING_VALUE",
|
|
53
|
+
* // Status: "STRING_VALUE",
|
|
54
|
+
* // Engine: "STRING_VALUE",
|
|
55
|
+
* // EngineVersion: "STRING_VALUE",
|
|
56
|
+
* // DatabaseName: "STRING_VALUE",
|
|
57
|
+
* // StorageEncrypted: true || false,
|
|
58
|
+
* // DeletionProtection: true || false,
|
|
59
|
+
* // GlobalClusterMembers: [ // GlobalClusterMemberList
|
|
60
|
+
* // { // GlobalClusterMember
|
|
61
|
+
* // DBClusterArn: "STRING_VALUE",
|
|
62
|
+
* // Readers: [ // ReadersArnList
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // IsWriter: true || false,
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // },
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param FailoverGlobalClusterCommandInput - {@link FailoverGlobalClusterCommandInput}
|
|
74
|
+
* @returns {@link FailoverGlobalClusterCommandOutput}
|
|
75
|
+
* @see {@link FailoverGlobalClusterCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link FailoverGlobalClusterCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link DocDBClientResolvedConfig | config} for DocDBClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link DBClusterNotFoundFault} (client fault)
|
|
80
|
+
* <p>
|
|
81
|
+
* <code>DBClusterIdentifier</code> doesn't refer to an existing cluster. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link GlobalClusterNotFoundFault} (client fault)
|
|
84
|
+
* <p>The <code>GlobalClusterIdentifier</code> doesn't refer to an existing global cluster.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InvalidDBClusterStateFault} (client fault)
|
|
87
|
+
* <p>The cluster isn't in a valid state.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link InvalidGlobalClusterStateFault} (client fault)
|
|
90
|
+
* <p>The requested operation can't be performed while the cluster is in this state.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link DocDBServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from DocDB service.</p>
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class FailoverGlobalClusterCommand extends FailoverGlobalClusterCommand_base {
|
|
98
|
+
}
|
|
@@ -34,6 +34,7 @@ export * from "./DescribeGlobalClustersCommand";
|
|
|
34
34
|
export * from "./DescribeOrderableDBInstanceOptionsCommand";
|
|
35
35
|
export * from "./DescribePendingMaintenanceActionsCommand";
|
|
36
36
|
export * from "./FailoverDBClusterCommand";
|
|
37
|
+
export * from "./FailoverGlobalClusterCommand";
|
|
37
38
|
export * from "./ListTagsForResourceCommand";
|
|
38
39
|
export * from "./ModifyDBClusterCommand";
|
|
39
40
|
export * from "./ModifyDBClusterParameterGroupCommand";
|
|
@@ -4207,6 +4207,79 @@ export interface FailoverDBClusterResult {
|
|
|
4207
4207
|
*/
|
|
4208
4208
|
DBCluster?: DBCluster;
|
|
4209
4209
|
}
|
|
4210
|
+
/**
|
|
4211
|
+
* @public
|
|
4212
|
+
*/
|
|
4213
|
+
export interface FailoverGlobalClusterMessage {
|
|
4214
|
+
/**
|
|
4215
|
+
* <p>The identifier of the Amazon DocumentDB global cluster to apply this operation.
|
|
4216
|
+
* The identifier is the unique key assigned by the user when the cluster is created.
|
|
4217
|
+
* In other words, it's the name of the global cluster.</p>
|
|
4218
|
+
* <p>Constraints:</p>
|
|
4219
|
+
* <ul>
|
|
4220
|
+
* <li>
|
|
4221
|
+
* <p>Must match the identifier of an existing global cluster.</p>
|
|
4222
|
+
* </li>
|
|
4223
|
+
* <li>
|
|
4224
|
+
* <p>Minimum length of 1. Maximum length of 255.</p>
|
|
4225
|
+
* </li>
|
|
4226
|
+
* </ul>
|
|
4227
|
+
* <p>Pattern: <code>[A-Za-z][0-9A-Za-z-:._]*</code>
|
|
4228
|
+
* </p>
|
|
4229
|
+
* @public
|
|
4230
|
+
*/
|
|
4231
|
+
GlobalClusterIdentifier: string | undefined;
|
|
4232
|
+
/**
|
|
4233
|
+
* <p>The identifier of the secondary Amazon DocumentDB cluster that you want to promote to the primary for the global cluster.
|
|
4234
|
+
* Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.</p>
|
|
4235
|
+
* <p>Constraints:</p>
|
|
4236
|
+
* <ul>
|
|
4237
|
+
* <li>
|
|
4238
|
+
* <p>Must match the identifier of an existing secondary cluster.</p>
|
|
4239
|
+
* </li>
|
|
4240
|
+
* <li>
|
|
4241
|
+
* <p>Minimum length of 1. Maximum length of 255.</p>
|
|
4242
|
+
* </li>
|
|
4243
|
+
* </ul>
|
|
4244
|
+
* <p>Pattern: <code>[A-Za-z][0-9A-Za-z-:._]*</code>
|
|
4245
|
+
* </p>
|
|
4246
|
+
* @public
|
|
4247
|
+
*/
|
|
4248
|
+
TargetDbClusterIdentifier: string | undefined;
|
|
4249
|
+
/**
|
|
4250
|
+
* <p>Specifies whether to allow data loss for this global cluster operation. Allowing data loss triggers a global failover operation.</p>
|
|
4251
|
+
* <p>If you don't specify <code>AllowDataLoss</code>, the global cluster operation defaults to a switchover.</p>
|
|
4252
|
+
* <p>Constraints:</p>
|
|
4253
|
+
* <ul>
|
|
4254
|
+
* <li>
|
|
4255
|
+
* <p>Can't be specified together with the <code>Switchover</code> parameter.</p>
|
|
4256
|
+
* </li>
|
|
4257
|
+
* </ul>
|
|
4258
|
+
* @public
|
|
4259
|
+
*/
|
|
4260
|
+
AllowDataLoss?: boolean;
|
|
4261
|
+
/**
|
|
4262
|
+
* <p>Specifies whether to switch over this global database cluster.</p>
|
|
4263
|
+
* <p>Constraints:</p>
|
|
4264
|
+
* <ul>
|
|
4265
|
+
* <li>
|
|
4266
|
+
* <p>Can't be specified together with the <code>AllowDataLoss</code> parameter.</p>
|
|
4267
|
+
* </li>
|
|
4268
|
+
* </ul>
|
|
4269
|
+
* @public
|
|
4270
|
+
*/
|
|
4271
|
+
Switchover?: boolean;
|
|
4272
|
+
}
|
|
4273
|
+
/**
|
|
4274
|
+
* @public
|
|
4275
|
+
*/
|
|
4276
|
+
export interface FailoverGlobalClusterResult {
|
|
4277
|
+
/**
|
|
4278
|
+
* <p>A data type representing an Amazon DocumentDB global cluster.</p>
|
|
4279
|
+
* @public
|
|
4280
|
+
*/
|
|
4281
|
+
GlobalCluster?: GlobalCluster;
|
|
4282
|
+
}
|
|
4210
4283
|
/**
|
|
4211
4284
|
* <p>Represents the input to <a>ListTagsForResource</a>.</p>
|
|
4212
4285
|
* @public
|
|
@@ -36,6 +36,7 @@ import { DescribeGlobalClustersCommandInput, DescribeGlobalClustersCommandOutput
|
|
|
36
36
|
import { DescribeOrderableDBInstanceOptionsCommandInput, DescribeOrderableDBInstanceOptionsCommandOutput } from "../commands/DescribeOrderableDBInstanceOptionsCommand";
|
|
37
37
|
import { DescribePendingMaintenanceActionsCommandInput, DescribePendingMaintenanceActionsCommandOutput } from "../commands/DescribePendingMaintenanceActionsCommand";
|
|
38
38
|
import { FailoverDBClusterCommandInput, FailoverDBClusterCommandOutput } from "../commands/FailoverDBClusterCommand";
|
|
39
|
+
import { FailoverGlobalClusterCommandInput, FailoverGlobalClusterCommandOutput } from "../commands/FailoverGlobalClusterCommand";
|
|
39
40
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
40
41
|
import { ModifyDBClusterCommandInput, ModifyDBClusterCommandOutput } from "../commands/ModifyDBClusterCommand";
|
|
41
42
|
import { ModifyDBClusterParameterGroupCommandInput, ModifyDBClusterParameterGroupCommandOutput } from "../commands/ModifyDBClusterParameterGroupCommand";
|
|
@@ -198,6 +199,10 @@ export declare const se_DescribePendingMaintenanceActionsCommand: (input: Descri
|
|
|
198
199
|
* serializeAws_queryFailoverDBClusterCommand
|
|
199
200
|
*/
|
|
200
201
|
export declare const se_FailoverDBClusterCommand: (input: FailoverDBClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
202
|
+
/**
|
|
203
|
+
* serializeAws_queryFailoverGlobalClusterCommand
|
|
204
|
+
*/
|
|
205
|
+
export declare const se_FailoverGlobalClusterCommand: (input: FailoverGlobalClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
201
206
|
/**
|
|
202
207
|
* serializeAws_queryListTagsForResourceCommand
|
|
203
208
|
*/
|
|
@@ -414,6 +419,10 @@ export declare const de_DescribePendingMaintenanceActionsCommand: (output: __Htt
|
|
|
414
419
|
* deserializeAws_queryFailoverDBClusterCommand
|
|
415
420
|
*/
|
|
416
421
|
export declare const de_FailoverDBClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<FailoverDBClusterCommandOutput>;
|
|
422
|
+
/**
|
|
423
|
+
* deserializeAws_queryFailoverGlobalClusterCommand
|
|
424
|
+
*/
|
|
425
|
+
export declare const de_FailoverGlobalClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<FailoverGlobalClusterCommandOutput>;
|
|
417
426
|
/**
|
|
418
427
|
* deserializeAws_queryListTagsForResourceCommand
|
|
419
428
|
*/
|
|
@@ -143,6 +143,10 @@ import {
|
|
|
143
143
|
FailoverDBClusterCommandInput,
|
|
144
144
|
FailoverDBClusterCommandOutput,
|
|
145
145
|
} from "./commands/FailoverDBClusterCommand";
|
|
146
|
+
import {
|
|
147
|
+
FailoverGlobalClusterCommandInput,
|
|
148
|
+
FailoverGlobalClusterCommandOutput,
|
|
149
|
+
} from "./commands/FailoverGlobalClusterCommand";
|
|
146
150
|
import {
|
|
147
151
|
ListTagsForResourceCommandInput,
|
|
148
152
|
ListTagsForResourceCommandOutput,
|
|
@@ -728,6 +732,19 @@ export interface DocDB {
|
|
|
728
732
|
options: __HttpHandlerOptions,
|
|
729
733
|
cb: (err: any, data?: FailoverDBClusterCommandOutput) => void
|
|
730
734
|
): void;
|
|
735
|
+
failoverGlobalCluster(
|
|
736
|
+
args: FailoverGlobalClusterCommandInput,
|
|
737
|
+
options?: __HttpHandlerOptions
|
|
738
|
+
): Promise<FailoverGlobalClusterCommandOutput>;
|
|
739
|
+
failoverGlobalCluster(
|
|
740
|
+
args: FailoverGlobalClusterCommandInput,
|
|
741
|
+
cb: (err: any, data?: FailoverGlobalClusterCommandOutput) => void
|
|
742
|
+
): void;
|
|
743
|
+
failoverGlobalCluster(
|
|
744
|
+
args: FailoverGlobalClusterCommandInput,
|
|
745
|
+
options: __HttpHandlerOptions,
|
|
746
|
+
cb: (err: any, data?: FailoverGlobalClusterCommandOutput) => void
|
|
747
|
+
): void;
|
|
731
748
|
listTagsForResource(
|
|
732
749
|
args: ListTagsForResourceCommandInput,
|
|
733
750
|
options?: __HttpHandlerOptions
|
|
@@ -189,6 +189,10 @@ import {
|
|
|
189
189
|
FailoverDBClusterCommandInput,
|
|
190
190
|
FailoverDBClusterCommandOutput,
|
|
191
191
|
} from "./commands/FailoverDBClusterCommand";
|
|
192
|
+
import {
|
|
193
|
+
FailoverGlobalClusterCommandInput,
|
|
194
|
+
FailoverGlobalClusterCommandOutput,
|
|
195
|
+
} from "./commands/FailoverGlobalClusterCommand";
|
|
192
196
|
import {
|
|
193
197
|
ListTagsForResourceCommandInput,
|
|
194
198
|
ListTagsForResourceCommandOutput,
|
|
@@ -305,6 +309,7 @@ export type ServiceInputTypes =
|
|
|
305
309
|
| DescribeOrderableDBInstanceOptionsCommandInput
|
|
306
310
|
| DescribePendingMaintenanceActionsCommandInput
|
|
307
311
|
| FailoverDBClusterCommandInput
|
|
312
|
+
| FailoverGlobalClusterCommandInput
|
|
308
313
|
| ListTagsForResourceCommandInput
|
|
309
314
|
| ModifyDBClusterCommandInput
|
|
310
315
|
| ModifyDBClusterParameterGroupCommandInput
|
|
@@ -360,6 +365,7 @@ export type ServiceOutputTypes =
|
|
|
360
365
|
| DescribeOrderableDBInstanceOptionsCommandOutput
|
|
361
366
|
| DescribePendingMaintenanceActionsCommandOutput
|
|
362
367
|
| FailoverDBClusterCommandOutput
|
|
368
|
+
| FailoverGlobalClusterCommandOutput
|
|
363
369
|
| ListTagsForResourceCommandOutput
|
|
364
370
|
| ModifyDBClusterCommandOutput
|
|
365
371
|
| ModifyDBClusterParameterGroupCommandOutput
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
DocDBClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../DocDBClient";
|
|
8
|
+
import {
|
|
9
|
+
FailoverGlobalClusterMessage,
|
|
10
|
+
FailoverGlobalClusterResult,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface FailoverGlobalClusterCommandInput
|
|
15
|
+
extends FailoverGlobalClusterMessage {}
|
|
16
|
+
export interface FailoverGlobalClusterCommandOutput
|
|
17
|
+
extends FailoverGlobalClusterResult,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const FailoverGlobalClusterCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: FailoverGlobalClusterCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
FailoverGlobalClusterCommandInput,
|
|
24
|
+
FailoverGlobalClusterCommandOutput,
|
|
25
|
+
DocDBClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: FailoverGlobalClusterCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
FailoverGlobalClusterCommandInput,
|
|
33
|
+
FailoverGlobalClusterCommandOutput,
|
|
34
|
+
DocDBClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class FailoverGlobalClusterCommand extends FailoverGlobalClusterCommand_base {}
|
|
@@ -34,6 +34,7 @@ export * from "./DescribeGlobalClustersCommand";
|
|
|
34
34
|
export * from "./DescribeOrderableDBInstanceOptionsCommand";
|
|
35
35
|
export * from "./DescribePendingMaintenanceActionsCommand";
|
|
36
36
|
export * from "./FailoverDBClusterCommand";
|
|
37
|
+
export * from "./FailoverGlobalClusterCommand";
|
|
37
38
|
export * from "./ListTagsForResourceCommand";
|
|
38
39
|
export * from "./ModifyDBClusterCommand";
|
|
39
40
|
export * from "./ModifyDBClusterParameterGroupCommand";
|
|
@@ -1039,6 +1039,15 @@ export interface FailoverDBClusterMessage {
|
|
|
1039
1039
|
export interface FailoverDBClusterResult {
|
|
1040
1040
|
DBCluster?: DBCluster;
|
|
1041
1041
|
}
|
|
1042
|
+
export interface FailoverGlobalClusterMessage {
|
|
1043
|
+
GlobalClusterIdentifier: string | undefined;
|
|
1044
|
+
TargetDbClusterIdentifier: string | undefined;
|
|
1045
|
+
AllowDataLoss?: boolean;
|
|
1046
|
+
Switchover?: boolean;
|
|
1047
|
+
}
|
|
1048
|
+
export interface FailoverGlobalClusterResult {
|
|
1049
|
+
GlobalCluster?: GlobalCluster;
|
|
1050
|
+
}
|
|
1042
1051
|
export interface ListTagsForResourceMessage {
|
|
1043
1052
|
ResourceName: string | undefined;
|
|
1044
1053
|
Filters?: Filter[];
|
|
@@ -147,6 +147,10 @@ import {
|
|
|
147
147
|
FailoverDBClusterCommandInput,
|
|
148
148
|
FailoverDBClusterCommandOutput,
|
|
149
149
|
} from "../commands/FailoverDBClusterCommand";
|
|
150
|
+
import {
|
|
151
|
+
FailoverGlobalClusterCommandInput,
|
|
152
|
+
FailoverGlobalClusterCommandOutput,
|
|
153
|
+
} from "../commands/FailoverGlobalClusterCommand";
|
|
150
154
|
import {
|
|
151
155
|
ListTagsForResourceCommandInput,
|
|
152
156
|
ListTagsForResourceCommandOutput,
|
|
@@ -363,6 +367,10 @@ export declare const se_FailoverDBClusterCommand: (
|
|
|
363
367
|
input: FailoverDBClusterCommandInput,
|
|
364
368
|
context: __SerdeContext
|
|
365
369
|
) => Promise<__HttpRequest>;
|
|
370
|
+
export declare const se_FailoverGlobalClusterCommand: (
|
|
371
|
+
input: FailoverGlobalClusterCommandInput,
|
|
372
|
+
context: __SerdeContext
|
|
373
|
+
) => Promise<__HttpRequest>;
|
|
366
374
|
export declare const se_ListTagsForResourceCommand: (
|
|
367
375
|
input: ListTagsForResourceCommandInput,
|
|
368
376
|
context: __SerdeContext
|
|
@@ -579,6 +587,10 @@ export declare const de_FailoverDBClusterCommand: (
|
|
|
579
587
|
output: __HttpResponse,
|
|
580
588
|
context: __SerdeContext
|
|
581
589
|
) => Promise<FailoverDBClusterCommandOutput>;
|
|
590
|
+
export declare const de_FailoverGlobalClusterCommand: (
|
|
591
|
+
output: __HttpResponse,
|
|
592
|
+
context: __SerdeContext
|
|
593
|
+
) => Promise<FailoverGlobalClusterCommandOutput>;
|
|
582
594
|
export declare const de_ListTagsForResourceCommand: (
|
|
583
595
|
output: __HttpResponse,
|
|
584
596
|
context: __SerdeContext
|
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.632.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,18 +20,18 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.632.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.632.0",
|
|
25
25
|
"@aws-sdk/core": "3.629.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.632.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
30
30
|
"@aws-sdk/middleware-sdk-rds": "3.620.0",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.632.0",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
33
33
|
"@aws-sdk/types": "3.609.0",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.632.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
36
36
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
37
37
|
"@smithy/config-resolver": "^3.0.5",
|