@aws-sdk/client-redshift 3.354.0 → 3.357.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 (76) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/Redshift.js +8 -0
  3. package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeCustomDomainAssociationsCommand.js +46 -0
  6. package/dist-cjs/commands/ModifyCustomDomainAssociationCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/endpoint/ruleset.js +3 -3
  9. package/dist-cjs/models/models_0.js +28 -9
  10. package/dist-cjs/models/models_1.js +8 -1
  11. package/dist-cjs/pagination/DescribeCustomDomainAssociationsPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +2 -1
  13. package/dist-cjs/protocols/Aws_query.js +401 -25
  14. package/dist-es/Redshift.js +8 -0
  15. package/dist-es/commands/CreateCustomDomainAssociationCommand.js +42 -0
  16. package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +42 -0
  17. package/dist-es/commands/DescribeCustomDomainAssociationsCommand.js +42 -0
  18. package/dist-es/commands/ModifyCustomDomainAssociationCommand.js +42 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +24 -7
  22. package/dist-es/models/models_1.js +7 -0
  23. package/dist-es/pagination/DescribeCustomDomainAssociationsPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +2 -1
  25. package/dist-es/protocols/Aws_query.js +376 -8
  26. package/dist-types/Redshift.d.ts +28 -0
  27. package/dist-types/RedshiftClient.d.ts +7 -3
  28. package/dist-types/commands/CreateClusterCommand.d.ts +3 -0
  29. package/dist-types/commands/CreateCustomDomainAssociationCommand.d.ts +89 -0
  30. package/dist-types/commands/DeleteClusterCommand.d.ts +3 -0
  31. package/dist-types/commands/DeleteCustomDomainAssociationCommand.d.ts +81 -0
  32. package/dist-types/commands/DescribeClustersCommand.d.ts +3 -0
  33. package/dist-types/commands/DescribeCustomDomainAssociationsCommand.d.ts +94 -0
  34. package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +2 -1
  35. package/dist-types/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeEventsCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
  38. package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +3 -0
  39. package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +3 -0
  40. package/dist-types/commands/GetClusterCredentialsCommand.d.ts +2 -1
  41. package/dist-types/commands/GetClusterCredentialsWithIAMCommand.d.ts +2 -1
  42. package/dist-types/commands/ModifyClusterCommand.d.ts +9 -0
  43. package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +3 -0
  44. package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +3 -0
  45. package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +3 -0
  46. package/dist-types/commands/ModifyCustomDomainAssociationCommand.d.ts +88 -0
  47. package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +3 -0
  48. package/dist-types/commands/PauseClusterCommand.d.ts +3 -0
  49. package/dist-types/commands/RebootClusterCommand.d.ts +3 -0
  50. package/dist-types/commands/ResizeClusterCommand.d.ts +3 -0
  51. package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +3 -0
  52. package/dist-types/commands/ResumeClusterCommand.d.ts +3 -0
  53. package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +3 -0
  54. package/dist-types/commands/index.d.ts +4 -0
  55. package/dist-types/models/models_0.d.ts +156 -323
  56. package/dist-types/models/models_1.d.ts +369 -6
  57. package/dist-types/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/index.d.ts +2 -1
  59. package/dist-types/protocols/Aws_query.d.ts +36 -0
  60. package/dist-types/ts3.4/Redshift.d.ts +68 -0
  61. package/dist-types/ts3.4/RedshiftClient.d.ts +24 -0
  62. package/dist-types/ts3.4/commands/CreateCustomDomainAssociationCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/DeleteCustomDomainAssociationCommand.d.ts +38 -0
  64. package/dist-types/ts3.4/commands/DescribeCustomDomainAssociationsCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/DescribeEventCategoriesCommand.d.ts +2 -4
  66. package/dist-types/ts3.4/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/ModifyCustomDomainAssociationCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  71. package/dist-types/ts3.4/models/models_0.d.ts +53 -55
  72. package/dist-types/ts3.4/models/models_1.d.ts +72 -2
  73. package/dist-types/ts3.4/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  75. package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
  76. package/package.json +29 -29
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_DescribeClusterSecurityGroupsCommand = exports.se_DescribeClustersCommand = exports.se_DescribeClusterParametersCommand = 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_DeletePartnerCommand = exports.se_DeleteHsmConfigurationCommand = exports.se_DeleteHsmClientCertificateCommand = exports.se_DeleteEventSubscriptionCommand = exports.se_DeleteEndpointAccessCommand = 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_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_ModifyEndpointAccessCommand = exports.se_ModifyClusterSubnetGroupCommand = exports.se_ModifyClusterSnapshotScheduleCommand = exports.se_ModifyClusterSnapshotCommand = exports.se_ModifyClusterParameterGroupCommand = exports.se_ModifyClusterMaintenanceCommand = exports.se_ModifyClusterIamRolesCommand = exports.se_ModifyClusterDbRevisionCommand = exports.se_ModifyClusterCommand = exports.se_ModifyAuthenticationProfileCommand = exports.se_ModifyAquaConfigurationCommand = 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_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_DescribeClusterVersionsCommand = exports.se_DescribeClusterTracksCommand = exports.se_DescribeClusterSubnetGroupsCommand = exports.se_DescribeClusterSnapshotsCommand = void 0;
5
- 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 = exports.de_CreateHsmConfigurationCommand = exports.de_CreateHsmClientCertificateCommand = exports.de_CreateEventSubscriptionCommand = exports.de_CreateEndpointAccessCommand = 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_PurchaseReservedNodeOfferingCommand = exports.se_PauseClusterCommand = exports.se_ModifyUsageLimitCommand = exports.se_ModifySnapshotScheduleCommand = exports.se_ModifySnapshotCopyRetentionPeriodCommand = exports.se_ModifyScheduledActionCommand = exports.se_ModifyEventSubscriptionCommand = void 0;
6
- 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 = exports.de_DescribeNodeConfigurationOptionsCommand = exports.de_DescribeLoggingStatusCommand = 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_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_DeletePartnerCommand = exports.de_DeleteHsmConfigurationCommand = exports.de_DeleteHsmClientCertificateCommand = exports.de_DeleteEventSubscriptionCommand = exports.de_DeleteEndpointAccessCommand = exports.de_DeleteClusterSubnetGroupCommand = exports.de_DeleteClusterSnapshotCommand = void 0;
7
- exports.de_UpdatePartnerStatusCommand = exports.de_RotateEncryptionKeyCommand = exports.de_RevokeSnapshotAccessCommand = exports.de_RevokeEndpointAccessCommand = 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_PurchaseReservedNodeOfferingCommand = exports.de_PauseClusterCommand = exports.de_ModifyUsageLimitCommand = exports.de_ModifySnapshotScheduleCommand = exports.de_ModifySnapshotCopyRetentionPeriodCommand = exports.de_ModifyScheduledActionCommand = exports.de_ModifyEventSubscriptionCommand = exports.de_ModifyEndpointAccessCommand = 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_GetReservedNodeExchangeOfferingsCommand = exports.de_GetReservedNodeExchangeConfigurationOptionsCommand = exports.de_GetClusterCredentialsWithIAMCommand = exports.de_GetClusterCredentialsCommand = exports.de_EnableSnapshotCopyCommand = exports.de_EnableLoggingCommand = exports.de_DisassociateDataShareConsumerCommand = exports.de_DisableSnapshotCopyCommand = void 0;
3
+ exports.se_DescribeClusterParametersCommand = 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_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_ModifyClusterSnapshotCommand = exports.se_ModifyClusterParameterGroupCommand = exports.se_ModifyClusterMaintenanceCommand = exports.se_ModifyClusterIamRolesCommand = exports.se_ModifyClusterDbRevisionCommand = exports.se_ModifyClusterCommand = exports.se_ModifyAuthenticationProfileCommand = exports.se_ModifyAquaConfigurationCommand = 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_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 = void 0;
5
+ exports.de_CreateUsageLimitCommand = exports.de_CreateTagsCommand = exports.de_CreateSnapshotScheduleCommand = exports.de_CreateSnapshotCopyGrantCommand = 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_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 = void 0;
6
+ exports.de_DescribeScheduledActionsCommand = exports.de_DescribeResizeCommand = exports.de_DescribeReservedNodesCommand = exports.de_DescribeReservedNodeOfferingsCommand = exports.de_DescribeReservedNodeExchangeStatusCommand = exports.de_DescribePartnersCommand = exports.de_DescribeOrderableClusterOptionsCommand = exports.de_DescribeNodeConfigurationOptionsCommand = exports.de_DescribeLoggingStatusCommand = 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_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 = void 0;
7
+ exports.de_UpdatePartnerStatusCommand = exports.de_RotateEncryptionKeyCommand = exports.de_RevokeSnapshotAccessCommand = exports.de_RevokeEndpointAccessCommand = 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_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_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 = void 0;
8
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
9
9
  const protocol_http_1 = require("@smithy/protocol-http");
10
10
  const fast_xml_parser_1 = require("fast-xml-parser");
@@ -198,6 +198,17 @@ const se_CreateClusterSubnetGroupCommand = async (input, context) => {
198
198
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
199
199
  };
200
200
  exports.se_CreateClusterSubnetGroupCommand = se_CreateClusterSubnetGroupCommand;
201
+ const se_CreateCustomDomainAssociationCommand = async (input, context) => {
202
+ const headers = SHARED_HEADERS;
203
+ let body;
204
+ body = buildFormUrlencodedString({
205
+ ...se_CreateCustomDomainAssociationMessage(input, context),
206
+ Action: "CreateCustomDomainAssociation",
207
+ Version: "2012-12-01",
208
+ });
209
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
+ };
211
+ exports.se_CreateCustomDomainAssociationCommand = se_CreateCustomDomainAssociationCommand;
201
212
  const se_CreateEndpointAccessCommand = async (input, context) => {
202
213
  const headers = SHARED_HEADERS;
203
214
  let body;
@@ -374,6 +385,17 @@ const se_DeleteClusterSubnetGroupCommand = async (input, context) => {
374
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
375
386
  };
376
387
  exports.se_DeleteClusterSubnetGroupCommand = se_DeleteClusterSubnetGroupCommand;
388
+ const se_DeleteCustomDomainAssociationCommand = async (input, context) => {
389
+ const headers = SHARED_HEADERS;
390
+ let body;
391
+ body = buildFormUrlencodedString({
392
+ ...se_DeleteCustomDomainAssociationMessage(input, context),
393
+ Action: "DeleteCustomDomainAssociation",
394
+ Version: "2012-12-01",
395
+ });
396
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
+ };
398
+ exports.se_DeleteCustomDomainAssociationCommand = se_DeleteCustomDomainAssociationCommand;
377
399
  const se_DeleteEndpointAccessCommand = async (input, context) => {
378
400
  const headers = SHARED_HEADERS;
379
401
  let body;
@@ -605,6 +627,17 @@ const se_DescribeClusterVersionsCommand = async (input, context) => {
605
627
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
628
  };
607
629
  exports.se_DescribeClusterVersionsCommand = se_DescribeClusterVersionsCommand;
630
+ const se_DescribeCustomDomainAssociationsCommand = async (input, context) => {
631
+ const headers = SHARED_HEADERS;
632
+ let body;
633
+ body = buildFormUrlencodedString({
634
+ ...se_DescribeCustomDomainAssociationsMessage(input, context),
635
+ Action: "DescribeCustomDomainAssociations",
636
+ Version: "2012-12-01",
637
+ });
638
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
639
+ };
640
+ exports.se_DescribeCustomDomainAssociationsCommand = se_DescribeCustomDomainAssociationsCommand;
608
641
  const se_DescribeDataSharesCommand = async (input, context) => {
609
642
  const headers = SHARED_HEADERS;
610
643
  let body;
@@ -1098,6 +1131,17 @@ const se_ModifyClusterSubnetGroupCommand = async (input, context) => {
1098
1131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1099
1132
  };
1100
1133
  exports.se_ModifyClusterSubnetGroupCommand = se_ModifyClusterSubnetGroupCommand;
1134
+ const se_ModifyCustomDomainAssociationCommand = async (input, context) => {
1135
+ const headers = SHARED_HEADERS;
1136
+ let body;
1137
+ body = buildFormUrlencodedString({
1138
+ ...se_ModifyCustomDomainAssociationMessage(input, context),
1139
+ Action: "ModifyCustomDomainAssociation",
1140
+ Version: "2012-12-01",
1141
+ });
1142
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1143
+ };
1144
+ exports.se_ModifyCustomDomainAssociationCommand = se_ModifyCustomDomainAssociationCommand;
1101
1145
  const se_ModifyEndpointAccessCommand = async (input, context) => {
1102
1146
  const headers = SHARED_HEADERS;
1103
1147
  let body;
@@ -2098,6 +2142,45 @@ const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
2098
2142
  });
2099
2143
  }
2100
2144
  };
2145
+ const de_CreateCustomDomainAssociationCommand = async (output, context) => {
2146
+ if (output.statusCode >= 300) {
2147
+ return de_CreateCustomDomainAssociationCommandError(output, context);
2148
+ }
2149
+ const data = await parseBody(output.body, context);
2150
+ let contents = {};
2151
+ contents = de_CreateCustomDomainAssociationResult(data.CreateCustomDomainAssociationResult, context);
2152
+ const response = {
2153
+ $metadata: deserializeMetadata(output),
2154
+ ...contents,
2155
+ };
2156
+ return response;
2157
+ };
2158
+ exports.de_CreateCustomDomainAssociationCommand = de_CreateCustomDomainAssociationCommand;
2159
+ const de_CreateCustomDomainAssociationCommandError = async (output, context) => {
2160
+ const parsedOutput = {
2161
+ ...output,
2162
+ body: await parseErrorBody(output.body, context),
2163
+ };
2164
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2165
+ switch (errorCode) {
2166
+ case "ClusterNotFound":
2167
+ case "com.amazonaws.redshift#ClusterNotFoundFault":
2168
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2169
+ case "CustomCnameAssociationFault":
2170
+ case "com.amazonaws.redshift#CustomCnameAssociationFault":
2171
+ throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
2172
+ case "UnsupportedOperation":
2173
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
2174
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
2175
+ default:
2176
+ const parsedBody = parsedOutput.body;
2177
+ return throwDefaultError({
2178
+ output,
2179
+ parsedBody: parsedBody.Error,
2180
+ errorCode,
2181
+ });
2182
+ }
2183
+ };
2101
2184
  const de_CreateEndpointAccessCommand = async (output, context) => {
2102
2185
  if (output.statusCode >= 300) {
2103
2186
  return de_CreateEndpointAccessCommandError(output, context);
@@ -2453,7 +2536,7 @@ const de_CreateTagsCommand = async (output, context) => {
2453
2536
  if (output.statusCode >= 300) {
2454
2537
  return de_CreateTagsCommandError(output, context);
2455
2538
  }
2456
- await collectBody(output.body, context);
2539
+ await (0, smithy_client_1.collectBody)(output.body, context);
2457
2540
  const response = {
2458
2541
  $metadata: deserializeMetadata(output),
2459
2542
  };
@@ -2657,7 +2740,7 @@ const de_DeleteClusterParameterGroupCommand = async (output, context) => {
2657
2740
  if (output.statusCode >= 300) {
2658
2741
  return de_DeleteClusterParameterGroupCommandError(output, context);
2659
2742
  }
2660
- await collectBody(output.body, context);
2743
+ await (0, smithy_client_1.collectBody)(output.body, context);
2661
2744
  const response = {
2662
2745
  $metadata: deserializeMetadata(output),
2663
2746
  };
@@ -2690,7 +2773,7 @@ const de_DeleteClusterSecurityGroupCommand = async (output, context) => {
2690
2773
  if (output.statusCode >= 300) {
2691
2774
  return de_DeleteClusterSecurityGroupCommandError(output, context);
2692
2775
  }
2693
- await collectBody(output.body, context);
2776
+ await (0, smithy_client_1.collectBody)(output.body, context);
2694
2777
  const response = {
2695
2778
  $metadata: deserializeMetadata(output),
2696
2779
  };
@@ -2759,7 +2842,7 @@ const de_DeleteClusterSubnetGroupCommand = async (output, context) => {
2759
2842
  if (output.statusCode >= 300) {
2760
2843
  return de_DeleteClusterSubnetGroupCommandError(output, context);
2761
2844
  }
2762
- await collectBody(output.body, context);
2845
+ await (0, smithy_client_1.collectBody)(output.body, context);
2763
2846
  const response = {
2764
2847
  $metadata: deserializeMetadata(output),
2765
2848
  };
@@ -2791,6 +2874,42 @@ const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
2791
2874
  });
2792
2875
  }
2793
2876
  };
2877
+ const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
2878
+ if (output.statusCode >= 300) {
2879
+ return de_DeleteCustomDomainAssociationCommandError(output, context);
2880
+ }
2881
+ await (0, smithy_client_1.collectBody)(output.body, context);
2882
+ const response = {
2883
+ $metadata: deserializeMetadata(output),
2884
+ };
2885
+ return response;
2886
+ };
2887
+ exports.de_DeleteCustomDomainAssociationCommand = de_DeleteCustomDomainAssociationCommand;
2888
+ const de_DeleteCustomDomainAssociationCommandError = async (output, context) => {
2889
+ const parsedOutput = {
2890
+ ...output,
2891
+ body: await parseErrorBody(output.body, context),
2892
+ };
2893
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2894
+ switch (errorCode) {
2895
+ case "ClusterNotFound":
2896
+ case "com.amazonaws.redshift#ClusterNotFoundFault":
2897
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2898
+ case "CustomCnameAssociationFault":
2899
+ case "com.amazonaws.redshift#CustomCnameAssociationFault":
2900
+ throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
2901
+ case "UnsupportedOperation":
2902
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
2903
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
2904
+ default:
2905
+ const parsedBody = parsedOutput.body;
2906
+ return throwDefaultError({
2907
+ output,
2908
+ parsedBody: parsedBody.Error,
2909
+ errorCode,
2910
+ });
2911
+ }
2912
+ };
2794
2913
  const de_DeleteEndpointAccessCommand = async (output, context) => {
2795
2914
  if (output.statusCode >= 300) {
2796
2915
  return de_DeleteEndpointAccessCommandError(output, context);
@@ -2840,7 +2959,7 @@ const de_DeleteEventSubscriptionCommand = async (output, context) => {
2840
2959
  if (output.statusCode >= 300) {
2841
2960
  return de_DeleteEventSubscriptionCommandError(output, context);
2842
2961
  }
2843
- await collectBody(output.body, context);
2962
+ await (0, smithy_client_1.collectBody)(output.body, context);
2844
2963
  const response = {
2845
2964
  $metadata: deserializeMetadata(output),
2846
2965
  };
@@ -2873,7 +2992,7 @@ const de_DeleteHsmClientCertificateCommand = async (output, context) => {
2873
2992
  if (output.statusCode >= 300) {
2874
2993
  return de_DeleteHsmClientCertificateCommandError(output, context);
2875
2994
  }
2876
- await collectBody(output.body, context);
2995
+ await (0, smithy_client_1.collectBody)(output.body, context);
2877
2996
  const response = {
2878
2997
  $metadata: deserializeMetadata(output),
2879
2998
  };
@@ -2906,7 +3025,7 @@ const de_DeleteHsmConfigurationCommand = async (output, context) => {
2906
3025
  if (output.statusCode >= 300) {
2907
3026
  return de_DeleteHsmConfigurationCommandError(output, context);
2908
3027
  }
2909
- await collectBody(output.body, context);
3028
+ await (0, smithy_client_1.collectBody)(output.body, context);
2910
3029
  const response = {
2911
3030
  $metadata: deserializeMetadata(output),
2912
3031
  };
@@ -2978,7 +3097,7 @@ const de_DeleteScheduledActionCommand = async (output, context) => {
2978
3097
  if (output.statusCode >= 300) {
2979
3098
  return de_DeleteScheduledActionCommandError(output, context);
2980
3099
  }
2981
- await collectBody(output.body, context);
3100
+ await (0, smithy_client_1.collectBody)(output.body, context);
2982
3101
  const response = {
2983
3102
  $metadata: deserializeMetadata(output),
2984
3103
  };
@@ -3011,7 +3130,7 @@ const de_DeleteSnapshotCopyGrantCommand = async (output, context) => {
3011
3130
  if (output.statusCode >= 300) {
3012
3131
  return de_DeleteSnapshotCopyGrantCommandError(output, context);
3013
3132
  }
3014
- await collectBody(output.body, context);
3133
+ await (0, smithy_client_1.collectBody)(output.body, context);
3015
3134
  const response = {
3016
3135
  $metadata: deserializeMetadata(output),
3017
3136
  };
@@ -3044,7 +3163,7 @@ const de_DeleteSnapshotScheduleCommand = async (output, context) => {
3044
3163
  if (output.statusCode >= 300) {
3045
3164
  return de_DeleteSnapshotScheduleCommandError(output, context);
3046
3165
  }
3047
- await collectBody(output.body, context);
3166
+ await (0, smithy_client_1.collectBody)(output.body, context);
3048
3167
  const response = {
3049
3168
  $metadata: deserializeMetadata(output),
3050
3169
  };
@@ -3077,7 +3196,7 @@ const de_DeleteTagsCommand = async (output, context) => {
3077
3196
  if (output.statusCode >= 300) {
3078
3197
  return de_DeleteTagsCommandError(output, context);
3079
3198
  }
3080
- await collectBody(output.body, context);
3199
+ await (0, smithy_client_1.collectBody)(output.body, context);
3081
3200
  const response = {
3082
3201
  $metadata: deserializeMetadata(output),
3083
3202
  };
@@ -3110,7 +3229,7 @@ const de_DeleteUsageLimitCommand = async (output, context) => {
3110
3229
  if (output.statusCode >= 300) {
3111
3230
  return de_DeleteUsageLimitCommandError(output, context);
3112
3231
  }
3113
- await collectBody(output.body, context);
3232
+ await (0, smithy_client_1.collectBody)(output.body, context);
3114
3233
  const response = {
3115
3234
  $metadata: deserializeMetadata(output),
3116
3235
  };
@@ -3520,6 +3639,42 @@ const de_DescribeClusterVersionsCommandError = async (output, context) => {
3520
3639
  errorCode,
3521
3640
  });
3522
3641
  };
3642
+ const de_DescribeCustomDomainAssociationsCommand = async (output, context) => {
3643
+ if (output.statusCode >= 300) {
3644
+ return de_DescribeCustomDomainAssociationsCommandError(output, context);
3645
+ }
3646
+ const data = await parseBody(output.body, context);
3647
+ let contents = {};
3648
+ contents = de_CustomDomainAssociationsMessage(data.DescribeCustomDomainAssociationsResult, context);
3649
+ const response = {
3650
+ $metadata: deserializeMetadata(output),
3651
+ ...contents,
3652
+ };
3653
+ return response;
3654
+ };
3655
+ exports.de_DescribeCustomDomainAssociationsCommand = de_DescribeCustomDomainAssociationsCommand;
3656
+ const de_DescribeCustomDomainAssociationsCommandError = async (output, context) => {
3657
+ const parsedOutput = {
3658
+ ...output,
3659
+ body: await parseErrorBody(output.body, context),
3660
+ };
3661
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3662
+ switch (errorCode) {
3663
+ case "CustomDomainAssociationNotFoundFault":
3664
+ case "com.amazonaws.redshift#CustomDomainAssociationNotFoundFault":
3665
+ throw await de_CustomDomainAssociationNotFoundFaultRes(parsedOutput, context);
3666
+ case "UnsupportedOperation":
3667
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
3668
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3669
+ default:
3670
+ const parsedBody = parsedOutput.body;
3671
+ return throwDefaultError({
3672
+ output,
3673
+ parsedBody: parsedBody.Error,
3674
+ errorCode,
3675
+ });
3676
+ }
3677
+ };
3523
3678
  const de_DescribeDataSharesCommand = async (output, context) => {
3524
3679
  if (output.statusCode >= 300) {
3525
3680
  return de_DescribeDataSharesCommandError(output, context);
@@ -4918,6 +5073,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
4918
5073
  case "ClusterSecurityGroupNotFound":
4919
5074
  case "com.amazonaws.redshift#ClusterSecurityGroupNotFoundFault":
4920
5075
  throw await de_ClusterSecurityGroupNotFoundFaultRes(parsedOutput, context);
5076
+ case "CustomCnameAssociationFault":
5077
+ case "com.amazonaws.redshift#CustomCnameAssociationFault":
5078
+ throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
4921
5079
  case "DependentServiceRequestThrottlingFault":
4922
5080
  case "com.amazonaws.redshift#DependentServiceRequestThrottlingFault":
4923
5081
  throw await de_DependentServiceRequestThrottlingFaultRes(parsedOutput, context);
@@ -4960,6 +5118,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
4960
5118
  case "UnauthorizedOperation":
4961
5119
  case "com.amazonaws.redshift#UnauthorizedOperation":
4962
5120
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5121
+ case "UnsupportedOperation":
5122
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
5123
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4963
5124
  case "UnsupportedOptionFault":
4964
5125
  case "com.amazonaws.redshift#UnsupportedOptionFault":
4965
5126
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
@@ -5162,7 +5323,7 @@ const de_ModifyClusterSnapshotScheduleCommand = async (output, context) => {
5162
5323
  if (output.statusCode >= 300) {
5163
5324
  return de_ModifyClusterSnapshotScheduleCommandError(output, context);
5164
5325
  }
5165
- await collectBody(output.body, context);
5326
+ await (0, smithy_client_1.collectBody)(output.body, context);
5166
5327
  const response = {
5167
5328
  $metadata: deserializeMetadata(output),
5168
5329
  };
@@ -5242,6 +5403,45 @@ const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
5242
5403
  });
5243
5404
  }
5244
5405
  };
5406
+ const de_ModifyCustomDomainAssociationCommand = async (output, context) => {
5407
+ if (output.statusCode >= 300) {
5408
+ return de_ModifyCustomDomainAssociationCommandError(output, context);
5409
+ }
5410
+ const data = await parseBody(output.body, context);
5411
+ let contents = {};
5412
+ contents = de_ModifyCustomDomainAssociationResult(data.ModifyCustomDomainAssociationResult, context);
5413
+ const response = {
5414
+ $metadata: deserializeMetadata(output),
5415
+ ...contents,
5416
+ };
5417
+ return response;
5418
+ };
5419
+ exports.de_ModifyCustomDomainAssociationCommand = de_ModifyCustomDomainAssociationCommand;
5420
+ const de_ModifyCustomDomainAssociationCommandError = async (output, context) => {
5421
+ const parsedOutput = {
5422
+ ...output,
5423
+ body: await parseErrorBody(output.body, context),
5424
+ };
5425
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5426
+ switch (errorCode) {
5427
+ case "ClusterNotFound":
5428
+ case "com.amazonaws.redshift#ClusterNotFoundFault":
5429
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
5430
+ case "CustomCnameAssociationFault":
5431
+ case "com.amazonaws.redshift#CustomCnameAssociationFault":
5432
+ throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
5433
+ case "UnsupportedOperation":
5434
+ case "com.amazonaws.redshift#UnsupportedOperationFault":
5435
+ throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5436
+ default:
5437
+ const parsedBody = parsedOutput.body;
5438
+ return throwDefaultError({
5439
+ output,
5440
+ parsedBody: parsedBody.Error,
5441
+ errorCode,
5442
+ });
5443
+ }
5444
+ };
5245
5445
  const de_ModifyEndpointAccessCommand = async (output, context) => {
5246
5446
  if (output.statusCode >= 300) {
5247
5447
  return de_ModifyEndpointAccessCommandError(output, context);
@@ -6460,6 +6660,24 @@ const de_CopyToRegionDisabledFaultRes = async (parsedOutput, context) => {
6460
6660
  });
6461
6661
  return (0, smithy_client_1.decorateServiceException)(exception, body);
6462
6662
  };
6663
+ const de_CustomCnameAssociationFaultRes = async (parsedOutput, context) => {
6664
+ const body = parsedOutput.body;
6665
+ const deserialized = de_CustomCnameAssociationFault(body.Error, context);
6666
+ const exception = new models_0_1.CustomCnameAssociationFault({
6667
+ $metadata: deserializeMetadata(parsedOutput),
6668
+ ...deserialized,
6669
+ });
6670
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
6671
+ };
6672
+ const de_CustomDomainAssociationNotFoundFaultRes = async (parsedOutput, context) => {
6673
+ const body = parsedOutput.body;
6674
+ const deserialized = de_CustomDomainAssociationNotFoundFault(body.Error, context);
6675
+ const exception = new models_0_1.CustomDomainAssociationNotFoundFault({
6676
+ $metadata: deserializeMetadata(parsedOutput),
6677
+ ...deserialized,
6678
+ });
6679
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
6680
+ };
6463
6681
  const de_DependentServiceRequestThrottlingFaultRes = async (parsedOutput, context) => {
6464
6682
  const body = parsedOutput.body;
6465
6683
  const deserialized = de_DependentServiceRequestThrottlingFault(body.Error, context);
@@ -7742,6 +7960,19 @@ const se_CreateClusterSubnetGroupMessage = (input, context) => {
7742
7960
  }
7743
7961
  return entries;
7744
7962
  };
7963
+ const se_CreateCustomDomainAssociationMessage = (input, context) => {
7964
+ const entries = {};
7965
+ if (input.CustomDomainName != null) {
7966
+ entries["CustomDomainName"] = input.CustomDomainName;
7967
+ }
7968
+ if (input.CustomDomainCertificateArn != null) {
7969
+ entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn;
7970
+ }
7971
+ if (input.ClusterIdentifier != null) {
7972
+ entries["ClusterIdentifier"] = input.ClusterIdentifier;
7973
+ }
7974
+ return entries;
7975
+ };
7745
7976
  const se_CreateEndpointAccessMessage = (input, context) => {
7746
7977
  const entries = {};
7747
7978
  if (input.ClusterIdentifier != null) {
@@ -8094,6 +8325,13 @@ const se_DeleteClusterSubnetGroupMessage = (input, context) => {
8094
8325
  }
8095
8326
  return entries;
8096
8327
  };
8328
+ const se_DeleteCustomDomainAssociationMessage = (input, context) => {
8329
+ const entries = {};
8330
+ if (input.ClusterIdentifier != null) {
8331
+ entries["ClusterIdentifier"] = input.ClusterIdentifier;
8332
+ }
8333
+ return entries;
8334
+ };
8097
8335
  const se_DeleteEndpointAccessMessage = (input, context) => {
8098
8336
  const entries = {};
8099
8337
  if (input.EndpointName != null) {
@@ -8442,6 +8680,22 @@ const se_DescribeClusterVersionsMessage = (input, context) => {
8442
8680
  }
8443
8681
  return entries;
8444
8682
  };
8683
+ const se_DescribeCustomDomainAssociationsMessage = (input, context) => {
8684
+ const entries = {};
8685
+ if (input.CustomDomainName != null) {
8686
+ entries["CustomDomainName"] = input.CustomDomainName;
8687
+ }
8688
+ if (input.CustomDomainCertificateArn != null) {
8689
+ entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn;
8690
+ }
8691
+ if (input.MaxRecords != null) {
8692
+ entries["MaxRecords"] = input.MaxRecords;
8693
+ }
8694
+ if (input.Marker != null) {
8695
+ entries["Marker"] = input.Marker;
8696
+ }
8697
+ return entries;
8698
+ };
8445
8699
  const se_DescribeDataSharesForConsumerMessage = (input, context) => {
8446
8700
  const entries = {};
8447
8701
  if (input.ConsumerArn != null) {
@@ -9104,6 +9358,9 @@ const se_GetClusterCredentialsMessage = (input, context) => {
9104
9358
  entries[loc] = value;
9105
9359
  });
9106
9360
  }
9361
+ if (input.CustomDomainName != null) {
9362
+ entries["CustomDomainName"] = input.CustomDomainName;
9363
+ }
9107
9364
  return entries;
9108
9365
  };
9109
9366
  const se_GetClusterCredentialsWithIAMMessage = (input, context) => {
@@ -9117,6 +9374,9 @@ const se_GetClusterCredentialsWithIAMMessage = (input, context) => {
9117
9374
  if (input.DurationSeconds != null) {
9118
9375
  entries["DurationSeconds"] = input.DurationSeconds;
9119
9376
  }
9377
+ if (input.CustomDomainName != null) {
9378
+ entries["CustomDomainName"] = input.CustomDomainName;
9379
+ }
9120
9380
  return entries;
9121
9381
  };
9122
9382
  const se_GetReservedNodeExchangeConfigurationOptionsInputMessage = (input, context) => {
@@ -9413,6 +9673,19 @@ const se_ModifyClusterSubnetGroupMessage = (input, context) => {
9413
9673
  }
9414
9674
  return entries;
9415
9675
  };
9676
+ const se_ModifyCustomDomainAssociationMessage = (input, context) => {
9677
+ const entries = {};
9678
+ if (input.CustomDomainName != null) {
9679
+ entries["CustomDomainName"] = input.CustomDomainName;
9680
+ }
9681
+ if (input.CustomDomainCertificateArn != null) {
9682
+ entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn;
9683
+ }
9684
+ if (input.ClusterIdentifier != null) {
9685
+ entries["ClusterIdentifier"] = input.ClusterIdentifier;
9686
+ }
9687
+ return entries;
9688
+ };
9416
9689
  const se_ModifyEndpointAccessMessage = (input, context) => {
9417
9690
  const entries = {};
9418
9691
  if (input.EndpointName != null) {
@@ -10258,6 +10531,30 @@ const de_AssociatedClusterList = (output, context) => {
10258
10531
  return de_ClusterAssociatedToSchedule(entry, context);
10259
10532
  });
10260
10533
  };
10534
+ const de_Association = (output, context) => {
10535
+ const contents = {};
10536
+ if (output["CustomDomainCertificateArn"] !== undefined) {
10537
+ contents.CustomDomainCertificateArn = (0, smithy_client_1.expectString)(output["CustomDomainCertificateArn"]);
10538
+ }
10539
+ if (output["CustomDomainCertificateExpiryDate"] !== undefined) {
10540
+ contents.CustomDomainCertificateExpiryDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CustomDomainCertificateExpiryDate"]));
10541
+ }
10542
+ if (output.CertificateAssociations === "") {
10543
+ contents.CertificateAssociations = [];
10544
+ }
10545
+ else if (output["CertificateAssociations"] !== undefined &&
10546
+ output["CertificateAssociations"]["CertificateAssociation"] !== undefined) {
10547
+ contents.CertificateAssociations = de_CertificateAssociationList((0, smithy_client_1.getArrayIfSingleItem)(output["CertificateAssociations"]["CertificateAssociation"]), context);
10548
+ }
10549
+ return contents;
10550
+ };
10551
+ const de_AssociationList = (output, context) => {
10552
+ return (output || [])
10553
+ .filter((e) => e != null)
10554
+ .map((entry) => {
10555
+ return de_Association(entry, context);
10556
+ });
10557
+ };
10261
10558
  const de_AttributeList = (output, context) => {
10262
10559
  return (output || [])
10263
10560
  .filter((e) => e != null)
@@ -10440,6 +10737,23 @@ const de_BucketNotFoundFault = (output, context) => {
10440
10737
  }
10441
10738
  return contents;
10442
10739
  };
10740
+ const de_CertificateAssociation = (output, context) => {
10741
+ const contents = {};
10742
+ if (output["CustomDomainName"] !== undefined) {
10743
+ contents.CustomDomainName = (0, smithy_client_1.expectString)(output["CustomDomainName"]);
10744
+ }
10745
+ if (output["ClusterIdentifier"] !== undefined) {
10746
+ contents.ClusterIdentifier = (0, smithy_client_1.expectString)(output["ClusterIdentifier"]);
10747
+ }
10748
+ return contents;
10749
+ };
10750
+ const de_CertificateAssociationList = (output, context) => {
10751
+ return (output || [])
10752
+ .filter((e) => e != null)
10753
+ .map((entry) => {
10754
+ return de_CertificateAssociation(entry, context);
10755
+ });
10756
+ };
10443
10757
  const de_Cluster = (output, context) => {
10444
10758
  const contents = {};
10445
10759
  if (output["ClusterIdentifier"] !== undefined) {
@@ -10626,6 +10940,15 @@ const de_Cluster = (output, context) => {
10626
10940
  if (output["ReservedNodeExchangeStatus"] !== undefined) {
10627
10941
  contents.ReservedNodeExchangeStatus = de_ReservedNodeExchangeStatus(output["ReservedNodeExchangeStatus"], context);
10628
10942
  }
10943
+ if (output["CustomDomainName"] !== undefined) {
10944
+ contents.CustomDomainName = (0, smithy_client_1.expectString)(output["CustomDomainName"]);
10945
+ }
10946
+ if (output["CustomDomainCertificateArn"] !== undefined) {
10947
+ contents.CustomDomainCertificateArn = (0, smithy_client_1.expectString)(output["CustomDomainCertificateArn"]);
10948
+ }
10949
+ if (output["CustomDomainCertificateExpiryDate"] !== undefined) {
10950
+ contents.CustomDomainCertificateExpiryDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CustomDomainCertificateExpiryDate"]));
10951
+ }
10629
10952
  return contents;
10630
10953
  };
10631
10954
  const de_ClusterAlreadyExistsFault = (output, context) => {
@@ -11207,6 +11530,22 @@ const de_CreateClusterSubnetGroupResult = (output, context) => {
11207
11530
  }
11208
11531
  return contents;
11209
11532
  };
11533
+ const de_CreateCustomDomainAssociationResult = (output, context) => {
11534
+ const contents = {};
11535
+ if (output["CustomDomainName"] !== undefined) {
11536
+ contents.CustomDomainName = (0, smithy_client_1.expectString)(output["CustomDomainName"]);
11537
+ }
11538
+ if (output["CustomDomainCertificateArn"] !== undefined) {
11539
+ contents.CustomDomainCertificateArn = (0, smithy_client_1.expectString)(output["CustomDomainCertificateArn"]);
11540
+ }
11541
+ if (output["ClusterIdentifier"] !== undefined) {
11542
+ contents.ClusterIdentifier = (0, smithy_client_1.expectString)(output["ClusterIdentifier"]);
11543
+ }
11544
+ if (output["CustomDomainCertExpiryTime"] !== undefined) {
11545
+ contents.CustomDomainCertExpiryTime = (0, smithy_client_1.expectString)(output["CustomDomainCertExpiryTime"]);
11546
+ }
11547
+ return contents;
11548
+ };
11210
11549
  const de_CreateEventSubscriptionResult = (output, context) => {
11211
11550
  const contents = {};
11212
11551
  if (output["EventSubscription"] !== undefined) {
@@ -11235,6 +11574,33 @@ const de_CreateSnapshotCopyGrantResult = (output, context) => {
11235
11574
  }
11236
11575
  return contents;
11237
11576
  };
11577
+ const de_CustomCnameAssociationFault = (output, context) => {
11578
+ const contents = {};
11579
+ if (output["message"] !== undefined) {
11580
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
11581
+ }
11582
+ return contents;
11583
+ };
11584
+ const de_CustomDomainAssociationNotFoundFault = (output, context) => {
11585
+ const contents = {};
11586
+ if (output["message"] !== undefined) {
11587
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
11588
+ }
11589
+ return contents;
11590
+ };
11591
+ const de_CustomDomainAssociationsMessage = (output, context) => {
11592
+ const contents = {};
11593
+ if (output["Marker"] !== undefined) {
11594
+ contents.Marker = (0, smithy_client_1.expectString)(output["Marker"]);
11595
+ }
11596
+ if (output.Associations === "") {
11597
+ contents.Associations = [];
11598
+ }
11599
+ else if (output["Associations"] !== undefined && output["Associations"]["Association"] !== undefined) {
11600
+ contents.Associations = de_AssociationList((0, smithy_client_1.getArrayIfSingleItem)(output["Associations"]["Association"]), context);
11601
+ }
11602
+ return contents;
11603
+ };
11238
11604
  const de_CustomerStorageMessage = (output, context) => {
11239
11605
  const contents = {};
11240
11606
  if (output["TotalBackupSizeInMegaBytes"] !== undefined) {
@@ -12476,6 +12842,22 @@ const de_ModifyClusterSubnetGroupResult = (output, context) => {
12476
12842
  }
12477
12843
  return contents;
12478
12844
  };
12845
+ const de_ModifyCustomDomainAssociationResult = (output, context) => {
12846
+ const contents = {};
12847
+ if (output["CustomDomainName"] !== undefined) {
12848
+ contents.CustomDomainName = (0, smithy_client_1.expectString)(output["CustomDomainName"]);
12849
+ }
12850
+ if (output["CustomDomainCertificateArn"] !== undefined) {
12851
+ contents.CustomDomainCertificateArn = (0, smithy_client_1.expectString)(output["CustomDomainCertificateArn"]);
12852
+ }
12853
+ if (output["ClusterIdentifier"] !== undefined) {
12854
+ contents.ClusterIdentifier = (0, smithy_client_1.expectString)(output["ClusterIdentifier"]);
12855
+ }
12856
+ if (output["CustomDomainCertExpiryTime"] !== undefined) {
12857
+ contents.CustomDomainCertExpiryTime = (0, smithy_client_1.expectString)(output["CustomDomainCertExpiryTime"]);
12858
+ }
12859
+ return contents;
12860
+ };
12479
12861
  const de_ModifyEventSubscriptionResult = (output, context) => {
12480
12862
  const contents = {};
12481
12863
  if (output["EventSubscription"] !== undefined) {
@@ -14114,13 +14496,7 @@ const deserializeMetadata = (output) => ({
14114
14496
  extendedRequestId: output.headers["x-amz-id-2"],
14115
14497
  cfId: output.headers["x-amz-cf-id"],
14116
14498
  });
14117
- const collectBody = (streamBody = new Uint8Array(), context) => {
14118
- if (streamBody instanceof Uint8Array) {
14119
- return Promise.resolve(streamBody);
14120
- }
14121
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
14122
- };
14123
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
14499
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
14124
14500
  const throwDefaultError = (0, smithy_client_1.withBaseException)(RedshiftServiceException_1.RedshiftServiceException);
14125
14501
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
14126
14502
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();