@aws-sdk/client-redshift 3.437.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.
Files changed (72) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Redshift.js +2 -0
  3. package/dist-cjs/commands/FailoverPrimaryComputeCommand.js +52 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +1 -1
  6. package/dist-cjs/index.js +1 -0
  7. package/dist-cjs/models/models_0.js +15 -2
  8. package/dist-cjs/models/models_1.js +6 -1
  9. package/dist-cjs/protocols/Aws_query.js +211 -5
  10. package/dist-es/Redshift.js +2 -0
  11. package/dist-es/commands/FailoverPrimaryComputeCommand.js +48 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoint/endpointResolver.js +1 -1
  14. package/dist-es/index.js +1 -0
  15. package/dist-es/models/models_0.js +12 -0
  16. package/dist-es/models/models_1.js +4 -0
  17. package/dist-es/protocols/Aws_query.js +205 -1
  18. package/dist-types/Redshift.d.ts +7 -0
  19. package/dist-types/RedshiftClient.d.ts +3 -2
  20. package/dist-types/commands/AddPartnerCommand.d.ts +3 -0
  21. package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +4 -0
  22. package/dist-types/commands/CreateClusterCommand.d.ts +22 -0
  23. package/dist-types/commands/CreateClusterSubnetGroupCommand.d.ts +3 -0
  24. package/dist-types/commands/CreateEndpointAccessCommand.d.ts +1 -0
  25. package/dist-types/commands/CreateScheduledActionCommand.d.ts +7 -0
  26. package/dist-types/commands/DeleteClusterCommand.d.ts +13 -0
  27. package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +1 -0
  28. package/dist-types/commands/DeletePartnerCommand.d.ts +3 -0
  29. package/dist-types/commands/DescribeClusterSubnetGroupsCommand.d.ts +3 -0
  30. package/dist-types/commands/DescribeClustersCommand.d.ts +13 -0
  31. package/dist-types/commands/DescribeEndpointAccessCommand.d.ts +1 -0
  32. package/dist-types/commands/DescribeEndpointAuthorizationCommand.d.ts +2 -1
  33. package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +1 -2
  34. package/dist-types/commands/DescribeLoggingStatusCommand.d.ts +3 -0
  35. package/dist-types/commands/DescribePartnersCommand.d.ts +3 -0
  36. package/dist-types/commands/DescribeResizeCommand.d.ts +3 -0
  37. package/dist-types/commands/DisableLoggingCommand.d.ts +3 -0
  38. package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +16 -0
  39. package/dist-types/commands/EnableLoggingCommand.d.ts +3 -0
  40. package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +13 -0
  41. package/dist-types/commands/FailoverPrimaryComputeCommand.d.ts +274 -0
  42. package/dist-types/commands/ModifyClusterCommand.d.ts +19 -0
  43. package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +16 -0
  44. package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +13 -0
  45. package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +13 -0
  46. package/dist-types/commands/ModifyClusterSubnetGroupCommand.d.ts +3 -0
  47. package/dist-types/commands/ModifyEndpointAccessCommand.d.ts +1 -0
  48. package/dist-types/commands/ModifyScheduledActionCommand.d.ts +7 -0
  49. package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +13 -0
  50. package/dist-types/commands/PauseClusterCommand.d.ts +16 -0
  51. package/dist-types/commands/RebootClusterCommand.d.ts +13 -0
  52. package/dist-types/commands/ResizeClusterCommand.d.ts +13 -0
  53. package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +19 -0
  54. package/dist-types/commands/ResumeClusterCommand.d.ts +16 -0
  55. package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +16 -0
  56. package/dist-types/commands/UpdatePartnerStatusCommand.d.ts +3 -0
  57. package/dist-types/commands/index.d.ts +1 -0
  58. package/dist-types/index.d.ts +1 -0
  59. package/dist-types/models/models_0.d.ts +64 -31
  60. package/dist-types/models/models_1.d.ts +76 -1
  61. package/dist-types/protocols/Aws_query.d.ts +9 -0
  62. package/dist-types/ts3.4/Redshift.d.ts +17 -0
  63. package/dist-types/ts3.4/RedshiftClient.d.ts +6 -0
  64. package/dist-types/ts3.4/commands/DescribeEndpointAuthorizationCommand.d.ts +2 -4
  65. package/dist-types/ts3.4/commands/DescribeEventCategoriesCommand.d.ts +4 -2
  66. package/dist-types/ts3.4/commands/FailoverPrimaryComputeCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  68. package/dist-types/ts3.4/index.d.ts +1 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +18 -7
  70. package/dist-types/ts3.4/models/models_1.d.ts +21 -0
  71. package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
  72. package/package.json +7 -6
@@ -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.se_ModifyClusterIamRolesCommand = 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_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_CreateScheduledActionCommand = 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 = void 0;
6
- exports.de_DescribeOrderableClusterOptionsCommand = 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 = void 0;
7
- exports.de_RevokeClusterSecurityGroupIngressCommand = exports.de_ResumeClusterCommand = 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_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 = void 0;
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);
@@ -1971,6 +1988,9 @@ const de_CreateClusterCommandError = async (output, context) => {
1971
1988
  case "InvalidVPCNetworkStateFault":
1972
1989
  case "com.amazonaws.redshift#InvalidVPCNetworkStateFault":
1973
1990
  throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
1991
+ case "Ipv6CidrBlockNotFoundFault":
1992
+ case "com.amazonaws.redshift#Ipv6CidrBlockNotFoundFault":
1993
+ throw await de_Ipv6CidrBlockNotFoundFaultRes(parsedOutput, context);
1974
1994
  case "LimitExceededFault":
1975
1995
  case "com.amazonaws.redshift#LimitExceededFault":
1976
1996
  throw await de_LimitExceededFaultRes(parsedOutput, context);
@@ -1989,6 +2009,9 @@ const de_CreateClusterCommandError = async (output, context) => {
1989
2009
  case "UnauthorizedOperation":
1990
2010
  case "com.amazonaws.redshift#UnauthorizedOperation":
1991
2011
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2012
+ case "UnsupportedOperation":
2013
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
2014
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1992
2015
  default:
1993
2016
  const parsedBody = parsedOutput.body;
1994
2017
  return throwDefaultError({
@@ -2454,6 +2477,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
2454
2477
  };
2455
2478
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2456
2479
  switch (errorCode) {
2480
+ case "ClusterNotFound":
2481
+ case "com.amazonaws.redshift#ClusterNotFoundFault":
2482
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2457
2483
  case "InvalidSchedule":
2458
2484
  case "com.amazonaws.redshift#InvalidScheduleFault":
2459
2485
  throw await de_InvalidScheduleFaultRes(parsedOutput, context);
@@ -2472,6 +2498,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
2472
2498
  case "UnauthorizedOperation":
2473
2499
  case "com.amazonaws.redshift#UnauthorizedOperation":
2474
2500
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2501
+ case "UnsupportedOperation":
2502
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
2503
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
2475
2504
  default:
2476
2505
  const parsedBody = parsedOutput.body;
2477
2506
  return throwDefaultError({
@@ -3129,6 +3158,9 @@ const de_DeletePartnerCommandError = async (output, context) => {
3129
3158
  case "UnauthorizedPartnerIntegration":
3130
3159
  case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
3131
3160
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
3161
+ case "UnsupportedOperation":
3162
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
3163
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3132
3164
  default:
3133
3165
  const parsedBody = parsedOutput.body;
3134
3166
  return throwDefaultError({
@@ -4179,6 +4211,9 @@ const de_DescribeLoggingStatusCommandError = async (output, context) => {
4179
4211
  case "ClusterNotFound":
4180
4212
  case "com.amazonaws.redshift#ClusterNotFoundFault":
4181
4213
  throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
4214
+ case "UnsupportedOperation":
4215
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
4216
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4182
4217
  default:
4183
4218
  const parsedBody = parsedOutput.body;
4184
4219
  return throwDefaultError({
@@ -4287,6 +4322,9 @@ const de_DescribePartnersCommandError = async (output, context) => {
4287
4322
  case "UnauthorizedPartnerIntegration":
4288
4323
  case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
4289
4324
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
4325
+ case "UnsupportedOperation":
4326
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
4327
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4290
4328
  default:
4291
4329
  const parsedBody = parsedOutput.body;
4292
4330
  return throwDefaultError({
@@ -4437,6 +4475,9 @@ const de_DescribeResizeCommandError = async (output, context) => {
4437
4475
  case "ResizeNotFound":
4438
4476
  case "com.amazonaws.redshift#ResizeNotFoundFault":
4439
4477
  throw await de_ResizeNotFoundFaultRes(parsedOutput, context);
4478
+ case "UnsupportedOperation":
4479
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
4480
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4440
4481
  default:
4441
4482
  const parsedBody = parsedOutput.body;
4442
4483
  return throwDefaultError({
@@ -4707,6 +4748,9 @@ const de_DisableLoggingCommandError = async (output, context) => {
4707
4748
  case "InvalidClusterState":
4708
4749
  case "com.amazonaws.redshift#InvalidClusterStateFault":
4709
4750
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4751
+ case "UnsupportedOperation":
4752
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
4753
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4710
4754
  default:
4711
4755
  const parsedBody = parsedOutput.body;
4712
4756
  return throwDefaultError({
@@ -4749,6 +4793,9 @@ const de_DisableSnapshotCopyCommandError = async (output, context) => {
4749
4793
  case "UnauthorizedOperation":
4750
4794
  case "com.amazonaws.redshift#UnauthorizedOperation":
4751
4795
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4796
+ case "UnsupportedOperation":
4797
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
4798
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4752
4799
  default:
4753
4800
  const parsedBody = parsedOutput.body;
4754
4801
  return throwDefaultError({
@@ -4833,6 +4880,9 @@ const de_EnableLoggingCommandError = async (output, context) => {
4833
4880
  case "InvalidS3KeyPrefixFault":
4834
4881
  case "com.amazonaws.redshift#InvalidS3KeyPrefixFault":
4835
4882
  throw await de_InvalidS3KeyPrefixFaultRes(parsedOutput, context);
4883
+ case "UnsupportedOperation":
4884
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
4885
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4836
4886
  default:
4837
4887
  const parsedBody = parsedOutput.body;
4838
4888
  return throwDefaultError({
@@ -4905,6 +4955,48 @@ const de_EnableSnapshotCopyCommandError = async (output, context) => {
4905
4955
  });
4906
4956
  }
4907
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
+ };
4908
5000
  const de_GetClusterCredentialsCommand = async (output, context) => {
4909
5001
  if (output.statusCode >= 300) {
4910
5002
  return de_GetClusterCredentialsCommandError(output, context);
@@ -5259,6 +5351,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
5259
5351
  case "InvalidRetentionPeriodFault":
5260
5352
  case "com.amazonaws.redshift#InvalidRetentionPeriodFault":
5261
5353
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
5354
+ case "Ipv6CidrBlockNotFoundFault":
5355
+ case "com.amazonaws.redshift#Ipv6CidrBlockNotFoundFault":
5356
+ throw await de_Ipv6CidrBlockNotFoundFaultRes(parsedOutput, context);
5262
5357
  case "LimitExceededFault":
5263
5358
  case "com.amazonaws.redshift#LimitExceededFault":
5264
5359
  throw await de_LimitExceededFaultRes(parsedOutput, context);
@@ -5319,6 +5414,9 @@ const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
5319
5414
  case "InvalidClusterState":
5320
5415
  case "com.amazonaws.redshift#InvalidClusterStateFault":
5321
5416
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5417
+ case "UnsupportedOperation":
5418
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
5419
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5322
5420
  default:
5323
5421
  const parsedBody = parsedOutput.body;
5324
5422
  return throwDefaultError({
@@ -5724,6 +5822,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
5724
5822
  };
5725
5823
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5726
5824
  switch (errorCode) {
5825
+ case "ClusterNotFound":
5826
+ case "com.amazonaws.redshift#ClusterNotFoundFault":
5827
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
5727
5828
  case "InvalidSchedule":
5728
5829
  case "com.amazonaws.redshift#InvalidScheduleFault":
5729
5830
  throw await de_InvalidScheduleFaultRes(parsedOutput, context);
@@ -5739,6 +5840,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
5739
5840
  case "UnauthorizedOperation":
5740
5841
  case "com.amazonaws.redshift#UnauthorizedOperation":
5741
5842
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5843
+ case "UnsupportedOperation":
5844
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
5845
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5742
5846
  default:
5743
5847
  const parsedBody = parsedOutput.body;
5744
5848
  return throwDefaultError({
@@ -5898,6 +6002,9 @@ const de_PauseClusterCommandError = async (output, context) => {
5898
6002
  case "InvalidClusterState":
5899
6003
  case "com.amazonaws.redshift#InvalidClusterStateFault":
5900
6004
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6005
+ case "UnsupportedOperation":
6006
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
6007
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5901
6008
  default:
5902
6009
  const parsedBody = parsedOutput.body;
5903
6010
  return throwDefaultError({
@@ -6255,6 +6362,9 @@ const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
6255
6362
  case "InvalidVPCNetworkStateFault":
6256
6363
  case "com.amazonaws.redshift#InvalidVPCNetworkStateFault":
6257
6364
  throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
6365
+ case "Ipv6CidrBlockNotFoundFault":
6366
+ case "com.amazonaws.redshift#Ipv6CidrBlockNotFoundFault":
6367
+ throw await de_Ipv6CidrBlockNotFoundFaultRes(parsedOutput, context);
6258
6368
  case "LimitExceededFault":
6259
6369
  case "com.amazonaws.redshift#LimitExceededFault":
6260
6370
  throw await de_LimitExceededFaultRes(parsedOutput, context);
@@ -6378,6 +6488,9 @@ const de_ResumeClusterCommandError = async (output, context) => {
6378
6488
  case "InvalidClusterState":
6379
6489
  case "com.amazonaws.redshift#InvalidClusterStateFault":
6380
6490
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6491
+ case "UnsupportedOperation":
6492
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
6493
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6381
6494
  default:
6382
6495
  const parsedBody = parsedOutput.body;
6383
6496
  return throwDefaultError({
@@ -6549,6 +6662,9 @@ const de_RotateEncryptionKeyCommandError = async (output, context) => {
6549
6662
  case "InvalidClusterState":
6550
6663
  case "com.amazonaws.redshift#InvalidClusterStateFault":
6551
6664
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6665
+ case "UnsupportedOperation":
6666
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
6667
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6552
6668
  default:
6553
6669
  const parsedBody = parsedOutput.body;
6554
6670
  return throwDefaultError({
@@ -6588,6 +6704,9 @@ const de_UpdatePartnerStatusCommandError = async (output, context) => {
6588
6704
  case "UnauthorizedPartnerIntegration":
6589
6705
  case "com.amazonaws.redshift#UnauthorizedPartnerIntegrationFault":
6590
6706
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
6707
+ case "UnsupportedOperation":
6708
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
6709
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6591
6710
  default:
6592
6711
  const parsedBody = parsedOutput.body;
6593
6712
  return throwDefaultError({
@@ -7353,6 +7472,15 @@ const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
7353
7472
  });
7354
7473
  return (0, smithy_client_1.decorateServiceException)(exception, body);
7355
7474
  };
7475
+ const de_Ipv6CidrBlockNotFoundFaultRes = async (parsedOutput, context) => {
7476
+ const body = parsedOutput.body;
7477
+ const deserialized = de_Ipv6CidrBlockNotFoundFault(body.Error, context);
7478
+ const exception = new models_0_1.Ipv6CidrBlockNotFoundFault({
7479
+ $metadata: deserializeMetadata(parsedOutput),
7480
+ ...deserialized,
7481
+ });
7482
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
7483
+ };
7356
7484
  const de_LimitExceededFaultRes = async (parsedOutput, context) => {
7357
7485
  const body = parsedOutput.body;
7358
7486
  const deserialized = de_LimitExceededFault(body.Error, context);
@@ -8093,6 +8221,12 @@ const se_CreateClusterMessage = (input, context) => {
8093
8221
  if (input.MasterPasswordSecretKmsKeyId != null) {
8094
8222
  entries["MasterPasswordSecretKmsKeyId"] = input.MasterPasswordSecretKmsKeyId;
8095
8223
  }
8224
+ if (input.IpAddressType != null) {
8225
+ entries["IpAddressType"] = input.IpAddressType;
8226
+ }
8227
+ if (input.MultiAZ != null) {
8228
+ entries["MultiAZ"] = input.MultiAZ;
8229
+ }
8096
8230
  return entries;
8097
8231
  };
8098
8232
  const se_CreateClusterParameterGroupMessage = (input, context) => {
@@ -9585,6 +9719,13 @@ const se_EventCategoriesList = (input, context) => {
9585
9719
  }
9586
9720
  return entries;
9587
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
+ };
9588
9729
  const se_GetClusterCredentialsMessage = (input, context) => {
9589
9730
  const entries = {};
9590
9731
  if (input.DbUser != null) {
@@ -9875,6 +10016,12 @@ const se_ModifyClusterMessage = (input, context) => {
9875
10016
  if (input.MasterPasswordSecretKmsKeyId != null) {
9876
10017
  entries["MasterPasswordSecretKmsKeyId"] = input.MasterPasswordSecretKmsKeyId;
9877
10018
  }
10019
+ if (input.IpAddressType != null) {
10020
+ entries["IpAddressType"] = input.IpAddressType;
10021
+ }
10022
+ if (input.MultiAZ != null) {
10023
+ entries["MultiAZ"] = input.MultiAZ;
10024
+ }
9878
10025
  return entries;
9879
10026
  };
9880
10027
  const se_ModifyClusterParameterGroupMessage = (input, context) => {
@@ -10395,6 +10542,12 @@ const se_RestoreFromClusterSnapshotMessage = (input, context) => {
10395
10542
  if (input.MasterPasswordSecretKmsKeyId != null) {
10396
10543
  entries["MasterPasswordSecretKmsKeyId"] = input.MasterPasswordSecretKmsKeyId;
10397
10544
  }
10545
+ if (input.IpAddressType != null) {
10546
+ entries["IpAddressType"] = input.IpAddressType;
10547
+ }
10548
+ if (input.MultiAZ != null) {
10549
+ entries["MultiAZ"] = input.MultiAZ;
10550
+ }
10398
10551
  return entries;
10399
10552
  };
10400
10553
  const se_RestoreTableFromClusterSnapshotMessage = (input, context) => {
@@ -11238,6 +11391,15 @@ const de_Cluster = (output, context) => {
11238
11391
  if (output["MasterPasswordSecretKmsKeyId"] !== undefined) {
11239
11392
  contents.MasterPasswordSecretKmsKeyId = (0, smithy_client_1.expectString)(output["MasterPasswordSecretKmsKeyId"]);
11240
11393
  }
11394
+ if (output["IpAddressType"] !== undefined) {
11395
+ contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]);
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
+ }
11241
11403
  return contents;
11242
11404
  };
11243
11405
  const de_ClusterAlreadyExistsFault = (output, context) => {
@@ -11676,6 +11838,13 @@ const de_ClusterSubnetGroup = (output, context) => {
11676
11838
  else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
11677
11839
  contents.Tags = de_TagList((0, smithy_client_1.getArrayIfSingleItem)(output["Tags"]["Tag"]), context);
11678
11840
  }
11841
+ if (output.SupportedClusterIpAddressTypes === "") {
11842
+ contents.SupportedClusterIpAddressTypes = [];
11843
+ }
11844
+ else if (output["SupportedClusterIpAddressTypes"] !== undefined &&
11845
+ output["SupportedClusterIpAddressTypes"]["item"] !== undefined) {
11846
+ contents.SupportedClusterIpAddressTypes = de_ValueStringList((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedClusterIpAddressTypes"]["item"]), context);
11847
+ }
11679
11848
  return contents;
11680
11849
  };
11681
11850
  const de_ClusterSubnetGroupAlreadyExistsFault = (output, context) => {
@@ -12573,6 +12742,13 @@ const de_EventSubscriptionsMessage = (output, context) => {
12573
12742
  }
12574
12743
  return contents;
12575
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
+ };
12576
12752
  const de_GetReservedNodeExchangeConfigurationOptionsOutputMessage = (output, context) => {
12577
12753
  const contents = {};
12578
12754
  if (output["Marker"] !== undefined) {
@@ -13102,6 +13278,13 @@ const de_IPRangeList = (output, context) => {
13102
13278
  return de_IPRange(entry, context);
13103
13279
  });
13104
13280
  };
13281
+ const de_Ipv6CidrBlockNotFoundFault = (output, context) => {
13282
+ const contents = {};
13283
+ if (output["message"] !== undefined) {
13284
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
13285
+ }
13286
+ return contents;
13287
+ };
13105
13288
  const de_LimitExceededFault = (output, context) => {
13106
13289
  const contents = {};
13107
13290
  if (output["message"] !== undefined) {
@@ -13266,6 +13449,9 @@ const de_NetworkInterface = (output, context) => {
13266
13449
  if (output["AvailabilityZone"] !== undefined) {
13267
13450
  contents.AvailabilityZone = (0, smithy_client_1.expectString)(output["AvailabilityZone"]);
13268
13451
  }
13452
+ if (output["Ipv6Address"] !== undefined) {
13453
+ contents.Ipv6Address = (0, smithy_client_1.expectString)(output["Ipv6Address"]);
13454
+ }
13269
13455
  return contents;
13270
13456
  };
13271
13457
  const de_NetworkInterfaceList = (output, context) => {
@@ -14126,6 +14312,19 @@ const de_ScheduledSnapshotTimeList = (output, context) => {
14126
14312
  return (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(entry));
14127
14313
  });
14128
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
+ };
14129
14328
  const de_Snapshot = (output, context) => {
14130
14329
  const contents = {};
14131
14330
  if (output["SnapshotIdentifier"] !== undefined) {
@@ -14845,6 +15044,13 @@ const de_UsageLimits = (output, context) => {
14845
15044
  return de_UsageLimit(entry, context);
14846
15045
  });
14847
15046
  };
15047
+ const de_ValueStringList = (output, context) => {
15048
+ return (output || [])
15049
+ .filter((e) => e != null)
15050
+ .map((entry) => {
15051
+ return (0, smithy_client_1.expectString)(entry);
15052
+ });
15053
+ };
14848
15054
  const de_VpcEndpoint = (output, context) => {
14849
15055
  const contents = {};
14850
15056
  if (output["VpcEndpointId"] !== undefined) {
@@ -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";
@@ -1,4 +1,4 @@
1
- import { resolveEndpoint } from "@aws-sdk/util-endpoints";
1
+ import { resolveEndpoint } from "@smithy/util-endpoints";
2
2
  import { ruleSet } from "./ruleset";
3
3
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
4
  return resolveEndpoint(ruleSet, {
package/dist-es/index.js CHANGED
@@ -4,4 +4,5 @@ export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
6
  export * from "./models";
7
+ import "@aws-sdk/util-endpoints";
7
8
  export { RedshiftServiceException } from "./models/RedshiftServiceException";
@@ -780,6 +780,18 @@ export class InvalidVPCNetworkStateFault extends __BaseException {
780
780
  Object.setPrototypeOf(this, InvalidVPCNetworkStateFault.prototype);
781
781
  }
782
782
  }
783
+ export class Ipv6CidrBlockNotFoundFault extends __BaseException {
784
+ constructor(opts) {
785
+ super({
786
+ name: "Ipv6CidrBlockNotFoundFault",
787
+ $fault: "client",
788
+ ...opts,
789
+ });
790
+ this.name = "Ipv6CidrBlockNotFoundFault";
791
+ this.$fault = "client";
792
+ Object.setPrototypeOf(this, Ipv6CidrBlockNotFoundFault.prototype);
793
+ }
794
+ }
783
795
  export class NumberOfNodesPerClusterLimitExceededFault extends __BaseException {
784
796
  constructor(opts) {
785
797
  super({
@@ -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 }),