@aws-sdk/client-sts 3.193.0 → 3.194.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/CHANGELOG.md +11 -0
- package/dist-cjs/STSClient.js +11 -8
- package/dist-cjs/commands/AssumeRoleCommand.js +11 -0
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +11 -0
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +11 -0
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +11 -0
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +11 -0
- package/dist-cjs/commands/GetCallerIdentityCommand.js +11 -0
- package/dist-cjs/commands/GetFederationTokenCommand.js +11 -0
- package/dist-cjs/commands/GetSessionTokenCommand.js +11 -0
- package/dist-cjs/endpoint/EndpointParameters.js +14 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +879 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/STSClient.js +12 -9
- package/dist-es/commands/AssumeRoleCommand.js +11 -0
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +11 -0
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +11 -0
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +11 -0
- package/dist-es/commands/GetAccessKeyInfoCommand.js +11 -0
- package/dist-es/commands/GetCallerIdentityCommand.js +11 -0
- package/dist-es/commands/GetFederationTokenCommand.js +11 -0
- package/dist-es/commands/GetSessionTokenCommand.js +11 -0
- package/dist-es/endpoint/EndpointParameters.js +9 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +876 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/STSClient.d.ts +6 -9
- package/dist-types/commands/AssumeRoleCommand.d.ts +2 -0
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -0
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -0
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -0
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +2 -0
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +2 -0
- package/dist-types/commands/GetFederationTokenCommand.d.ts +2 -0
- package/dist-types/commands/GetSessionTokenCommand.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +21 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +5 -2
- package/dist-types/runtimeConfig.d.ts +5 -2
- package/dist-types/runtimeConfig.native.d.ts +5 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/STSClient.d.ts +15 -8
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +28 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +18 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +18 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +3 -1
- package/dist-cjs/endpoints.js +0 -195
- package/dist-es/endpoints.js +0 -191
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
8
8
|
return ({
|
|
9
9
|
apiVersion: "2011-06-15",
|
|
10
10
|
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
|
|
12
|
+
logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
|
|
13
13
|
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS",
|
|
14
14
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
15
|
});
|
package/dist-es/STSClient.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
6
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { resolveStsAuthConfig } from "@aws-sdk/middleware-sdk-sts";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
13
|
export class STSClient extends __Client {
|
|
12
14
|
constructor(configuration) {
|
|
13
15
|
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
-
const _config_1 =
|
|
15
|
-
const _config_2 =
|
|
16
|
-
const _config_3 =
|
|
17
|
-
const _config_4 =
|
|
18
|
-
const _config_5 =
|
|
19
|
-
const _config_6 =
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveStsAuthConfig(_config_5, { stsClientCtor: STSClient });
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
22
25
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
26
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
27
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -8,8 +9,18 @@ export class AssumeRoleCommand extends $Command {
|
|
|
8
9
|
super();
|
|
9
10
|
this.input = input;
|
|
10
11
|
}
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
12
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleCommand.getEndpointParameterInstructions()));
|
|
13
24
|
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
14
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
15
26
|
const { logger } = configuration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,18 @@ export class AssumeRoleWithSAMLCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
10
20
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
21
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions()));
|
|
12
23
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
24
|
const { logger } = configuration;
|
|
14
25
|
const clientName = "STSClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,18 @@ export class AssumeRoleWithWebIdentityCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
10
20
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
21
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions()));
|
|
12
23
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
24
|
const { logger } = configuration;
|
|
14
25
|
const clientName = "STSClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -8,8 +9,18 @@ export class DecodeAuthorizationMessageCommand extends $Command {
|
|
|
8
9
|
super();
|
|
9
10
|
this.input = input;
|
|
10
11
|
}
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
12
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));
|
|
13
24
|
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
14
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
15
26
|
const { logger } = configuration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -8,8 +9,18 @@ export class GetAccessKeyInfoCommand extends $Command {
|
|
|
8
9
|
super();
|
|
9
10
|
this.input = input;
|
|
10
11
|
}
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
12
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions()));
|
|
13
24
|
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
14
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
15
26
|
const { logger } = configuration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -8,8 +9,18 @@ export class GetCallerIdentityCommand extends $Command {
|
|
|
8
9
|
super();
|
|
9
10
|
this.input = input;
|
|
10
11
|
}
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
12
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions()));
|
|
13
24
|
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
14
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
15
26
|
const { logger } = configuration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -8,8 +9,18 @@ export class GetFederationTokenCommand extends $Command {
|
|
|
8
9
|
super();
|
|
9
10
|
this.input = input;
|
|
10
11
|
}
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
12
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetFederationTokenCommand.getEndpointParameterInstructions()));
|
|
13
24
|
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
14
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
15
26
|
const { logger } = configuration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -8,8 +9,18 @@ export class GetSessionTokenCommand extends $Command {
|
|
|
8
9
|
super();
|
|
9
10
|
this.input = input;
|
|
10
11
|
}
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
12
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetSessionTokenCommand.getEndpointParameterInstructions()));
|
|
13
24
|
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
14
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
15
26
|
const { logger } = configuration;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return {
|
|
3
|
+
...options,
|
|
4
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
|
+
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
7
|
+
defaultSigningName: "sts",
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|