@aws-sdk/client-cloudfront 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 +111 -333
- package/dist-es/commands/AssociateAliasCommand.js +1 -3
- package/dist-es/commands/CopyDistributionCommand.js +1 -3
- package/dist-es/commands/CreateCachePolicyCommand.js +1 -3
- package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js +1 -3
- package/dist-es/commands/CreateContinuousDeploymentPolicyCommand.js +1 -3
- package/dist-es/commands/CreateDistributionCommand.js +1 -3
- package/dist-es/commands/CreateDistributionWithTagsCommand.js +1 -3
- package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js +1 -3
- package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js +1 -3
- package/dist-es/commands/CreateFunctionCommand.js +1 -3
- package/dist-es/commands/CreateInvalidationCommand.js +1 -3
- package/dist-es/commands/CreateKeyGroupCommand.js +1 -3
- package/dist-es/commands/CreateKeyValueStoreCommand.js +1 -3
- package/dist-es/commands/CreateMonitoringSubscriptionCommand.js +1 -3
- package/dist-es/commands/CreateOriginAccessControlCommand.js +1 -3
- package/dist-es/commands/CreateOriginRequestPolicyCommand.js +1 -3
- package/dist-es/commands/CreatePublicKeyCommand.js +1 -3
- package/dist-es/commands/CreateRealtimeLogConfigCommand.js +1 -3
- package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +1 -3
- package/dist-es/commands/CreateStreamingDistributionCommand.js +1 -3
- package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +1 -3
- package/dist-es/commands/DeleteCachePolicyCommand.js +1 -3
- package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +1 -3
- package/dist-es/commands/DeleteContinuousDeploymentPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteDistributionCommand.js +1 -3
- package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +1 -3
- package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +1 -3
- package/dist-es/commands/DeleteFunctionCommand.js +1 -3
- package/dist-es/commands/DeleteKeyGroupCommand.js +1 -3
- package/dist-es/commands/DeleteKeyValueStoreCommand.js +1 -3
- package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +1 -3
- package/dist-es/commands/DeleteOriginAccessControlCommand.js +1 -3
- package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +1 -3
- package/dist-es/commands/DeletePublicKeyCommand.js +1 -3
- package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +1 -3
- package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteStreamingDistributionCommand.js +1 -3
- package/dist-es/commands/DescribeFunctionCommand.js +1 -3
- package/dist-es/commands/DescribeKeyValueStoreCommand.js +1 -3
- package/dist-es/commands/GetCachePolicyCommand.js +1 -3
- package/dist-es/commands/GetCachePolicyConfigCommand.js +1 -3
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +1 -3
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +1 -3
- package/dist-es/commands/GetContinuousDeploymentPolicyCommand.js +1 -3
- package/dist-es/commands/GetContinuousDeploymentPolicyConfigCommand.js +1 -3
- package/dist-es/commands/GetDistributionCommand.js +1 -3
- package/dist-es/commands/GetDistributionConfigCommand.js +1 -3
- package/dist-es/commands/GetFieldLevelEncryptionCommand.js +1 -3
- package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js +1 -3
- package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js +1 -3
- package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js +1 -3
- package/dist-es/commands/GetFunctionCommand.js +1 -3
- package/dist-es/commands/GetInvalidationCommand.js +1 -3
- package/dist-es/commands/GetKeyGroupCommand.js +1 -3
- package/dist-es/commands/GetKeyGroupConfigCommand.js +1 -3
- package/dist-es/commands/GetMonitoringSubscriptionCommand.js +1 -3
- package/dist-es/commands/GetOriginAccessControlCommand.js +1 -3
- package/dist-es/commands/GetOriginAccessControlConfigCommand.js +1 -3
- package/dist-es/commands/GetOriginRequestPolicyCommand.js +1 -3
- package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js +1 -3
- package/dist-es/commands/GetPublicKeyCommand.js +1 -3
- package/dist-es/commands/GetPublicKeyConfigCommand.js +1 -3
- package/dist-es/commands/GetRealtimeLogConfigCommand.js +1 -3
- package/dist-es/commands/GetResponseHeadersPolicyCommand.js +1 -3
- package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +1 -3
- package/dist-es/commands/GetStreamingDistributionCommand.js +1 -3
- package/dist-es/commands/GetStreamingDistributionConfigCommand.js +1 -3
- package/dist-es/commands/ListCachePoliciesCommand.js +1 -3
- package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +1 -3
- package/dist-es/commands/ListConflictingAliasesCommand.js +1 -3
- package/dist-es/commands/ListContinuousDeploymentPoliciesCommand.js +1 -3
- package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js +1 -3
- package/dist-es/commands/ListDistributionsByKeyGroupCommand.js +1 -3
- package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +1 -3
- package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js +1 -3
- package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +1 -3
- package/dist-es/commands/ListDistributionsByWebACLIdCommand.js +1 -3
- package/dist-es/commands/ListDistributionsCommand.js +1 -3
- package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js +1 -3
- package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js +1 -3
- package/dist-es/commands/ListFunctionsCommand.js +1 -3
- package/dist-es/commands/ListInvalidationsCommand.js +1 -3
- package/dist-es/commands/ListKeyGroupsCommand.js +1 -3
- package/dist-es/commands/ListKeyValueStoresCommand.js +1 -3
- package/dist-es/commands/ListOriginAccessControlsCommand.js +1 -3
- package/dist-es/commands/ListOriginRequestPoliciesCommand.js +1 -3
- package/dist-es/commands/ListPublicKeysCommand.js +1 -3
- package/dist-es/commands/ListRealtimeLogConfigsCommand.js +1 -3
- package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +1 -3
- package/dist-es/commands/ListStreamingDistributionsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/PublishFunctionCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/TestFunctionCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateCachePolicyCommand.js +1 -3
- package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +1 -3
- package/dist-es/commands/UpdateContinuousDeploymentPolicyCommand.js +1 -3
- package/dist-es/commands/UpdateDistributionCommand.js +1 -3
- package/dist-es/commands/UpdateDistributionWithStagingConfigCommand.js +1 -3
- package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js +1 -3
- package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js +1 -3
- package/dist-es/commands/UpdateFunctionCommand.js +1 -3
- package/dist-es/commands/UpdateKeyGroupCommand.js +1 -3
- package/dist-es/commands/UpdateKeyValueStoreCommand.js +1 -3
- package/dist-es/commands/UpdateOriginAccessControlCommand.js +1 -3
- package/dist-es/commands/UpdateOriginRequestPolicyCommand.js +1 -3
- package/dist-es/commands/UpdatePublicKeyCommand.js +1 -3
- package/dist-es/commands/UpdateRealtimeLogConfigCommand.js +1 -3
- package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +1 -3
- package/dist-es/commands/UpdateStreamingDistributionCommand.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 +38 -38
|
@@ -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;
|