@aws-sdk/client-cloudformation 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 +82 -246
- package/dist-es/commands/ActivateOrganizationsAccessCommand.js +1 -3
- package/dist-es/commands/ActivateTypeCommand.js +1 -3
- package/dist-es/commands/BatchDescribeTypeConfigurationsCommand.js +1 -3
- package/dist-es/commands/CancelUpdateStackCommand.js +1 -3
- package/dist-es/commands/ContinueUpdateRollbackCommand.js +1 -3
- package/dist-es/commands/CreateChangeSetCommand.js +1 -3
- package/dist-es/commands/CreateGeneratedTemplateCommand.js +1 -3
- package/dist-es/commands/CreateStackCommand.js +1 -3
- package/dist-es/commands/CreateStackInstancesCommand.js +1 -3
- package/dist-es/commands/CreateStackSetCommand.js +1 -3
- package/dist-es/commands/DeactivateOrganizationsAccessCommand.js +1 -3
- package/dist-es/commands/DeactivateTypeCommand.js +1 -3
- package/dist-es/commands/DeleteChangeSetCommand.js +1 -3
- package/dist-es/commands/DeleteGeneratedTemplateCommand.js +1 -3
- package/dist-es/commands/DeleteStackCommand.js +1 -3
- package/dist-es/commands/DeleteStackInstancesCommand.js +1 -3
- package/dist-es/commands/DeleteStackSetCommand.js +1 -3
- package/dist-es/commands/DeregisterTypeCommand.js +1 -3
- package/dist-es/commands/DescribeAccountLimitsCommand.js +1 -3
- package/dist-es/commands/DescribeChangeSetCommand.js +1 -3
- package/dist-es/commands/DescribeChangeSetHooksCommand.js +1 -3
- package/dist-es/commands/DescribeGeneratedTemplateCommand.js +1 -3
- package/dist-es/commands/DescribeOrganizationsAccessCommand.js +1 -3
- package/dist-es/commands/DescribePublisherCommand.js +1 -3
- package/dist-es/commands/DescribeResourceScanCommand.js +1 -3
- package/dist-es/commands/DescribeStackDriftDetectionStatusCommand.js +1 -3
- package/dist-es/commands/DescribeStackEventsCommand.js +1 -3
- package/dist-es/commands/DescribeStackInstanceCommand.js +1 -3
- package/dist-es/commands/DescribeStackResourceCommand.js +1 -3
- package/dist-es/commands/DescribeStackResourceDriftsCommand.js +1 -3
- package/dist-es/commands/DescribeStackResourcesCommand.js +1 -3
- package/dist-es/commands/DescribeStackSetCommand.js +1 -3
- package/dist-es/commands/DescribeStackSetOperationCommand.js +1 -3
- package/dist-es/commands/DescribeStacksCommand.js +1 -3
- package/dist-es/commands/DescribeTypeCommand.js +1 -3
- package/dist-es/commands/DescribeTypeRegistrationCommand.js +1 -3
- package/dist-es/commands/DetectStackDriftCommand.js +1 -3
- package/dist-es/commands/DetectStackResourceDriftCommand.js +1 -3
- package/dist-es/commands/DetectStackSetDriftCommand.js +1 -3
- package/dist-es/commands/EstimateTemplateCostCommand.js +1 -3
- package/dist-es/commands/ExecuteChangeSetCommand.js +1 -3
- package/dist-es/commands/GetGeneratedTemplateCommand.js +1 -3
- package/dist-es/commands/GetStackPolicyCommand.js +1 -3
- package/dist-es/commands/GetTemplateCommand.js +1 -3
- package/dist-es/commands/GetTemplateSummaryCommand.js +1 -3
- package/dist-es/commands/ImportStacksToStackSetCommand.js +1 -3
- package/dist-es/commands/ListChangeSetsCommand.js +1 -3
- package/dist-es/commands/ListExportsCommand.js +1 -3
- package/dist-es/commands/ListGeneratedTemplatesCommand.js +1 -3
- package/dist-es/commands/ListImportsCommand.js +1 -3
- package/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +1 -3
- package/dist-es/commands/ListResourceScanResourcesCommand.js +1 -3
- package/dist-es/commands/ListResourceScansCommand.js +1 -3
- package/dist-es/commands/ListStackInstanceResourceDriftsCommand.js +1 -3
- package/dist-es/commands/ListStackInstancesCommand.js +1 -3
- package/dist-es/commands/ListStackResourcesCommand.js +1 -3
- package/dist-es/commands/ListStackSetAutoDeploymentTargetsCommand.js +1 -3
- package/dist-es/commands/ListStackSetOperationResultsCommand.js +1 -3
- package/dist-es/commands/ListStackSetOperationsCommand.js +1 -3
- package/dist-es/commands/ListStackSetsCommand.js +1 -3
- package/dist-es/commands/ListStacksCommand.js +1 -3
- package/dist-es/commands/ListTypeRegistrationsCommand.js +1 -3
- package/dist-es/commands/ListTypeVersionsCommand.js +1 -3
- package/dist-es/commands/ListTypesCommand.js +1 -3
- package/dist-es/commands/PublishTypeCommand.js +1 -3
- package/dist-es/commands/RecordHandlerProgressCommand.js +1 -3
- package/dist-es/commands/RegisterPublisherCommand.js +1 -3
- package/dist-es/commands/RegisterTypeCommand.js +1 -3
- package/dist-es/commands/RollbackStackCommand.js +1 -3
- package/dist-es/commands/SetStackPolicyCommand.js +1 -3
- package/dist-es/commands/SetTypeConfigurationCommand.js +1 -3
- package/dist-es/commands/SetTypeDefaultVersionCommand.js +1 -3
- package/dist-es/commands/SignalResourceCommand.js +1 -3
- package/dist-es/commands/StartResourceScanCommand.js +1 -3
- package/dist-es/commands/StopStackSetOperationCommand.js +1 -3
- package/dist-es/commands/TestTypeCommand.js +1 -3
- package/dist-es/commands/UpdateGeneratedTemplateCommand.js +1 -3
- package/dist-es/commands/UpdateStackCommand.js +1 -3
- package/dist-es/commands/UpdateStackInstancesCommand.js +1 -3
- package/dist-es/commands/UpdateStackSetCommand.js +1 -3
- package/dist-es/commands/UpdateTerminationProtectionCommand.js +1 -3
- package/dist-es/commands/ValidateTemplateCommand.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;
|