@aws-sdk/client-eks 3.1045.0 → 3.1046.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 +212 -214
- package/dist-cjs/models/EKSServiceException.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/EKS.js +1 -1
- package/dist-es/EKSClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/AssociateAccessPolicyCommand.js +2 -2
- package/dist-es/commands/AssociateEncryptionConfigCommand.js +2 -2
- package/dist-es/commands/AssociateIdentityProviderConfigCommand.js +2 -2
- package/dist-es/commands/CreateAccessEntryCommand.js +2 -2
- package/dist-es/commands/CreateAddonCommand.js +2 -2
- package/dist-es/commands/CreateCapabilityCommand.js +2 -2
- package/dist-es/commands/CreateClusterCommand.js +2 -2
- package/dist-es/commands/CreateEksAnywhereSubscriptionCommand.js +2 -2
- package/dist-es/commands/CreateFargateProfileCommand.js +2 -2
- package/dist-es/commands/CreateNodegroupCommand.js +2 -2
- package/dist-es/commands/CreatePodIdentityAssociationCommand.js +2 -2
- package/dist-es/commands/DeleteAccessEntryCommand.js +2 -2
- package/dist-es/commands/DeleteAddonCommand.js +2 -2
- package/dist-es/commands/DeleteCapabilityCommand.js +2 -2
- package/dist-es/commands/DeleteClusterCommand.js +2 -2
- package/dist-es/commands/DeleteEksAnywhereSubscriptionCommand.js +2 -2
- package/dist-es/commands/DeleteFargateProfileCommand.js +2 -2
- package/dist-es/commands/DeleteNodegroupCommand.js +2 -2
- package/dist-es/commands/DeletePodIdentityAssociationCommand.js +2 -2
- package/dist-es/commands/DeregisterClusterCommand.js +2 -2
- package/dist-es/commands/DescribeAccessEntryCommand.js +2 -2
- package/dist-es/commands/DescribeAddonCommand.js +2 -2
- package/dist-es/commands/DescribeAddonConfigurationCommand.js +2 -2
- package/dist-es/commands/DescribeAddonVersionsCommand.js +2 -2
- package/dist-es/commands/DescribeCapabilityCommand.js +2 -2
- package/dist-es/commands/DescribeClusterCommand.js +2 -2
- package/dist-es/commands/DescribeClusterVersionsCommand.js +2 -2
- package/dist-es/commands/DescribeEksAnywhereSubscriptionCommand.js +2 -2
- package/dist-es/commands/DescribeFargateProfileCommand.js +2 -2
- package/dist-es/commands/DescribeIdentityProviderConfigCommand.js +2 -2
- package/dist-es/commands/DescribeInsightCommand.js +2 -2
- package/dist-es/commands/DescribeInsightsRefreshCommand.js +2 -2
- package/dist-es/commands/DescribeNodegroupCommand.js +2 -2
- package/dist-es/commands/DescribePodIdentityAssociationCommand.js +2 -2
- package/dist-es/commands/DescribeUpdateCommand.js +2 -2
- package/dist-es/commands/DisassociateAccessPolicyCommand.js +2 -2
- package/dist-es/commands/DisassociateIdentityProviderConfigCommand.js +2 -2
- package/dist-es/commands/ListAccessEntriesCommand.js +2 -2
- package/dist-es/commands/ListAccessPoliciesCommand.js +2 -2
- package/dist-es/commands/ListAddonsCommand.js +2 -2
- package/dist-es/commands/ListAssociatedAccessPoliciesCommand.js +2 -2
- package/dist-es/commands/ListCapabilitiesCommand.js +2 -2
- package/dist-es/commands/ListClustersCommand.js +2 -2
- package/dist-es/commands/ListEksAnywhereSubscriptionsCommand.js +2 -2
- package/dist-es/commands/ListFargateProfilesCommand.js +2 -2
- package/dist-es/commands/ListIdentityProviderConfigsCommand.js +2 -2
- package/dist-es/commands/ListInsightsCommand.js +2 -2
- package/dist-es/commands/ListNodegroupsCommand.js +2 -2
- package/dist-es/commands/ListPodIdentityAssociationsCommand.js +2 -2
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/ListUpdatesCommand.js +2 -2
- package/dist-es/commands/RegisterClusterCommand.js +2 -2
- package/dist-es/commands/StartInsightsRefreshCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdateAccessEntryCommand.js +2 -2
- package/dist-es/commands/UpdateAddonCommand.js +2 -2
- package/dist-es/commands/UpdateCapabilityCommand.js +2 -2
- package/dist-es/commands/UpdateClusterConfigCommand.js +2 -2
- package/dist-es/commands/UpdateClusterVersionCommand.js +2 -2
- package/dist-es/commands/UpdateEksAnywhereSubscriptionCommand.js +2 -2
- package/dist-es/commands/UpdateNodegroupConfigCommand.js +2 -2
- package/dist-es/commands/UpdateNodegroupVersionCommand.js +2 -2
- package/dist-es/commands/UpdatePodIdentityAssociationCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/EKSServiceException.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/waitForAddonActive.js +1 -1
- package/dist-es/waiters/waitForAddonDeleted.js +1 -1
- package/dist-es/waiters/waitForClusterActive.js +1 -1
- package/dist-es/waiters/waitForClusterDeleted.js +1 -1
- package/dist-es/waiters/waitForFargateProfileActive.js +1 -1
- package/dist-es/waiters/waitForFargateProfileDeleted.js +1 -1
- package/dist-es/waiters/waitForNodegroupActive.js +1 -1
- package/dist-es/waiters/waitForNodegroupDeleted.js +1 -1
- package/dist-types/EKS.d.ts +1 -1
- package/dist-types/EKSClient.d.ts +5 -5
- package/dist-types/commands/AssociateAccessPolicyCommand.d.ts +6 -4
- package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +6 -4
- package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +6 -4
- package/dist-types/commands/CreateAccessEntryCommand.d.ts +6 -4
- package/dist-types/commands/CreateAddonCommand.d.ts +6 -4
- package/dist-types/commands/CreateCapabilityCommand.d.ts +6 -4
- package/dist-types/commands/CreateClusterCommand.d.ts +6 -4
- package/dist-types/commands/CreateEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/CreateFargateProfileCommand.d.ts +6 -4
- package/dist-types/commands/CreateNodegroupCommand.d.ts +6 -4
- package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAccessEntryCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAddonCommand.d.ts +6 -4
- package/dist-types/commands/DeleteCapabilityCommand.d.ts +6 -4
- package/dist-types/commands/DeleteClusterCommand.d.ts +6 -4
- package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteFargateProfileCommand.d.ts +6 -4
- package/dist-types/commands/DeleteNodegroupCommand.d.ts +6 -4
- package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +6 -4
- package/dist-types/commands/DeregisterClusterCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAccessEntryCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAddonCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAddonConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAddonVersionsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeCapabilityCommand.d.ts +6 -4
- package/dist-types/commands/DescribeClusterCommand.d.ts +6 -4
- package/dist-types/commands/DescribeClusterVersionsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/DescribeFargateProfileCommand.d.ts +6 -4
- package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +6 -4
- package/dist-types/commands/DescribeInsightCommand.d.ts +6 -4
- package/dist-types/commands/DescribeInsightsRefreshCommand.d.ts +6 -4
- package/dist-types/commands/DescribeNodegroupCommand.d.ts +6 -4
- package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +6 -4
- package/dist-types/commands/DescribeUpdateCommand.d.ts +6 -4
- package/dist-types/commands/DisassociateAccessPolicyCommand.d.ts +6 -4
- package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +6 -4
- package/dist-types/commands/ListAccessEntriesCommand.d.ts +6 -4
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +6 -4
- package/dist-types/commands/ListAddonsCommand.d.ts +6 -4
- package/dist-types/commands/ListAssociatedAccessPoliciesCommand.d.ts +6 -4
- package/dist-types/commands/ListCapabilitiesCommand.d.ts +6 -4
- package/dist-types/commands/ListClustersCommand.d.ts +6 -4
- package/dist-types/commands/ListEksAnywhereSubscriptionsCommand.d.ts +6 -4
- package/dist-types/commands/ListFargateProfilesCommand.d.ts +6 -4
- package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +6 -4
- package/dist-types/commands/ListInsightsCommand.d.ts +6 -4
- package/dist-types/commands/ListNodegroupsCommand.d.ts +6 -4
- package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +6 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/commands/ListUpdatesCommand.d.ts +6 -4
- package/dist-types/commands/RegisterClusterCommand.d.ts +6 -4
- package/dist-types/commands/StartInsightsRefreshCommand.d.ts +6 -4
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UpdateAccessEntryCommand.d.ts +6 -4
- package/dist-types/commands/UpdateAddonCommand.d.ts +6 -4
- package/dist-types/commands/UpdateCapabilityCommand.d.ts +6 -4
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +6 -4
- package/dist-types/commands/UpdateClusterVersionCommand.d.ts +6 -4
- package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +6 -4
- package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +6 -4
- package/dist-types/commands/UpdatePodIdentityAssociationCommand.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/EKSServiceException.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/EKS.d.ts +1 -1
- package/dist-types/ts3.4/EKSClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/AssociateAccessPolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssociateEncryptionConfigCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssociateIdentityProviderConfigCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateAccessEntryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateAddonCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateCapabilityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateFargateProfileCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateNodegroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreatePodIdentityAssociationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAccessEntryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAddonCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteCapabilityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteFargateProfileCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteNodegroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeletePodIdentityAssociationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeregisterClusterCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAccessEntryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAddonCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAddonConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAddonVersionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeCapabilityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeClusterVersionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeFargateProfileCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeIdentityProviderConfigCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeInsightCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeInsightsRefreshCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeNodegroupCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribePodIdentityAssociationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeUpdateCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DisassociateAccessPolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DisassociateIdentityProviderConfigCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListAccessEntriesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListAddonsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListAssociatedAccessPoliciesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCapabilitiesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListEksAnywhereSubscriptionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListFargateProfilesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListIdentityProviderConfigsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListNodegroupsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListPodIdentityAssociationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListUpdatesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RegisterClusterCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartInsightsRefreshCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateAccessEntryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateAddonCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateCapabilityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateClusterConfigCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateClusterVersionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateNodegroupConfigCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateNodegroupVersionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdatePodIdentityAssociationCommand.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/EKSServiceException.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/waitForAddonActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForAddonDeleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForClusterActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForClusterDeleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForFargateProfileActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForFargateProfileDeleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForNodegroupActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForNodegroupDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForAddonActive.d.ts +1 -1
- package/dist-types/waiters/waitForAddonDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForClusterActive.d.ts +1 -1
- package/dist-types/waiters/waitForClusterDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForFargateProfileActive.d.ts +1 -1
- package/dist-types/waiters/waitForFargateProfileDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForNodegroupActive.d.ts +1 -1
- package/dist-types/waiters/waitForNodegroupDeleted.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.defaultEKSHttpAuthSchemeProvider = exports.defaultEKSHttpAuthSchemeParametersProvider = 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 defaultEKSHttpAuthSchemeParametersProvider = 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.defaultEKSHttpAuthSchemeProvider = defaultEKSHttpAuthSchemeProvider;
|
|
|
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 m = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -52,4 +52,4 @@ const nodes = new Int32Array([
|
|
|
52
52
|
3, r + 1, 15,
|
|
53
53
|
4, r + 2, r + 3,
|
|
54
54
|
]);
|
|
55
|
-
exports.bdd =
|
|
55
|
+
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;
|