@aws-sdk/client-rds 3.395.0 → 3.396.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/RDS.js +2 -0
- package/dist-cjs/commands/SwitchoverGlobalClusterCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_query.js +86 -4
- package/dist-es/RDS.js +2 -0
- package/dist-es/commands/SwitchoverGlobalClusterCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_query.js +80 -0
- package/dist-types/RDS.d.ts +7 -0
- package/dist-types/RDSClient.d.ts +3 -2
- package/dist-types/commands/CreateGlobalClusterCommand.d.ts +2 -0
- package/dist-types/commands/DeleteGlobalClusterCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDBEngineVersionsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +2 -0
- package/dist-types/commands/FailoverGlobalClusterCommand.d.ts +38 -11
- package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +3 -1
- package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +2 -0
- package/dist-types/commands/SwitchoverGlobalClusterCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +46 -245
- package/dist-types/models/models_1.d.ts +286 -8
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/RDS.d.ts +17 -0
- package/dist-types/ts3.4/RDSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DescribeDBEngineVersionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SwitchoverGlobalClusterCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -12
- package/dist-types/ts3.4/models/models_1.d.ts +21 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1391,6 +1391,14 @@ SwitchoverBlueGreenDeployment
|
|
|
1391
1391
|
|
|
1392
1392
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rds/classes/switchoverbluegreendeploymentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rds/interfaces/switchoverbluegreendeploymentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rds/interfaces/switchoverbluegreendeploymentcommandoutput.html)
|
|
1393
1393
|
|
|
1394
|
+
</details>
|
|
1395
|
+
<details>
|
|
1396
|
+
<summary>
|
|
1397
|
+
SwitchoverGlobalCluster
|
|
1398
|
+
</summary>
|
|
1399
|
+
|
|
1400
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rds/classes/switchoverglobalclustercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rds/interfaces/switchoverglobalclustercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rds/interfaces/switchoverglobalclustercommandoutput.html)
|
|
1401
|
+
|
|
1394
1402
|
</details>
|
|
1395
1403
|
<details>
|
|
1396
1404
|
<summary>
|
package/dist-cjs/RDS.js
CHANGED
|
@@ -144,6 +144,7 @@ const StopDBClusterCommand_1 = require("./commands/StopDBClusterCommand");
|
|
|
144
144
|
const StopDBInstanceAutomatedBackupsReplicationCommand_1 = require("./commands/StopDBInstanceAutomatedBackupsReplicationCommand");
|
|
145
145
|
const StopDBInstanceCommand_1 = require("./commands/StopDBInstanceCommand");
|
|
146
146
|
const SwitchoverBlueGreenDeploymentCommand_1 = require("./commands/SwitchoverBlueGreenDeploymentCommand");
|
|
147
|
+
const SwitchoverGlobalClusterCommand_1 = require("./commands/SwitchoverGlobalClusterCommand");
|
|
147
148
|
const SwitchoverReadReplicaCommand_1 = require("./commands/SwitchoverReadReplicaCommand");
|
|
148
149
|
const RDSClient_1 = require("./RDSClient");
|
|
149
150
|
const commands = {
|
|
@@ -289,6 +290,7 @@ const commands = {
|
|
|
289
290
|
StopDBInstanceCommand: StopDBInstanceCommand_1.StopDBInstanceCommand,
|
|
290
291
|
StopDBInstanceAutomatedBackupsReplicationCommand: StopDBInstanceAutomatedBackupsReplicationCommand_1.StopDBInstanceAutomatedBackupsReplicationCommand,
|
|
291
292
|
SwitchoverBlueGreenDeploymentCommand: SwitchoverBlueGreenDeploymentCommand_1.SwitchoverBlueGreenDeploymentCommand,
|
|
293
|
+
SwitchoverGlobalClusterCommand: SwitchoverGlobalClusterCommand_1.SwitchoverGlobalClusterCommand,
|
|
292
294
|
SwitchoverReadReplicaCommand: SwitchoverReadReplicaCommand_1.SwitchoverReadReplicaCommand,
|
|
293
295
|
};
|
|
294
296
|
class RDS extends RDSClient_1.RDSClient {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwitchoverGlobalClusterCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
9
|
+
class SwitchoverGlobalClusterCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SwitchoverGlobalClusterCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RDSClient";
|
|
28
|
+
const commandName = "SwitchoverGlobalClusterCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_query_1.se_SwitchoverGlobalClusterCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_query_1.de_SwitchoverGlobalClusterCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.SwitchoverGlobalClusterCommand = SwitchoverGlobalClusterCommand;
|
|
@@ -143,4 +143,5 @@ tslib_1.__exportStar(require("./StopDBClusterCommand"), exports);
|
|
|
143
143
|
tslib_1.__exportStar(require("./StopDBInstanceAutomatedBackupsReplicationCommand"), exports);
|
|
144
144
|
tslib_1.__exportStar(require("./StopDBInstanceCommand"), exports);
|
|
145
145
|
tslib_1.__exportStar(require("./SwitchoverBlueGreenDeploymentCommand"), exports);
|
|
146
|
+
tslib_1.__exportStar(require("./SwitchoverGlobalClusterCommand"), exports);
|
|
146
147
|
tslib_1.__exportStar(require("./SwitchoverReadReplicaCommand"), exports);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WriteForwardingStatus = exports.Ec2ImagePropertiesNotSupportedFault = exports.CustomDBEngineVersionQuotaExceededFault = exports.CustomDBEngineVersionAlreadyExistsFault = exports.CreateCustomDBEngineVersionFault = exports.SourceDatabaseNotSupportedFault = exports.SourceClusterNotSupportedFault = exports.InstanceQuotaExceededFault = exports.DBClusterQuotaExceededFault = exports.DBClusterParameterGroupNotFoundFault = exports.BlueGreenDeploymentAlreadyExistsFault = exports.OptionGroupQuotaExceededFault = exports.OptionGroupNotFoundFault = exports.OptionGroupAlreadyExistsFault = exports.InvalidDBSnapshotStateFault = exports.DBSnapshotAlreadyExistsFault = exports.CustomAvailabilityZoneNotFoundFault = exports.SnapshotQuotaExceededFault = exports.KMSKeyNotAccessibleFault = exports.InvalidDBClusterSnapshotStateFault = exports.DBClusterSnapshotNotFoundFault = exports.DBClusterSnapshotAlreadyExistsFault = exports.DBParameterGroupQuotaExceededFault = exports.DBParameterGroupNotFoundFault = exports.DBParameterGroupAlreadyExistsFault = exports.InvalidExportTaskStateFault = exports.ExportTaskNotFoundFault = exports.ExportSourceType = exports.InvalidDBSecurityGroupStateFault = exports.DBSecurityGroupNotFoundFault = exports.AuthorizationQuotaExceededFault = exports.AuthorizationAlreadyExistsFault = exports.ResourceNotFoundFault = exports.DBSnapshotNotFoundFault = exports.DBProxyTargetGroupNotFoundFault = exports.DBProxyNotFoundFault = exports.BlueGreenDeploymentNotFoundFault = exports.SubscriptionNotFoundFault = exports.SourceNotFoundFault = exports.InvalidDBInstanceStateFault = exports.DBInstanceRoleQuotaExceededFault = exports.DBInstanceRoleAlreadyExistsFault = exports.DBInstanceNotFoundFault = exports.InvalidDBClusterStateFault = exports.DBClusterRoleQuotaExceededFault = exports.DBClusterRoleAlreadyExistsFault = exports.DBClusterNotFoundFault = exports.ActivityStreamStatus = exports.ActivityStreamPolicyStatus = exports.ActivityStreamMode = void 0;
|
|
4
4
|
exports.SubscriptionCategoryNotFoundFault = exports.SubscriptionAlreadyExistFault = exports.SNSTopicArnNotFoundFault = exports.SNSNoAuthorizationFault = exports.SNSInvalidTopicFault = exports.EventSubscriptionQuotaExceededFault = exports.DBSubnetQuotaExceededFault = exports.DBSubnetGroupQuotaExceededFault = exports.DBSubnetGroupAlreadyExistsFault = exports.DBSecurityGroupQuotaExceededFault = exports.DBSecurityGroupNotSupportedFault = exports.DBSecurityGroupAlreadyExistsFault = exports.InvalidDBProxyStateFault = exports.DBProxyEndpointQuotaExceededFault = exports.DBProxyEndpointAlreadyExistsFault = exports.DBProxyEndpointStatus = exports.DBProxyEndpointTargetRole = exports.DBProxyQuotaExceededFault = exports.DBProxyAlreadyExistsFault = exports.DBProxyStatus = exports.EngineFamily = exports.IAMAuthMode = exports.ClientPasswordAuthType = exports.AuthScheme = exports.InvalidDBSubnetGroupFault = exports.DBSubnetGroupNotAllowedFault = exports.StorageTypeNotSupportedFault = exports.ProvisionedIopsNotAvailableInAZFault = exports.NetworkTypeNotSupported = exports.InsufficientDBInstanceCapacityFault = exports.DBInstanceAlreadyExistsFault = exports.ReplicaMode = exports.AutomationMode = exports.CertificateNotFoundFault = exports.BackupPolicyNotFoundFault = exports.AuthorizationNotFoundFault = exports.DBClusterEndpointQuotaExceededFault = exports.DBClusterEndpointAlreadyExistsFault = exports.StorageQuotaExceededFault = exports.InvalidVPCNetworkStateFault = exports.InvalidSubnet = exports.InvalidGlobalClusterStateFault = exports.InvalidDBSubnetGroupStateFault = exports.InsufficientStorageClusterCapacityFault = exports.GlobalClusterNotFoundFault = exports.DomainNotFoundFault = exports.DBSubnetGroupNotFoundFault = exports.DBSubnetGroupDoesNotCoverEnoughAZs = exports.DBClusterAlreadyExistsFault = exports.LocalWriteForwardingStatus = void 0;
|
|
5
|
-
exports.ApplyMethod = exports.DBClusterBacktrackNotFoundFault = exports.DBProxyTargetNotFoundFault = exports.InvalidOptionGroupStateFault = exports.InvalidEventSubscriptionStateFault = exports.InvalidDBSubnetStateFault = exports.InvalidDBProxyEndpointStateFault = exports.DBProxyEndpointNotFoundFault = exports.InvalidDBInstanceAutomatedBackupStateFault = exports.DBInstanceAutomatedBackupNotFoundFault = exports.DBInstanceAutomatedBackupQuotaExceededFault = exports.InvalidDBParameterGroupStateFault = exports.InvalidDBClusterEndpointStateFault = exports.DBClusterEndpointNotFoundFault = exports.InvalidDBClusterAutomatedBackupStateFault = exports.DBClusterAutomatedBackupNotFoundFault = exports.DBClusterAutomatedBackupQuotaExceededFault = exports.InvalidCustomDBEngineVersionStateFault = exports.CustomDBEngineVersionNotFoundFault = exports.InvalidBlueGreenDeploymentStateFault = exports.GlobalClusterQuotaExceededFault = exports.GlobalClusterAlreadyExistsFault = exports.FailoverStatus = void 0;
|
|
5
|
+
exports.ApplyMethod = exports.DBClusterBacktrackNotFoundFault = exports.DBProxyTargetNotFoundFault = exports.InvalidOptionGroupStateFault = exports.InvalidEventSubscriptionStateFault = exports.InvalidDBSubnetStateFault = exports.InvalidDBProxyEndpointStateFault = exports.DBProxyEndpointNotFoundFault = exports.InvalidDBInstanceAutomatedBackupStateFault = exports.DBInstanceAutomatedBackupNotFoundFault = exports.DBInstanceAutomatedBackupQuotaExceededFault = exports.InvalidDBParameterGroupStateFault = exports.InvalidDBClusterEndpointStateFault = exports.DBClusterEndpointNotFoundFault = exports.InvalidDBClusterAutomatedBackupStateFault = exports.DBClusterAutomatedBackupNotFoundFault = exports.DBClusterAutomatedBackupQuotaExceededFault = exports.InvalidCustomDBEngineVersionStateFault = exports.CustomDBEngineVersionNotFoundFault = exports.InvalidBlueGreenDeploymentStateFault = exports.GlobalClusterQuotaExceededFault = exports.GlobalClusterAlreadyExistsFault = exports.GlobalClusterMemberSynchronizationStatus = exports.FailoverStatus = void 0;
|
|
6
6
|
const RDSServiceException_1 = require("./RDSServiceException");
|
|
7
7
|
exports.ActivityStreamMode = {
|
|
8
8
|
async: "async",
|
|
@@ -1198,6 +1198,10 @@ exports.FailoverStatus = {
|
|
|
1198
1198
|
FAILING_OVER: "failing-over",
|
|
1199
1199
|
PENDING: "pending",
|
|
1200
1200
|
};
|
|
1201
|
+
exports.GlobalClusterMemberSynchronizationStatus = {
|
|
1202
|
+
CONNECTED: "connected",
|
|
1203
|
+
PENDING_RESYNC: "pending-resync",
|
|
1204
|
+
};
|
|
1201
1205
|
class GlobalClusterAlreadyExistsFault extends RDSServiceException_1.RDSServiceException {
|
|
1202
1206
|
constructor(opts) {
|
|
1203
1207
|
super({
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_DescribeAccountAttributesCommand = exports.se_DeregisterDBProxyTargetsCommand = exports.se_DeleteOptionGroupCommand = exports.se_DeleteGlobalClusterCommand = exports.se_DeleteEventSubscriptionCommand = exports.se_DeleteDBSubnetGroupCommand = exports.se_DeleteDBSnapshotCommand = exports.se_DeleteDBSecurityGroupCommand = exports.se_DeleteDBProxyEndpointCommand = exports.se_DeleteDBProxyCommand = exports.se_DeleteDBParameterGroupCommand = exports.se_DeleteDBInstanceAutomatedBackupCommand = exports.se_DeleteDBInstanceCommand = exports.se_DeleteDBClusterSnapshotCommand = exports.se_DeleteDBClusterParameterGroupCommand = exports.se_DeleteDBClusterEndpointCommand = exports.se_DeleteDBClusterAutomatedBackupCommand = exports.se_DeleteDBClusterCommand = exports.se_DeleteCustomDBEngineVersionCommand = exports.se_DeleteBlueGreenDeploymentCommand = exports.se_CreateOptionGroupCommand = exports.se_CreateGlobalClusterCommand = exports.se_CreateEventSubscriptionCommand = exports.se_CreateDBSubnetGroupCommand = exports.se_CreateDBSnapshotCommand = exports.se_CreateDBSecurityGroupCommand = exports.se_CreateDBProxyEndpointCommand = exports.se_CreateDBProxyCommand = exports.se_CreateDBParameterGroupCommand = exports.se_CreateDBInstanceReadReplicaCommand = exports.se_CreateDBInstanceCommand = exports.se_CreateDBClusterSnapshotCommand = exports.se_CreateDBClusterParameterGroupCommand = exports.se_CreateDBClusterEndpointCommand = exports.se_CreateDBClusterCommand = exports.se_CreateCustomDBEngineVersionCommand = exports.se_CreateBlueGreenDeploymentCommand = exports.se_CopyOptionGroupCommand = exports.se_CopyDBSnapshotCommand = exports.se_CopyDBParameterGroupCommand = exports.se_CopyDBClusterSnapshotCommand = exports.se_CopyDBClusterParameterGroupCommand = exports.se_CancelExportTaskCommand = exports.se_BacktrackDBClusterCommand = exports.se_AuthorizeDBSecurityGroupIngressCommand = exports.se_ApplyPendingMaintenanceActionCommand = exports.se_AddTagsToResourceCommand = exports.se_AddSourceIdentifierToSubscriptionCommand = exports.se_AddRoleToDBInstanceCommand = exports.se_AddRoleToDBClusterCommand = void 0;
|
|
4
4
|
exports.se_ModifyDBClusterParameterGroupCommand = exports.se_ModifyDBClusterEndpointCommand = exports.se_ModifyDBClusterCommand = exports.se_ModifyCustomDBEngineVersionCommand = exports.se_ModifyCurrentDBClusterCapacityCommand = exports.se_ModifyCertificatesCommand = exports.se_ModifyActivityStreamCommand = exports.se_ListTagsForResourceCommand = exports.se_FailoverGlobalClusterCommand = exports.se_FailoverDBClusterCommand = exports.se_DownloadDBLogFilePortionCommand = exports.se_DescribeValidDBInstanceModificationsCommand = exports.se_DescribeSourceRegionsCommand = exports.se_DescribeReservedDBInstancesOfferingsCommand = exports.se_DescribeReservedDBInstancesCommand = exports.se_DescribePendingMaintenanceActionsCommand = exports.se_DescribeOrderableDBInstanceOptionsCommand = exports.se_DescribeOptionGroupsCommand = exports.se_DescribeOptionGroupOptionsCommand = exports.se_DescribeGlobalClustersCommand = exports.se_DescribeExportTasksCommand = exports.se_DescribeEventSubscriptionsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEventCategoriesCommand = exports.se_DescribeEngineDefaultParametersCommand = exports.se_DescribeEngineDefaultClusterParametersCommand = exports.se_DescribeDBSubnetGroupsCommand = exports.se_DescribeDBSnapshotsCommand = exports.se_DescribeDBSnapshotAttributesCommand = exports.se_DescribeDBSecurityGroupsCommand = exports.se_DescribeDBProxyTargetsCommand = exports.se_DescribeDBProxyTargetGroupsCommand = exports.se_DescribeDBProxyEndpointsCommand = exports.se_DescribeDBProxiesCommand = exports.se_DescribeDBParametersCommand = exports.se_DescribeDBParameterGroupsCommand = exports.se_DescribeDBLogFilesCommand = exports.se_DescribeDBInstancesCommand = exports.se_DescribeDBInstanceAutomatedBackupsCommand = exports.se_DescribeDBEngineVersionsCommand = exports.se_DescribeDBClusterSnapshotsCommand = exports.se_DescribeDBClusterSnapshotAttributesCommand = exports.se_DescribeDBClustersCommand = exports.se_DescribeDBClusterParametersCommand = exports.se_DescribeDBClusterParameterGroupsCommand = exports.se_DescribeDBClusterEndpointsCommand = exports.se_DescribeDBClusterBacktracksCommand = exports.se_DescribeDBClusterAutomatedBackupsCommand = exports.se_DescribeCertificatesCommand = exports.se_DescribeBlueGreenDeploymentsCommand = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.de_SwitchoverReadReplicaCommand = exports.de_SwitchoverBlueGreenDeploymentCommand = exports.de_StopDBInstanceAutomatedBackupsReplicationCommand = exports.de_StopDBInstanceCommand = exports.de_StopDBClusterCommand = exports.de_StopActivityStreamCommand = exports.de_StartExportTaskCommand = exports.de_StartDBInstanceAutomatedBackupsReplicationCommand = exports.de_StartDBInstanceCommand = exports.de_StartDBClusterCommand = exports.de_StartActivityStreamCommand = exports.de_RevokeDBSecurityGroupIngressCommand = exports.de_RestoreDBInstanceToPointInTimeCommand = exports.de_RestoreDBInstanceFromS3Command = exports.de_RestoreDBInstanceFromDBSnapshotCommand = exports.de_RestoreDBClusterToPointInTimeCommand = exports.de_RestoreDBClusterFromSnapshotCommand = exports.de_RestoreDBClusterFromS3Command = exports.de_ResetDBParameterGroupCommand = exports.de_ResetDBClusterParameterGroupCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RemoveSourceIdentifierFromSubscriptionCommand = exports.de_RemoveRoleFromDBInstanceCommand = exports.de_RemoveRoleFromDBClusterCommand = exports.de_RemoveFromGlobalClusterCommand = exports.de_RegisterDBProxyTargetsCommand = exports.de_RebootDBInstanceCommand = exports.de_RebootDBClusterCommand = exports.de_PurchaseReservedDBInstancesOfferingCommand = exports.de_PromoteReadReplicaDBClusterCommand = exports.de_PromoteReadReplicaCommand = exports.de_ModifyOptionGroupCommand = exports.de_ModifyGlobalClusterCommand = exports.de_ModifyEventSubscriptionCommand = exports.de_ModifyDBSubnetGroupCommand = exports.de_ModifyDBSnapshotAttributeCommand = void 0;
|
|
5
|
+
exports.de_AuthorizeDBSecurityGroupIngressCommand = exports.de_ApplyPendingMaintenanceActionCommand = exports.de_AddTagsToResourceCommand = exports.de_AddSourceIdentifierToSubscriptionCommand = exports.de_AddRoleToDBInstanceCommand = exports.de_AddRoleToDBClusterCommand = exports.se_SwitchoverReadReplicaCommand = exports.se_SwitchoverGlobalClusterCommand = exports.se_SwitchoverBlueGreenDeploymentCommand = exports.se_StopDBInstanceAutomatedBackupsReplicationCommand = exports.se_StopDBInstanceCommand = exports.se_StopDBClusterCommand = exports.se_StopActivityStreamCommand = exports.se_StartExportTaskCommand = exports.se_StartDBInstanceAutomatedBackupsReplicationCommand = exports.se_StartDBInstanceCommand = exports.se_StartDBClusterCommand = exports.se_StartActivityStreamCommand = exports.se_RevokeDBSecurityGroupIngressCommand = exports.se_RestoreDBInstanceToPointInTimeCommand = exports.se_RestoreDBInstanceFromS3Command = exports.se_RestoreDBInstanceFromDBSnapshotCommand = exports.se_RestoreDBClusterToPointInTimeCommand = exports.se_RestoreDBClusterFromSnapshotCommand = exports.se_RestoreDBClusterFromS3Command = exports.se_ResetDBParameterGroupCommand = exports.se_ResetDBClusterParameterGroupCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_RemoveSourceIdentifierFromSubscriptionCommand = exports.se_RemoveRoleFromDBInstanceCommand = exports.se_RemoveRoleFromDBClusterCommand = exports.se_RemoveFromGlobalClusterCommand = exports.se_RegisterDBProxyTargetsCommand = exports.se_RebootDBInstanceCommand = exports.se_RebootDBClusterCommand = exports.se_PurchaseReservedDBInstancesOfferingCommand = exports.se_PromoteReadReplicaDBClusterCommand = exports.se_PromoteReadReplicaCommand = exports.se_ModifyOptionGroupCommand = exports.se_ModifyGlobalClusterCommand = exports.se_ModifyEventSubscriptionCommand = exports.se_ModifyDBSubnetGroupCommand = exports.se_ModifyDBSnapshotAttributeCommand = exports.se_ModifyDBSnapshotCommand = exports.se_ModifyDBProxyTargetGroupCommand = exports.se_ModifyDBProxyEndpointCommand = exports.se_ModifyDBProxyCommand = exports.se_ModifyDBParameterGroupCommand = exports.se_ModifyDBInstanceCommand = exports.se_ModifyDBClusterSnapshotAttributeCommand = void 0;
|
|
6
|
+
exports.de_DescribeDBClusterParameterGroupsCommand = exports.de_DescribeDBClusterEndpointsCommand = exports.de_DescribeDBClusterBacktracksCommand = exports.de_DescribeDBClusterAutomatedBackupsCommand = exports.de_DescribeCertificatesCommand = exports.de_DescribeBlueGreenDeploymentsCommand = exports.de_DescribeAccountAttributesCommand = exports.de_DeregisterDBProxyTargetsCommand = exports.de_DeleteOptionGroupCommand = exports.de_DeleteGlobalClusterCommand = exports.de_DeleteEventSubscriptionCommand = exports.de_DeleteDBSubnetGroupCommand = exports.de_DeleteDBSnapshotCommand = exports.de_DeleteDBSecurityGroupCommand = exports.de_DeleteDBProxyEndpointCommand = exports.de_DeleteDBProxyCommand = exports.de_DeleteDBParameterGroupCommand = exports.de_DeleteDBInstanceAutomatedBackupCommand = exports.de_DeleteDBInstanceCommand = exports.de_DeleteDBClusterSnapshotCommand = exports.de_DeleteDBClusterParameterGroupCommand = exports.de_DeleteDBClusterEndpointCommand = exports.de_DeleteDBClusterAutomatedBackupCommand = exports.de_DeleteDBClusterCommand = exports.de_DeleteCustomDBEngineVersionCommand = exports.de_DeleteBlueGreenDeploymentCommand = exports.de_CreateOptionGroupCommand = exports.de_CreateGlobalClusterCommand = exports.de_CreateEventSubscriptionCommand = exports.de_CreateDBSubnetGroupCommand = exports.de_CreateDBSnapshotCommand = exports.de_CreateDBSecurityGroupCommand = exports.de_CreateDBProxyEndpointCommand = exports.de_CreateDBProxyCommand = exports.de_CreateDBParameterGroupCommand = exports.de_CreateDBInstanceReadReplicaCommand = exports.de_CreateDBInstanceCommand = exports.de_CreateDBClusterSnapshotCommand = exports.de_CreateDBClusterParameterGroupCommand = exports.de_CreateDBClusterEndpointCommand = exports.de_CreateDBClusterCommand = exports.de_CreateCustomDBEngineVersionCommand = exports.de_CreateBlueGreenDeploymentCommand = exports.de_CopyOptionGroupCommand = exports.de_CopyDBSnapshotCommand = exports.de_CopyDBParameterGroupCommand = exports.de_CopyDBClusterSnapshotCommand = exports.de_CopyDBClusterParameterGroupCommand = exports.de_CancelExportTaskCommand = exports.de_BacktrackDBClusterCommand = void 0;
|
|
7
|
+
exports.de_ModifyDBProxyTargetGroupCommand = exports.de_ModifyDBProxyEndpointCommand = exports.de_ModifyDBProxyCommand = exports.de_ModifyDBParameterGroupCommand = exports.de_ModifyDBInstanceCommand = exports.de_ModifyDBClusterSnapshotAttributeCommand = exports.de_ModifyDBClusterParameterGroupCommand = exports.de_ModifyDBClusterEndpointCommand = exports.de_ModifyDBClusterCommand = exports.de_ModifyCustomDBEngineVersionCommand = exports.de_ModifyCurrentDBClusterCapacityCommand = exports.de_ModifyCertificatesCommand = exports.de_ModifyActivityStreamCommand = exports.de_ListTagsForResourceCommand = exports.de_FailoverGlobalClusterCommand = exports.de_FailoverDBClusterCommand = exports.de_DownloadDBLogFilePortionCommand = exports.de_DescribeValidDBInstanceModificationsCommand = exports.de_DescribeSourceRegionsCommand = exports.de_DescribeReservedDBInstancesOfferingsCommand = exports.de_DescribeReservedDBInstancesCommand = exports.de_DescribePendingMaintenanceActionsCommand = exports.de_DescribeOrderableDBInstanceOptionsCommand = exports.de_DescribeOptionGroupsCommand = exports.de_DescribeOptionGroupOptionsCommand = exports.de_DescribeGlobalClustersCommand = exports.de_DescribeExportTasksCommand = exports.de_DescribeEventSubscriptionsCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEventCategoriesCommand = exports.de_DescribeEngineDefaultParametersCommand = exports.de_DescribeEngineDefaultClusterParametersCommand = exports.de_DescribeDBSubnetGroupsCommand = exports.de_DescribeDBSnapshotsCommand = exports.de_DescribeDBSnapshotAttributesCommand = exports.de_DescribeDBSecurityGroupsCommand = exports.de_DescribeDBProxyTargetsCommand = exports.de_DescribeDBProxyTargetGroupsCommand = exports.de_DescribeDBProxyEndpointsCommand = exports.de_DescribeDBProxiesCommand = exports.de_DescribeDBParametersCommand = exports.de_DescribeDBParameterGroupsCommand = exports.de_DescribeDBLogFilesCommand = exports.de_DescribeDBInstancesCommand = exports.de_DescribeDBInstanceAutomatedBackupsCommand = exports.de_DescribeDBEngineVersionsCommand = exports.de_DescribeDBClusterSnapshotsCommand = exports.de_DescribeDBClusterSnapshotAttributesCommand = exports.de_DescribeDBClustersCommand = exports.de_DescribeDBClusterParametersCommand = void 0;
|
|
8
|
+
exports.de_SwitchoverReadReplicaCommand = exports.de_SwitchoverGlobalClusterCommand = exports.de_SwitchoverBlueGreenDeploymentCommand = exports.de_StopDBInstanceAutomatedBackupsReplicationCommand = exports.de_StopDBInstanceCommand = exports.de_StopDBClusterCommand = exports.de_StopActivityStreamCommand = exports.de_StartExportTaskCommand = exports.de_StartDBInstanceAutomatedBackupsReplicationCommand = exports.de_StartDBInstanceCommand = exports.de_StartDBClusterCommand = exports.de_StartActivityStreamCommand = exports.de_RevokeDBSecurityGroupIngressCommand = exports.de_RestoreDBInstanceToPointInTimeCommand = exports.de_RestoreDBInstanceFromS3Command = exports.de_RestoreDBInstanceFromDBSnapshotCommand = exports.de_RestoreDBClusterToPointInTimeCommand = exports.de_RestoreDBClusterFromSnapshotCommand = exports.de_RestoreDBClusterFromS3Command = exports.de_ResetDBParameterGroupCommand = exports.de_ResetDBClusterParameterGroupCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RemoveSourceIdentifierFromSubscriptionCommand = exports.de_RemoveRoleFromDBInstanceCommand = exports.de_RemoveRoleFromDBClusterCommand = exports.de_RemoveFromGlobalClusterCommand = exports.de_RegisterDBProxyTargetsCommand = exports.de_RebootDBInstanceCommand = exports.de_RebootDBClusterCommand = exports.de_PurchaseReservedDBInstancesOfferingCommand = exports.de_PromoteReadReplicaDBClusterCommand = exports.de_PromoteReadReplicaCommand = exports.de_ModifyOptionGroupCommand = exports.de_ModifyGlobalClusterCommand = exports.de_ModifyEventSubscriptionCommand = exports.de_ModifyDBSubnetGroupCommand = exports.de_ModifyDBSnapshotAttributeCommand = exports.de_ModifyDBSnapshotCommand = void 0;
|
|
9
9
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
10
10
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
11
11
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
@@ -1574,6 +1574,17 @@ const se_SwitchoverBlueGreenDeploymentCommand = async (input, context) => {
|
|
|
1574
1574
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1575
1575
|
};
|
|
1576
1576
|
exports.se_SwitchoverBlueGreenDeploymentCommand = se_SwitchoverBlueGreenDeploymentCommand;
|
|
1577
|
+
const se_SwitchoverGlobalClusterCommand = async (input, context) => {
|
|
1578
|
+
const headers = SHARED_HEADERS;
|
|
1579
|
+
let body;
|
|
1580
|
+
body = buildFormUrlencodedString({
|
|
1581
|
+
...se_SwitchoverGlobalClusterMessage(input, context),
|
|
1582
|
+
Action: "SwitchoverGlobalCluster",
|
|
1583
|
+
Version: "2014-10-31",
|
|
1584
|
+
});
|
|
1585
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1586
|
+
};
|
|
1587
|
+
exports.se_SwitchoverGlobalClusterCommand = se_SwitchoverGlobalClusterCommand;
|
|
1577
1588
|
const se_SwitchoverReadReplicaCommand = async (input, context) => {
|
|
1578
1589
|
const headers = SHARED_HEADERS;
|
|
1579
1590
|
let body;
|
|
@@ -7510,6 +7521,48 @@ const de_SwitchoverBlueGreenDeploymentCommandError = async (output, context) =>
|
|
|
7510
7521
|
});
|
|
7511
7522
|
}
|
|
7512
7523
|
};
|
|
7524
|
+
const de_SwitchoverGlobalClusterCommand = async (output, context) => {
|
|
7525
|
+
if (output.statusCode >= 300) {
|
|
7526
|
+
return de_SwitchoverGlobalClusterCommandError(output, context);
|
|
7527
|
+
}
|
|
7528
|
+
const data = await parseBody(output.body, context);
|
|
7529
|
+
let contents = {};
|
|
7530
|
+
contents = de_SwitchoverGlobalClusterResult(data.SwitchoverGlobalClusterResult, context);
|
|
7531
|
+
const response = {
|
|
7532
|
+
$metadata: deserializeMetadata(output),
|
|
7533
|
+
...contents,
|
|
7534
|
+
};
|
|
7535
|
+
return response;
|
|
7536
|
+
};
|
|
7537
|
+
exports.de_SwitchoverGlobalClusterCommand = de_SwitchoverGlobalClusterCommand;
|
|
7538
|
+
const de_SwitchoverGlobalClusterCommandError = async (output, context) => {
|
|
7539
|
+
const parsedOutput = {
|
|
7540
|
+
...output,
|
|
7541
|
+
body: await parseErrorBody(output.body, context),
|
|
7542
|
+
};
|
|
7543
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
7544
|
+
switch (errorCode) {
|
|
7545
|
+
case "DBClusterNotFoundFault":
|
|
7546
|
+
case "com.amazonaws.rds#DBClusterNotFoundFault":
|
|
7547
|
+
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
7548
|
+
case "GlobalClusterNotFoundFault":
|
|
7549
|
+
case "com.amazonaws.rds#GlobalClusterNotFoundFault":
|
|
7550
|
+
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
7551
|
+
case "InvalidDBClusterStateFault":
|
|
7552
|
+
case "com.amazonaws.rds#InvalidDBClusterStateFault":
|
|
7553
|
+
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
7554
|
+
case "InvalidGlobalClusterStateFault":
|
|
7555
|
+
case "com.amazonaws.rds#InvalidGlobalClusterStateFault":
|
|
7556
|
+
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
7557
|
+
default:
|
|
7558
|
+
const parsedBody = parsedOutput.body;
|
|
7559
|
+
return throwDefaultError({
|
|
7560
|
+
output,
|
|
7561
|
+
parsedBody: parsedBody.Error,
|
|
7562
|
+
errorCode,
|
|
7563
|
+
});
|
|
7564
|
+
}
|
|
7565
|
+
};
|
|
7513
7566
|
const de_SwitchoverReadReplicaCommand = async (output, context) => {
|
|
7514
7567
|
if (output.statusCode >= 300) {
|
|
7515
7568
|
return de_SwitchoverReadReplicaCommandError(output, context);
|
|
@@ -11332,6 +11385,12 @@ const se_FailoverGlobalClusterMessage = (input, context) => {
|
|
|
11332
11385
|
if (input.TargetDbClusterIdentifier != null) {
|
|
11333
11386
|
entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
|
|
11334
11387
|
}
|
|
11388
|
+
if (input.AllowDataLoss != null) {
|
|
11389
|
+
entries["AllowDataLoss"] = input.AllowDataLoss;
|
|
11390
|
+
}
|
|
11391
|
+
if (input.Switchover != null) {
|
|
11392
|
+
entries["Switchover"] = input.Switchover;
|
|
11393
|
+
}
|
|
11335
11394
|
return entries;
|
|
11336
11395
|
};
|
|
11337
11396
|
const se_Filter = (input, context) => {
|
|
@@ -13641,6 +13700,16 @@ const se_SwitchoverBlueGreenDeploymentRequest = (input, context) => {
|
|
|
13641
13700
|
}
|
|
13642
13701
|
return entries;
|
|
13643
13702
|
};
|
|
13703
|
+
const se_SwitchoverGlobalClusterMessage = (input, context) => {
|
|
13704
|
+
const entries = {};
|
|
13705
|
+
if (input.GlobalClusterIdentifier != null) {
|
|
13706
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
13707
|
+
}
|
|
13708
|
+
if (input.TargetDbClusterIdentifier != null) {
|
|
13709
|
+
entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
|
|
13710
|
+
}
|
|
13711
|
+
return entries;
|
|
13712
|
+
};
|
|
13644
13713
|
const se_SwitchoverReadReplicaMessage = (input, context) => {
|
|
13645
13714
|
const entries = {};
|
|
13646
13715
|
if (input.DBInstanceIdentifier != null) {
|
|
@@ -17144,6 +17213,9 @@ const de_FailoverState = (output, context) => {
|
|
|
17144
17213
|
if (output["ToDbClusterArn"] !== undefined) {
|
|
17145
17214
|
contents.ToDbClusterArn = (0, smithy_client_1.expectString)(output["ToDbClusterArn"]);
|
|
17146
17215
|
}
|
|
17216
|
+
if (output["IsDataLossAllowed"] !== undefined) {
|
|
17217
|
+
contents.IsDataLossAllowed = (0, smithy_client_1.parseBoolean)(output["IsDataLossAllowed"]);
|
|
17218
|
+
}
|
|
17147
17219
|
return contents;
|
|
17148
17220
|
};
|
|
17149
17221
|
const de_FeatureNameList = (output, context) => {
|
|
@@ -17225,6 +17297,9 @@ const de_GlobalClusterMember = (output, context) => {
|
|
|
17225
17297
|
if (output["GlobalWriteForwardingStatus"] !== undefined) {
|
|
17226
17298
|
contents.GlobalWriteForwardingStatus = (0, smithy_client_1.expectString)(output["GlobalWriteForwardingStatus"]);
|
|
17227
17299
|
}
|
|
17300
|
+
if (output["SynchronizationStatus"] !== undefined) {
|
|
17301
|
+
contents.SynchronizationStatus = (0, smithy_client_1.expectString)(output["SynchronizationStatus"]);
|
|
17302
|
+
}
|
|
17228
17303
|
return contents;
|
|
17229
17304
|
};
|
|
17230
17305
|
const de_GlobalClusterMemberList = (output, context) => {
|
|
@@ -19087,6 +19162,13 @@ const de_SwitchoverDetailList = (output, context) => {
|
|
|
19087
19162
|
return de_SwitchoverDetail(entry, context);
|
|
19088
19163
|
});
|
|
19089
19164
|
};
|
|
19165
|
+
const de_SwitchoverGlobalClusterResult = (output, context) => {
|
|
19166
|
+
const contents = {};
|
|
19167
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
19168
|
+
contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context);
|
|
19169
|
+
}
|
|
19170
|
+
return contents;
|
|
19171
|
+
};
|
|
19090
19172
|
const de_SwitchoverReadReplicaResult = (output, context) => {
|
|
19091
19173
|
const contents = {};
|
|
19092
19174
|
if (output["DBInstance"] !== undefined) {
|
package/dist-es/RDS.js
CHANGED
|
@@ -141,6 +141,7 @@ import { StopDBClusterCommand, } from "./commands/StopDBClusterCommand";
|
|
|
141
141
|
import { StopDBInstanceAutomatedBackupsReplicationCommand, } from "./commands/StopDBInstanceAutomatedBackupsReplicationCommand";
|
|
142
142
|
import { StopDBInstanceCommand, } from "./commands/StopDBInstanceCommand";
|
|
143
143
|
import { SwitchoverBlueGreenDeploymentCommand, } from "./commands/SwitchoverBlueGreenDeploymentCommand";
|
|
144
|
+
import { SwitchoverGlobalClusterCommand, } from "./commands/SwitchoverGlobalClusterCommand";
|
|
144
145
|
import { SwitchoverReadReplicaCommand, } from "./commands/SwitchoverReadReplicaCommand";
|
|
145
146
|
import { RDSClient } from "./RDSClient";
|
|
146
147
|
const commands = {
|
|
@@ -286,6 +287,7 @@ const commands = {
|
|
|
286
287
|
StopDBInstanceCommand,
|
|
287
288
|
StopDBInstanceAutomatedBackupsReplicationCommand,
|
|
288
289
|
SwitchoverBlueGreenDeploymentCommand,
|
|
290
|
+
SwitchoverGlobalClusterCommand,
|
|
289
291
|
SwitchoverReadReplicaCommand,
|
|
290
292
|
};
|
|
291
293
|
export class RDS extends RDSClient {
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { de_SwitchoverGlobalClusterCommand, se_SwitchoverGlobalClusterCommand } from "../protocols/Aws_query";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SwitchoverGlobalClusterCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SwitchoverGlobalClusterCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RDSClient";
|
|
25
|
+
const commandName = "SwitchoverGlobalClusterCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_SwitchoverGlobalClusterCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_SwitchoverGlobalClusterCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -140,4 +140,5 @@ export * from "./StopDBClusterCommand";
|
|
|
140
140
|
export * from "./StopDBInstanceAutomatedBackupsReplicationCommand";
|
|
141
141
|
export * from "./StopDBInstanceCommand";
|
|
142
142
|
export * from "./SwitchoverBlueGreenDeploymentCommand";
|
|
143
|
+
export * from "./SwitchoverGlobalClusterCommand";
|
|
143
144
|
export * from "./SwitchoverReadReplicaCommand";
|
|
@@ -1108,6 +1108,10 @@ export const FailoverStatus = {
|
|
|
1108
1108
|
FAILING_OVER: "failing-over",
|
|
1109
1109
|
PENDING: "pending",
|
|
1110
1110
|
};
|
|
1111
|
+
export const GlobalClusterMemberSynchronizationStatus = {
|
|
1112
|
+
CONNECTED: "connected",
|
|
1113
|
+
PENDING_RESYNC: "pending-resync",
|
|
1114
|
+
};
|
|
1111
1115
|
export class GlobalClusterAlreadyExistsFault extends __BaseException {
|
|
1112
1116
|
constructor(opts) {
|
|
1113
1117
|
super({
|
|
@@ -1424,6 +1424,16 @@ export const se_SwitchoverBlueGreenDeploymentCommand = async (input, context) =>
|
|
|
1424
1424
|
});
|
|
1425
1425
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1426
1426
|
};
|
|
1427
|
+
export const se_SwitchoverGlobalClusterCommand = async (input, context) => {
|
|
1428
|
+
const headers = SHARED_HEADERS;
|
|
1429
|
+
let body;
|
|
1430
|
+
body = buildFormUrlencodedString({
|
|
1431
|
+
...se_SwitchoverGlobalClusterMessage(input, context),
|
|
1432
|
+
Action: "SwitchoverGlobalCluster",
|
|
1433
|
+
Version: "2014-10-31",
|
|
1434
|
+
});
|
|
1435
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1436
|
+
};
|
|
1427
1437
|
export const se_SwitchoverReadReplicaCommand = async (input, context) => {
|
|
1428
1438
|
const headers = SHARED_HEADERS;
|
|
1429
1439
|
let body;
|
|
@@ -7217,6 +7227,47 @@ const de_SwitchoverBlueGreenDeploymentCommandError = async (output, context) =>
|
|
|
7217
7227
|
});
|
|
7218
7228
|
}
|
|
7219
7229
|
};
|
|
7230
|
+
export const de_SwitchoverGlobalClusterCommand = async (output, context) => {
|
|
7231
|
+
if (output.statusCode >= 300) {
|
|
7232
|
+
return de_SwitchoverGlobalClusterCommandError(output, context);
|
|
7233
|
+
}
|
|
7234
|
+
const data = await parseBody(output.body, context);
|
|
7235
|
+
let contents = {};
|
|
7236
|
+
contents = de_SwitchoverGlobalClusterResult(data.SwitchoverGlobalClusterResult, context);
|
|
7237
|
+
const response = {
|
|
7238
|
+
$metadata: deserializeMetadata(output),
|
|
7239
|
+
...contents,
|
|
7240
|
+
};
|
|
7241
|
+
return response;
|
|
7242
|
+
};
|
|
7243
|
+
const de_SwitchoverGlobalClusterCommandError = async (output, context) => {
|
|
7244
|
+
const parsedOutput = {
|
|
7245
|
+
...output,
|
|
7246
|
+
body: await parseErrorBody(output.body, context),
|
|
7247
|
+
};
|
|
7248
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
7249
|
+
switch (errorCode) {
|
|
7250
|
+
case "DBClusterNotFoundFault":
|
|
7251
|
+
case "com.amazonaws.rds#DBClusterNotFoundFault":
|
|
7252
|
+
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
7253
|
+
case "GlobalClusterNotFoundFault":
|
|
7254
|
+
case "com.amazonaws.rds#GlobalClusterNotFoundFault":
|
|
7255
|
+
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
7256
|
+
case "InvalidDBClusterStateFault":
|
|
7257
|
+
case "com.amazonaws.rds#InvalidDBClusterStateFault":
|
|
7258
|
+
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
7259
|
+
case "InvalidGlobalClusterStateFault":
|
|
7260
|
+
case "com.amazonaws.rds#InvalidGlobalClusterStateFault":
|
|
7261
|
+
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
7262
|
+
default:
|
|
7263
|
+
const parsedBody = parsedOutput.body;
|
|
7264
|
+
return throwDefaultError({
|
|
7265
|
+
output,
|
|
7266
|
+
parsedBody: parsedBody.Error,
|
|
7267
|
+
errorCode,
|
|
7268
|
+
});
|
|
7269
|
+
}
|
|
7270
|
+
};
|
|
7220
7271
|
export const de_SwitchoverReadReplicaCommand = async (output, context) => {
|
|
7221
7272
|
if (output.statusCode >= 300) {
|
|
7222
7273
|
return de_SwitchoverReadReplicaCommandError(output, context);
|
|
@@ -11038,6 +11089,12 @@ const se_FailoverGlobalClusterMessage = (input, context) => {
|
|
|
11038
11089
|
if (input.TargetDbClusterIdentifier != null) {
|
|
11039
11090
|
entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
|
|
11040
11091
|
}
|
|
11092
|
+
if (input.AllowDataLoss != null) {
|
|
11093
|
+
entries["AllowDataLoss"] = input.AllowDataLoss;
|
|
11094
|
+
}
|
|
11095
|
+
if (input.Switchover != null) {
|
|
11096
|
+
entries["Switchover"] = input.Switchover;
|
|
11097
|
+
}
|
|
11041
11098
|
return entries;
|
|
11042
11099
|
};
|
|
11043
11100
|
const se_Filter = (input, context) => {
|
|
@@ -13347,6 +13404,16 @@ const se_SwitchoverBlueGreenDeploymentRequest = (input, context) => {
|
|
|
13347
13404
|
}
|
|
13348
13405
|
return entries;
|
|
13349
13406
|
};
|
|
13407
|
+
const se_SwitchoverGlobalClusterMessage = (input, context) => {
|
|
13408
|
+
const entries = {};
|
|
13409
|
+
if (input.GlobalClusterIdentifier != null) {
|
|
13410
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
13411
|
+
}
|
|
13412
|
+
if (input.TargetDbClusterIdentifier != null) {
|
|
13413
|
+
entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
|
|
13414
|
+
}
|
|
13415
|
+
return entries;
|
|
13416
|
+
};
|
|
13350
13417
|
const se_SwitchoverReadReplicaMessage = (input, context) => {
|
|
13351
13418
|
const entries = {};
|
|
13352
13419
|
if (input.DBInstanceIdentifier != null) {
|
|
@@ -16850,6 +16917,9 @@ const de_FailoverState = (output, context) => {
|
|
|
16850
16917
|
if (output["ToDbClusterArn"] !== undefined) {
|
|
16851
16918
|
contents.ToDbClusterArn = __expectString(output["ToDbClusterArn"]);
|
|
16852
16919
|
}
|
|
16920
|
+
if (output["IsDataLossAllowed"] !== undefined) {
|
|
16921
|
+
contents.IsDataLossAllowed = __parseBoolean(output["IsDataLossAllowed"]);
|
|
16922
|
+
}
|
|
16853
16923
|
return contents;
|
|
16854
16924
|
};
|
|
16855
16925
|
const de_FeatureNameList = (output, context) => {
|
|
@@ -16931,6 +17001,9 @@ const de_GlobalClusterMember = (output, context) => {
|
|
|
16931
17001
|
if (output["GlobalWriteForwardingStatus"] !== undefined) {
|
|
16932
17002
|
contents.GlobalWriteForwardingStatus = __expectString(output["GlobalWriteForwardingStatus"]);
|
|
16933
17003
|
}
|
|
17004
|
+
if (output["SynchronizationStatus"] !== undefined) {
|
|
17005
|
+
contents.SynchronizationStatus = __expectString(output["SynchronizationStatus"]);
|
|
17006
|
+
}
|
|
16934
17007
|
return contents;
|
|
16935
17008
|
};
|
|
16936
17009
|
const de_GlobalClusterMemberList = (output, context) => {
|
|
@@ -18793,6 +18866,13 @@ const de_SwitchoverDetailList = (output, context) => {
|
|
|
18793
18866
|
return de_SwitchoverDetail(entry, context);
|
|
18794
18867
|
});
|
|
18795
18868
|
};
|
|
18869
|
+
const de_SwitchoverGlobalClusterResult = (output, context) => {
|
|
18870
|
+
const contents = {};
|
|
18871
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
18872
|
+
contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context);
|
|
18873
|
+
}
|
|
18874
|
+
return contents;
|
|
18875
|
+
};
|
|
18796
18876
|
const de_SwitchoverReadReplicaResult = (output, context) => {
|
|
18797
18877
|
const contents = {};
|
|
18798
18878
|
if (output["DBInstance"] !== undefined) {
|
package/dist-types/RDS.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "./command
|
|
|
141
141
|
import { StopDBInstanceAutomatedBackupsReplicationCommandInput, StopDBInstanceAutomatedBackupsReplicationCommandOutput } from "./commands/StopDBInstanceAutomatedBackupsReplicationCommand";
|
|
142
142
|
import { StopDBInstanceCommandInput, StopDBInstanceCommandOutput } from "./commands/StopDBInstanceCommand";
|
|
143
143
|
import { SwitchoverBlueGreenDeploymentCommandInput, SwitchoverBlueGreenDeploymentCommandOutput } from "./commands/SwitchoverBlueGreenDeploymentCommand";
|
|
144
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
|
|
144
145
|
import { SwitchoverReadReplicaCommandInput, SwitchoverReadReplicaCommandOutput } from "./commands/SwitchoverReadReplicaCommand";
|
|
145
146
|
import { RDSClient } from "./RDSClient";
|
|
146
147
|
export interface RDS {
|
|
@@ -996,6 +997,12 @@ export interface RDS {
|
|
|
996
997
|
switchoverBlueGreenDeployment(args: SwitchoverBlueGreenDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<SwitchoverBlueGreenDeploymentCommandOutput>;
|
|
997
998
|
switchoverBlueGreenDeployment(args: SwitchoverBlueGreenDeploymentCommandInput, cb: (err: any, data?: SwitchoverBlueGreenDeploymentCommandOutput) => void): void;
|
|
998
999
|
switchoverBlueGreenDeployment(args: SwitchoverBlueGreenDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwitchoverBlueGreenDeploymentCommandOutput) => void): void;
|
|
1000
|
+
/**
|
|
1001
|
+
* @see {@link SwitchoverGlobalClusterCommand}
|
|
1002
|
+
*/
|
|
1003
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, options?: __HttpHandlerOptions): Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
1004
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void): void;
|
|
1005
|
+
switchoverGlobalCluster(args: SwitchoverGlobalClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void): void;
|
|
999
1006
|
/**
|
|
1000
1007
|
* @see {@link SwitchoverReadReplicaCommand}
|
|
1001
1008
|
*/
|
|
@@ -150,6 +150,7 @@ import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "./command
|
|
|
150
150
|
import { StopDBInstanceAutomatedBackupsReplicationCommandInput, StopDBInstanceAutomatedBackupsReplicationCommandOutput } from "./commands/StopDBInstanceAutomatedBackupsReplicationCommand";
|
|
151
151
|
import { StopDBInstanceCommandInput, StopDBInstanceCommandOutput } from "./commands/StopDBInstanceCommand";
|
|
152
152
|
import { SwitchoverBlueGreenDeploymentCommandInput, SwitchoverBlueGreenDeploymentCommandOutput } from "./commands/SwitchoverBlueGreenDeploymentCommand";
|
|
153
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
|
|
153
154
|
import { SwitchoverReadReplicaCommandInput, SwitchoverReadReplicaCommandOutput } from "./commands/SwitchoverReadReplicaCommand";
|
|
154
155
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
155
156
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -157,11 +158,11 @@ export { __Client };
|
|
|
157
158
|
/**
|
|
158
159
|
* @public
|
|
159
160
|
*/
|
|
160
|
-
export type ServiceInputTypes = AddRoleToDBClusterCommandInput | AddRoleToDBInstanceCommandInput | AddSourceIdentifierToSubscriptionCommandInput | AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | AuthorizeDBSecurityGroupIngressCommandInput | BacktrackDBClusterCommandInput | CancelExportTaskCommandInput | CopyDBClusterParameterGroupCommandInput | CopyDBClusterSnapshotCommandInput | CopyDBParameterGroupCommandInput | CopyDBSnapshotCommandInput | CopyOptionGroupCommandInput | CreateBlueGreenDeploymentCommandInput | CreateCustomDBEngineVersionCommandInput | CreateDBClusterCommandInput | CreateDBClusterEndpointCommandInput | CreateDBClusterParameterGroupCommandInput | CreateDBClusterSnapshotCommandInput | CreateDBInstanceCommandInput | CreateDBInstanceReadReplicaCommandInput | CreateDBParameterGroupCommandInput | CreateDBProxyCommandInput | CreateDBProxyEndpointCommandInput | CreateDBSecurityGroupCommandInput | CreateDBSnapshotCommandInput | CreateDBSubnetGroupCommandInput | CreateEventSubscriptionCommandInput | CreateGlobalClusterCommandInput | CreateOptionGroupCommandInput | DeleteBlueGreenDeploymentCommandInput | DeleteCustomDBEngineVersionCommandInput | DeleteDBClusterAutomatedBackupCommandInput | DeleteDBClusterCommandInput | DeleteDBClusterEndpointCommandInput | DeleteDBClusterParameterGroupCommandInput | DeleteDBClusterSnapshotCommandInput | DeleteDBInstanceAutomatedBackupCommandInput | DeleteDBInstanceCommandInput | DeleteDBParameterGroupCommandInput | DeleteDBProxyCommandInput | DeleteDBProxyEndpointCommandInput | DeleteDBSecurityGroupCommandInput | DeleteDBSnapshotCommandInput | DeleteDBSubnetGroupCommandInput | DeleteEventSubscriptionCommandInput | DeleteGlobalClusterCommandInput | DeleteOptionGroupCommandInput | DeregisterDBProxyTargetsCommandInput | DescribeAccountAttributesCommandInput | DescribeBlueGreenDeploymentsCommandInput | DescribeCertificatesCommandInput | DescribeDBClusterAutomatedBackupsCommandInput | DescribeDBClusterBacktracksCommandInput | DescribeDBClusterEndpointsCommandInput | DescribeDBClusterParameterGroupsCommandInput | DescribeDBClusterParametersCommandInput | DescribeDBClusterSnapshotAttributesCommandInput | DescribeDBClusterSnapshotsCommandInput | DescribeDBClustersCommandInput | DescribeDBEngineVersionsCommandInput | DescribeDBInstanceAutomatedBackupsCommandInput | DescribeDBInstancesCommandInput | DescribeDBLogFilesCommandInput | DescribeDBParameterGroupsCommandInput | DescribeDBParametersCommandInput | DescribeDBProxiesCommandInput | DescribeDBProxyEndpointsCommandInput | DescribeDBProxyTargetGroupsCommandInput | DescribeDBProxyTargetsCommandInput | DescribeDBSecurityGroupsCommandInput | DescribeDBSnapshotAttributesCommandInput | DescribeDBSnapshotsCommandInput | DescribeDBSubnetGroupsCommandInput | DescribeEngineDefaultClusterParametersCommandInput | DescribeEngineDefaultParametersCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeExportTasksCommandInput | DescribeGlobalClustersCommandInput | DescribeOptionGroupOptionsCommandInput | DescribeOptionGroupsCommandInput | DescribeOrderableDBInstanceOptionsCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeReservedDBInstancesCommandInput | DescribeReservedDBInstancesOfferingsCommandInput | DescribeSourceRegionsCommandInput | DescribeValidDBInstanceModificationsCommandInput | DownloadDBLogFilePortionCommandInput | FailoverDBClusterCommandInput | FailoverGlobalClusterCommandInput | ListTagsForResourceCommandInput | ModifyActivityStreamCommandInput | ModifyCertificatesCommandInput | ModifyCurrentDBClusterCapacityCommandInput | ModifyCustomDBEngineVersionCommandInput | ModifyDBClusterCommandInput | ModifyDBClusterEndpointCommandInput | ModifyDBClusterParameterGroupCommandInput | ModifyDBClusterSnapshotAttributeCommandInput | ModifyDBInstanceCommandInput | ModifyDBParameterGroupCommandInput | ModifyDBProxyCommandInput | ModifyDBProxyEndpointCommandInput | ModifyDBProxyTargetGroupCommandInput | ModifyDBSnapshotAttributeCommandInput | ModifyDBSnapshotCommandInput | ModifyDBSubnetGroupCommandInput | ModifyEventSubscriptionCommandInput | ModifyGlobalClusterCommandInput | ModifyOptionGroupCommandInput | PromoteReadReplicaCommandInput | PromoteReadReplicaDBClusterCommandInput | PurchaseReservedDBInstancesOfferingCommandInput | RebootDBClusterCommandInput | RebootDBInstanceCommandInput | RegisterDBProxyTargetsCommandInput | RemoveFromGlobalClusterCommandInput | RemoveRoleFromDBClusterCommandInput | RemoveRoleFromDBInstanceCommandInput | RemoveSourceIdentifierFromSubscriptionCommandInput | RemoveTagsFromResourceCommandInput | ResetDBClusterParameterGroupCommandInput | ResetDBParameterGroupCommandInput | RestoreDBClusterFromS3CommandInput | RestoreDBClusterFromSnapshotCommandInput | RestoreDBClusterToPointInTimeCommandInput | RestoreDBInstanceFromDBSnapshotCommandInput | RestoreDBInstanceFromS3CommandInput | RestoreDBInstanceToPointInTimeCommandInput | RevokeDBSecurityGroupIngressCommandInput | StartActivityStreamCommandInput | StartDBClusterCommandInput | StartDBInstanceAutomatedBackupsReplicationCommandInput | StartDBInstanceCommandInput | StartExportTaskCommandInput | StopActivityStreamCommandInput | StopDBClusterCommandInput | StopDBInstanceAutomatedBackupsReplicationCommandInput | StopDBInstanceCommandInput | SwitchoverBlueGreenDeploymentCommandInput | SwitchoverReadReplicaCommandInput;
|
|
161
|
+
export type ServiceInputTypes = AddRoleToDBClusterCommandInput | AddRoleToDBInstanceCommandInput | AddSourceIdentifierToSubscriptionCommandInput | AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | AuthorizeDBSecurityGroupIngressCommandInput | BacktrackDBClusterCommandInput | CancelExportTaskCommandInput | CopyDBClusterParameterGroupCommandInput | CopyDBClusterSnapshotCommandInput | CopyDBParameterGroupCommandInput | CopyDBSnapshotCommandInput | CopyOptionGroupCommandInput | CreateBlueGreenDeploymentCommandInput | CreateCustomDBEngineVersionCommandInput | CreateDBClusterCommandInput | CreateDBClusterEndpointCommandInput | CreateDBClusterParameterGroupCommandInput | CreateDBClusterSnapshotCommandInput | CreateDBInstanceCommandInput | CreateDBInstanceReadReplicaCommandInput | CreateDBParameterGroupCommandInput | CreateDBProxyCommandInput | CreateDBProxyEndpointCommandInput | CreateDBSecurityGroupCommandInput | CreateDBSnapshotCommandInput | CreateDBSubnetGroupCommandInput | CreateEventSubscriptionCommandInput | CreateGlobalClusterCommandInput | CreateOptionGroupCommandInput | DeleteBlueGreenDeploymentCommandInput | DeleteCustomDBEngineVersionCommandInput | DeleteDBClusterAutomatedBackupCommandInput | DeleteDBClusterCommandInput | DeleteDBClusterEndpointCommandInput | DeleteDBClusterParameterGroupCommandInput | DeleteDBClusterSnapshotCommandInput | DeleteDBInstanceAutomatedBackupCommandInput | DeleteDBInstanceCommandInput | DeleteDBParameterGroupCommandInput | DeleteDBProxyCommandInput | DeleteDBProxyEndpointCommandInput | DeleteDBSecurityGroupCommandInput | DeleteDBSnapshotCommandInput | DeleteDBSubnetGroupCommandInput | DeleteEventSubscriptionCommandInput | DeleteGlobalClusterCommandInput | DeleteOptionGroupCommandInput | DeregisterDBProxyTargetsCommandInput | DescribeAccountAttributesCommandInput | DescribeBlueGreenDeploymentsCommandInput | DescribeCertificatesCommandInput | DescribeDBClusterAutomatedBackupsCommandInput | DescribeDBClusterBacktracksCommandInput | DescribeDBClusterEndpointsCommandInput | DescribeDBClusterParameterGroupsCommandInput | DescribeDBClusterParametersCommandInput | DescribeDBClusterSnapshotAttributesCommandInput | DescribeDBClusterSnapshotsCommandInput | DescribeDBClustersCommandInput | DescribeDBEngineVersionsCommandInput | DescribeDBInstanceAutomatedBackupsCommandInput | DescribeDBInstancesCommandInput | DescribeDBLogFilesCommandInput | DescribeDBParameterGroupsCommandInput | DescribeDBParametersCommandInput | DescribeDBProxiesCommandInput | DescribeDBProxyEndpointsCommandInput | DescribeDBProxyTargetGroupsCommandInput | DescribeDBProxyTargetsCommandInput | DescribeDBSecurityGroupsCommandInput | DescribeDBSnapshotAttributesCommandInput | DescribeDBSnapshotsCommandInput | DescribeDBSubnetGroupsCommandInput | DescribeEngineDefaultClusterParametersCommandInput | DescribeEngineDefaultParametersCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeExportTasksCommandInput | DescribeGlobalClustersCommandInput | DescribeOptionGroupOptionsCommandInput | DescribeOptionGroupsCommandInput | DescribeOrderableDBInstanceOptionsCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeReservedDBInstancesCommandInput | DescribeReservedDBInstancesOfferingsCommandInput | DescribeSourceRegionsCommandInput | DescribeValidDBInstanceModificationsCommandInput | DownloadDBLogFilePortionCommandInput | FailoverDBClusterCommandInput | FailoverGlobalClusterCommandInput | ListTagsForResourceCommandInput | ModifyActivityStreamCommandInput | ModifyCertificatesCommandInput | ModifyCurrentDBClusterCapacityCommandInput | ModifyCustomDBEngineVersionCommandInput | ModifyDBClusterCommandInput | ModifyDBClusterEndpointCommandInput | ModifyDBClusterParameterGroupCommandInput | ModifyDBClusterSnapshotAttributeCommandInput | ModifyDBInstanceCommandInput | ModifyDBParameterGroupCommandInput | ModifyDBProxyCommandInput | ModifyDBProxyEndpointCommandInput | ModifyDBProxyTargetGroupCommandInput | ModifyDBSnapshotAttributeCommandInput | ModifyDBSnapshotCommandInput | ModifyDBSubnetGroupCommandInput | ModifyEventSubscriptionCommandInput | ModifyGlobalClusterCommandInput | ModifyOptionGroupCommandInput | PromoteReadReplicaCommandInput | PromoteReadReplicaDBClusterCommandInput | PurchaseReservedDBInstancesOfferingCommandInput | RebootDBClusterCommandInput | RebootDBInstanceCommandInput | RegisterDBProxyTargetsCommandInput | RemoveFromGlobalClusterCommandInput | RemoveRoleFromDBClusterCommandInput | RemoveRoleFromDBInstanceCommandInput | RemoveSourceIdentifierFromSubscriptionCommandInput | RemoveTagsFromResourceCommandInput | ResetDBClusterParameterGroupCommandInput | ResetDBParameterGroupCommandInput | RestoreDBClusterFromS3CommandInput | RestoreDBClusterFromSnapshotCommandInput | RestoreDBClusterToPointInTimeCommandInput | RestoreDBInstanceFromDBSnapshotCommandInput | RestoreDBInstanceFromS3CommandInput | RestoreDBInstanceToPointInTimeCommandInput | RevokeDBSecurityGroupIngressCommandInput | StartActivityStreamCommandInput | StartDBClusterCommandInput | StartDBInstanceAutomatedBackupsReplicationCommandInput | StartDBInstanceCommandInput | StartExportTaskCommandInput | StopActivityStreamCommandInput | StopDBClusterCommandInput | StopDBInstanceAutomatedBackupsReplicationCommandInput | StopDBInstanceCommandInput | SwitchoverBlueGreenDeploymentCommandInput | SwitchoverGlobalClusterCommandInput | SwitchoverReadReplicaCommandInput;
|
|
161
162
|
/**
|
|
162
163
|
* @public
|
|
163
164
|
*/
|
|
164
|
-
export type ServiceOutputTypes = AddRoleToDBClusterCommandOutput | AddRoleToDBInstanceCommandOutput | AddSourceIdentifierToSubscriptionCommandOutput | AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | AuthorizeDBSecurityGroupIngressCommandOutput | BacktrackDBClusterCommandOutput | CancelExportTaskCommandOutput | CopyDBClusterParameterGroupCommandOutput | CopyDBClusterSnapshotCommandOutput | CopyDBParameterGroupCommandOutput | CopyDBSnapshotCommandOutput | CopyOptionGroupCommandOutput | CreateBlueGreenDeploymentCommandOutput | CreateCustomDBEngineVersionCommandOutput | CreateDBClusterCommandOutput | CreateDBClusterEndpointCommandOutput | CreateDBClusterParameterGroupCommandOutput | CreateDBClusterSnapshotCommandOutput | CreateDBInstanceCommandOutput | CreateDBInstanceReadReplicaCommandOutput | CreateDBParameterGroupCommandOutput | CreateDBProxyCommandOutput | CreateDBProxyEndpointCommandOutput | CreateDBSecurityGroupCommandOutput | CreateDBSnapshotCommandOutput | CreateDBSubnetGroupCommandOutput | CreateEventSubscriptionCommandOutput | CreateGlobalClusterCommandOutput | CreateOptionGroupCommandOutput | DeleteBlueGreenDeploymentCommandOutput | DeleteCustomDBEngineVersionCommandOutput | DeleteDBClusterAutomatedBackupCommandOutput | DeleteDBClusterCommandOutput | DeleteDBClusterEndpointCommandOutput | DeleteDBClusterParameterGroupCommandOutput | DeleteDBClusterSnapshotCommandOutput | DeleteDBInstanceAutomatedBackupCommandOutput | DeleteDBInstanceCommandOutput | DeleteDBParameterGroupCommandOutput | DeleteDBProxyCommandOutput | DeleteDBProxyEndpointCommandOutput | DeleteDBSecurityGroupCommandOutput | DeleteDBSnapshotCommandOutput | DeleteDBSubnetGroupCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteGlobalClusterCommandOutput | DeleteOptionGroupCommandOutput | DeregisterDBProxyTargetsCommandOutput | DescribeAccountAttributesCommandOutput | DescribeBlueGreenDeploymentsCommandOutput | DescribeCertificatesCommandOutput | DescribeDBClusterAutomatedBackupsCommandOutput | DescribeDBClusterBacktracksCommandOutput | DescribeDBClusterEndpointsCommandOutput | DescribeDBClusterParameterGroupsCommandOutput | DescribeDBClusterParametersCommandOutput | DescribeDBClusterSnapshotAttributesCommandOutput | DescribeDBClusterSnapshotsCommandOutput | DescribeDBClustersCommandOutput | DescribeDBEngineVersionsCommandOutput | DescribeDBInstanceAutomatedBackupsCommandOutput | DescribeDBInstancesCommandOutput | DescribeDBLogFilesCommandOutput | DescribeDBParameterGroupsCommandOutput | DescribeDBParametersCommandOutput | DescribeDBProxiesCommandOutput | DescribeDBProxyEndpointsCommandOutput | DescribeDBProxyTargetGroupsCommandOutput | DescribeDBProxyTargetsCommandOutput | DescribeDBSecurityGroupsCommandOutput | DescribeDBSnapshotAttributesCommandOutput | DescribeDBSnapshotsCommandOutput | DescribeDBSubnetGroupsCommandOutput | DescribeEngineDefaultClusterParametersCommandOutput | DescribeEngineDefaultParametersCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeExportTasksCommandOutput | DescribeGlobalClustersCommandOutput | DescribeOptionGroupOptionsCommandOutput | DescribeOptionGroupsCommandOutput | DescribeOrderableDBInstanceOptionsCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeReservedDBInstancesCommandOutput | DescribeReservedDBInstancesOfferingsCommandOutput | DescribeSourceRegionsCommandOutput | DescribeValidDBInstanceModificationsCommandOutput | DownloadDBLogFilePortionCommandOutput | FailoverDBClusterCommandOutput | FailoverGlobalClusterCommandOutput | ListTagsForResourceCommandOutput | ModifyActivityStreamCommandOutput | ModifyCertificatesCommandOutput | ModifyCurrentDBClusterCapacityCommandOutput | ModifyCustomDBEngineVersionCommandOutput | ModifyDBClusterCommandOutput | ModifyDBClusterEndpointCommandOutput | ModifyDBClusterParameterGroupCommandOutput | ModifyDBClusterSnapshotAttributeCommandOutput | ModifyDBInstanceCommandOutput | ModifyDBParameterGroupCommandOutput | ModifyDBProxyCommandOutput | ModifyDBProxyEndpointCommandOutput | ModifyDBProxyTargetGroupCommandOutput | ModifyDBSnapshotAttributeCommandOutput | ModifyDBSnapshotCommandOutput | ModifyDBSubnetGroupCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyGlobalClusterCommandOutput | ModifyOptionGroupCommandOutput | PromoteReadReplicaCommandOutput | PromoteReadReplicaDBClusterCommandOutput | PurchaseReservedDBInstancesOfferingCommandOutput | RebootDBClusterCommandOutput | RebootDBInstanceCommandOutput | RegisterDBProxyTargetsCommandOutput | RemoveFromGlobalClusterCommandOutput | RemoveRoleFromDBClusterCommandOutput | RemoveRoleFromDBInstanceCommandOutput | RemoveSourceIdentifierFromSubscriptionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetDBClusterParameterGroupCommandOutput | ResetDBParameterGroupCommandOutput | RestoreDBClusterFromS3CommandOutput | RestoreDBClusterFromSnapshotCommandOutput | RestoreDBClusterToPointInTimeCommandOutput | RestoreDBInstanceFromDBSnapshotCommandOutput | RestoreDBInstanceFromS3CommandOutput | RestoreDBInstanceToPointInTimeCommandOutput | RevokeDBSecurityGroupIngressCommandOutput | StartActivityStreamCommandOutput | StartDBClusterCommandOutput | StartDBInstanceAutomatedBackupsReplicationCommandOutput | StartDBInstanceCommandOutput | StartExportTaskCommandOutput | StopActivityStreamCommandOutput | StopDBClusterCommandOutput | StopDBInstanceAutomatedBackupsReplicationCommandOutput | StopDBInstanceCommandOutput | SwitchoverBlueGreenDeploymentCommandOutput | SwitchoverReadReplicaCommandOutput;
|
|
165
|
+
export type ServiceOutputTypes = AddRoleToDBClusterCommandOutput | AddRoleToDBInstanceCommandOutput | AddSourceIdentifierToSubscriptionCommandOutput | AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | AuthorizeDBSecurityGroupIngressCommandOutput | BacktrackDBClusterCommandOutput | CancelExportTaskCommandOutput | CopyDBClusterParameterGroupCommandOutput | CopyDBClusterSnapshotCommandOutput | CopyDBParameterGroupCommandOutput | CopyDBSnapshotCommandOutput | CopyOptionGroupCommandOutput | CreateBlueGreenDeploymentCommandOutput | CreateCustomDBEngineVersionCommandOutput | CreateDBClusterCommandOutput | CreateDBClusterEndpointCommandOutput | CreateDBClusterParameterGroupCommandOutput | CreateDBClusterSnapshotCommandOutput | CreateDBInstanceCommandOutput | CreateDBInstanceReadReplicaCommandOutput | CreateDBParameterGroupCommandOutput | CreateDBProxyCommandOutput | CreateDBProxyEndpointCommandOutput | CreateDBSecurityGroupCommandOutput | CreateDBSnapshotCommandOutput | CreateDBSubnetGroupCommandOutput | CreateEventSubscriptionCommandOutput | CreateGlobalClusterCommandOutput | CreateOptionGroupCommandOutput | DeleteBlueGreenDeploymentCommandOutput | DeleteCustomDBEngineVersionCommandOutput | DeleteDBClusterAutomatedBackupCommandOutput | DeleteDBClusterCommandOutput | DeleteDBClusterEndpointCommandOutput | DeleteDBClusterParameterGroupCommandOutput | DeleteDBClusterSnapshotCommandOutput | DeleteDBInstanceAutomatedBackupCommandOutput | DeleteDBInstanceCommandOutput | DeleteDBParameterGroupCommandOutput | DeleteDBProxyCommandOutput | DeleteDBProxyEndpointCommandOutput | DeleteDBSecurityGroupCommandOutput | DeleteDBSnapshotCommandOutput | DeleteDBSubnetGroupCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteGlobalClusterCommandOutput | DeleteOptionGroupCommandOutput | DeregisterDBProxyTargetsCommandOutput | DescribeAccountAttributesCommandOutput | DescribeBlueGreenDeploymentsCommandOutput | DescribeCertificatesCommandOutput | DescribeDBClusterAutomatedBackupsCommandOutput | DescribeDBClusterBacktracksCommandOutput | DescribeDBClusterEndpointsCommandOutput | DescribeDBClusterParameterGroupsCommandOutput | DescribeDBClusterParametersCommandOutput | DescribeDBClusterSnapshotAttributesCommandOutput | DescribeDBClusterSnapshotsCommandOutput | DescribeDBClustersCommandOutput | DescribeDBEngineVersionsCommandOutput | DescribeDBInstanceAutomatedBackupsCommandOutput | DescribeDBInstancesCommandOutput | DescribeDBLogFilesCommandOutput | DescribeDBParameterGroupsCommandOutput | DescribeDBParametersCommandOutput | DescribeDBProxiesCommandOutput | DescribeDBProxyEndpointsCommandOutput | DescribeDBProxyTargetGroupsCommandOutput | DescribeDBProxyTargetsCommandOutput | DescribeDBSecurityGroupsCommandOutput | DescribeDBSnapshotAttributesCommandOutput | DescribeDBSnapshotsCommandOutput | DescribeDBSubnetGroupsCommandOutput | DescribeEngineDefaultClusterParametersCommandOutput | DescribeEngineDefaultParametersCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeExportTasksCommandOutput | DescribeGlobalClustersCommandOutput | DescribeOptionGroupOptionsCommandOutput | DescribeOptionGroupsCommandOutput | DescribeOrderableDBInstanceOptionsCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeReservedDBInstancesCommandOutput | DescribeReservedDBInstancesOfferingsCommandOutput | DescribeSourceRegionsCommandOutput | DescribeValidDBInstanceModificationsCommandOutput | DownloadDBLogFilePortionCommandOutput | FailoverDBClusterCommandOutput | FailoverGlobalClusterCommandOutput | ListTagsForResourceCommandOutput | ModifyActivityStreamCommandOutput | ModifyCertificatesCommandOutput | ModifyCurrentDBClusterCapacityCommandOutput | ModifyCustomDBEngineVersionCommandOutput | ModifyDBClusterCommandOutput | ModifyDBClusterEndpointCommandOutput | ModifyDBClusterParameterGroupCommandOutput | ModifyDBClusterSnapshotAttributeCommandOutput | ModifyDBInstanceCommandOutput | ModifyDBParameterGroupCommandOutput | ModifyDBProxyCommandOutput | ModifyDBProxyEndpointCommandOutput | ModifyDBProxyTargetGroupCommandOutput | ModifyDBSnapshotAttributeCommandOutput | ModifyDBSnapshotCommandOutput | ModifyDBSubnetGroupCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyGlobalClusterCommandOutput | ModifyOptionGroupCommandOutput | PromoteReadReplicaCommandOutput | PromoteReadReplicaDBClusterCommandOutput | PurchaseReservedDBInstancesOfferingCommandOutput | RebootDBClusterCommandOutput | RebootDBInstanceCommandOutput | RegisterDBProxyTargetsCommandOutput | RemoveFromGlobalClusterCommandOutput | RemoveRoleFromDBClusterCommandOutput | RemoveRoleFromDBInstanceCommandOutput | RemoveSourceIdentifierFromSubscriptionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetDBClusterParameterGroupCommandOutput | ResetDBParameterGroupCommandOutput | RestoreDBClusterFromS3CommandOutput | RestoreDBClusterFromSnapshotCommandOutput | RestoreDBClusterToPointInTimeCommandOutput | RestoreDBInstanceFromDBSnapshotCommandOutput | RestoreDBInstanceFromS3CommandOutput | RestoreDBInstanceToPointInTimeCommandOutput | RevokeDBSecurityGroupIngressCommandOutput | StartActivityStreamCommandOutput | StartDBClusterCommandOutput | StartDBInstanceAutomatedBackupsReplicationCommandOutput | StartDBInstanceCommandOutput | StartExportTaskCommandOutput | StopActivityStreamCommandOutput | StopDBClusterCommandOutput | StopDBInstanceAutomatedBackupsReplicationCommandOutput | StopDBInstanceCommandOutput | SwitchoverBlueGreenDeploymentCommandOutput | SwitchoverGlobalClusterCommandOutput | SwitchoverReadReplicaCommandOutput;
|
|
165
166
|
/**
|
|
166
167
|
* @public
|
|
167
168
|
*/
|
|
@@ -72,12 +72,14 @@ export interface CreateGlobalClusterCommandOutput extends CreateGlobalClusterRes
|
|
|
72
72
|
* // ],
|
|
73
73
|
* // IsWriter: true || false,
|
|
74
74
|
* // GlobalWriteForwardingStatus: "enabled" || "disabled" || "enabling" || "disabling" || "unknown",
|
|
75
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
75
76
|
* // },
|
|
76
77
|
* // ],
|
|
77
78
|
* // FailoverState: { // FailoverState
|
|
78
79
|
* // Status: "pending" || "failing-over" || "cancelling",
|
|
79
80
|
* // FromDbClusterArn: "STRING_VALUE",
|
|
80
81
|
* // ToDbClusterArn: "STRING_VALUE",
|
|
82
|
+
* // IsDataLossAllowed: true || false,
|
|
81
83
|
* // },
|
|
82
84
|
* // },
|
|
83
85
|
* // };
|
|
@@ -58,12 +58,14 @@ export interface DeleteGlobalClusterCommandOutput extends DeleteGlobalClusterRes
|
|
|
58
58
|
* // ],
|
|
59
59
|
* // IsWriter: true || false,
|
|
60
60
|
* // GlobalWriteForwardingStatus: "enabled" || "disabled" || "enabling" || "disabling" || "unknown",
|
|
61
|
+
* // SynchronizationStatus: "connected" || "pending-resync",
|
|
61
62
|
* // },
|
|
62
63
|
* // ],
|
|
63
64
|
* // FailoverState: { // FailoverState
|
|
64
65
|
* // Status: "pending" || "failing-over" || "cancelling",
|
|
65
66
|
* // FromDbClusterArn: "STRING_VALUE",
|
|
66
67
|
* // ToDbClusterArn: "STRING_VALUE",
|
|
68
|
+
* // IsDataLossAllowed: true || false,
|
|
67
69
|
* // },
|
|
68
70
|
* // },
|
|
69
71
|
* // };
|