@aws-sdk/client-neptune 3.808.0 → 3.812.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 +98 -1
- package/dist-es/Neptune.js +2 -0
- package/dist-es/commands/SwitchoverGlobalClusterCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_query.js +72 -0
- package/dist-types/Neptune.d.ts +7 -0
- package/dist-types/NeptuneClient.d.ts +3 -2
- package/dist-types/commands/CreateGlobalClusterCommand.d.ts +6 -0
- package/dist-types/commands/DeleteGlobalClusterCommand.d.ts +6 -0
- package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +6 -0
- package/dist-types/commands/FailoverGlobalClusterCommand.d.ts +8 -0
- package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +6 -0
- package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +6 -0
- package/dist-types/commands/SwitchoverGlobalClusterCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +204 -45
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/Neptune.d.ts +17 -0
- package/dist-types/ts3.4/NeptuneClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/SwitchoverGlobalClusterCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -772,3 +772,11 @@ StopDBCluster
|
|
|
772
772
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune/command/StopDBClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune/Interface/StopDBClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune/Interface/StopDBClusterCommandOutput/)
|
|
773
773
|
|
|
774
774
|
</details>
|
|
775
|
+
<details>
|
|
776
|
+
<summary>
|
|
777
|
+
SwitchoverGlobalCluster
|
|
778
|
+
</summary>
|
|
779
|
+
|
|
780
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune/command/SwitchoverGlobalClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune/Interface/SwitchoverGlobalClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune/Interface/SwitchoverGlobalClusterCommandOutput/)
|
|
781
|
+
|
|
782
|
+
</details>
|
package/dist-cjs/index.js
CHANGED
|
@@ -100,6 +100,7 @@ __export(index_exports, {
|
|
|
100
100
|
EventSubscriptionQuotaExceededFault: () => EventSubscriptionQuotaExceededFault,
|
|
101
101
|
FailoverDBClusterCommand: () => FailoverDBClusterCommand,
|
|
102
102
|
FailoverGlobalClusterCommand: () => FailoverGlobalClusterCommand,
|
|
103
|
+
FailoverStatus: () => FailoverStatus,
|
|
103
104
|
GlobalClusterAlreadyExistsFault: () => GlobalClusterAlreadyExistsFault,
|
|
104
105
|
GlobalClusterNotFoundFault: () => GlobalClusterNotFoundFault,
|
|
105
106
|
GlobalClusterQuotaExceededFault: () => GlobalClusterQuotaExceededFault,
|
|
@@ -164,6 +165,7 @@ __export(index_exports, {
|
|
|
164
165
|
SubscriptionAlreadyExistFault: () => SubscriptionAlreadyExistFault,
|
|
165
166
|
SubscriptionCategoryNotFoundFault: () => SubscriptionCategoryNotFoundFault,
|
|
166
167
|
SubscriptionNotFoundFault: () => SubscriptionNotFoundFault,
|
|
168
|
+
SwitchoverGlobalClusterCommand: () => SwitchoverGlobalClusterCommand,
|
|
167
169
|
__Client: () => import_smithy_client.Client,
|
|
168
170
|
paginateDescribeDBClusterEndpoints: () => paginateDescribeDBClusterEndpoints,
|
|
169
171
|
paginateDescribeDBClusterParameterGroups: () => paginateDescribeDBClusterParameterGroups,
|
|
@@ -1261,6 +1263,11 @@ var SubscriptionCategoryNotFoundFault = class _SubscriptionCategoryNotFoundFault
|
|
|
1261
1263
|
Object.setPrototypeOf(this, _SubscriptionCategoryNotFoundFault.prototype);
|
|
1262
1264
|
}
|
|
1263
1265
|
};
|
|
1266
|
+
var FailoverStatus = {
|
|
1267
|
+
CANCELLING: "cancelling",
|
|
1268
|
+
FAILING_OVER: "failing-over",
|
|
1269
|
+
PENDING: "pending"
|
|
1270
|
+
};
|
|
1264
1271
|
var GlobalClusterAlreadyExistsFault = class _GlobalClusterAlreadyExistsFault extends NeptuneServiceException {
|
|
1265
1272
|
static {
|
|
1266
1273
|
__name(this, "GlobalClusterAlreadyExistsFault");
|
|
@@ -2279,6 +2286,16 @@ var se_StopDBClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2279
2286
|
});
|
|
2280
2287
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2281
2288
|
}, "se_StopDBClusterCommand");
|
|
2289
|
+
var se_SwitchoverGlobalClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2290
|
+
const headers = SHARED_HEADERS;
|
|
2291
|
+
let body;
|
|
2292
|
+
body = buildFormUrlencodedString({
|
|
2293
|
+
...se_SwitchoverGlobalClusterMessage(input, context),
|
|
2294
|
+
[_A]: _SGC,
|
|
2295
|
+
[_V]: _
|
|
2296
|
+
});
|
|
2297
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2298
|
+
}, "se_SwitchoverGlobalClusterCommand");
|
|
2282
2299
|
var de_AddRoleToDBClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2283
2300
|
if (output.statusCode >= 300) {
|
|
2284
2301
|
return de_CommandError(output, context);
|
|
@@ -3161,6 +3178,19 @@ var de_StopDBClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3161
3178
|
};
|
|
3162
3179
|
return response;
|
|
3163
3180
|
}, "de_StopDBClusterCommand");
|
|
3181
|
+
var de_SwitchoverGlobalClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3182
|
+
if (output.statusCode >= 300) {
|
|
3183
|
+
return de_CommandError(output, context);
|
|
3184
|
+
}
|
|
3185
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
3186
|
+
let contents = {};
|
|
3187
|
+
contents = de_SwitchoverGlobalClusterResult(data.SwitchoverGlobalClusterResult, context);
|
|
3188
|
+
const response = {
|
|
3189
|
+
$metadata: deserializeMetadata(output),
|
|
3190
|
+
...contents
|
|
3191
|
+
};
|
|
3192
|
+
return response;
|
|
3193
|
+
}, "de_SwitchoverGlobalClusterCommand");
|
|
3164
3194
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3165
3195
|
const parsedOutput = {
|
|
3166
3196
|
...output,
|
|
@@ -5244,6 +5274,12 @@ var se_FailoverGlobalClusterMessage = /* @__PURE__ */ __name((input, context) =>
|
|
|
5244
5274
|
if (input[_TDCI] != null) {
|
|
5245
5275
|
entries[_TDCI] = input[_TDCI];
|
|
5246
5276
|
}
|
|
5277
|
+
if (input[_ADL] != null) {
|
|
5278
|
+
entries[_ADL] = input[_ADL];
|
|
5279
|
+
}
|
|
5280
|
+
if (input[_Sw] != null) {
|
|
5281
|
+
entries[_Sw] = input[_Sw];
|
|
5282
|
+
}
|
|
5247
5283
|
return entries;
|
|
5248
5284
|
}, "se_FailoverGlobalClusterMessage");
|
|
5249
5285
|
var se_Filter = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -6091,6 +6127,16 @@ var se_SubnetIdentifierList = /* @__PURE__ */ __name((input, context) => {
|
|
|
6091
6127
|
}
|
|
6092
6128
|
return entries;
|
|
6093
6129
|
}, "se_SubnetIdentifierList");
|
|
6130
|
+
var se_SwitchoverGlobalClusterMessage = /* @__PURE__ */ __name((input, context) => {
|
|
6131
|
+
const entries = {};
|
|
6132
|
+
if (input[_GCI] != null) {
|
|
6133
|
+
entries[_GCI] = input[_GCI];
|
|
6134
|
+
}
|
|
6135
|
+
if (input[_TDCI] != null) {
|
|
6136
|
+
entries[_TDCI] = input[_TDCI];
|
|
6137
|
+
}
|
|
6138
|
+
return entries;
|
|
6139
|
+
}, "se_SwitchoverGlobalClusterMessage");
|
|
6094
6140
|
var se_Tag = /* @__PURE__ */ __name((input, context) => {
|
|
6095
6141
|
const entries = {};
|
|
6096
6142
|
if (input[_K] != null) {
|
|
@@ -7695,6 +7741,22 @@ var de_FailoverGlobalClusterResult = /* @__PURE__ */ __name((output, context) =>
|
|
|
7695
7741
|
}
|
|
7696
7742
|
return contents;
|
|
7697
7743
|
}, "de_FailoverGlobalClusterResult");
|
|
7744
|
+
var de_FailoverState = /* @__PURE__ */ __name((output, context) => {
|
|
7745
|
+
const contents = {};
|
|
7746
|
+
if (output[_St] != null) {
|
|
7747
|
+
contents[_St] = (0, import_smithy_client.expectString)(output[_St]);
|
|
7748
|
+
}
|
|
7749
|
+
if (output[_FDCA] != null) {
|
|
7750
|
+
contents[_FDCA] = (0, import_smithy_client.expectString)(output[_FDCA]);
|
|
7751
|
+
}
|
|
7752
|
+
if (output[_TDCA] != null) {
|
|
7753
|
+
contents[_TDCA] = (0, import_smithy_client.expectString)(output[_TDCA]);
|
|
7754
|
+
}
|
|
7755
|
+
if (output[_IDLA] != null) {
|
|
7756
|
+
contents[_IDLA] = (0, import_smithy_client.parseBoolean)(output[_IDLA]);
|
|
7757
|
+
}
|
|
7758
|
+
return contents;
|
|
7759
|
+
}, "de_FailoverState");
|
|
7698
7760
|
var de_GlobalCluster = /* @__PURE__ */ __name((output, context) => {
|
|
7699
7761
|
const contents = {};
|
|
7700
7762
|
if (output[_GCI] != null) {
|
|
@@ -7726,6 +7788,9 @@ var de_GlobalCluster = /* @__PURE__ */ __name((output, context) => {
|
|
|
7726
7788
|
} else if (output[_GCM] != null && output[_GCM][_GCMl] != null) {
|
|
7727
7789
|
contents[_GCM] = de_GlobalClusterMemberList((0, import_smithy_client.getArrayIfSingleItem)(output[_GCM][_GCMl]), context);
|
|
7728
7790
|
}
|
|
7791
|
+
if (output[_FS] != null) {
|
|
7792
|
+
contents[_FS] = de_FailoverState(output[_FS], context);
|
|
7793
|
+
}
|
|
7729
7794
|
return contents;
|
|
7730
7795
|
}, "de_GlobalCluster");
|
|
7731
7796
|
var de_GlobalClusterAlreadyExistsFault = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -8507,6 +8572,13 @@ var de_SupportedTimezonesList = /* @__PURE__ */ __name((output, context) => {
|
|
|
8507
8572
|
return de_Timezone(entry, context);
|
|
8508
8573
|
});
|
|
8509
8574
|
}, "de_SupportedTimezonesList");
|
|
8575
|
+
var de_SwitchoverGlobalClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
8576
|
+
const contents = {};
|
|
8577
|
+
if (output[_GC] != null) {
|
|
8578
|
+
contents[_GC] = de_GlobalCluster(output[_GC], context);
|
|
8579
|
+
}
|
|
8580
|
+
return contents;
|
|
8581
|
+
}, "de_SwitchoverGlobalClusterResult");
|
|
8510
8582
|
var de_Tag = /* @__PURE__ */ __name((output, context) => {
|
|
8511
8583
|
const contents = {};
|
|
8512
8584
|
if (output[_K] != null) {
|
|
@@ -8648,6 +8720,7 @@ var _ = "2014-10-31";
|
|
|
8648
8720
|
var _A = "Action";
|
|
8649
8721
|
var _AA = "ApplyAction";
|
|
8650
8722
|
var _AAAD = "AutoAppliedAfterDate";
|
|
8723
|
+
var _ADL = "AllowDataLoss";
|
|
8651
8724
|
var _AI = "ApplyImmediately";
|
|
8652
8725
|
var _AM = "ApplyMethod";
|
|
8653
8726
|
var _AMVU = "AutoMinorVersionUpgrade";
|
|
@@ -8826,10 +8899,12 @@ var _F = "Filters";
|
|
|
8826
8899
|
var _FAD = "ForcedApplyDate";
|
|
8827
8900
|
var _FDBC = "FailoverDBCluster";
|
|
8828
8901
|
var _FDBSI = "FinalDBSnapshotIdentifier";
|
|
8902
|
+
var _FDCA = "FromDbClusterArn";
|
|
8829
8903
|
var _FF = "ForceFailover";
|
|
8830
8904
|
var _FGC = "FailoverGlobalCluster";
|
|
8831
8905
|
var _FN = "FeatureName";
|
|
8832
8906
|
var _FQDN = "FQDN";
|
|
8907
|
+
var _FS = "FailoverState";
|
|
8833
8908
|
var _Fr = "From";
|
|
8834
8909
|
var _GC = "GlobalCluster";
|
|
8835
8910
|
var _GCA = "GlobalClusterArn";
|
|
@@ -8844,6 +8919,7 @@ var _IAMDAE = "IAMDatabaseAuthenticationEnabled";
|
|
|
8844
8919
|
var _IAMRN = "IAMRoleName";
|
|
8845
8920
|
var _ICT = "InstanceCreateTime";
|
|
8846
8921
|
var _ICW = "IsClusterWriter";
|
|
8922
|
+
var _IDLA = "IsDataLossAllowed";
|
|
8847
8923
|
var _IM = "IsModifiable";
|
|
8848
8924
|
var _IMVU = "IsMajorVersionUpgrade";
|
|
8849
8925
|
var _IOONAMT = "IOOptimizedNextAllowedModificationTime";
|
|
@@ -8965,6 +9041,7 @@ var _SDBPGI = "SourceDBParameterGroupIdentifier";
|
|
|
8965
9041
|
var _SE = "StorageEncrypted";
|
|
8966
9042
|
var _SEM = "SupportsEnhancedMonitoring";
|
|
8967
9043
|
var _SFS = "SkipFinalSnapshot";
|
|
9044
|
+
var _SGC = "SwitchoverGlobalCluster";
|
|
8968
9045
|
var _SGD = "SupportsGlobalDatabases";
|
|
8969
9046
|
var _SGS = "SubnetGroupStatus";
|
|
8970
9047
|
var _SI = "SourceIdentifier";
|
|
@@ -8998,6 +9075,7 @@ var _Ste = "Step";
|
|
|
8998
9075
|
var _Sto = "Storage";
|
|
8999
9076
|
var _Su = "Subnets";
|
|
9000
9077
|
var _Sub = "Subnet";
|
|
9078
|
+
var _Sw = "Switchover";
|
|
9001
9079
|
var _T = "Tags";
|
|
9002
9080
|
var _TCA = "TdeCredentialArn";
|
|
9003
9081
|
var _TCP = "TdeCredentialPassword";
|
|
@@ -9007,6 +9085,7 @@ var _TDBCSI = "TargetDBClusterSnapshotIdentifier";
|
|
|
9007
9085
|
var _TDBII = "TargetDBInstanceIdentifier";
|
|
9008
9086
|
var _TDBPGD = "TargetDBParameterGroupDescription";
|
|
9009
9087
|
var _TDBPGI = "TargetDBParameterGroupIdentifier";
|
|
9088
|
+
var _TDCA = "ToDbClusterArn";
|
|
9010
9089
|
var _TDCI = "TargetDbClusterIdentifier";
|
|
9011
9090
|
var _TK = "TagKeys";
|
|
9012
9091
|
var _TL = "TagList";
|
|
@@ -10078,6 +10157,21 @@ var StopDBClusterCommand = class extends import_smithy_client.Command.classBuild
|
|
|
10078
10157
|
}
|
|
10079
10158
|
};
|
|
10080
10159
|
|
|
10160
|
+
// src/commands/SwitchoverGlobalClusterCommand.ts
|
|
10161
|
+
|
|
10162
|
+
|
|
10163
|
+
|
|
10164
|
+
var SwitchoverGlobalClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
10165
|
+
return [
|
|
10166
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10167
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
10168
|
+
];
|
|
10169
|
+
}).s("AmazonRDSv19", "SwitchoverGlobalCluster", {}).n("NeptuneClient", "SwitchoverGlobalClusterCommand").f(void 0, void 0).ser(se_SwitchoverGlobalClusterCommand).de(de_SwitchoverGlobalClusterCommand).build() {
|
|
10170
|
+
static {
|
|
10171
|
+
__name(this, "SwitchoverGlobalClusterCommand");
|
|
10172
|
+
}
|
|
10173
|
+
};
|
|
10174
|
+
|
|
10081
10175
|
// src/Neptune.ts
|
|
10082
10176
|
var commands = {
|
|
10083
10177
|
AddRoleToDBClusterCommand,
|
|
@@ -10148,7 +10242,8 @@ var commands = {
|
|
|
10148
10242
|
RestoreDBClusterFromSnapshotCommand,
|
|
10149
10243
|
RestoreDBClusterToPointInTimeCommand,
|
|
10150
10244
|
StartDBClusterCommand,
|
|
10151
|
-
StopDBClusterCommand
|
|
10245
|
+
StopDBClusterCommand,
|
|
10246
|
+
SwitchoverGlobalClusterCommand
|
|
10152
10247
|
};
|
|
10153
10248
|
var Neptune = class extends NeptuneClient {
|
|
10154
10249
|
static {
|
|
@@ -10513,6 +10608,7 @@ var waitUntilDBInstanceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
10513
10608
|
RestoreDBClusterToPointInTimeCommand,
|
|
10514
10609
|
StartDBClusterCommand,
|
|
10515
10610
|
StopDBClusterCommand,
|
|
10611
|
+
SwitchoverGlobalClusterCommand,
|
|
10516
10612
|
paginateDescribeDBClusterEndpoints,
|
|
10517
10613
|
paginateDescribeDBClusterParameterGroups,
|
|
10518
10614
|
paginateDescribeDBClusterParameters,
|
|
@@ -10583,6 +10679,7 @@ var waitUntilDBInstanceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
10583
10679
|
SNSTopicArnNotFoundFault,
|
|
10584
10680
|
SubscriptionAlreadyExistFault,
|
|
10585
10681
|
SubscriptionCategoryNotFoundFault,
|
|
10682
|
+
FailoverStatus,
|
|
10586
10683
|
GlobalClusterAlreadyExistsFault,
|
|
10587
10684
|
GlobalClusterQuotaExceededFault,
|
|
10588
10685
|
DBClusterEndpointNotFoundFault,
|
package/dist-es/Neptune.js
CHANGED
|
@@ -68,6 +68,7 @@ import { RestoreDBClusterFromSnapshotCommand, } from "./commands/RestoreDBCluste
|
|
|
68
68
|
import { RestoreDBClusterToPointInTimeCommand, } from "./commands/RestoreDBClusterToPointInTimeCommand";
|
|
69
69
|
import { StartDBClusterCommand, } from "./commands/StartDBClusterCommand";
|
|
70
70
|
import { StopDBClusterCommand, } from "./commands/StopDBClusterCommand";
|
|
71
|
+
import { SwitchoverGlobalClusterCommand, } from "./commands/SwitchoverGlobalClusterCommand";
|
|
71
72
|
import { NeptuneClient } from "./NeptuneClient";
|
|
72
73
|
const commands = {
|
|
73
74
|
AddRoleToDBClusterCommand,
|
|
@@ -139,6 +140,7 @@ const commands = {
|
|
|
139
140
|
RestoreDBClusterToPointInTimeCommand,
|
|
140
141
|
StartDBClusterCommand,
|
|
141
142
|
StopDBClusterCommand,
|
|
143
|
+
SwitchoverGlobalClusterCommand,
|
|
142
144
|
};
|
|
143
145
|
export class Neptune extends NeptuneClient {
|
|
144
146
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonRDSv19", "SwitchoverGlobalCluster", {})
|
|
17
|
+
.n("NeptuneClient", "SwitchoverGlobalClusterCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_SwitchoverGlobalClusterCommand)
|
|
20
|
+
.de(de_SwitchoverGlobalClusterCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -600,6 +600,11 @@ export class SubscriptionCategoryNotFoundFault extends __BaseException {
|
|
|
600
600
|
Object.setPrototypeOf(this, SubscriptionCategoryNotFoundFault.prototype);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
+
export const FailoverStatus = {
|
|
604
|
+
CANCELLING: "cancelling",
|
|
605
|
+
FAILING_OVER: "failing-over",
|
|
606
|
+
PENDING: "pending",
|
|
607
|
+
};
|
|
603
608
|
export class GlobalClusterAlreadyExistsFault extends __BaseException {
|
|
604
609
|
name = "GlobalClusterAlreadyExistsFault";
|
|
605
610
|
$fault = "client";
|
|
@@ -693,6 +693,16 @@ export const se_StopDBClusterCommand = async (input, context) => {
|
|
|
693
693
|
});
|
|
694
694
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
695
695
|
};
|
|
696
|
+
export const se_SwitchoverGlobalClusterCommand = async (input, context) => {
|
|
697
|
+
const headers = SHARED_HEADERS;
|
|
698
|
+
let body;
|
|
699
|
+
body = buildFormUrlencodedString({
|
|
700
|
+
...se_SwitchoverGlobalClusterMessage(input, context),
|
|
701
|
+
[_A]: _SGC,
|
|
702
|
+
[_V]: _,
|
|
703
|
+
});
|
|
704
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
705
|
+
};
|
|
696
706
|
export const de_AddRoleToDBClusterCommand = async (output, context) => {
|
|
697
707
|
if (output.statusCode >= 300) {
|
|
698
708
|
return de_CommandError(output, context);
|
|
@@ -1569,6 +1579,19 @@ export const de_StopDBClusterCommand = async (output, context) => {
|
|
|
1569
1579
|
};
|
|
1570
1580
|
return response;
|
|
1571
1581
|
};
|
|
1582
|
+
export const de_SwitchoverGlobalClusterCommand = async (output, context) => {
|
|
1583
|
+
if (output.statusCode >= 300) {
|
|
1584
|
+
return de_CommandError(output, context);
|
|
1585
|
+
}
|
|
1586
|
+
const data = await parseBody(output.body, context);
|
|
1587
|
+
let contents = {};
|
|
1588
|
+
contents = de_SwitchoverGlobalClusterResult(data.SwitchoverGlobalClusterResult, context);
|
|
1589
|
+
const response = {
|
|
1590
|
+
$metadata: deserializeMetadata(output),
|
|
1591
|
+
...contents,
|
|
1592
|
+
};
|
|
1593
|
+
return response;
|
|
1594
|
+
};
|
|
1572
1595
|
const de_CommandError = async (output, context) => {
|
|
1573
1596
|
const parsedOutput = {
|
|
1574
1597
|
...output,
|
|
@@ -3652,6 +3675,12 @@ const se_FailoverGlobalClusterMessage = (input, context) => {
|
|
|
3652
3675
|
if (input[_TDCI] != null) {
|
|
3653
3676
|
entries[_TDCI] = input[_TDCI];
|
|
3654
3677
|
}
|
|
3678
|
+
if (input[_ADL] != null) {
|
|
3679
|
+
entries[_ADL] = input[_ADL];
|
|
3680
|
+
}
|
|
3681
|
+
if (input[_Sw] != null) {
|
|
3682
|
+
entries[_Sw] = input[_Sw];
|
|
3683
|
+
}
|
|
3655
3684
|
return entries;
|
|
3656
3685
|
};
|
|
3657
3686
|
const se_Filter = (input, context) => {
|
|
@@ -4499,6 +4528,16 @@ const se_SubnetIdentifierList = (input, context) => {
|
|
|
4499
4528
|
}
|
|
4500
4529
|
return entries;
|
|
4501
4530
|
};
|
|
4531
|
+
const se_SwitchoverGlobalClusterMessage = (input, context) => {
|
|
4532
|
+
const entries = {};
|
|
4533
|
+
if (input[_GCI] != null) {
|
|
4534
|
+
entries[_GCI] = input[_GCI];
|
|
4535
|
+
}
|
|
4536
|
+
if (input[_TDCI] != null) {
|
|
4537
|
+
entries[_TDCI] = input[_TDCI];
|
|
4538
|
+
}
|
|
4539
|
+
return entries;
|
|
4540
|
+
};
|
|
4502
4541
|
const se_Tag = (input, context) => {
|
|
4503
4542
|
const entries = {};
|
|
4504
4543
|
if (input[_K] != null) {
|
|
@@ -6193,6 +6232,22 @@ const de_FailoverGlobalClusterResult = (output, context) => {
|
|
|
6193
6232
|
}
|
|
6194
6233
|
return contents;
|
|
6195
6234
|
};
|
|
6235
|
+
const de_FailoverState = (output, context) => {
|
|
6236
|
+
const contents = {};
|
|
6237
|
+
if (output[_St] != null) {
|
|
6238
|
+
contents[_St] = __expectString(output[_St]);
|
|
6239
|
+
}
|
|
6240
|
+
if (output[_FDCA] != null) {
|
|
6241
|
+
contents[_FDCA] = __expectString(output[_FDCA]);
|
|
6242
|
+
}
|
|
6243
|
+
if (output[_TDCA] != null) {
|
|
6244
|
+
contents[_TDCA] = __expectString(output[_TDCA]);
|
|
6245
|
+
}
|
|
6246
|
+
if (output[_IDLA] != null) {
|
|
6247
|
+
contents[_IDLA] = __parseBoolean(output[_IDLA]);
|
|
6248
|
+
}
|
|
6249
|
+
return contents;
|
|
6250
|
+
};
|
|
6196
6251
|
const de_GlobalCluster = (output, context) => {
|
|
6197
6252
|
const contents = {};
|
|
6198
6253
|
if (output[_GCI] != null) {
|
|
@@ -6225,6 +6280,9 @@ const de_GlobalCluster = (output, context) => {
|
|
|
6225
6280
|
else if (output[_GCM] != null && output[_GCM][_GCMl] != null) {
|
|
6226
6281
|
contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context);
|
|
6227
6282
|
}
|
|
6283
|
+
if (output[_FS] != null) {
|
|
6284
|
+
contents[_FS] = de_FailoverState(output[_FS], context);
|
|
6285
|
+
}
|
|
6228
6286
|
return contents;
|
|
6229
6287
|
};
|
|
6230
6288
|
const de_GlobalClusterAlreadyExistsFault = (output, context) => {
|
|
@@ -7052,6 +7110,13 @@ const de_SupportedTimezonesList = (output, context) => {
|
|
|
7052
7110
|
return de_Timezone(entry, context);
|
|
7053
7111
|
});
|
|
7054
7112
|
};
|
|
7113
|
+
const de_SwitchoverGlobalClusterResult = (output, context) => {
|
|
7114
|
+
const contents = {};
|
|
7115
|
+
if (output[_GC] != null) {
|
|
7116
|
+
contents[_GC] = de_GlobalCluster(output[_GC], context);
|
|
7117
|
+
}
|
|
7118
|
+
return contents;
|
|
7119
|
+
};
|
|
7055
7120
|
const de_Tag = (output, context) => {
|
|
7056
7121
|
const contents = {};
|
|
7057
7122
|
if (output[_K] != null) {
|
|
@@ -7207,6 +7272,7 @@ const _ = "2014-10-31";
|
|
|
7207
7272
|
const _A = "Action";
|
|
7208
7273
|
const _AA = "ApplyAction";
|
|
7209
7274
|
const _AAAD = "AutoAppliedAfterDate";
|
|
7275
|
+
const _ADL = "AllowDataLoss";
|
|
7210
7276
|
const _AI = "ApplyImmediately";
|
|
7211
7277
|
const _AM = "ApplyMethod";
|
|
7212
7278
|
const _AMVU = "AutoMinorVersionUpgrade";
|
|
@@ -7385,10 +7451,12 @@ const _F = "Filters";
|
|
|
7385
7451
|
const _FAD = "ForcedApplyDate";
|
|
7386
7452
|
const _FDBC = "FailoverDBCluster";
|
|
7387
7453
|
const _FDBSI = "FinalDBSnapshotIdentifier";
|
|
7454
|
+
const _FDCA = "FromDbClusterArn";
|
|
7388
7455
|
const _FF = "ForceFailover";
|
|
7389
7456
|
const _FGC = "FailoverGlobalCluster";
|
|
7390
7457
|
const _FN = "FeatureName";
|
|
7391
7458
|
const _FQDN = "FQDN";
|
|
7459
|
+
const _FS = "FailoverState";
|
|
7392
7460
|
const _Fr = "From";
|
|
7393
7461
|
const _GC = "GlobalCluster";
|
|
7394
7462
|
const _GCA = "GlobalClusterArn";
|
|
@@ -7403,6 +7471,7 @@ const _IAMDAE = "IAMDatabaseAuthenticationEnabled";
|
|
|
7403
7471
|
const _IAMRN = "IAMRoleName";
|
|
7404
7472
|
const _ICT = "InstanceCreateTime";
|
|
7405
7473
|
const _ICW = "IsClusterWriter";
|
|
7474
|
+
const _IDLA = "IsDataLossAllowed";
|
|
7406
7475
|
const _IM = "IsModifiable";
|
|
7407
7476
|
const _IMVU = "IsMajorVersionUpgrade";
|
|
7408
7477
|
const _IOONAMT = "IOOptimizedNextAllowedModificationTime";
|
|
@@ -7524,6 +7593,7 @@ const _SDBPGI = "SourceDBParameterGroupIdentifier";
|
|
|
7524
7593
|
const _SE = "StorageEncrypted";
|
|
7525
7594
|
const _SEM = "SupportsEnhancedMonitoring";
|
|
7526
7595
|
const _SFS = "SkipFinalSnapshot";
|
|
7596
|
+
const _SGC = "SwitchoverGlobalCluster";
|
|
7527
7597
|
const _SGD = "SupportsGlobalDatabases";
|
|
7528
7598
|
const _SGS = "SubnetGroupStatus";
|
|
7529
7599
|
const _SI = "SourceIdentifier";
|
|
@@ -7557,6 +7627,7 @@ const _Ste = "Step";
|
|
|
7557
7627
|
const _Sto = "Storage";
|
|
7558
7628
|
const _Su = "Subnets";
|
|
7559
7629
|
const _Sub = "Subnet";
|
|
7630
|
+
const _Sw = "Switchover";
|
|
7560
7631
|
const _T = "Tags";
|
|
7561
7632
|
const _TCA = "TdeCredentialArn";
|
|
7562
7633
|
const _TCP = "TdeCredentialPassword";
|
|
@@ -7566,6 +7637,7 @@ const _TDBCSI = "TargetDBClusterSnapshotIdentifier";
|
|
|
7566
7637
|
const _TDBII = "TargetDBInstanceIdentifier";
|
|
7567
7638
|
const _TDBPGD = "TargetDBParameterGroupDescription";
|
|
7568
7639
|
const _TDBPGI = "TargetDBParameterGroupIdentifier";
|
|
7640
|
+
const _TDCA = "ToDbClusterArn";
|
|
7569
7641
|
const _TDCI = "TargetDbClusterIdentifier";
|
|
7570
7642
|
const _TK = "TagKeys";
|
|
7571
7643
|
const _TL = "TagList";
|
package/dist-types/Neptune.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ import { RestoreDBClusterFromSnapshotCommandInput, RestoreDBClusterFromSnapshotC
|
|
|
68
68
|
import { RestoreDBClusterToPointInTimeCommandInput, RestoreDBClusterToPointInTimeCommandOutput } from "./commands/RestoreDBClusterToPointInTimeCommand";
|
|
69
69
|
import { StartDBClusterCommandInput, StartDBClusterCommandOutput } from "./commands/StartDBClusterCommand";
|
|
70
70
|
import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "./commands/StopDBClusterCommand";
|
|
71
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
|
|
71
72
|
import { NeptuneClient } from "./NeptuneClient";
|
|
72
73
|
export interface Neptune {
|
|
73
74
|
/**
|
|
@@ -498,6 +499,12 @@ export interface Neptune {
|
|
|
498
499
|
stopDBCluster(args: StopDBClusterCommandInput, options?: __HttpHandlerOptions): Promise<StopDBClusterCommandOutput>;
|
|
499
500
|
stopDBCluster(args: StopDBClusterCommandInput, cb: (err: any, data?: StopDBClusterCommandOutput) => void): void;
|
|
500
501
|
stopDBCluster(args: StopDBClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDBClusterCommandOutput) => void): void;
|
|
502
|
+
/**
|
|
503
|
+
* @see {@link SwitchoverGlobalClusterCommand}
|
|
504
|
+
*/
|
|
505
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, options?: __HttpHandlerOptions): Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
506
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void): void;
|
|
507
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void): void;
|
|
501
508
|
}
|
|
502
509
|
/**
|
|
503
510
|
* <fullname>Amazon Neptune</fullname>
|
|
@@ -76,17 +76,18 @@ import { RestoreDBClusterFromSnapshotCommandInput, RestoreDBClusterFromSnapshotC
|
|
|
76
76
|
import { RestoreDBClusterToPointInTimeCommandInput, RestoreDBClusterToPointInTimeCommandOutput } from "./commands/RestoreDBClusterToPointInTimeCommand";
|
|
77
77
|
import { StartDBClusterCommandInput, StartDBClusterCommandOutput } from "./commands/StartDBClusterCommand";
|
|
78
78
|
import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "./commands/StopDBClusterCommand";
|
|
79
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
|
|
79
80
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
80
81
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
81
82
|
export { __Client };
|
|
82
83
|
/**
|
|
83
84
|
* @public
|
|
84
85
|
*/
|
|
85
|
-
export type ServiceInputTypes = AddRoleToDBClusterCommandInput | AddSourceIdentifierToSubscriptionCommandInput | AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | CopyDBClusterParameterGroupCommandInput | CopyDBClusterSnapshotCommandInput | CopyDBParameterGroupCommandInput | CreateDBClusterCommandInput | CreateDBClusterEndpointCommandInput | CreateDBClusterParameterGroupCommandInput | CreateDBClusterSnapshotCommandInput | CreateDBInstanceCommandInput | CreateDBParameterGroupCommandInput | CreateDBSubnetGroupCommandInput | CreateEventSubscriptionCommandInput | CreateGlobalClusterCommandInput | DeleteDBClusterCommandInput | DeleteDBClusterEndpointCommandInput | DeleteDBClusterParameterGroupCommandInput | DeleteDBClusterSnapshotCommandInput | DeleteDBInstanceCommandInput | DeleteDBParameterGroupCommandInput | DeleteDBSubnetGroupCommandInput | DeleteEventSubscriptionCommandInput | DeleteGlobalClusterCommandInput | DescribeDBClusterEndpointsCommandInput | DescribeDBClusterParameterGroupsCommandInput | DescribeDBClusterParametersCommandInput | DescribeDBClusterSnapshotAttributesCommandInput | DescribeDBClusterSnapshotsCommandInput | DescribeDBClustersCommandInput | DescribeDBEngineVersionsCommandInput | DescribeDBInstancesCommandInput | DescribeDBParameterGroupsCommandInput | DescribeDBParametersCommandInput | DescribeDBSubnetGroupsCommandInput | DescribeEngineDefaultClusterParametersCommandInput | DescribeEngineDefaultParametersCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeGlobalClustersCommandInput | DescribeOrderableDBInstanceOptionsCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeValidDBInstanceModificationsCommandInput | FailoverDBClusterCommandInput | FailoverGlobalClusterCommandInput | ListTagsForResourceCommandInput | ModifyDBClusterCommandInput | ModifyDBClusterEndpointCommandInput | ModifyDBClusterParameterGroupCommandInput | ModifyDBClusterSnapshotAttributeCommandInput | ModifyDBInstanceCommandInput | ModifyDBParameterGroupCommandInput | ModifyDBSubnetGroupCommandInput | ModifyEventSubscriptionCommandInput | ModifyGlobalClusterCommandInput | PromoteReadReplicaDBClusterCommandInput | RebootDBInstanceCommandInput | RemoveFromGlobalClusterCommandInput | RemoveRoleFromDBClusterCommandInput | RemoveSourceIdentifierFromSubscriptionCommandInput | RemoveTagsFromResourceCommandInput | ResetDBClusterParameterGroupCommandInput | ResetDBParameterGroupCommandInput | RestoreDBClusterFromSnapshotCommandInput | RestoreDBClusterToPointInTimeCommandInput | StartDBClusterCommandInput | StopDBClusterCommandInput;
|
|
86
|
+
export type ServiceInputTypes = AddRoleToDBClusterCommandInput | AddSourceIdentifierToSubscriptionCommandInput | AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | CopyDBClusterParameterGroupCommandInput | CopyDBClusterSnapshotCommandInput | CopyDBParameterGroupCommandInput | CreateDBClusterCommandInput | CreateDBClusterEndpointCommandInput | CreateDBClusterParameterGroupCommandInput | CreateDBClusterSnapshotCommandInput | CreateDBInstanceCommandInput | CreateDBParameterGroupCommandInput | CreateDBSubnetGroupCommandInput | CreateEventSubscriptionCommandInput | CreateGlobalClusterCommandInput | DeleteDBClusterCommandInput | DeleteDBClusterEndpointCommandInput | DeleteDBClusterParameterGroupCommandInput | DeleteDBClusterSnapshotCommandInput | DeleteDBInstanceCommandInput | DeleteDBParameterGroupCommandInput | DeleteDBSubnetGroupCommandInput | DeleteEventSubscriptionCommandInput | DeleteGlobalClusterCommandInput | DescribeDBClusterEndpointsCommandInput | DescribeDBClusterParameterGroupsCommandInput | DescribeDBClusterParametersCommandInput | DescribeDBClusterSnapshotAttributesCommandInput | DescribeDBClusterSnapshotsCommandInput | DescribeDBClustersCommandInput | DescribeDBEngineVersionsCommandInput | DescribeDBInstancesCommandInput | DescribeDBParameterGroupsCommandInput | DescribeDBParametersCommandInput | DescribeDBSubnetGroupsCommandInput | DescribeEngineDefaultClusterParametersCommandInput | DescribeEngineDefaultParametersCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeGlobalClustersCommandInput | DescribeOrderableDBInstanceOptionsCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeValidDBInstanceModificationsCommandInput | FailoverDBClusterCommandInput | FailoverGlobalClusterCommandInput | ListTagsForResourceCommandInput | ModifyDBClusterCommandInput | ModifyDBClusterEndpointCommandInput | ModifyDBClusterParameterGroupCommandInput | ModifyDBClusterSnapshotAttributeCommandInput | ModifyDBInstanceCommandInput | ModifyDBParameterGroupCommandInput | ModifyDBSubnetGroupCommandInput | ModifyEventSubscriptionCommandInput | ModifyGlobalClusterCommandInput | PromoteReadReplicaDBClusterCommandInput | RebootDBInstanceCommandInput | RemoveFromGlobalClusterCommandInput | RemoveRoleFromDBClusterCommandInput | RemoveSourceIdentifierFromSubscriptionCommandInput | RemoveTagsFromResourceCommandInput | ResetDBClusterParameterGroupCommandInput | ResetDBParameterGroupCommandInput | RestoreDBClusterFromSnapshotCommandInput | RestoreDBClusterToPointInTimeCommandInput | StartDBClusterCommandInput | StopDBClusterCommandInput | SwitchoverGlobalClusterCommandInput;
|
|
86
87
|
/**
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
|
-
export type ServiceOutputTypes = AddRoleToDBClusterCommandOutput | AddSourceIdentifierToSubscriptionCommandOutput | AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | CopyDBClusterParameterGroupCommandOutput | CopyDBClusterSnapshotCommandOutput | CopyDBParameterGroupCommandOutput | CreateDBClusterCommandOutput | CreateDBClusterEndpointCommandOutput | CreateDBClusterParameterGroupCommandOutput | CreateDBClusterSnapshotCommandOutput | CreateDBInstanceCommandOutput | CreateDBParameterGroupCommandOutput | CreateDBSubnetGroupCommandOutput | CreateEventSubscriptionCommandOutput | CreateGlobalClusterCommandOutput | DeleteDBClusterCommandOutput | DeleteDBClusterEndpointCommandOutput | DeleteDBClusterParameterGroupCommandOutput | DeleteDBClusterSnapshotCommandOutput | DeleteDBInstanceCommandOutput | DeleteDBParameterGroupCommandOutput | DeleteDBSubnetGroupCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteGlobalClusterCommandOutput | DescribeDBClusterEndpointsCommandOutput | DescribeDBClusterParameterGroupsCommandOutput | DescribeDBClusterParametersCommandOutput | DescribeDBClusterSnapshotAttributesCommandOutput | DescribeDBClusterSnapshotsCommandOutput | DescribeDBClustersCommandOutput | DescribeDBEngineVersionsCommandOutput | DescribeDBInstancesCommandOutput | DescribeDBParameterGroupsCommandOutput | DescribeDBParametersCommandOutput | DescribeDBSubnetGroupsCommandOutput | DescribeEngineDefaultClusterParametersCommandOutput | DescribeEngineDefaultParametersCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeGlobalClustersCommandOutput | DescribeOrderableDBInstanceOptionsCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeValidDBInstanceModificationsCommandOutput | FailoverDBClusterCommandOutput | FailoverGlobalClusterCommandOutput | ListTagsForResourceCommandOutput | ModifyDBClusterCommandOutput | ModifyDBClusterEndpointCommandOutput | ModifyDBClusterParameterGroupCommandOutput | ModifyDBClusterSnapshotAttributeCommandOutput | ModifyDBInstanceCommandOutput | ModifyDBParameterGroupCommandOutput | ModifyDBSubnetGroupCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyGlobalClusterCommandOutput | PromoteReadReplicaDBClusterCommandOutput | RebootDBInstanceCommandOutput | RemoveFromGlobalClusterCommandOutput | RemoveRoleFromDBClusterCommandOutput | RemoveSourceIdentifierFromSubscriptionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetDBClusterParameterGroupCommandOutput | ResetDBParameterGroupCommandOutput | RestoreDBClusterFromSnapshotCommandOutput | RestoreDBClusterToPointInTimeCommandOutput | StartDBClusterCommandOutput | StopDBClusterCommandOutput;
|
|
90
|
+
export type ServiceOutputTypes = AddRoleToDBClusterCommandOutput | AddSourceIdentifierToSubscriptionCommandOutput | AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | CopyDBClusterParameterGroupCommandOutput | CopyDBClusterSnapshotCommandOutput | CopyDBParameterGroupCommandOutput | CreateDBClusterCommandOutput | CreateDBClusterEndpointCommandOutput | CreateDBClusterParameterGroupCommandOutput | CreateDBClusterSnapshotCommandOutput | CreateDBInstanceCommandOutput | CreateDBParameterGroupCommandOutput | CreateDBSubnetGroupCommandOutput | CreateEventSubscriptionCommandOutput | CreateGlobalClusterCommandOutput | DeleteDBClusterCommandOutput | DeleteDBClusterEndpointCommandOutput | DeleteDBClusterParameterGroupCommandOutput | DeleteDBClusterSnapshotCommandOutput | DeleteDBInstanceCommandOutput | DeleteDBParameterGroupCommandOutput | DeleteDBSubnetGroupCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteGlobalClusterCommandOutput | DescribeDBClusterEndpointsCommandOutput | DescribeDBClusterParameterGroupsCommandOutput | DescribeDBClusterParametersCommandOutput | DescribeDBClusterSnapshotAttributesCommandOutput | DescribeDBClusterSnapshotsCommandOutput | DescribeDBClustersCommandOutput | DescribeDBEngineVersionsCommandOutput | DescribeDBInstancesCommandOutput | DescribeDBParameterGroupsCommandOutput | DescribeDBParametersCommandOutput | DescribeDBSubnetGroupsCommandOutput | DescribeEngineDefaultClusterParametersCommandOutput | DescribeEngineDefaultParametersCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeGlobalClustersCommandOutput | DescribeOrderableDBInstanceOptionsCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeValidDBInstanceModificationsCommandOutput | FailoverDBClusterCommandOutput | FailoverGlobalClusterCommandOutput | ListTagsForResourceCommandOutput | ModifyDBClusterCommandOutput | ModifyDBClusterEndpointCommandOutput | ModifyDBClusterParameterGroupCommandOutput | ModifyDBClusterSnapshotAttributeCommandOutput | ModifyDBInstanceCommandOutput | ModifyDBParameterGroupCommandOutput | ModifyDBSubnetGroupCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyGlobalClusterCommandOutput | PromoteReadReplicaDBClusterCommandOutput | RebootDBInstanceCommandOutput | RemoveFromGlobalClusterCommandOutput | RemoveRoleFromDBClusterCommandOutput | RemoveSourceIdentifierFromSubscriptionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetDBClusterParameterGroupCommandOutput | ResetDBParameterGroupCommandOutput | RestoreDBClusterFromSnapshotCommandOutput | RestoreDBClusterToPointInTimeCommandOutput | StartDBClusterCommandOutput | StopDBClusterCommandOutput | SwitchoverGlobalClusterCommandOutput;
|
|
90
91
|
/**
|
|
91
92
|
* @public
|
|
92
93
|
*/
|
|
@@ -71,6 +71,12 @@ declare const CreateGlobalClusterCommand_base: {
|
|
|
71
71
|
* // IsWriter: true || false,
|
|
72
72
|
* // },
|
|
73
73
|
* // ],
|
|
74
|
+
* // FailoverState: { // FailoverState
|
|
75
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
76
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
77
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
78
|
+
* // IsDataLossAllowed: true || false,
|
|
79
|
+
* // },
|
|
74
80
|
* // },
|
|
75
81
|
* // };
|
|
76
82
|
*
|
|
@@ -59,6 +59,12 @@ declare const DeleteGlobalClusterCommand_base: {
|
|
|
59
59
|
* // IsWriter: true || false,
|
|
60
60
|
* // },
|
|
61
61
|
* // ],
|
|
62
|
+
* // FailoverState: { // FailoverState
|
|
63
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
64
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
65
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
66
|
+
* // IsDataLossAllowed: true || false,
|
|
67
|
+
* // },
|
|
62
68
|
* // },
|
|
63
69
|
* // };
|
|
64
70
|
*
|
|
@@ -63,6 +63,12 @@ declare const DescribeGlobalClustersCommand_base: {
|
|
|
63
63
|
* // IsWriter: true || false,
|
|
64
64
|
* // },
|
|
65
65
|
* // ],
|
|
66
|
+
* // FailoverState: { // FailoverState
|
|
67
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
68
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
69
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
70
|
+
* // IsDataLossAllowed: true || false,
|
|
71
|
+
* // },
|
|
66
72
|
* // },
|
|
67
73
|
* // ],
|
|
68
74
|
* // };
|
|
@@ -50,6 +50,8 @@ declare const FailoverGlobalClusterCommand_base: {
|
|
|
50
50
|
* const input = { // FailoverGlobalClusterMessage
|
|
51
51
|
* GlobalClusterIdentifier: "STRING_VALUE", // required
|
|
52
52
|
* TargetDbClusterIdentifier: "STRING_VALUE", // required
|
|
53
|
+
* AllowDataLoss: true || false,
|
|
54
|
+
* Switchover: true || false,
|
|
53
55
|
* };
|
|
54
56
|
* const command = new FailoverGlobalClusterCommand(input);
|
|
55
57
|
* const response = await client.send(command);
|
|
@@ -72,6 +74,12 @@ declare const FailoverGlobalClusterCommand_base: {
|
|
|
72
74
|
* // IsWriter: true || false,
|
|
73
75
|
* // },
|
|
74
76
|
* // ],
|
|
77
|
+
* // FailoverState: { // FailoverState
|
|
78
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
79
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
80
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
81
|
+
* // IsDataLossAllowed: true || false,
|
|
82
|
+
* // },
|
|
75
83
|
* // },
|
|
76
84
|
* // };
|
|
77
85
|
*
|
|
@@ -64,6 +64,12 @@ declare const ModifyGlobalClusterCommand_base: {
|
|
|
64
64
|
* // IsWriter: true || false,
|
|
65
65
|
* // },
|
|
66
66
|
* // ],
|
|
67
|
+
* // FailoverState: { // FailoverState
|
|
68
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
69
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
70
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
71
|
+
* // IsDataLossAllowed: true || false,
|
|
72
|
+
* // },
|
|
67
73
|
* // },
|
|
68
74
|
* // };
|
|
69
75
|
*
|
|
@@ -62,6 +62,12 @@ declare const RemoveFromGlobalClusterCommand_base: {
|
|
|
62
62
|
* // IsWriter: true || false,
|
|
63
63
|
* // },
|
|
64
64
|
* // ],
|
|
65
|
+
* // FailoverState: { // FailoverState
|
|
66
|
+
* // Status: "pending" || "failing-over" || "cancelling",
|
|
67
|
+
* // FromDbClusterArn: "STRING_VALUE",
|
|
68
|
+
* // ToDbClusterArn: "STRING_VALUE",
|
|
69
|
+
* // IsDataLossAllowed: true || false,
|
|
70
|
+
* // },
|
|
65
71
|
* // },
|
|
66
72
|
* // };
|
|
67
73
|
*
|