@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.
- package/dist-cjs/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +133 -399
- package/dist-es/commands/AcceptReservedNodeExchangeCommand.js +1 -3
- package/dist-es/commands/AddPartnerCommand.js +1 -3
- package/dist-es/commands/AssociateDataShareConsumerCommand.js +1 -3
- package/dist-es/commands/AuthorizeClusterSecurityGroupIngressCommand.js +1 -3
- package/dist-es/commands/AuthorizeDataShareCommand.js +1 -3
- package/dist-es/commands/AuthorizeEndpointAccessCommand.js +1 -3
- package/dist-es/commands/AuthorizeSnapshotAccessCommand.js +1 -3
- package/dist-es/commands/BatchDeleteClusterSnapshotsCommand.js +1 -3
- package/dist-es/commands/BatchModifyClusterSnapshotsCommand.js +1 -3
- package/dist-es/commands/CancelResizeCommand.js +1 -3
- package/dist-es/commands/CopyClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/CreateAuthenticationProfileCommand.js +1 -3
- package/dist-es/commands/CreateClusterCommand.js +1 -3
- package/dist-es/commands/CreateClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/CreateClusterSecurityGroupCommand.js +1 -3
- package/dist-es/commands/CreateClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/CreateClusterSubnetGroupCommand.js +1 -3
- package/dist-es/commands/CreateCustomDomainAssociationCommand.js +1 -3
- package/dist-es/commands/CreateEndpointAccessCommand.js +1 -3
- package/dist-es/commands/CreateEventSubscriptionCommand.js +1 -3
- package/dist-es/commands/CreateHsmClientCertificateCommand.js +1 -3
- package/dist-es/commands/CreateHsmConfigurationCommand.js +1 -3
- package/dist-es/commands/CreateRedshiftIdcApplicationCommand.js +1 -3
- package/dist-es/commands/CreateScheduledActionCommand.js +1 -3
- package/dist-es/commands/CreateSnapshotCopyGrantCommand.js +1 -3
- package/dist-es/commands/CreateSnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/CreateTagsCommand.js +1 -3
- package/dist-es/commands/CreateUsageLimitCommand.js +1 -3
- package/dist-es/commands/DeauthorizeDataShareCommand.js +1 -3
- package/dist-es/commands/DeleteAuthenticationProfileCommand.js +1 -3
- package/dist-es/commands/DeleteClusterCommand.js +1 -3
- package/dist-es/commands/DeleteClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/DeleteClusterSecurityGroupCommand.js +1 -3
- package/dist-es/commands/DeleteClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/DeleteClusterSubnetGroupCommand.js +1 -3
- package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +1 -3
- package/dist-es/commands/DeleteEndpointAccessCommand.js +1 -3
- package/dist-es/commands/DeleteEventSubscriptionCommand.js +1 -3
- package/dist-es/commands/DeleteHsmClientCertificateCommand.js +1 -3
- package/dist-es/commands/DeleteHsmConfigurationCommand.js +1 -3
- package/dist-es/commands/DeletePartnerCommand.js +1 -3
- package/dist-es/commands/DeleteRedshiftIdcApplicationCommand.js +1 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +1 -3
- package/dist-es/commands/DeleteScheduledActionCommand.js +1 -3
- package/dist-es/commands/DeleteSnapshotCopyGrantCommand.js +1 -3
- package/dist-es/commands/DeleteSnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/DeleteTagsCommand.js +1 -3
- package/dist-es/commands/DeleteUsageLimitCommand.js +1 -3
- package/dist-es/commands/DescribeAccountAttributesCommand.js +1 -3
- package/dist-es/commands/DescribeAuthenticationProfilesCommand.js +1 -3
- package/dist-es/commands/DescribeClusterDbRevisionsCommand.js +1 -3
- package/dist-es/commands/DescribeClusterParameterGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeClusterParametersCommand.js +1 -3
- package/dist-es/commands/DescribeClusterSecurityGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeClusterSnapshotsCommand.js +1 -3
- package/dist-es/commands/DescribeClusterSubnetGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeClusterTracksCommand.js +1 -3
- package/dist-es/commands/DescribeClusterVersionsCommand.js +1 -3
- package/dist-es/commands/DescribeClustersCommand.js +1 -3
- package/dist-es/commands/DescribeCustomDomainAssociationsCommand.js +1 -3
- package/dist-es/commands/DescribeDataSharesCommand.js +1 -3
- package/dist-es/commands/DescribeDataSharesForConsumerCommand.js +1 -3
- package/dist-es/commands/DescribeDataSharesForProducerCommand.js +1 -3
- package/dist-es/commands/DescribeDefaultClusterParametersCommand.js +1 -3
- package/dist-es/commands/DescribeEndpointAccessCommand.js +1 -3
- package/dist-es/commands/DescribeEndpointAuthorizationCommand.js +1 -3
- package/dist-es/commands/DescribeEventCategoriesCommand.js +1 -3
- package/dist-es/commands/DescribeEventSubscriptionsCommand.js +1 -3
- package/dist-es/commands/DescribeEventsCommand.js +1 -3
- package/dist-es/commands/DescribeHsmClientCertificatesCommand.js +1 -3
- package/dist-es/commands/DescribeHsmConfigurationsCommand.js +1 -3
- package/dist-es/commands/DescribeInboundIntegrationsCommand.js +1 -3
- package/dist-es/commands/DescribeLoggingStatusCommand.js +1 -3
- package/dist-es/commands/DescribeNodeConfigurationOptionsCommand.js +1 -3
- package/dist-es/commands/DescribeOrderableClusterOptionsCommand.js +1 -3
- package/dist-es/commands/DescribePartnersCommand.js +1 -3
- package/dist-es/commands/DescribeRedshiftIdcApplicationsCommand.js +1 -3
- package/dist-es/commands/DescribeReservedNodeExchangeStatusCommand.js +1 -3
- package/dist-es/commands/DescribeReservedNodeOfferingsCommand.js +1 -3
- package/dist-es/commands/DescribeReservedNodesCommand.js +1 -3
- package/dist-es/commands/DescribeResizeCommand.js +1 -3
- package/dist-es/commands/DescribeScheduledActionsCommand.js +1 -3
- package/dist-es/commands/DescribeSnapshotCopyGrantsCommand.js +1 -3
- package/dist-es/commands/DescribeSnapshotSchedulesCommand.js +1 -3
- package/dist-es/commands/DescribeStorageCommand.js +1 -3
- package/dist-es/commands/DescribeTableRestoreStatusCommand.js +1 -3
- package/dist-es/commands/DescribeTagsCommand.js +1 -3
- package/dist-es/commands/DescribeUsageLimitsCommand.js +1 -3
- package/dist-es/commands/DisableLoggingCommand.js +1 -3
- package/dist-es/commands/DisableSnapshotCopyCommand.js +1 -3
- package/dist-es/commands/DisassociateDataShareConsumerCommand.js +1 -3
- package/dist-es/commands/EnableLoggingCommand.js +1 -3
- package/dist-es/commands/EnableSnapshotCopyCommand.js +1 -3
- package/dist-es/commands/FailoverPrimaryComputeCommand.js +1 -3
- package/dist-es/commands/GetClusterCredentialsCommand.js +1 -3
- package/dist-es/commands/GetClusterCredentialsWithIAMCommand.js +1 -3
- package/dist-es/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +1 -3
- package/dist-es/commands/GetReservedNodeExchangeOfferingsCommand.js +1 -3
- package/dist-es/commands/GetResourcePolicyCommand.js +1 -3
- package/dist-es/commands/ListRecommendationsCommand.js +1 -3
- package/dist-es/commands/ModifyAquaConfigurationCommand.js +1 -3
- package/dist-es/commands/ModifyAuthenticationProfileCommand.js +1 -3
- package/dist-es/commands/ModifyClusterCommand.js +1 -3
- package/dist-es/commands/ModifyClusterDbRevisionCommand.js +1 -3
- package/dist-es/commands/ModifyClusterIamRolesCommand.js +1 -3
- package/dist-es/commands/ModifyClusterMaintenanceCommand.js +1 -3
- package/dist-es/commands/ModifyClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/ModifyClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/ModifyClusterSnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/ModifyClusterSubnetGroupCommand.js +1 -3
- package/dist-es/commands/ModifyCustomDomainAssociationCommand.js +1 -3
- package/dist-es/commands/ModifyEndpointAccessCommand.js +1 -3
- package/dist-es/commands/ModifyEventSubscriptionCommand.js +1 -3
- package/dist-es/commands/ModifyRedshiftIdcApplicationCommand.js +1 -3
- package/dist-es/commands/ModifyScheduledActionCommand.js +1 -3
- package/dist-es/commands/ModifySnapshotCopyRetentionPeriodCommand.js +1 -3
- package/dist-es/commands/ModifySnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/ModifyUsageLimitCommand.js +1 -3
- package/dist-es/commands/PauseClusterCommand.js +1 -3
- package/dist-es/commands/PurchaseReservedNodeOfferingCommand.js +1 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +1 -3
- package/dist-es/commands/RebootClusterCommand.js +1 -3
- package/dist-es/commands/RejectDataShareCommand.js +1 -3
- package/dist-es/commands/ResetClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/ResizeClusterCommand.js +1 -3
- package/dist-es/commands/RestoreFromClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/RestoreTableFromClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/ResumeClusterCommand.js +1 -3
- package/dist-es/commands/RevokeClusterSecurityGroupIngressCommand.js +1 -3
- package/dist-es/commands/RevokeEndpointAccessCommand.js +1 -3
- package/dist-es/commands/RevokeSnapshotAccessCommand.js +1 -3
- package/dist-es/commands/RotateEncryptionKeyCommand.js +1 -3
- package/dist-es/commands/UpdatePartnerStatusCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- 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;
|