@aws-sdk/client-auto-scaling 3.1045.0 → 3.1047.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/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +172 -174
- package/dist-cjs/models/AutoScalingServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/AutoScaling.js +1 -1
- package/dist-es/AutoScalingClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/AttachInstancesCommand.js +2 -2
- package/dist-es/commands/AttachLoadBalancerTargetGroupsCommand.js +2 -2
- package/dist-es/commands/AttachLoadBalancersCommand.js +2 -2
- package/dist-es/commands/AttachTrafficSourcesCommand.js +2 -2
- package/dist-es/commands/BatchDeleteScheduledActionCommand.js +2 -2
- package/dist-es/commands/BatchPutScheduledUpdateGroupActionCommand.js +2 -2
- package/dist-es/commands/CancelInstanceRefreshCommand.js +2 -2
- package/dist-es/commands/CompleteLifecycleActionCommand.js +2 -2
- package/dist-es/commands/CreateAutoScalingGroupCommand.js +2 -2
- package/dist-es/commands/CreateLaunchConfigurationCommand.js +2 -2
- package/dist-es/commands/CreateOrUpdateTagsCommand.js +2 -2
- package/dist-es/commands/DeleteAutoScalingGroupCommand.js +2 -2
- package/dist-es/commands/DeleteLaunchConfigurationCommand.js +2 -2
- package/dist-es/commands/DeleteLifecycleHookCommand.js +2 -2
- package/dist-es/commands/DeleteNotificationConfigurationCommand.js +2 -2
- package/dist-es/commands/DeletePolicyCommand.js +2 -2
- package/dist-es/commands/DeleteScheduledActionCommand.js +2 -2
- package/dist-es/commands/DeleteTagsCommand.js +2 -2
- package/dist-es/commands/DeleteWarmPoolCommand.js +2 -2
- package/dist-es/commands/DescribeAccountLimitsCommand.js +2 -2
- package/dist-es/commands/DescribeAdjustmentTypesCommand.js +2 -2
- package/dist-es/commands/DescribeAutoScalingGroupsCommand.js +2 -2
- package/dist-es/commands/DescribeAutoScalingInstancesCommand.js +2 -2
- package/dist-es/commands/DescribeAutoScalingNotificationTypesCommand.js +2 -2
- package/dist-es/commands/DescribeInstanceRefreshesCommand.js +2 -2
- package/dist-es/commands/DescribeLaunchConfigurationsCommand.js +2 -2
- package/dist-es/commands/DescribeLifecycleHookTypesCommand.js +2 -2
- package/dist-es/commands/DescribeLifecycleHooksCommand.js +2 -2
- package/dist-es/commands/DescribeLoadBalancerTargetGroupsCommand.js +2 -2
- package/dist-es/commands/DescribeLoadBalancersCommand.js +2 -2
- package/dist-es/commands/DescribeMetricCollectionTypesCommand.js +2 -2
- package/dist-es/commands/DescribeNotificationConfigurationsCommand.js +2 -2
- package/dist-es/commands/DescribePoliciesCommand.js +2 -2
- package/dist-es/commands/DescribeScalingActivitiesCommand.js +2 -2
- package/dist-es/commands/DescribeScalingProcessTypesCommand.js +2 -2
- package/dist-es/commands/DescribeScheduledActionsCommand.js +2 -2
- package/dist-es/commands/DescribeTagsCommand.js +2 -2
- package/dist-es/commands/DescribeTerminationPolicyTypesCommand.js +2 -2
- package/dist-es/commands/DescribeTrafficSourcesCommand.js +2 -2
- package/dist-es/commands/DescribeWarmPoolCommand.js +2 -2
- package/dist-es/commands/DetachInstancesCommand.js +2 -2
- package/dist-es/commands/DetachLoadBalancerTargetGroupsCommand.js +2 -2
- package/dist-es/commands/DetachLoadBalancersCommand.js +2 -2
- package/dist-es/commands/DetachTrafficSourcesCommand.js +2 -2
- package/dist-es/commands/DisableMetricsCollectionCommand.js +2 -2
- package/dist-es/commands/EnableMetricsCollectionCommand.js +2 -2
- package/dist-es/commands/EnterStandbyCommand.js +2 -2
- package/dist-es/commands/ExecutePolicyCommand.js +2 -2
- package/dist-es/commands/ExitStandbyCommand.js +2 -2
- package/dist-es/commands/GetPredictiveScalingForecastCommand.js +2 -2
- package/dist-es/commands/LaunchInstancesCommand.js +2 -2
- package/dist-es/commands/PutLifecycleHookCommand.js +2 -2
- package/dist-es/commands/PutNotificationConfigurationCommand.js +2 -2
- package/dist-es/commands/PutScalingPolicyCommand.js +2 -2
- package/dist-es/commands/PutScheduledUpdateGroupActionCommand.js +2 -2
- package/dist-es/commands/PutWarmPoolCommand.js +2 -2
- package/dist-es/commands/RecordLifecycleActionHeartbeatCommand.js +2 -2
- package/dist-es/commands/ResumeProcessesCommand.js +2 -2
- package/dist-es/commands/RollbackInstanceRefreshCommand.js +2 -2
- package/dist-es/commands/SetDesiredCapacityCommand.js +2 -2
- package/dist-es/commands/SetInstanceHealthCommand.js +2 -2
- package/dist-es/commands/SetInstanceProtectionCommand.js +2 -2
- package/dist-es/commands/StartInstanceRefreshCommand.js +2 -2
- package/dist-es/commands/SuspendProcessesCommand.js +2 -2
- package/dist-es/commands/TerminateInstanceInAutoScalingGroupCommand.js +2 -2
- package/dist-es/commands/UpdateAutoScalingGroupCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/AutoScalingServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-es/waiters/waitForGroupExists.js +1 -1
- package/dist-es/waiters/waitForGroupInService.js +1 -1
- package/dist-es/waiters/waitForGroupNotExists.js +1 -1
- package/dist-types/AutoScaling.d.ts +1 -1
- package/dist-types/AutoScalingClient.d.ts +5 -5
- package/dist-types/commands/AttachInstancesCommand.d.ts +6 -4
- package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +6 -4
- package/dist-types/commands/AttachLoadBalancersCommand.d.ts +6 -4
- package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +6 -4
- package/dist-types/commands/BatchDeleteScheduledActionCommand.d.ts +6 -4
- package/dist-types/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +6 -4
- package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +6 -4
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +6 -4
- package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +6 -4
- package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DeletePolicyCommand.d.ts +6 -4
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteTagsCommand.d.ts +6 -4
- package/dist-types/commands/DeleteWarmPoolCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAdjustmentTypesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAutoScalingInstancesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeLaunchConfigurationsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeLifecycleHookTypesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeLifecycleHooksCommand.d.ts +6 -4
- package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +6 -4
- package/dist-types/commands/DescribeMetricCollectionTypesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeNotificationConfigurationsCommand.d.ts +6 -4
- package/dist-types/commands/DescribePoliciesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeScalingProcessTypesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeTagsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeTerminationPolicyTypesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeWarmPoolCommand.d.ts +6 -4
- package/dist-types/commands/DetachInstancesCommand.d.ts +6 -4
- package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +6 -4
- package/dist-types/commands/DetachLoadBalancersCommand.d.ts +6 -4
- package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +6 -4
- package/dist-types/commands/DisableMetricsCollectionCommand.d.ts +6 -4
- package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +6 -4
- package/dist-types/commands/EnterStandbyCommand.d.ts +6 -4
- package/dist-types/commands/ExecutePolicyCommand.d.ts +6 -4
- package/dist-types/commands/ExitStandbyCommand.d.ts +6 -4
- package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +6 -4
- package/dist-types/commands/LaunchInstancesCommand.d.ts +6 -4
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +6 -4
- package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +6 -4
- package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +6 -4
- package/dist-types/commands/PutWarmPoolCommand.d.ts +6 -4
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +6 -4
- package/dist-types/commands/ResumeProcessesCommand.d.ts +6 -4
- package/dist-types/commands/RollbackInstanceRefreshCommand.d.ts +6 -4
- package/dist-types/commands/SetDesiredCapacityCommand.d.ts +6 -4
- package/dist-types/commands/SetInstanceHealthCommand.d.ts +6 -4
- package/dist-types/commands/SetInstanceProtectionCommand.d.ts +6 -4
- package/dist-types/commands/StartInstanceRefreshCommand.d.ts +6 -4
- package/dist-types/commands/SuspendProcessesCommand.d.ts +6 -4
- package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/AutoScalingServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/AutoScaling.d.ts +1 -1
- package/dist-types/ts3.4/AutoScalingClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/AttachInstancesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AttachLoadBalancersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AttachTrafficSourcesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/BatchDeleteScheduledActionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CancelInstanceRefreshCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CompleteLifecycleActionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateLaunchConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateOrUpdateTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteLaunchConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteLifecycleHookCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteWarmPoolCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAdjustmentTypesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAutoScalingGroupsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAutoScalingInstancesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeInstanceRefreshesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeLaunchConfigurationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeLifecycleHookTypesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeLifecycleHooksCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeMetricCollectionTypesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeNotificationConfigurationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribePoliciesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeScalingProcessTypesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeTerminationPolicyTypesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeTrafficSourcesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeWarmPoolCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DetachInstancesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DetachLoadBalancersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DetachTrafficSourcesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DisableMetricsCollectionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/EnableMetricsCollectionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/EnterStandbyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExecutePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExitStandbyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/LaunchInstancesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutLifecycleHookCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutNotificationConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutScheduledUpdateGroupActionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutWarmPoolCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RecordLifecycleActionHeartbeatCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ResumeProcessesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RollbackInstanceRefreshCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetDesiredCapacityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetInstanceHealthCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetInstanceProtectionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartInstanceRefreshCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SuspendProcessesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateAutoScalingGroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/AutoScalingServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/waiters/waitForGroupExists.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForGroupInService.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForGroupNotExists.d.ts +1 -1
- package/dist-types/waiters/waitForGroupExists.d.ts +1 -1
- package/dist-types/waiters/waitForGroupInService.d.ts +1 -1
- package/dist-types/waiters/waitForGroupNotExists.d.ts +1 -1
- package/package.json +13 -35
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultAutoScalingHttpAuthSchemeProvider = exports.defaultAutoScalingHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultAutoScalingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultAutoScalingHttpAuthSchemeProvider = defaultAutoScalingHttpAuthSch
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const k = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -49,4 +49,4 @@ const nodes = new Int32Array([
|
|
|
49
49
|
3, r + 1, 14,
|
|
50
50
|
4, r + 2, r + 3,
|
|
51
51
|
]);
|
|
52
|
-
exports.bdd =
|
|
52
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|