@aws-sdk/client-docdb 3.540.0 → 3.548.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 +63 -1
- package/dist-es/DocDB.js +2 -0
- package/dist-es/commands/SwitchoverGlobalClusterCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +42 -0
- package/dist-types/DocDB.d.ts +7 -0
- package/dist-types/DocDBClient.d.ts +3 -2
- package/dist-types/commands/SwitchoverGlobalClusterCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +51 -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 +8 -2
- package/dist-types/ts3.4/commands/SwitchoverGlobalClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -629,3 +629,11 @@ StopDBCluster
|
|
|
629
629
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb/command/StopDBClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/StopDBClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/StopDBClusterCommandOutput/)
|
|
630
630
|
|
|
631
631
|
</details>
|
|
632
|
+
<details>
|
|
633
|
+
<summary>
|
|
634
|
+
SwitchoverGlobalCluster
|
|
635
|
+
</summary>
|
|
636
|
+
|
|
637
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb/command/SwitchoverGlobalClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/SwitchoverGlobalClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb/Interface/SwitchoverGlobalClusterCommandOutput/)
|
|
638
|
+
|
|
639
|
+
</details>
|
package/dist-cjs/index.js
CHANGED
|
@@ -136,6 +136,7 @@ __export(src_exports, {
|
|
|
136
136
|
SubscriptionAlreadyExistFault: () => SubscriptionAlreadyExistFault,
|
|
137
137
|
SubscriptionCategoryNotFoundFault: () => SubscriptionCategoryNotFoundFault,
|
|
138
138
|
SubscriptionNotFoundFault: () => SubscriptionNotFoundFault,
|
|
139
|
+
SwitchoverGlobalClusterCommand: () => SwitchoverGlobalClusterCommand,
|
|
139
140
|
__Client: () => import_smithy_client.Client,
|
|
140
141
|
paginateDescribeCertificates: () => paginateDescribeCertificates,
|
|
141
142
|
paginateDescribeDBClusterParameterGroups: () => paginateDescribeDBClusterParameterGroups,
|
|
@@ -1842,6 +1843,16 @@ var se_StopDBClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1842
1843
|
});
|
|
1843
1844
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1844
1845
|
}, "se_StopDBClusterCommand");
|
|
1846
|
+
var se_SwitchoverGlobalClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1847
|
+
const headers = SHARED_HEADERS;
|
|
1848
|
+
let body;
|
|
1849
|
+
body = buildFormUrlencodedString({
|
|
1850
|
+
...se_SwitchoverGlobalClusterMessage(input, context),
|
|
1851
|
+
[_A]: _SGC,
|
|
1852
|
+
[_V]: _
|
|
1853
|
+
});
|
|
1854
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1855
|
+
}, "se_SwitchoverGlobalClusterCommand");
|
|
1845
1856
|
var de_AddSourceIdentifierToSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1846
1857
|
if (output.statusCode >= 300) {
|
|
1847
1858
|
return de_CommandError(output, context);
|
|
@@ -2525,6 +2536,19 @@ var de_StopDBClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2525
2536
|
};
|
|
2526
2537
|
return response;
|
|
2527
2538
|
}, "de_StopDBClusterCommand");
|
|
2539
|
+
var de_SwitchoverGlobalClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2540
|
+
if (output.statusCode >= 300) {
|
|
2541
|
+
return de_CommandError(output, context);
|
|
2542
|
+
}
|
|
2543
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
2544
|
+
let contents = {};
|
|
2545
|
+
contents = de_SwitchoverGlobalClusterResult(data.SwitchoverGlobalClusterResult, context);
|
|
2546
|
+
const response = {
|
|
2547
|
+
$metadata: deserializeMetadata(output),
|
|
2548
|
+
...contents
|
|
2549
|
+
};
|
|
2550
|
+
return response;
|
|
2551
|
+
}, "de_SwitchoverGlobalClusterCommand");
|
|
2528
2552
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2529
2553
|
const parsedOutput = {
|
|
2530
2554
|
...output,
|
|
@@ -4760,6 +4784,16 @@ var se_SubnetIdentifierList = /* @__PURE__ */ __name((input, context) => {
|
|
|
4760
4784
|
}
|
|
4761
4785
|
return entries;
|
|
4762
4786
|
}, "se_SubnetIdentifierList");
|
|
4787
|
+
var se_SwitchoverGlobalClusterMessage = /* @__PURE__ */ __name((input, context) => {
|
|
4788
|
+
const entries = {};
|
|
4789
|
+
if (input[_GCI] != null) {
|
|
4790
|
+
entries[_GCI] = input[_GCI];
|
|
4791
|
+
}
|
|
4792
|
+
if (input[_TDCI] != null) {
|
|
4793
|
+
entries[_TDCI] = input[_TDCI];
|
|
4794
|
+
}
|
|
4795
|
+
return entries;
|
|
4796
|
+
}, "se_SwitchoverGlobalClusterMessage");
|
|
4763
4797
|
var se_Tag = /* @__PURE__ */ __name((input, context) => {
|
|
4764
4798
|
const entries = {};
|
|
4765
4799
|
if (input[_K] != null) {
|
|
@@ -6523,6 +6557,13 @@ var de_SubscriptionNotFoundFault = /* @__PURE__ */ __name((output, context) => {
|
|
|
6523
6557
|
}
|
|
6524
6558
|
return contents;
|
|
6525
6559
|
}, "de_SubscriptionNotFoundFault");
|
|
6560
|
+
var de_SwitchoverGlobalClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
6561
|
+
const contents = {};
|
|
6562
|
+
if (output[_GC] != null) {
|
|
6563
|
+
contents[_GC] = de_GlobalCluster(output[_GC], context);
|
|
6564
|
+
}
|
|
6565
|
+
return contents;
|
|
6566
|
+
}, "de_SwitchoverGlobalClusterResult");
|
|
6526
6567
|
var de_Tag = /* @__PURE__ */ __name((output, context) => {
|
|
6527
6568
|
const contents = {};
|
|
6528
6569
|
if (output[_K] != null) {
|
|
@@ -6860,6 +6901,7 @@ var _SDBCSI = "SourceDBClusterSnapshotIdentifier";
|
|
|
6860
6901
|
var _SDBCt = "StopDBCluster";
|
|
6861
6902
|
var _SE = "StorageEncrypted";
|
|
6862
6903
|
var _SFS = "SkipFinalSnapshot";
|
|
6904
|
+
var _SGC = "SwitchoverGlobalCluster";
|
|
6863
6905
|
var _SGS = "SubnetGroupStatus";
|
|
6864
6906
|
var _SI = "SourceIdentifier";
|
|
6865
6907
|
var _SIL = "SourceIdsList";
|
|
@@ -6886,6 +6928,7 @@ var _TDBCPGD = "TargetDBClusterParameterGroupDescription";
|
|
|
6886
6928
|
var _TDBCPGI = "TargetDBClusterParameterGroupIdentifier";
|
|
6887
6929
|
var _TDBCSI = "TargetDBClusterSnapshotIdentifier";
|
|
6888
6930
|
var _TDBII = "TargetDBInstanceIdentifier";
|
|
6931
|
+
var _TDCI = "TargetDbClusterIdentifier";
|
|
6889
6932
|
var _TK = "TagKeys";
|
|
6890
6933
|
var _TL = "TagList";
|
|
6891
6934
|
var _Ta = "Tag";
|
|
@@ -7818,6 +7861,23 @@ var _StopDBClusterCommand = class _StopDBClusterCommand extends import_smithy_cl
|
|
|
7818
7861
|
__name(_StopDBClusterCommand, "StopDBClusterCommand");
|
|
7819
7862
|
var StopDBClusterCommand = _StopDBClusterCommand;
|
|
7820
7863
|
|
|
7864
|
+
// src/commands/SwitchoverGlobalClusterCommand.ts
|
|
7865
|
+
|
|
7866
|
+
|
|
7867
|
+
|
|
7868
|
+
|
|
7869
|
+
var _SwitchoverGlobalClusterCommand = class _SwitchoverGlobalClusterCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
7870
|
+
...commonParams
|
|
7871
|
+
}).m(function(Command, cs, config, o) {
|
|
7872
|
+
return [
|
|
7873
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
7874
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
7875
|
+
];
|
|
7876
|
+
}).s("AmazonRDSv19", "SwitchoverGlobalCluster", {}).n("DocDBClient", "SwitchoverGlobalClusterCommand").f(void 0, void 0).ser(se_SwitchoverGlobalClusterCommand).de(de_SwitchoverGlobalClusterCommand).build() {
|
|
7877
|
+
};
|
|
7878
|
+
__name(_SwitchoverGlobalClusterCommand, "SwitchoverGlobalClusterCommand");
|
|
7879
|
+
var SwitchoverGlobalClusterCommand = _SwitchoverGlobalClusterCommand;
|
|
7880
|
+
|
|
7821
7881
|
// src/DocDB.ts
|
|
7822
7882
|
var commands = {
|
|
7823
7883
|
AddSourceIdentifierToSubscriptionCommand,
|
|
@@ -7872,7 +7932,8 @@ var commands = {
|
|
|
7872
7932
|
RestoreDBClusterFromSnapshotCommand,
|
|
7873
7933
|
RestoreDBClusterToPointInTimeCommand,
|
|
7874
7934
|
StartDBClusterCommand,
|
|
7875
|
-
StopDBClusterCommand
|
|
7935
|
+
StopDBClusterCommand,
|
|
7936
|
+
SwitchoverGlobalClusterCommand
|
|
7876
7937
|
};
|
|
7877
7938
|
var _DocDB = class _DocDB extends DocDBClient {
|
|
7878
7939
|
};
|
|
@@ -8208,6 +8269,7 @@ var waitUntilDBInstanceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
8208
8269
|
RestoreDBClusterToPointInTimeCommand,
|
|
8209
8270
|
StartDBClusterCommand,
|
|
8210
8271
|
StopDBClusterCommand,
|
|
8272
|
+
SwitchoverGlobalClusterCommand,
|
|
8211
8273
|
paginateDescribeCertificates,
|
|
8212
8274
|
paginateDescribeDBClusterParameterGroups,
|
|
8213
8275
|
paginateDescribeDBClusterParameters,
|
package/dist-es/DocDB.js
CHANGED
|
@@ -52,6 +52,7 @@ import { RestoreDBClusterFromSnapshotCommand, } from "./commands/RestoreDBCluste
|
|
|
52
52
|
import { RestoreDBClusterToPointInTimeCommand, } from "./commands/RestoreDBClusterToPointInTimeCommand";
|
|
53
53
|
import { StartDBClusterCommand, } from "./commands/StartDBClusterCommand";
|
|
54
54
|
import { StopDBClusterCommand, } from "./commands/StopDBClusterCommand";
|
|
55
|
+
import { SwitchoverGlobalClusterCommand, } from "./commands/SwitchoverGlobalClusterCommand";
|
|
55
56
|
import { DocDBClient } from "./DocDBClient";
|
|
56
57
|
const commands = {
|
|
57
58
|
AddSourceIdentifierToSubscriptionCommand,
|
|
@@ -107,6 +108,7 @@ const commands = {
|
|
|
107
108
|
RestoreDBClusterToPointInTimeCommand,
|
|
108
109
|
StartDBClusterCommand,
|
|
109
110
|
StopDBClusterCommand,
|
|
111
|
+
SwitchoverGlobalClusterCommand,
|
|
110
112
|
};
|
|
111
113
|
export class DocDB extends DocDBClient {
|
|
112
114
|
}
|
|
@@ -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_SwitchoverGlobalClusterCommand, se_SwitchoverGlobalClusterCommand } from "../protocols/Aws_query";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class SwitchoverGlobalClusterCommand 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", "SwitchoverGlobalCluster", {})
|
|
19
|
+
.n("DocDBClient", "SwitchoverGlobalClusterCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_SwitchoverGlobalClusterCommand)
|
|
22
|
+
.de(de_SwitchoverGlobalClusterCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -533,6 +533,16 @@ export const se_StopDBClusterCommand = async (input, context) => {
|
|
|
533
533
|
});
|
|
534
534
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
535
535
|
};
|
|
536
|
+
export const se_SwitchoverGlobalClusterCommand = async (input, context) => {
|
|
537
|
+
const headers = SHARED_HEADERS;
|
|
538
|
+
let body;
|
|
539
|
+
body = buildFormUrlencodedString({
|
|
540
|
+
...se_SwitchoverGlobalClusterMessage(input, context),
|
|
541
|
+
[_A]: _SGC,
|
|
542
|
+
[_V]: _,
|
|
543
|
+
});
|
|
544
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
545
|
+
};
|
|
536
546
|
export const de_AddSourceIdentifierToSubscriptionCommand = async (output, context) => {
|
|
537
547
|
if (output.statusCode >= 300) {
|
|
538
548
|
return de_CommandError(output, context);
|
|
@@ -1210,6 +1220,19 @@ export const de_StopDBClusterCommand = async (output, context) => {
|
|
|
1210
1220
|
};
|
|
1211
1221
|
return response;
|
|
1212
1222
|
};
|
|
1223
|
+
export const de_SwitchoverGlobalClusterCommand = async (output, context) => {
|
|
1224
|
+
if (output.statusCode >= 300) {
|
|
1225
|
+
return de_CommandError(output, context);
|
|
1226
|
+
}
|
|
1227
|
+
const data = await parseBody(output.body, context);
|
|
1228
|
+
let contents = {};
|
|
1229
|
+
contents = de_SwitchoverGlobalClusterResult(data.SwitchoverGlobalClusterResult, context);
|
|
1230
|
+
const response = {
|
|
1231
|
+
$metadata: deserializeMetadata(output),
|
|
1232
|
+
...contents,
|
|
1233
|
+
};
|
|
1234
|
+
return response;
|
|
1235
|
+
};
|
|
1213
1236
|
const de_CommandError = async (output, context) => {
|
|
1214
1237
|
const parsedOutput = {
|
|
1215
1238
|
...output,
|
|
@@ -3409,6 +3432,16 @@ const se_SubnetIdentifierList = (input, context) => {
|
|
|
3409
3432
|
}
|
|
3410
3433
|
return entries;
|
|
3411
3434
|
};
|
|
3435
|
+
const se_SwitchoverGlobalClusterMessage = (input, context) => {
|
|
3436
|
+
const entries = {};
|
|
3437
|
+
if (input[_GCI] != null) {
|
|
3438
|
+
entries[_GCI] = input[_GCI];
|
|
3439
|
+
}
|
|
3440
|
+
if (input[_TDCI] != null) {
|
|
3441
|
+
entries[_TDCI] = input[_TDCI];
|
|
3442
|
+
}
|
|
3443
|
+
return entries;
|
|
3444
|
+
};
|
|
3412
3445
|
const se_Tag = (input, context) => {
|
|
3413
3446
|
const entries = {};
|
|
3414
3447
|
if (input[_K] != null) {
|
|
@@ -5273,6 +5306,13 @@ const de_SubscriptionNotFoundFault = (output, context) => {
|
|
|
5273
5306
|
}
|
|
5274
5307
|
return contents;
|
|
5275
5308
|
};
|
|
5309
|
+
const de_SwitchoverGlobalClusterResult = (output, context) => {
|
|
5310
|
+
const contents = {};
|
|
5311
|
+
if (output[_GC] != null) {
|
|
5312
|
+
contents[_GC] = de_GlobalCluster(output[_GC], context);
|
|
5313
|
+
}
|
|
5314
|
+
return contents;
|
|
5315
|
+
};
|
|
5276
5316
|
const de_Tag = (output, context) => {
|
|
5277
5317
|
const contents = {};
|
|
5278
5318
|
if (output[_K] != null) {
|
|
@@ -5618,6 +5658,7 @@ const _SDBCSI = "SourceDBClusterSnapshotIdentifier";
|
|
|
5618
5658
|
const _SDBCt = "StopDBCluster";
|
|
5619
5659
|
const _SE = "StorageEncrypted";
|
|
5620
5660
|
const _SFS = "SkipFinalSnapshot";
|
|
5661
|
+
const _SGC = "SwitchoverGlobalCluster";
|
|
5621
5662
|
const _SGS = "SubnetGroupStatus";
|
|
5622
5663
|
const _SI = "SourceIdentifier";
|
|
5623
5664
|
const _SIL = "SourceIdsList";
|
|
@@ -5644,6 +5685,7 @@ const _TDBCPGD = "TargetDBClusterParameterGroupDescription";
|
|
|
5644
5685
|
const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier";
|
|
5645
5686
|
const _TDBCSI = "TargetDBClusterSnapshotIdentifier";
|
|
5646
5687
|
const _TDBII = "TargetDBInstanceIdentifier";
|
|
5688
|
+
const _TDCI = "TargetDbClusterIdentifier";
|
|
5647
5689
|
const _TK = "TagKeys";
|
|
5648
5690
|
const _TL = "TagList";
|
|
5649
5691
|
const _Ta = "Tag";
|
package/dist-types/DocDB.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ import { RestoreDBClusterFromSnapshotCommandInput, RestoreDBClusterFromSnapshotC
|
|
|
52
52
|
import { RestoreDBClusterToPointInTimeCommandInput, RestoreDBClusterToPointInTimeCommandOutput } from "./commands/RestoreDBClusterToPointInTimeCommand";
|
|
53
53
|
import { StartDBClusterCommandInput, StartDBClusterCommandOutput } from "./commands/StartDBClusterCommand";
|
|
54
54
|
import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "./commands/StopDBClusterCommand";
|
|
55
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
|
|
55
56
|
import { DocDBClient } from "./DocDBClient";
|
|
56
57
|
export interface DocDB {
|
|
57
58
|
/**
|
|
@@ -385,6 +386,12 @@ export interface DocDB {
|
|
|
385
386
|
stopDBCluster(args: StopDBClusterCommandInput, options?: __HttpHandlerOptions): Promise<StopDBClusterCommandOutput>;
|
|
386
387
|
stopDBCluster(args: StopDBClusterCommandInput, cb: (err: any, data?: StopDBClusterCommandOutput) => void): void;
|
|
387
388
|
stopDBCluster(args: StopDBClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDBClusterCommandOutput) => void): void;
|
|
389
|
+
/**
|
|
390
|
+
* @see {@link SwitchoverGlobalClusterCommand}
|
|
391
|
+
*/
|
|
392
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, options?: __HttpHandlerOptions): Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
393
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void): void;
|
|
394
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void): void;
|
|
388
395
|
}
|
|
389
396
|
/**
|
|
390
397
|
* <p>Amazon DocumentDB is a fast, reliable, and fully managed database service.
|
|
@@ -60,17 +60,18 @@ import { RestoreDBClusterFromSnapshotCommandInput, RestoreDBClusterFromSnapshotC
|
|
|
60
60
|
import { RestoreDBClusterToPointInTimeCommandInput, RestoreDBClusterToPointInTimeCommandOutput } from "./commands/RestoreDBClusterToPointInTimeCommand";
|
|
61
61
|
import { StartDBClusterCommandInput, StartDBClusterCommandOutput } from "./commands/StartDBClusterCommand";
|
|
62
62
|
import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "./commands/StopDBClusterCommand";
|
|
63
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
|
|
63
64
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
64
65
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
65
66
|
export { __Client };
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
|
-
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;
|
|
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;
|
|
70
71
|
/**
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
|
-
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;
|
|
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;
|
|
74
75
|
/**
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { SwitchoverGlobalClusterMessage, SwitchoverGlobalClusterResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link SwitchoverGlobalClusterCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface SwitchoverGlobalClusterCommandInput extends SwitchoverGlobalClusterMessage {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link SwitchoverGlobalClusterCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface SwitchoverGlobalClusterCommandOutput extends SwitchoverGlobalClusterResult, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const SwitchoverGlobalClusterCommand_base: {
|
|
24
|
+
new (input: SwitchoverGlobalClusterCommandInput): import("@smithy/smithy-client").CommandImpl<SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput, DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: SwitchoverGlobalClusterCommandInput): import("@smithy/smithy-client").CommandImpl<SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput, DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Switches over the specified secondary Amazon DocumentDB cluster to be the new primary Amazon DocumentDB cluster in the global database cluster.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { DocDBClient, SwitchoverGlobalClusterCommand } from "@aws-sdk/client-docdb"; // ES Modules import
|
|
34
|
+
* // const { DocDBClient, SwitchoverGlobalClusterCommand } = require("@aws-sdk/client-docdb"); // CommonJS import
|
|
35
|
+
* const client = new DocDBClient(config);
|
|
36
|
+
* const input = { // SwitchoverGlobalClusterMessage
|
|
37
|
+
* GlobalClusterIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* TargetDbClusterIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new SwitchoverGlobalClusterCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // SwitchoverGlobalClusterResult
|
|
43
|
+
* // GlobalCluster: { // GlobalCluster
|
|
44
|
+
* // GlobalClusterIdentifier: "STRING_VALUE",
|
|
45
|
+
* // GlobalClusterResourceId: "STRING_VALUE",
|
|
46
|
+
* // GlobalClusterArn: "STRING_VALUE",
|
|
47
|
+
* // Status: "STRING_VALUE",
|
|
48
|
+
* // Engine: "STRING_VALUE",
|
|
49
|
+
* // EngineVersion: "STRING_VALUE",
|
|
50
|
+
* // DatabaseName: "STRING_VALUE",
|
|
51
|
+
* // StorageEncrypted: true || false,
|
|
52
|
+
* // DeletionProtection: true || false,
|
|
53
|
+
* // GlobalClusterMembers: [ // GlobalClusterMemberList
|
|
54
|
+
* // { // GlobalClusterMember
|
|
55
|
+
* // DBClusterArn: "STRING_VALUE",
|
|
56
|
+
* // Readers: [ // ReadersArnList
|
|
57
|
+
* // "STRING_VALUE",
|
|
58
|
+
* // ],
|
|
59
|
+
* // IsWriter: true || false,
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // },
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param SwitchoverGlobalClusterCommandInput - {@link SwitchoverGlobalClusterCommandInput}
|
|
68
|
+
* @returns {@link SwitchoverGlobalClusterCommandOutput}
|
|
69
|
+
* @see {@link SwitchoverGlobalClusterCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link SwitchoverGlobalClusterCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link DocDBClientResolvedConfig | config} for DocDBClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link DBClusterNotFoundFault} (client fault)
|
|
74
|
+
* <p>
|
|
75
|
+
* <code>DBClusterIdentifier</code> doesn't refer to an existing cluster. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link GlobalClusterNotFoundFault} (client fault)
|
|
78
|
+
* <p>The <code>GlobalClusterIdentifier</code> doesn't refer to an existing global cluster.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InvalidDBClusterStateFault} (client fault)
|
|
81
|
+
* <p>The cluster isn't in a valid state.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link InvalidGlobalClusterStateFault} (client fault)
|
|
84
|
+
* <p>The requested operation can't be performed while the cluster is in this state.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link DocDBServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from DocDB service.</p>
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class SwitchoverGlobalClusterCommand extends SwitchoverGlobalClusterCommand_base {
|
|
92
|
+
}
|
|
@@ -5359,3 +5359,54 @@ export interface StopDBClusterResult {
|
|
|
5359
5359
|
*/
|
|
5360
5360
|
DBCluster?: DBCluster;
|
|
5361
5361
|
}
|
|
5362
|
+
/**
|
|
5363
|
+
* @public
|
|
5364
|
+
*/
|
|
5365
|
+
export interface SwitchoverGlobalClusterMessage {
|
|
5366
|
+
/**
|
|
5367
|
+
* <p>The identifier of the Amazon DocumentDB global database cluster to switch over.
|
|
5368
|
+
* The identifier is the unique key assigned by the user when the cluster is created.
|
|
5369
|
+
* In other words, it's the name of the global cluster.
|
|
5370
|
+
* This parameter isn’t case-sensitive.</p>
|
|
5371
|
+
* <p>Constraints:</p>
|
|
5372
|
+
* <ul>
|
|
5373
|
+
* <li>
|
|
5374
|
+
* <p>Must match the identifier of an existing global cluster (Amazon DocumentDB global database).</p>
|
|
5375
|
+
* </li>
|
|
5376
|
+
* <li>
|
|
5377
|
+
* <p>Minimum length of 1. Maximum length of 255.</p>
|
|
5378
|
+
* </li>
|
|
5379
|
+
* </ul>
|
|
5380
|
+
* <p>Pattern: <code>[A-Za-z][0-9A-Za-z-:._]*</code>
|
|
5381
|
+
* </p>
|
|
5382
|
+
* @public
|
|
5383
|
+
*/
|
|
5384
|
+
GlobalClusterIdentifier: string | undefined;
|
|
5385
|
+
/**
|
|
5386
|
+
* <p>The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster.
|
|
5387
|
+
* Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.</p>
|
|
5388
|
+
* <p>Constraints:</p>
|
|
5389
|
+
* <ul>
|
|
5390
|
+
* <li>
|
|
5391
|
+
* <p>Must match the identifier of an existing secondary cluster.</p>
|
|
5392
|
+
* </li>
|
|
5393
|
+
* <li>
|
|
5394
|
+
* <p>Minimum length of 1. Maximum length of 255.</p>
|
|
5395
|
+
* </li>
|
|
5396
|
+
* </ul>
|
|
5397
|
+
* <p>Pattern: <code>[A-Za-z][0-9A-Za-z-:._]*</code>
|
|
5398
|
+
* </p>
|
|
5399
|
+
* @public
|
|
5400
|
+
*/
|
|
5401
|
+
TargetDbClusterIdentifier: string | undefined;
|
|
5402
|
+
}
|
|
5403
|
+
/**
|
|
5404
|
+
* @public
|
|
5405
|
+
*/
|
|
5406
|
+
export interface SwitchoverGlobalClusterResult {
|
|
5407
|
+
/**
|
|
5408
|
+
* <p>A data type representing an Amazon DocumentDB global cluster.</p>
|
|
5409
|
+
* @public
|
|
5410
|
+
*/
|
|
5411
|
+
GlobalCluster?: GlobalCluster;
|
|
5412
|
+
}
|
|
@@ -53,6 +53,7 @@ import { RestoreDBClusterFromSnapshotCommandInput, RestoreDBClusterFromSnapshotC
|
|
|
53
53
|
import { RestoreDBClusterToPointInTimeCommandInput, RestoreDBClusterToPointInTimeCommandOutput } from "../commands/RestoreDBClusterToPointInTimeCommand";
|
|
54
54
|
import { StartDBClusterCommandInput, StartDBClusterCommandOutput } from "../commands/StartDBClusterCommand";
|
|
55
55
|
import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "../commands/StopDBClusterCommand";
|
|
56
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "../commands/SwitchoverGlobalClusterCommand";
|
|
56
57
|
/**
|
|
57
58
|
* serializeAws_queryAddSourceIdentifierToSubscriptionCommand
|
|
58
59
|
*/
|
|
@@ -265,6 +266,10 @@ export declare const se_StartDBClusterCommand: (input: StartDBClusterCommandInpu
|
|
|
265
266
|
* serializeAws_queryStopDBClusterCommand
|
|
266
267
|
*/
|
|
267
268
|
export declare const se_StopDBClusterCommand: (input: StopDBClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
269
|
+
/**
|
|
270
|
+
* serializeAws_querySwitchoverGlobalClusterCommand
|
|
271
|
+
*/
|
|
272
|
+
export declare const se_SwitchoverGlobalClusterCommand: (input: SwitchoverGlobalClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
268
273
|
/**
|
|
269
274
|
* deserializeAws_queryAddSourceIdentifierToSubscriptionCommand
|
|
270
275
|
*/
|
|
@@ -477,3 +482,7 @@ export declare const de_StartDBClusterCommand: (output: __HttpResponse, context:
|
|
|
477
482
|
* deserializeAws_queryStopDBClusterCommand
|
|
478
483
|
*/
|
|
479
484
|
export declare const de_StopDBClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopDBClusterCommandOutput>;
|
|
485
|
+
/**
|
|
486
|
+
* deserializeAws_querySwitchoverGlobalClusterCommand
|
|
487
|
+
*/
|
|
488
|
+
export declare const de_SwitchoverGlobalClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
@@ -211,6 +211,10 @@ import {
|
|
|
211
211
|
StopDBClusterCommandInput,
|
|
212
212
|
StopDBClusterCommandOutput,
|
|
213
213
|
} from "./commands/StopDBClusterCommand";
|
|
214
|
+
import {
|
|
215
|
+
SwitchoverGlobalClusterCommandInput,
|
|
216
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
217
|
+
} from "./commands/SwitchoverGlobalClusterCommand";
|
|
214
218
|
import { DocDBClient } from "./DocDBClient";
|
|
215
219
|
export interface DocDB {
|
|
216
220
|
addSourceIdentifierToSubscription(
|
|
@@ -951,5 +955,18 @@ export interface DocDB {
|
|
|
951
955
|
options: __HttpHandlerOptions,
|
|
952
956
|
cb: (err: any, data?: StopDBClusterCommandOutput) => void
|
|
953
957
|
): void;
|
|
958
|
+
switchoverGlobalCluster(
|
|
959
|
+
args: SwitchoverGlobalClusterCommandInput,
|
|
960
|
+
options?: __HttpHandlerOptions
|
|
961
|
+
): Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
962
|
+
switchoverGlobalCluster(
|
|
963
|
+
args: SwitchoverGlobalClusterCommandInput,
|
|
964
|
+
cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void
|
|
965
|
+
): void;
|
|
966
|
+
switchoverGlobalCluster(
|
|
967
|
+
args: SwitchoverGlobalClusterCommandInput,
|
|
968
|
+
options: __HttpHandlerOptions,
|
|
969
|
+
cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void
|
|
970
|
+
): void;
|
|
954
971
|
}
|
|
955
972
|
export declare class DocDB extends DocDBClient implements DocDB {}
|
|
@@ -257,6 +257,10 @@ import {
|
|
|
257
257
|
StopDBClusterCommandInput,
|
|
258
258
|
StopDBClusterCommandOutput,
|
|
259
259
|
} from "./commands/StopDBClusterCommand";
|
|
260
|
+
import {
|
|
261
|
+
SwitchoverGlobalClusterCommandInput,
|
|
262
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
263
|
+
} from "./commands/SwitchoverGlobalClusterCommand";
|
|
260
264
|
import {
|
|
261
265
|
ClientInputEndpointParameters,
|
|
262
266
|
ClientResolvedEndpointParameters,
|
|
@@ -317,7 +321,8 @@ export type ServiceInputTypes =
|
|
|
317
321
|
| RestoreDBClusterFromSnapshotCommandInput
|
|
318
322
|
| RestoreDBClusterToPointInTimeCommandInput
|
|
319
323
|
| StartDBClusterCommandInput
|
|
320
|
-
| StopDBClusterCommandInput
|
|
324
|
+
| StopDBClusterCommandInput
|
|
325
|
+
| SwitchoverGlobalClusterCommandInput;
|
|
321
326
|
export type ServiceOutputTypes =
|
|
322
327
|
| AddSourceIdentifierToSubscriptionCommandOutput
|
|
323
328
|
| AddTagsToResourceCommandOutput
|
|
@@ -371,7 +376,8 @@ export type ServiceOutputTypes =
|
|
|
371
376
|
| RestoreDBClusterFromSnapshotCommandOutput
|
|
372
377
|
| RestoreDBClusterToPointInTimeCommandOutput
|
|
373
378
|
| StartDBClusterCommandOutput
|
|
374
|
-
| StopDBClusterCommandOutput
|
|
379
|
+
| StopDBClusterCommandOutput
|
|
380
|
+
| SwitchoverGlobalClusterCommandOutput;
|
|
375
381
|
export interface ClientDefaults
|
|
376
382
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
377
383
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
SwitchoverGlobalClusterMessage,
|
|
10
|
+
SwitchoverGlobalClusterResult,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer, $Command };
|
|
13
|
+
export interface SwitchoverGlobalClusterCommandInput
|
|
14
|
+
extends SwitchoverGlobalClusterMessage {}
|
|
15
|
+
export interface SwitchoverGlobalClusterCommandOutput
|
|
16
|
+
extends SwitchoverGlobalClusterResult,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const SwitchoverGlobalClusterCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: SwitchoverGlobalClusterCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
SwitchoverGlobalClusterCommandInput,
|
|
23
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
24
|
+
DocDBClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: SwitchoverGlobalClusterCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
SwitchoverGlobalClusterCommandInput,
|
|
32
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
33
|
+
DocDBClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class SwitchoverGlobalClusterCommand extends SwitchoverGlobalClusterCommand_base {}
|
|
@@ -1267,3 +1267,10 @@ export interface StopDBClusterMessage {
|
|
|
1267
1267
|
export interface StopDBClusterResult {
|
|
1268
1268
|
DBCluster?: DBCluster;
|
|
1269
1269
|
}
|
|
1270
|
+
export interface SwitchoverGlobalClusterMessage {
|
|
1271
|
+
GlobalClusterIdentifier: string | undefined;
|
|
1272
|
+
TargetDbClusterIdentifier: string | undefined;
|
|
1273
|
+
}
|
|
1274
|
+
export interface SwitchoverGlobalClusterResult {
|
|
1275
|
+
GlobalCluster?: GlobalCluster;
|
|
1276
|
+
}
|
|
@@ -215,6 +215,10 @@ import {
|
|
|
215
215
|
StopDBClusterCommandInput,
|
|
216
216
|
StopDBClusterCommandOutput,
|
|
217
217
|
} from "../commands/StopDBClusterCommand";
|
|
218
|
+
import {
|
|
219
|
+
SwitchoverGlobalClusterCommandInput,
|
|
220
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
221
|
+
} from "../commands/SwitchoverGlobalClusterCommand";
|
|
218
222
|
export declare const se_AddSourceIdentifierToSubscriptionCommand: (
|
|
219
223
|
input: AddSourceIdentifierToSubscriptionCommandInput,
|
|
220
224
|
context: __SerdeContext
|
|
@@ -427,6 +431,10 @@ export declare const se_StopDBClusterCommand: (
|
|
|
427
431
|
input: StopDBClusterCommandInput,
|
|
428
432
|
context: __SerdeContext
|
|
429
433
|
) => Promise<__HttpRequest>;
|
|
434
|
+
export declare const se_SwitchoverGlobalClusterCommand: (
|
|
435
|
+
input: SwitchoverGlobalClusterCommandInput,
|
|
436
|
+
context: __SerdeContext
|
|
437
|
+
) => Promise<__HttpRequest>;
|
|
430
438
|
export declare const de_AddSourceIdentifierToSubscriptionCommand: (
|
|
431
439
|
output: __HttpResponse,
|
|
432
440
|
context: __SerdeContext
|
|
@@ -639,3 +647,7 @@ export declare const de_StopDBClusterCommand: (
|
|
|
639
647
|
output: __HttpResponse,
|
|
640
648
|
context: __SerdeContext
|
|
641
649
|
) => Promise<StopDBClusterCommandOutput>;
|
|
650
|
+
export declare const de_SwitchoverGlobalClusterCommand: (
|
|
651
|
+
output: __HttpResponse,
|
|
652
|
+
context: __SerdeContext
|
|
653
|
+
) => Promise<SwitchoverGlobalClusterCommandOutput>;
|
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.548.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",
|