@aws-sdk/client-redshift 3.438.0 → 3.441.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/Redshift.js +2 -0
- package/dist-cjs/commands/FailoverPrimaryComputeCommand.js +52 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_1.js +6 -1
- package/dist-cjs/protocols/Aws_query.js +157 -5
- package/dist-es/Redshift.js +2 -0
- package/dist-es/commands/FailoverPrimaryComputeCommand.js +48 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_1.js +4 -0
- package/dist-es/protocols/Aws_query.js +150 -0
- package/dist-types/Redshift.d.ts +7 -0
- package/dist-types/RedshiftClient.d.ts +3 -2
- package/dist-types/commands/AddPartnerCommand.d.ts +3 -0
- package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +4 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +15 -0
- package/dist-types/commands/CreateScheduledActionCommand.d.ts +7 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +11 -0
- package/dist-types/commands/DeletePartnerCommand.d.ts +3 -0
- package/dist-types/commands/DescribeClustersCommand.d.ts +11 -0
- package/dist-types/commands/DescribeEndpointAuthorizationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLoggingStatusCommand.d.ts +3 -0
- package/dist-types/commands/DescribePartnersCommand.d.ts +3 -0
- package/dist-types/commands/DescribeResizeCommand.d.ts +3 -0
- package/dist-types/commands/DisableLoggingCommand.d.ts +3 -0
- package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +14 -0
- package/dist-types/commands/EnableLoggingCommand.d.ts +3 -0
- package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +11 -0
- package/dist-types/commands/FailoverPrimaryComputeCommand.d.ts +274 -0
- package/dist-types/commands/ModifyClusterCommand.d.ts +12 -0
- package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +14 -0
- package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +11 -0
- package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +11 -0
- package/dist-types/commands/ModifyScheduledActionCommand.d.ts +7 -0
- package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +11 -0
- package/dist-types/commands/PauseClusterCommand.d.ts +14 -0
- package/dist-types/commands/RebootClusterCommand.d.ts +11 -0
- package/dist-types/commands/ResizeClusterCommand.d.ts +11 -0
- package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +12 -0
- package/dist-types/commands/ResumeClusterCommand.d.ts +14 -0
- package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +14 -0
- package/dist-types/commands/UpdatePartnerStatusCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +31 -18
- package/dist-types/models/models_1.d.ts +53 -1
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/Redshift.d.ts +17 -0
- package/dist-types/ts3.4/RedshiftClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DescribeEndpointAuthorizationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/FailoverPrimaryComputeCommand.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 +7 -4
- package/dist-types/ts3.4/models/models_1.d.ts +16 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -943,6 +943,14 @@ EnableSnapshotCopy
|
|
|
943
943
|
|
|
944
944
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/enablesnapshotcopycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/enablesnapshotcopycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/enablesnapshotcopycommandoutput.html)
|
|
945
945
|
|
|
946
|
+
</details>
|
|
947
|
+
<details>
|
|
948
|
+
<summary>
|
|
949
|
+
FailoverPrimaryCompute
|
|
950
|
+
</summary>
|
|
951
|
+
|
|
952
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/failoverprimarycomputecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/failoverprimarycomputecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/failoverprimarycomputecommandoutput.html)
|
|
953
|
+
|
|
946
954
|
</details>
|
|
947
955
|
<details>
|
|
948
956
|
<summary>
|
package/dist-cjs/Redshift.js
CHANGED
|
@@ -92,6 +92,7 @@ const DisableSnapshotCopyCommand_1 = require("./commands/DisableSnapshotCopyComm
|
|
|
92
92
|
const DisassociateDataShareConsumerCommand_1 = require("./commands/DisassociateDataShareConsumerCommand");
|
|
93
93
|
const EnableLoggingCommand_1 = require("./commands/EnableLoggingCommand");
|
|
94
94
|
const EnableSnapshotCopyCommand_1 = require("./commands/EnableSnapshotCopyCommand");
|
|
95
|
+
const FailoverPrimaryComputeCommand_1 = require("./commands/FailoverPrimaryComputeCommand");
|
|
95
96
|
const GetClusterCredentialsCommand_1 = require("./commands/GetClusterCredentialsCommand");
|
|
96
97
|
const GetClusterCredentialsWithIAMCommand_1 = require("./commands/GetClusterCredentialsWithIAMCommand");
|
|
97
98
|
const GetReservedNodeExchangeConfigurationOptionsCommand_1 = require("./commands/GetReservedNodeExchangeConfigurationOptionsCommand");
|
|
@@ -221,6 +222,7 @@ const commands = {
|
|
|
221
222
|
DisassociateDataShareConsumerCommand: DisassociateDataShareConsumerCommand_1.DisassociateDataShareConsumerCommand,
|
|
222
223
|
EnableLoggingCommand: EnableLoggingCommand_1.EnableLoggingCommand,
|
|
223
224
|
EnableSnapshotCopyCommand: EnableSnapshotCopyCommand_1.EnableSnapshotCopyCommand,
|
|
225
|
+
FailoverPrimaryComputeCommand: FailoverPrimaryComputeCommand_1.FailoverPrimaryComputeCommand,
|
|
224
226
|
GetClusterCredentialsCommand: GetClusterCredentialsCommand_1.GetClusterCredentialsCommand,
|
|
225
227
|
GetClusterCredentialsWithIAMCommand: GetClusterCredentialsWithIAMCommand_1.GetClusterCredentialsWithIAMCommand,
|
|
226
228
|
GetReservedNodeExchangeConfigurationOptionsCommand: GetReservedNodeExchangeConfigurationOptionsCommand_1.GetReservedNodeExchangeConfigurationOptionsCommand,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FailoverPrimaryComputeCommand = 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 types_1 = require("@smithy/types");
|
|
9
|
+
const models_1_1 = require("../models/models_1");
|
|
10
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
+
class FailoverPrimaryComputeCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, FailoverPrimaryComputeCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "RedshiftClient";
|
|
30
|
+
const commandName = "FailoverPrimaryComputeCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: (_) => _,
|
|
36
|
+
outputFilterSensitiveLog: models_1_1.FailoverPrimaryComputeResultFilterSensitiveLog,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "RedshiftServiceVersion20121201",
|
|
39
|
+
operation: "FailoverPrimaryCompute",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return (0, Aws_query_1.se_FailoverPrimaryComputeCommand)(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return (0, Aws_query_1.de_FailoverPrimaryComputeCommand)(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.FailoverPrimaryComputeCommand = FailoverPrimaryComputeCommand;
|
|
@@ -91,6 +91,7 @@ tslib_1.__exportStar(require("./DisableSnapshotCopyCommand"), exports);
|
|
|
91
91
|
tslib_1.__exportStar(require("./DisassociateDataShareConsumerCommand"), exports);
|
|
92
92
|
tslib_1.__exportStar(require("./EnableLoggingCommand"), exports);
|
|
93
93
|
tslib_1.__exportStar(require("./EnableSnapshotCopyCommand"), exports);
|
|
94
|
+
tslib_1.__exportStar(require("./FailoverPrimaryComputeCommand"), exports);
|
|
94
95
|
tslib_1.__exportStar(require("./GetClusterCredentialsCommand"), exports);
|
|
95
96
|
tslib_1.__exportStar(require("./GetClusterCredentialsWithIAMCommand"), exports);
|
|
96
97
|
tslib_1.__exportStar(require("./GetReservedNodeExchangeConfigurationOptionsCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RotateEncryptionKeyResultFilterSensitiveLog = exports.ResumeClusterResultFilterSensitiveLog = exports.RestoreFromClusterSnapshotResultFilterSensitiveLog = exports.ResizeClusterResultFilterSensitiveLog = exports.RebootClusterResultFilterSensitiveLog = exports.PauseClusterResultFilterSensitiveLog = exports.ModifySnapshotCopyRetentionPeriodResultFilterSensitiveLog = exports.ModifyClusterMaintenanceResultFilterSensitiveLog = exports.ModifyClusterIamRolesResultFilterSensitiveLog = exports.ModifyClusterDbRevisionResultFilterSensitiveLog = exports.ModifyClusterResultFilterSensitiveLog = exports.ModifyClusterMessageFilterSensitiveLog = exports.EnableSnapshotCopyResultFilterSensitiveLog = exports.DisableSnapshotCopyResultFilterSensitiveLog = exports.ReservedNodeQuotaExceededFault = exports.SnapshotScheduleUpdateInProgressFault = exports.SnapshotCopyDisabledFault = exports.SubnetAlreadyInUse = exports.UnsupportedOptionFault = exports.TableLimitExceededFault = exports.InvalidTableRestoreArgumentFault = exports.InvalidRestoreFault = exports.InProgressTableRestoreQuotaExceededFault = exports.InvalidPolicyFault = exports.ReservedNodeExchangeActionType = exports.EndpointAuthorizationNotFoundFault = exports.UnknownSnapshotCopyRegionFault = exports.SnapshotCopyAlreadyEnabledFault = exports.IncompatibleOrderableOptions = exports.InvalidS3KeyPrefixFault = exports.InvalidS3BucketNameFault = exports.InsufficientS3BucketPolicyFault = exports.SnapshotCopyAlreadyDisabledFault = exports.TableRestoreStatusType = exports.TableRestoreNotFoundFault = exports.ScheduledActionTypeValues = exports.ScheduledActionFilterName = exports.ReservedNodeExchangeNotFoundFault = exports.PartnerIntegrationStatus = exports.Mode = exports.OperatorType = exports.NodeConfigurationOptionsFilterName = exports.LogDestinationType = exports.IntegrationNotFoundFault = exports.ZeroETLIntegrationStatus = exports.SourceType = void 0;
|
|
3
|
+
exports.RotateEncryptionKeyResultFilterSensitiveLog = exports.ResumeClusterResultFilterSensitiveLog = exports.RestoreFromClusterSnapshotResultFilterSensitiveLog = exports.ResizeClusterResultFilterSensitiveLog = exports.RebootClusterResultFilterSensitiveLog = exports.PauseClusterResultFilterSensitiveLog = exports.ModifySnapshotCopyRetentionPeriodResultFilterSensitiveLog = exports.ModifyClusterMaintenanceResultFilterSensitiveLog = exports.ModifyClusterIamRolesResultFilterSensitiveLog = exports.ModifyClusterDbRevisionResultFilterSensitiveLog = exports.ModifyClusterResultFilterSensitiveLog = exports.ModifyClusterMessageFilterSensitiveLog = exports.FailoverPrimaryComputeResultFilterSensitiveLog = exports.EnableSnapshotCopyResultFilterSensitiveLog = exports.DisableSnapshotCopyResultFilterSensitiveLog = exports.ReservedNodeQuotaExceededFault = exports.SnapshotScheduleUpdateInProgressFault = exports.SnapshotCopyDisabledFault = exports.SubnetAlreadyInUse = exports.UnsupportedOptionFault = exports.TableLimitExceededFault = exports.InvalidTableRestoreArgumentFault = exports.InvalidRestoreFault = exports.InProgressTableRestoreQuotaExceededFault = exports.InvalidPolicyFault = exports.ReservedNodeExchangeActionType = exports.EndpointAuthorizationNotFoundFault = exports.UnknownSnapshotCopyRegionFault = exports.SnapshotCopyAlreadyEnabledFault = exports.IncompatibleOrderableOptions = exports.InvalidS3KeyPrefixFault = exports.InvalidS3BucketNameFault = exports.InsufficientS3BucketPolicyFault = exports.SnapshotCopyAlreadyDisabledFault = exports.TableRestoreStatusType = exports.TableRestoreNotFoundFault = exports.ScheduledActionTypeValues = exports.ScheduledActionFilterName = exports.ReservedNodeExchangeNotFoundFault = exports.PartnerIntegrationStatus = exports.Mode = exports.OperatorType = exports.NodeConfigurationOptionsFilterName = exports.LogDestinationType = exports.IntegrationNotFoundFault = exports.ZeroETLIntegrationStatus = exports.SourceType = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const models_0_1 = require("./models_0");
|
|
6
6
|
const RedshiftServiceException_1 = require("./RedshiftServiceException");
|
|
@@ -352,6 +352,11 @@ const EnableSnapshotCopyResultFilterSensitiveLog = (obj) => ({
|
|
|
352
352
|
...(obj.Cluster && { Cluster: (0, models_0_1.ClusterFilterSensitiveLog)(obj.Cluster) }),
|
|
353
353
|
});
|
|
354
354
|
exports.EnableSnapshotCopyResultFilterSensitiveLog = EnableSnapshotCopyResultFilterSensitiveLog;
|
|
355
|
+
const FailoverPrimaryComputeResultFilterSensitiveLog = (obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
...(obj.Cluster && { Cluster: (0, models_0_1.ClusterFilterSensitiveLog)(obj.Cluster) }),
|
|
358
|
+
});
|
|
359
|
+
exports.FailoverPrimaryComputeResultFilterSensitiveLog = FailoverPrimaryComputeResultFilterSensitiveLog;
|
|
355
360
|
const ModifyClusterMessageFilterSensitiveLog = (obj) => ({
|
|
356
361
|
...obj,
|
|
357
362
|
...(obj.MasterUserPassword && { MasterUserPassword: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_DescribeClusterParameterGroupsCommand = exports.se_DescribeClusterDbRevisionsCommand = exports.se_DescribeAuthenticationProfilesCommand = exports.se_DescribeAccountAttributesCommand = exports.se_DeleteUsageLimitCommand = exports.se_DeleteTagsCommand = exports.se_DeleteSnapshotScheduleCommand = exports.se_DeleteSnapshotCopyGrantCommand = exports.se_DeleteScheduledActionCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeletePartnerCommand = exports.se_DeleteHsmConfigurationCommand = exports.se_DeleteHsmClientCertificateCommand = exports.se_DeleteEventSubscriptionCommand = exports.se_DeleteEndpointAccessCommand = exports.se_DeleteCustomDomainAssociationCommand = exports.se_DeleteClusterSubnetGroupCommand = exports.se_DeleteClusterSnapshotCommand = exports.se_DeleteClusterSecurityGroupCommand = exports.se_DeleteClusterParameterGroupCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAuthenticationProfileCommand = exports.se_DeauthorizeDataShareCommand = exports.se_CreateUsageLimitCommand = exports.se_CreateTagsCommand = exports.se_CreateSnapshotScheduleCommand = exports.se_CreateSnapshotCopyGrantCommand = exports.se_CreateScheduledActionCommand = exports.se_CreateHsmConfigurationCommand = exports.se_CreateHsmClientCertificateCommand = exports.se_CreateEventSubscriptionCommand = exports.se_CreateEndpointAccessCommand = exports.se_CreateCustomDomainAssociationCommand = exports.se_CreateClusterSubnetGroupCommand = exports.se_CreateClusterSnapshotCommand = exports.se_CreateClusterSecurityGroupCommand = exports.se_CreateClusterParameterGroupCommand = exports.se_CreateClusterCommand = exports.se_CreateAuthenticationProfileCommand = exports.se_CopyClusterSnapshotCommand = exports.se_CancelResizeCommand = exports.se_BatchModifyClusterSnapshotsCommand = exports.se_BatchDeleteClusterSnapshotsCommand = exports.se_AuthorizeSnapshotAccessCommand = exports.se_AuthorizeEndpointAccessCommand = exports.se_AuthorizeDataShareCommand = exports.se_AuthorizeClusterSecurityGroupIngressCommand = exports.se_AssociateDataShareConsumerCommand = exports.se_AddPartnerCommand = exports.se_AcceptReservedNodeExchangeCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.de_UpdatePartnerStatusCommand = exports.de_RotateEncryptionKeyCommand = exports.de_RevokeSnapshotAccessCommand = exports.de_RevokeEndpointAccessCommand = void 0;
|
|
4
|
+
exports.se_ModifyClusterDbRevisionCommand = exports.se_ModifyClusterCommand = exports.se_ModifyAuthenticationProfileCommand = exports.se_ModifyAquaConfigurationCommand = exports.se_GetResourcePolicyCommand = exports.se_GetReservedNodeExchangeOfferingsCommand = exports.se_GetReservedNodeExchangeConfigurationOptionsCommand = exports.se_GetClusterCredentialsWithIAMCommand = exports.se_GetClusterCredentialsCommand = exports.se_FailoverPrimaryComputeCommand = exports.se_EnableSnapshotCopyCommand = exports.se_EnableLoggingCommand = exports.se_DisassociateDataShareConsumerCommand = exports.se_DisableSnapshotCopyCommand = exports.se_DisableLoggingCommand = exports.se_DescribeUsageLimitsCommand = exports.se_DescribeTagsCommand = exports.se_DescribeTableRestoreStatusCommand = exports.se_DescribeStorageCommand = exports.se_DescribeSnapshotSchedulesCommand = exports.se_DescribeSnapshotCopyGrantsCommand = exports.se_DescribeScheduledActionsCommand = exports.se_DescribeResizeCommand = exports.se_DescribeReservedNodesCommand = exports.se_DescribeReservedNodeOfferingsCommand = exports.se_DescribeReservedNodeExchangeStatusCommand = exports.se_DescribePartnersCommand = exports.se_DescribeOrderableClusterOptionsCommand = exports.se_DescribeNodeConfigurationOptionsCommand = exports.se_DescribeLoggingStatusCommand = exports.se_DescribeInboundIntegrationsCommand = exports.se_DescribeHsmConfigurationsCommand = exports.se_DescribeHsmClientCertificatesCommand = exports.se_DescribeEventSubscriptionsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEventCategoriesCommand = exports.se_DescribeEndpointAuthorizationCommand = exports.se_DescribeEndpointAccessCommand = exports.se_DescribeDefaultClusterParametersCommand = exports.se_DescribeDataSharesForProducerCommand = exports.se_DescribeDataSharesForConsumerCommand = exports.se_DescribeDataSharesCommand = exports.se_DescribeCustomDomainAssociationsCommand = exports.se_DescribeClusterVersionsCommand = exports.se_DescribeClusterTracksCommand = exports.se_DescribeClusterSubnetGroupsCommand = exports.se_DescribeClusterSnapshotsCommand = exports.se_DescribeClusterSecurityGroupsCommand = exports.se_DescribeClustersCommand = exports.se_DescribeClusterParametersCommand = void 0;
|
|
5
|
+
exports.de_CreateHsmConfigurationCommand = exports.de_CreateHsmClientCertificateCommand = exports.de_CreateEventSubscriptionCommand = exports.de_CreateEndpointAccessCommand = exports.de_CreateCustomDomainAssociationCommand = exports.de_CreateClusterSubnetGroupCommand = exports.de_CreateClusterSnapshotCommand = exports.de_CreateClusterSecurityGroupCommand = exports.de_CreateClusterParameterGroupCommand = exports.de_CreateClusterCommand = exports.de_CreateAuthenticationProfileCommand = exports.de_CopyClusterSnapshotCommand = exports.de_CancelResizeCommand = exports.de_BatchModifyClusterSnapshotsCommand = exports.de_BatchDeleteClusterSnapshotsCommand = exports.de_AuthorizeSnapshotAccessCommand = exports.de_AuthorizeEndpointAccessCommand = exports.de_AuthorizeDataShareCommand = exports.de_AuthorizeClusterSecurityGroupIngressCommand = exports.de_AssociateDataShareConsumerCommand = exports.de_AddPartnerCommand = exports.de_AcceptReservedNodeExchangeCommand = exports.se_UpdatePartnerStatusCommand = exports.se_RotateEncryptionKeyCommand = exports.se_RevokeSnapshotAccessCommand = exports.se_RevokeEndpointAccessCommand = exports.se_RevokeClusterSecurityGroupIngressCommand = exports.se_ResumeClusterCommand = exports.se_RestoreTableFromClusterSnapshotCommand = exports.se_RestoreFromClusterSnapshotCommand = exports.se_ResizeClusterCommand = exports.se_ResetClusterParameterGroupCommand = exports.se_RejectDataShareCommand = exports.se_RebootClusterCommand = exports.se_PutResourcePolicyCommand = exports.se_PurchaseReservedNodeOfferingCommand = exports.se_PauseClusterCommand = exports.se_ModifyUsageLimitCommand = exports.se_ModifySnapshotScheduleCommand = exports.se_ModifySnapshotCopyRetentionPeriodCommand = exports.se_ModifyScheduledActionCommand = exports.se_ModifyEventSubscriptionCommand = exports.se_ModifyEndpointAccessCommand = exports.se_ModifyCustomDomainAssociationCommand = exports.se_ModifyClusterSubnetGroupCommand = exports.se_ModifyClusterSnapshotScheduleCommand = exports.se_ModifyClusterSnapshotCommand = exports.se_ModifyClusterParameterGroupCommand = exports.se_ModifyClusterMaintenanceCommand = exports.se_ModifyClusterIamRolesCommand = void 0;
|
|
6
|
+
exports.de_DescribeNodeConfigurationOptionsCommand = exports.de_DescribeLoggingStatusCommand = exports.de_DescribeInboundIntegrationsCommand = exports.de_DescribeHsmConfigurationsCommand = exports.de_DescribeHsmClientCertificatesCommand = exports.de_DescribeEventSubscriptionsCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEventCategoriesCommand = exports.de_DescribeEndpointAuthorizationCommand = exports.de_DescribeEndpointAccessCommand = exports.de_DescribeDefaultClusterParametersCommand = exports.de_DescribeDataSharesForProducerCommand = exports.de_DescribeDataSharesForConsumerCommand = exports.de_DescribeDataSharesCommand = exports.de_DescribeCustomDomainAssociationsCommand = exports.de_DescribeClusterVersionsCommand = exports.de_DescribeClusterTracksCommand = exports.de_DescribeClusterSubnetGroupsCommand = exports.de_DescribeClusterSnapshotsCommand = exports.de_DescribeClusterSecurityGroupsCommand = exports.de_DescribeClustersCommand = exports.de_DescribeClusterParametersCommand = exports.de_DescribeClusterParameterGroupsCommand = exports.de_DescribeClusterDbRevisionsCommand = exports.de_DescribeAuthenticationProfilesCommand = exports.de_DescribeAccountAttributesCommand = exports.de_DeleteUsageLimitCommand = exports.de_DeleteTagsCommand = exports.de_DeleteSnapshotScheduleCommand = exports.de_DeleteSnapshotCopyGrantCommand = exports.de_DeleteScheduledActionCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeletePartnerCommand = exports.de_DeleteHsmConfigurationCommand = exports.de_DeleteHsmClientCertificateCommand = exports.de_DeleteEventSubscriptionCommand = exports.de_DeleteEndpointAccessCommand = exports.de_DeleteCustomDomainAssociationCommand = exports.de_DeleteClusterSubnetGroupCommand = exports.de_DeleteClusterSnapshotCommand = exports.de_DeleteClusterSecurityGroupCommand = exports.de_DeleteClusterParameterGroupCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAuthenticationProfileCommand = exports.de_DeauthorizeDataShareCommand = exports.de_CreateUsageLimitCommand = exports.de_CreateTagsCommand = exports.de_CreateSnapshotScheduleCommand = exports.de_CreateSnapshotCopyGrantCommand = exports.de_CreateScheduledActionCommand = void 0;
|
|
7
|
+
exports.de_RestoreTableFromClusterSnapshotCommand = exports.de_RestoreFromClusterSnapshotCommand = exports.de_ResizeClusterCommand = exports.de_ResetClusterParameterGroupCommand = exports.de_RejectDataShareCommand = exports.de_RebootClusterCommand = exports.de_PutResourcePolicyCommand = exports.de_PurchaseReservedNodeOfferingCommand = exports.de_PauseClusterCommand = exports.de_ModifyUsageLimitCommand = exports.de_ModifySnapshotScheduleCommand = exports.de_ModifySnapshotCopyRetentionPeriodCommand = exports.de_ModifyScheduledActionCommand = exports.de_ModifyEventSubscriptionCommand = exports.de_ModifyEndpointAccessCommand = exports.de_ModifyCustomDomainAssociationCommand = exports.de_ModifyClusterSubnetGroupCommand = exports.de_ModifyClusterSnapshotScheduleCommand = exports.de_ModifyClusterSnapshotCommand = exports.de_ModifyClusterParameterGroupCommand = exports.de_ModifyClusterMaintenanceCommand = exports.de_ModifyClusterIamRolesCommand = exports.de_ModifyClusterDbRevisionCommand = exports.de_ModifyClusterCommand = exports.de_ModifyAuthenticationProfileCommand = exports.de_ModifyAquaConfigurationCommand = exports.de_GetResourcePolicyCommand = exports.de_GetReservedNodeExchangeOfferingsCommand = exports.de_GetReservedNodeExchangeConfigurationOptionsCommand = exports.de_GetClusterCredentialsWithIAMCommand = exports.de_GetClusterCredentialsCommand = exports.de_FailoverPrimaryComputeCommand = exports.de_EnableSnapshotCopyCommand = exports.de_EnableLoggingCommand = exports.de_DisassociateDataShareConsumerCommand = exports.de_DisableSnapshotCopyCommand = exports.de_DisableLoggingCommand = exports.de_DescribeUsageLimitsCommand = exports.de_DescribeTagsCommand = exports.de_DescribeTableRestoreStatusCommand = exports.de_DescribeStorageCommand = exports.de_DescribeSnapshotSchedulesCommand = exports.de_DescribeSnapshotCopyGrantsCommand = exports.de_DescribeScheduledActionsCommand = exports.de_DescribeResizeCommand = exports.de_DescribeReservedNodesCommand = exports.de_DescribeReservedNodeOfferingsCommand = exports.de_DescribeReservedNodeExchangeStatusCommand = exports.de_DescribePartnersCommand = exports.de_DescribeOrderableClusterOptionsCommand = void 0;
|
|
8
|
+
exports.de_UpdatePartnerStatusCommand = exports.de_RotateEncryptionKeyCommand = exports.de_RevokeSnapshotAccessCommand = exports.de_RevokeEndpointAccessCommand = exports.de_RevokeClusterSecurityGroupIngressCommand = exports.de_ResumeClusterCommand = 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");
|
|
@@ -1000,6 +1000,17 @@ const se_EnableSnapshotCopyCommand = async (input, context) => {
|
|
|
1000
1000
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1001
1001
|
};
|
|
1002
1002
|
exports.se_EnableSnapshotCopyCommand = se_EnableSnapshotCopyCommand;
|
|
1003
|
+
const se_FailoverPrimaryComputeCommand = async (input, context) => {
|
|
1004
|
+
const headers = SHARED_HEADERS;
|
|
1005
|
+
let body;
|
|
1006
|
+
body = buildFormUrlencodedString({
|
|
1007
|
+
...se_FailoverPrimaryComputeInputMessage(input, context),
|
|
1008
|
+
Action: "FailoverPrimaryCompute",
|
|
1009
|
+
Version: "2012-12-01",
|
|
1010
|
+
});
|
|
1011
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1012
|
+
};
|
|
1013
|
+
exports.se_FailoverPrimaryComputeCommand = se_FailoverPrimaryComputeCommand;
|
|
1003
1014
|
const se_GetClusterCredentialsCommand = async (input, context) => {
|
|
1004
1015
|
const headers = SHARED_HEADERS;
|
|
1005
1016
|
let body;
|
|
@@ -1488,6 +1499,9 @@ const de_AddPartnerCommandError = async (output, context) => {
|
|
|
1488
1499
|
case "UnauthorizedPartnerIntegration":
|
|
1489
1500
|
case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
|
|
1490
1501
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
1502
|
+
case "UnsupportedOperation":
|
|
1503
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
1504
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
1491
1505
|
default:
|
|
1492
1506
|
const parsedBody = parsedOutput.body;
|
|
1493
1507
|
return throwDefaultError({
|
|
@@ -1839,6 +1853,9 @@ const de_CopyClusterSnapshotCommandError = async (output, context) => {
|
|
|
1839
1853
|
};
|
|
1840
1854
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1841
1855
|
switch (errorCode) {
|
|
1856
|
+
case "ClusterNotFound":
|
|
1857
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
1858
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1842
1859
|
case "ClusterSnapshotAlreadyExists":
|
|
1843
1860
|
case "com.amazonaws.redshift#ClusterSnapshotAlreadyExistsFault":
|
|
1844
1861
|
throw await de_ClusterSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
@@ -1992,6 +2009,9 @@ const de_CreateClusterCommandError = async (output, context) => {
|
|
|
1992
2009
|
case "UnauthorizedOperation":
|
|
1993
2010
|
case "com.amazonaws.redshift#UnauthorizedOperation":
|
|
1994
2011
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
2012
|
+
case "UnsupportedOperation":
|
|
2013
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
2014
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
1995
2015
|
default:
|
|
1996
2016
|
const parsedBody = parsedOutput.body;
|
|
1997
2017
|
return throwDefaultError({
|
|
@@ -2457,6 +2477,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
|
2457
2477
|
};
|
|
2458
2478
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2459
2479
|
switch (errorCode) {
|
|
2480
|
+
case "ClusterNotFound":
|
|
2481
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
2482
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
2460
2483
|
case "InvalidSchedule":
|
|
2461
2484
|
case "com.amazonaws.redshift#InvalidScheduleFault":
|
|
2462
2485
|
throw await de_InvalidScheduleFaultRes(parsedOutput, context);
|
|
@@ -2475,6 +2498,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
|
2475
2498
|
case "UnauthorizedOperation":
|
|
2476
2499
|
case "com.amazonaws.redshift#UnauthorizedOperation":
|
|
2477
2500
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
2501
|
+
case "UnsupportedOperation":
|
|
2502
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
2503
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
2478
2504
|
default:
|
|
2479
2505
|
const parsedBody = parsedOutput.body;
|
|
2480
2506
|
return throwDefaultError({
|
|
@@ -3132,6 +3158,9 @@ const de_DeletePartnerCommandError = async (output, context) => {
|
|
|
3132
3158
|
case "UnauthorizedPartnerIntegration":
|
|
3133
3159
|
case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
|
|
3134
3160
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
3161
|
+
case "UnsupportedOperation":
|
|
3162
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
3163
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
3135
3164
|
default:
|
|
3136
3165
|
const parsedBody = parsedOutput.body;
|
|
3137
3166
|
return throwDefaultError({
|
|
@@ -4182,6 +4211,9 @@ const de_DescribeLoggingStatusCommandError = async (output, context) => {
|
|
|
4182
4211
|
case "ClusterNotFound":
|
|
4183
4212
|
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
4184
4213
|
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
4214
|
+
case "UnsupportedOperation":
|
|
4215
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4216
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4185
4217
|
default:
|
|
4186
4218
|
const parsedBody = parsedOutput.body;
|
|
4187
4219
|
return throwDefaultError({
|
|
@@ -4290,6 +4322,9 @@ const de_DescribePartnersCommandError = async (output, context) => {
|
|
|
4290
4322
|
case "UnauthorizedPartnerIntegration":
|
|
4291
4323
|
case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
|
|
4292
4324
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
4325
|
+
case "UnsupportedOperation":
|
|
4326
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4327
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4293
4328
|
default:
|
|
4294
4329
|
const parsedBody = parsedOutput.body;
|
|
4295
4330
|
return throwDefaultError({
|
|
@@ -4440,6 +4475,9 @@ const de_DescribeResizeCommandError = async (output, context) => {
|
|
|
4440
4475
|
case "ResizeNotFound":
|
|
4441
4476
|
case "com.amazonaws.redshift#ResizeNotFoundFault":
|
|
4442
4477
|
throw await de_ResizeNotFoundFaultRes(parsedOutput, context);
|
|
4478
|
+
case "UnsupportedOperation":
|
|
4479
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4480
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4443
4481
|
default:
|
|
4444
4482
|
const parsedBody = parsedOutput.body;
|
|
4445
4483
|
return throwDefaultError({
|
|
@@ -4710,6 +4748,9 @@ const de_DisableLoggingCommandError = async (output, context) => {
|
|
|
4710
4748
|
case "InvalidClusterState":
|
|
4711
4749
|
case "com.amazonaws.redshift#InvalidClusterStateFault":
|
|
4712
4750
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
4751
|
+
case "UnsupportedOperation":
|
|
4752
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4753
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4713
4754
|
default:
|
|
4714
4755
|
const parsedBody = parsedOutput.body;
|
|
4715
4756
|
return throwDefaultError({
|
|
@@ -4752,6 +4793,9 @@ const de_DisableSnapshotCopyCommandError = async (output, context) => {
|
|
|
4752
4793
|
case "UnauthorizedOperation":
|
|
4753
4794
|
case "com.amazonaws.redshift#UnauthorizedOperation":
|
|
4754
4795
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
4796
|
+
case "UnsupportedOperation":
|
|
4797
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4798
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4755
4799
|
default:
|
|
4756
4800
|
const parsedBody = parsedOutput.body;
|
|
4757
4801
|
return throwDefaultError({
|
|
@@ -4836,6 +4880,9 @@ const de_EnableLoggingCommandError = async (output, context) => {
|
|
|
4836
4880
|
case "InvalidS3KeyPrefixFault":
|
|
4837
4881
|
case "com.amazonaws.redshift#InvalidS3KeyPrefixFault":
|
|
4838
4882
|
throw await de_InvalidS3KeyPrefixFaultRes(parsedOutput, context);
|
|
4883
|
+
case "UnsupportedOperation":
|
|
4884
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4885
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4839
4886
|
default:
|
|
4840
4887
|
const parsedBody = parsedOutput.body;
|
|
4841
4888
|
return throwDefaultError({
|
|
@@ -4908,6 +4955,48 @@ const de_EnableSnapshotCopyCommandError = async (output, context) => {
|
|
|
4908
4955
|
});
|
|
4909
4956
|
}
|
|
4910
4957
|
};
|
|
4958
|
+
const de_FailoverPrimaryComputeCommand = async (output, context) => {
|
|
4959
|
+
if (output.statusCode >= 300) {
|
|
4960
|
+
return de_FailoverPrimaryComputeCommandError(output, context);
|
|
4961
|
+
}
|
|
4962
|
+
const data = await parseBody(output.body, context);
|
|
4963
|
+
let contents = {};
|
|
4964
|
+
contents = de_FailoverPrimaryComputeResult(data.FailoverPrimaryComputeResult, context);
|
|
4965
|
+
const response = {
|
|
4966
|
+
$metadata: deserializeMetadata(output),
|
|
4967
|
+
...contents,
|
|
4968
|
+
};
|
|
4969
|
+
return response;
|
|
4970
|
+
};
|
|
4971
|
+
exports.de_FailoverPrimaryComputeCommand = de_FailoverPrimaryComputeCommand;
|
|
4972
|
+
const de_FailoverPrimaryComputeCommandError = async (output, context) => {
|
|
4973
|
+
const parsedOutput = {
|
|
4974
|
+
...output,
|
|
4975
|
+
body: await parseErrorBody(output.body, context),
|
|
4976
|
+
};
|
|
4977
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4978
|
+
switch (errorCode) {
|
|
4979
|
+
case "ClusterNotFound":
|
|
4980
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
4981
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
4982
|
+
case "InvalidClusterState":
|
|
4983
|
+
case "com.amazonaws.redshift#InvalidClusterStateFault":
|
|
4984
|
+
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
4985
|
+
case "UnauthorizedOperation":
|
|
4986
|
+
case "com.amazonaws.redshift#UnauthorizedOperation":
|
|
4987
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
4988
|
+
case "UnsupportedOperation":
|
|
4989
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4990
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4991
|
+
default:
|
|
4992
|
+
const parsedBody = parsedOutput.body;
|
|
4993
|
+
return throwDefaultError({
|
|
4994
|
+
output,
|
|
4995
|
+
parsedBody: parsedBody.Error,
|
|
4996
|
+
errorCode,
|
|
4997
|
+
});
|
|
4998
|
+
}
|
|
4999
|
+
};
|
|
4911
5000
|
const de_GetClusterCredentialsCommand = async (output, context) => {
|
|
4912
5001
|
if (output.statusCode >= 300) {
|
|
4913
5002
|
return de_GetClusterCredentialsCommandError(output, context);
|
|
@@ -5325,6 +5414,9 @@ const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
|
|
|
5325
5414
|
case "InvalidClusterState":
|
|
5326
5415
|
case "com.amazonaws.redshift#InvalidClusterStateFault":
|
|
5327
5416
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
5417
|
+
case "UnsupportedOperation":
|
|
5418
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
5419
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
5328
5420
|
default:
|
|
5329
5421
|
const parsedBody = parsedOutput.body;
|
|
5330
5422
|
return throwDefaultError({
|
|
@@ -5730,6 +5822,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
|
|
|
5730
5822
|
};
|
|
5731
5823
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5732
5824
|
switch (errorCode) {
|
|
5825
|
+
case "ClusterNotFound":
|
|
5826
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
5827
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
5733
5828
|
case "InvalidSchedule":
|
|
5734
5829
|
case "com.amazonaws.redshift#InvalidScheduleFault":
|
|
5735
5830
|
throw await de_InvalidScheduleFaultRes(parsedOutput, context);
|
|
@@ -5745,6 +5840,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
|
|
|
5745
5840
|
case "UnauthorizedOperation":
|
|
5746
5841
|
case "com.amazonaws.redshift#UnauthorizedOperation":
|
|
5747
5842
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
5843
|
+
case "UnsupportedOperation":
|
|
5844
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
5845
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
5748
5846
|
default:
|
|
5749
5847
|
const parsedBody = parsedOutput.body;
|
|
5750
5848
|
return throwDefaultError({
|
|
@@ -5904,6 +6002,9 @@ const de_PauseClusterCommandError = async (output, context) => {
|
|
|
5904
6002
|
case "InvalidClusterState":
|
|
5905
6003
|
case "com.amazonaws.redshift#InvalidClusterStateFault":
|
|
5906
6004
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
6005
|
+
case "UnsupportedOperation":
|
|
6006
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
6007
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
5907
6008
|
default:
|
|
5908
6009
|
const parsedBody = parsedOutput.body;
|
|
5909
6010
|
return throwDefaultError({
|
|
@@ -6387,6 +6488,9 @@ const de_ResumeClusterCommandError = async (output, context) => {
|
|
|
6387
6488
|
case "InvalidClusterState":
|
|
6388
6489
|
case "com.amazonaws.redshift#InvalidClusterStateFault":
|
|
6389
6490
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
6491
|
+
case "UnsupportedOperation":
|
|
6492
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
6493
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
6390
6494
|
default:
|
|
6391
6495
|
const parsedBody = parsedOutput.body;
|
|
6392
6496
|
return throwDefaultError({
|
|
@@ -6558,6 +6662,9 @@ const de_RotateEncryptionKeyCommandError = async (output, context) => {
|
|
|
6558
6662
|
case "InvalidClusterState":
|
|
6559
6663
|
case "com.amazonaws.redshift#InvalidClusterStateFault":
|
|
6560
6664
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
6665
|
+
case "UnsupportedOperation":
|
|
6666
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
6667
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
6561
6668
|
default:
|
|
6562
6669
|
const parsedBody = parsedOutput.body;
|
|
6563
6670
|
return throwDefaultError({
|
|
@@ -6597,6 +6704,9 @@ const de_UpdatePartnerStatusCommandError = async (output, context) => {
|
|
|
6597
6704
|
case "UnauthorizedPartnerIntegration":
|
|
6598
6705
|
case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
|
|
6599
6706
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
6707
|
+
case "UnsupportedOperation":
|
|
6708
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
6709
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
6600
6710
|
default:
|
|
6601
6711
|
const parsedBody = parsedOutput.body;
|
|
6602
6712
|
return throwDefaultError({
|
|
@@ -8114,6 +8224,9 @@ const se_CreateClusterMessage = (input, context) => {
|
|
|
8114
8224
|
if (input.IpAddressType != null) {
|
|
8115
8225
|
entries["IpAddressType"] = input.IpAddressType;
|
|
8116
8226
|
}
|
|
8227
|
+
if (input.MultiAZ != null) {
|
|
8228
|
+
entries["MultiAZ"] = input.MultiAZ;
|
|
8229
|
+
}
|
|
8117
8230
|
return entries;
|
|
8118
8231
|
};
|
|
8119
8232
|
const se_CreateClusterParameterGroupMessage = (input, context) => {
|
|
@@ -9606,6 +9719,13 @@ const se_EventCategoriesList = (input, context) => {
|
|
|
9606
9719
|
}
|
|
9607
9720
|
return entries;
|
|
9608
9721
|
};
|
|
9722
|
+
const se_FailoverPrimaryComputeInputMessage = (input, context) => {
|
|
9723
|
+
const entries = {};
|
|
9724
|
+
if (input.ClusterIdentifier != null) {
|
|
9725
|
+
entries["ClusterIdentifier"] = input.ClusterIdentifier;
|
|
9726
|
+
}
|
|
9727
|
+
return entries;
|
|
9728
|
+
};
|
|
9609
9729
|
const se_GetClusterCredentialsMessage = (input, context) => {
|
|
9610
9730
|
const entries = {};
|
|
9611
9731
|
if (input.DbUser != null) {
|
|
@@ -9899,6 +10019,9 @@ const se_ModifyClusterMessage = (input, context) => {
|
|
|
9899
10019
|
if (input.IpAddressType != null) {
|
|
9900
10020
|
entries["IpAddressType"] = input.IpAddressType;
|
|
9901
10021
|
}
|
|
10022
|
+
if (input.MultiAZ != null) {
|
|
10023
|
+
entries["MultiAZ"] = input.MultiAZ;
|
|
10024
|
+
}
|
|
9902
10025
|
return entries;
|
|
9903
10026
|
};
|
|
9904
10027
|
const se_ModifyClusterParameterGroupMessage = (input, context) => {
|
|
@@ -10422,6 +10545,9 @@ const se_RestoreFromClusterSnapshotMessage = (input, context) => {
|
|
|
10422
10545
|
if (input.IpAddressType != null) {
|
|
10423
10546
|
entries["IpAddressType"] = input.IpAddressType;
|
|
10424
10547
|
}
|
|
10548
|
+
if (input.MultiAZ != null) {
|
|
10549
|
+
entries["MultiAZ"] = input.MultiAZ;
|
|
10550
|
+
}
|
|
10425
10551
|
return entries;
|
|
10426
10552
|
};
|
|
10427
10553
|
const se_RestoreTableFromClusterSnapshotMessage = (input, context) => {
|
|
@@ -11268,6 +11394,12 @@ const de_Cluster = (output, context) => {
|
|
|
11268
11394
|
if (output["IpAddressType"] !== undefined) {
|
|
11269
11395
|
contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]);
|
|
11270
11396
|
}
|
|
11397
|
+
if (output["MultiAZ"] !== undefined) {
|
|
11398
|
+
contents.MultiAZ = (0, smithy_client_1.expectString)(output["MultiAZ"]);
|
|
11399
|
+
}
|
|
11400
|
+
if (output["MultiAZSecondary"] !== undefined) {
|
|
11401
|
+
contents.MultiAZSecondary = de_SecondaryClusterInfo(output["MultiAZSecondary"], context);
|
|
11402
|
+
}
|
|
11271
11403
|
return contents;
|
|
11272
11404
|
};
|
|
11273
11405
|
const de_ClusterAlreadyExistsFault = (output, context) => {
|
|
@@ -12610,6 +12742,13 @@ const de_EventSubscriptionsMessage = (output, context) => {
|
|
|
12610
12742
|
}
|
|
12611
12743
|
return contents;
|
|
12612
12744
|
};
|
|
12745
|
+
const de_FailoverPrimaryComputeResult = (output, context) => {
|
|
12746
|
+
const contents = {};
|
|
12747
|
+
if (output["Cluster"] !== undefined) {
|
|
12748
|
+
contents.Cluster = de_Cluster(output["Cluster"], context);
|
|
12749
|
+
}
|
|
12750
|
+
return contents;
|
|
12751
|
+
};
|
|
12613
12752
|
const de_GetReservedNodeExchangeConfigurationOptionsOutputMessage = (output, context) => {
|
|
12614
12753
|
const contents = {};
|
|
12615
12754
|
if (output["Marker"] !== undefined) {
|
|
@@ -14173,6 +14312,19 @@ const de_ScheduledSnapshotTimeList = (output, context) => {
|
|
|
14173
14312
|
return (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(entry));
|
|
14174
14313
|
});
|
|
14175
14314
|
};
|
|
14315
|
+
const de_SecondaryClusterInfo = (output, context) => {
|
|
14316
|
+
const contents = {};
|
|
14317
|
+
if (output["AvailabilityZone"] !== undefined) {
|
|
14318
|
+
contents.AvailabilityZone = (0, smithy_client_1.expectString)(output["AvailabilityZone"]);
|
|
14319
|
+
}
|
|
14320
|
+
if (output.ClusterNodes === "") {
|
|
14321
|
+
contents.ClusterNodes = [];
|
|
14322
|
+
}
|
|
14323
|
+
else if (output["ClusterNodes"] !== undefined && output["ClusterNodes"]["member"] !== undefined) {
|
|
14324
|
+
contents.ClusterNodes = de_ClusterNodesList((0, smithy_client_1.getArrayIfSingleItem)(output["ClusterNodes"]["member"]), context);
|
|
14325
|
+
}
|
|
14326
|
+
return contents;
|
|
14327
|
+
};
|
|
14176
14328
|
const de_Snapshot = (output, context) => {
|
|
14177
14329
|
const contents = {};
|
|
14178
14330
|
if (output["SnapshotIdentifier"] !== undefined) {
|
package/dist-es/Redshift.js
CHANGED
|
@@ -89,6 +89,7 @@ import { DisableSnapshotCopyCommand, } from "./commands/DisableSnapshotCopyComma
|
|
|
89
89
|
import { DisassociateDataShareConsumerCommand, } from "./commands/DisassociateDataShareConsumerCommand";
|
|
90
90
|
import { EnableLoggingCommand, } from "./commands/EnableLoggingCommand";
|
|
91
91
|
import { EnableSnapshotCopyCommand, } from "./commands/EnableSnapshotCopyCommand";
|
|
92
|
+
import { FailoverPrimaryComputeCommand, } from "./commands/FailoverPrimaryComputeCommand";
|
|
92
93
|
import { GetClusterCredentialsCommand, } from "./commands/GetClusterCredentialsCommand";
|
|
93
94
|
import { GetClusterCredentialsWithIAMCommand, } from "./commands/GetClusterCredentialsWithIAMCommand";
|
|
94
95
|
import { GetReservedNodeExchangeConfigurationOptionsCommand, } from "./commands/GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
@@ -218,6 +219,7 @@ const commands = {
|
|
|
218
219
|
DisassociateDataShareConsumerCommand,
|
|
219
220
|
EnableLoggingCommand,
|
|
220
221
|
EnableSnapshotCopyCommand,
|
|
222
|
+
FailoverPrimaryComputeCommand,
|
|
221
223
|
GetClusterCredentialsCommand,
|
|
222
224
|
GetClusterCredentialsWithIAMCommand,
|
|
223
225
|
GetReservedNodeExchangeConfigurationOptionsCommand,
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { FailoverPrimaryComputeResultFilterSensitiveLog, } from "../models/models_1";
|
|
6
|
+
import { de_FailoverPrimaryComputeCommand, se_FailoverPrimaryComputeCommand } from "../protocols/Aws_query";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class FailoverPrimaryComputeCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, FailoverPrimaryComputeCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "RedshiftClient";
|
|
27
|
+
const commandName = "FailoverPrimaryComputeCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: FailoverPrimaryComputeResultFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "RedshiftServiceVersion20121201",
|
|
36
|
+
operation: "FailoverPrimaryCompute",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_FailoverPrimaryComputeCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_FailoverPrimaryComputeCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -88,6 +88,7 @@ export * from "./DisableSnapshotCopyCommand";
|
|
|
88
88
|
export * from "./DisassociateDataShareConsumerCommand";
|
|
89
89
|
export * from "./EnableLoggingCommand";
|
|
90
90
|
export * from "./EnableSnapshotCopyCommand";
|
|
91
|
+
export * from "./FailoverPrimaryComputeCommand";
|
|
91
92
|
export * from "./GetClusterCredentialsCommand";
|
|
92
93
|
export * from "./GetClusterCredentialsWithIAMCommand";
|
|
93
94
|
export * from "./GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
@@ -326,6 +326,10 @@ export const EnableSnapshotCopyResultFilterSensitiveLog = (obj) => ({
|
|
|
326
326
|
...obj,
|
|
327
327
|
...(obj.Cluster && { Cluster: ClusterFilterSensitiveLog(obj.Cluster) }),
|
|
328
328
|
});
|
|
329
|
+
export const FailoverPrimaryComputeResultFilterSensitiveLog = (obj) => ({
|
|
330
|
+
...obj,
|
|
331
|
+
...(obj.Cluster && { Cluster: ClusterFilterSensitiveLog(obj.Cluster) }),
|
|
332
|
+
});
|
|
329
333
|
export const ModifyClusterMessageFilterSensitiveLog = (obj) => ({
|
|
330
334
|
...obj,
|
|
331
335
|
...(obj.MasterUserPassword && { MasterUserPassword: SENSITIVE_STRING }),
|