@aws-sdk/client-redshift 3.645.0 → 3.650.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 (143) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +133 -399
  3. package/dist-es/commands/AcceptReservedNodeExchangeCommand.js +1 -3
  4. package/dist-es/commands/AddPartnerCommand.js +1 -3
  5. package/dist-es/commands/AssociateDataShareConsumerCommand.js +1 -3
  6. package/dist-es/commands/AuthorizeClusterSecurityGroupIngressCommand.js +1 -3
  7. package/dist-es/commands/AuthorizeDataShareCommand.js +1 -3
  8. package/dist-es/commands/AuthorizeEndpointAccessCommand.js +1 -3
  9. package/dist-es/commands/AuthorizeSnapshotAccessCommand.js +1 -3
  10. package/dist-es/commands/BatchDeleteClusterSnapshotsCommand.js +1 -3
  11. package/dist-es/commands/BatchModifyClusterSnapshotsCommand.js +1 -3
  12. package/dist-es/commands/CancelResizeCommand.js +1 -3
  13. package/dist-es/commands/CopyClusterSnapshotCommand.js +1 -3
  14. package/dist-es/commands/CreateAuthenticationProfileCommand.js +1 -3
  15. package/dist-es/commands/CreateClusterCommand.js +1 -3
  16. package/dist-es/commands/CreateClusterParameterGroupCommand.js +1 -3
  17. package/dist-es/commands/CreateClusterSecurityGroupCommand.js +1 -3
  18. package/dist-es/commands/CreateClusterSnapshotCommand.js +1 -3
  19. package/dist-es/commands/CreateClusterSubnetGroupCommand.js +1 -3
  20. package/dist-es/commands/CreateCustomDomainAssociationCommand.js +1 -3
  21. package/dist-es/commands/CreateEndpointAccessCommand.js +1 -3
  22. package/dist-es/commands/CreateEventSubscriptionCommand.js +1 -3
  23. package/dist-es/commands/CreateHsmClientCertificateCommand.js +1 -3
  24. package/dist-es/commands/CreateHsmConfigurationCommand.js +1 -3
  25. package/dist-es/commands/CreateRedshiftIdcApplicationCommand.js +1 -3
  26. package/dist-es/commands/CreateScheduledActionCommand.js +1 -3
  27. package/dist-es/commands/CreateSnapshotCopyGrantCommand.js +1 -3
  28. package/dist-es/commands/CreateSnapshotScheduleCommand.js +1 -3
  29. package/dist-es/commands/CreateTagsCommand.js +1 -3
  30. package/dist-es/commands/CreateUsageLimitCommand.js +1 -3
  31. package/dist-es/commands/DeauthorizeDataShareCommand.js +1 -3
  32. package/dist-es/commands/DeleteAuthenticationProfileCommand.js +1 -3
  33. package/dist-es/commands/DeleteClusterCommand.js +1 -3
  34. package/dist-es/commands/DeleteClusterParameterGroupCommand.js +1 -3
  35. package/dist-es/commands/DeleteClusterSecurityGroupCommand.js +1 -3
  36. package/dist-es/commands/DeleteClusterSnapshotCommand.js +1 -3
  37. package/dist-es/commands/DeleteClusterSubnetGroupCommand.js +1 -3
  38. package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +1 -3
  39. package/dist-es/commands/DeleteEndpointAccessCommand.js +1 -3
  40. package/dist-es/commands/DeleteEventSubscriptionCommand.js +1 -3
  41. package/dist-es/commands/DeleteHsmClientCertificateCommand.js +1 -3
  42. package/dist-es/commands/DeleteHsmConfigurationCommand.js +1 -3
  43. package/dist-es/commands/DeletePartnerCommand.js +1 -3
  44. package/dist-es/commands/DeleteRedshiftIdcApplicationCommand.js +1 -3
  45. package/dist-es/commands/DeleteResourcePolicyCommand.js +1 -3
  46. package/dist-es/commands/DeleteScheduledActionCommand.js +1 -3
  47. package/dist-es/commands/DeleteSnapshotCopyGrantCommand.js +1 -3
  48. package/dist-es/commands/DeleteSnapshotScheduleCommand.js +1 -3
  49. package/dist-es/commands/DeleteTagsCommand.js +1 -3
  50. package/dist-es/commands/DeleteUsageLimitCommand.js +1 -3
  51. package/dist-es/commands/DescribeAccountAttributesCommand.js +1 -3
  52. package/dist-es/commands/DescribeAuthenticationProfilesCommand.js +1 -3
  53. package/dist-es/commands/DescribeClusterDbRevisionsCommand.js +1 -3
  54. package/dist-es/commands/DescribeClusterParameterGroupsCommand.js +1 -3
  55. package/dist-es/commands/DescribeClusterParametersCommand.js +1 -3
  56. package/dist-es/commands/DescribeClusterSecurityGroupsCommand.js +1 -3
  57. package/dist-es/commands/DescribeClusterSnapshotsCommand.js +1 -3
  58. package/dist-es/commands/DescribeClusterSubnetGroupsCommand.js +1 -3
  59. package/dist-es/commands/DescribeClusterTracksCommand.js +1 -3
  60. package/dist-es/commands/DescribeClusterVersionsCommand.js +1 -3
  61. package/dist-es/commands/DescribeClustersCommand.js +1 -3
  62. package/dist-es/commands/DescribeCustomDomainAssociationsCommand.js +1 -3
  63. package/dist-es/commands/DescribeDataSharesCommand.js +1 -3
  64. package/dist-es/commands/DescribeDataSharesForConsumerCommand.js +1 -3
  65. package/dist-es/commands/DescribeDataSharesForProducerCommand.js +1 -3
  66. package/dist-es/commands/DescribeDefaultClusterParametersCommand.js +1 -3
  67. package/dist-es/commands/DescribeEndpointAccessCommand.js +1 -3
  68. package/dist-es/commands/DescribeEndpointAuthorizationCommand.js +1 -3
  69. package/dist-es/commands/DescribeEventCategoriesCommand.js +1 -3
  70. package/dist-es/commands/DescribeEventSubscriptionsCommand.js +1 -3
  71. package/dist-es/commands/DescribeEventsCommand.js +1 -3
  72. package/dist-es/commands/DescribeHsmClientCertificatesCommand.js +1 -3
  73. package/dist-es/commands/DescribeHsmConfigurationsCommand.js +1 -3
  74. package/dist-es/commands/DescribeInboundIntegrationsCommand.js +1 -3
  75. package/dist-es/commands/DescribeLoggingStatusCommand.js +1 -3
  76. package/dist-es/commands/DescribeNodeConfigurationOptionsCommand.js +1 -3
  77. package/dist-es/commands/DescribeOrderableClusterOptionsCommand.js +1 -3
  78. package/dist-es/commands/DescribePartnersCommand.js +1 -3
  79. package/dist-es/commands/DescribeRedshiftIdcApplicationsCommand.js +1 -3
  80. package/dist-es/commands/DescribeReservedNodeExchangeStatusCommand.js +1 -3
  81. package/dist-es/commands/DescribeReservedNodeOfferingsCommand.js +1 -3
  82. package/dist-es/commands/DescribeReservedNodesCommand.js +1 -3
  83. package/dist-es/commands/DescribeResizeCommand.js +1 -3
  84. package/dist-es/commands/DescribeScheduledActionsCommand.js +1 -3
  85. package/dist-es/commands/DescribeSnapshotCopyGrantsCommand.js +1 -3
  86. package/dist-es/commands/DescribeSnapshotSchedulesCommand.js +1 -3
  87. package/dist-es/commands/DescribeStorageCommand.js +1 -3
  88. package/dist-es/commands/DescribeTableRestoreStatusCommand.js +1 -3
  89. package/dist-es/commands/DescribeTagsCommand.js +1 -3
  90. package/dist-es/commands/DescribeUsageLimitsCommand.js +1 -3
  91. package/dist-es/commands/DisableLoggingCommand.js +1 -3
  92. package/dist-es/commands/DisableSnapshotCopyCommand.js +1 -3
  93. package/dist-es/commands/DisassociateDataShareConsumerCommand.js +1 -3
  94. package/dist-es/commands/EnableLoggingCommand.js +1 -3
  95. package/dist-es/commands/EnableSnapshotCopyCommand.js +1 -3
  96. package/dist-es/commands/FailoverPrimaryComputeCommand.js +1 -3
  97. package/dist-es/commands/GetClusterCredentialsCommand.js +1 -3
  98. package/dist-es/commands/GetClusterCredentialsWithIAMCommand.js +1 -3
  99. package/dist-es/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +1 -3
  100. package/dist-es/commands/GetReservedNodeExchangeOfferingsCommand.js +1 -3
  101. package/dist-es/commands/GetResourcePolicyCommand.js +1 -3
  102. package/dist-es/commands/ListRecommendationsCommand.js +1 -3
  103. package/dist-es/commands/ModifyAquaConfigurationCommand.js +1 -3
  104. package/dist-es/commands/ModifyAuthenticationProfileCommand.js +1 -3
  105. package/dist-es/commands/ModifyClusterCommand.js +1 -3
  106. package/dist-es/commands/ModifyClusterDbRevisionCommand.js +1 -3
  107. package/dist-es/commands/ModifyClusterIamRolesCommand.js +1 -3
  108. package/dist-es/commands/ModifyClusterMaintenanceCommand.js +1 -3
  109. package/dist-es/commands/ModifyClusterParameterGroupCommand.js +1 -3
  110. package/dist-es/commands/ModifyClusterSnapshotCommand.js +1 -3
  111. package/dist-es/commands/ModifyClusterSnapshotScheduleCommand.js +1 -3
  112. package/dist-es/commands/ModifyClusterSubnetGroupCommand.js +1 -3
  113. package/dist-es/commands/ModifyCustomDomainAssociationCommand.js +1 -3
  114. package/dist-es/commands/ModifyEndpointAccessCommand.js +1 -3
  115. package/dist-es/commands/ModifyEventSubscriptionCommand.js +1 -3
  116. package/dist-es/commands/ModifyRedshiftIdcApplicationCommand.js +1 -3
  117. package/dist-es/commands/ModifyScheduledActionCommand.js +1 -3
  118. package/dist-es/commands/ModifySnapshotCopyRetentionPeriodCommand.js +1 -3
  119. package/dist-es/commands/ModifySnapshotScheduleCommand.js +1 -3
  120. package/dist-es/commands/ModifyUsageLimitCommand.js +1 -3
  121. package/dist-es/commands/PauseClusterCommand.js +1 -3
  122. package/dist-es/commands/PurchaseReservedNodeOfferingCommand.js +1 -3
  123. package/dist-es/commands/PutResourcePolicyCommand.js +1 -3
  124. package/dist-es/commands/RebootClusterCommand.js +1 -3
  125. package/dist-es/commands/RejectDataShareCommand.js +1 -3
  126. package/dist-es/commands/ResetClusterParameterGroupCommand.js +1 -3
  127. package/dist-es/commands/ResizeClusterCommand.js +1 -3
  128. package/dist-es/commands/RestoreFromClusterSnapshotCommand.js +1 -3
  129. package/dist-es/commands/RestoreTableFromClusterSnapshotCommand.js +1 -3
  130. package/dist-es/commands/ResumeClusterCommand.js +1 -3
  131. package/dist-es/commands/RevokeClusterSecurityGroupIngressCommand.js +1 -3
  132. package/dist-es/commands/RevokeEndpointAccessCommand.js +1 -3
  133. package/dist-es/commands/RevokeSnapshotAccessCommand.js +1 -3
  134. package/dist-es/commands/RotateEncryptionKeyCommand.js +1 -3
  135. package/dist-es/commands/UpdatePartnerStatusCommand.js +1 -3
  136. package/dist-es/endpoint/endpointResolver.js +7 -3
  137. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  138. package/dist-types/runtimeConfig.d.ts +2 -0
  139. package/dist-types/runtimeConfig.native.d.ts +2 -0
  140. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  141. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  142. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  143. package/package.json +36 -36
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
+ });
7
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
8
- return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
13
  endpointParams: endpointParams,
10
14
  logger: context.logger,
11
- });
15
+ }));
12
16
  };
13
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
18
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;