@aws-sdk/client-sts 3.929.0 → 3.931.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/STSClient.js +2 -0
- package/dist-cjs/index.js +400 -1095
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/STSClient.js +2 -0
- package/dist-es/commands/AssumeRoleCommand.js +3 -10
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -10
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -10
- package/dist-es/commands/AssumeRootCommand.js +3 -10
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +3 -9
- package/dist-es/commands/GetAccessKeyInfoCommand.js +3 -9
- package/dist-es/commands/GetCallerIdentityCommand.js +3 -9
- package/dist-es/commands/GetDelegatedAccessTokenCommand.js +3 -10
- package/dist-es/commands/GetFederationTokenCommand.js +3 -10
- package/dist-es/commands/GetSessionTokenCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -45
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +410 -0
- package/dist-types/STSClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -44
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/STSClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +61 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_query.js +0 -1003
- package/dist-types/protocols/Aws_query.d.ts +0 -92
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -125
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const core_2 = require("@smithy/core");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
8
|
const url_parser_1 = require("@smithy/url-parser");
|
|
@@ -31,6 +32,12 @@ const getRuntimeConfig = (config) => {
|
|
|
31
32
|
},
|
|
32
33
|
],
|
|
33
34
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
35
|
+
protocol: config?.protocol ??
|
|
36
|
+
new protocols_1.AwsQueryProtocol({
|
|
37
|
+
defaultNamespace: "com.amazonaws.sts",
|
|
38
|
+
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
|
39
|
+
version: "2011-06-15",
|
|
40
|
+
}),
|
|
34
41
|
serviceId: config?.serviceId ?? "STS",
|
|
35
42
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
36
43
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/dist-es/STSClient.js
CHANGED
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class STSClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_AssumeRoleCommand, se_AssumeRoleCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { AssumeRole } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class AssumeRoleCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
|
18
13
|
.n("STSClient", "AssumeRoleCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_AssumeRoleCommand)
|
|
21
|
-
.de(de_AssumeRoleCommand)
|
|
14
|
+
.sc(AssumeRole)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_AssumeRoleWithSAMLCommand, se_AssumeRoleWithSAMLCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { AssumeRoleWithSAML } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class AssumeRoleWithSAMLCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {})
|
|
18
13
|
.n("STSClient", "AssumeRoleWithSAMLCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_AssumeRoleWithSAMLCommand)
|
|
21
|
-
.de(de_AssumeRoleWithSAMLCommand)
|
|
14
|
+
.sc(AssumeRoleWithSAML)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_AssumeRoleWithWebIdentityCommand, se_AssumeRoleWithWebIdentityCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { AssumeRoleWithWebIdentity } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class AssumeRoleWithWebIdentityCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
|
18
13
|
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_AssumeRoleWithWebIdentityCommand)
|
|
21
|
-
.de(de_AssumeRoleWithWebIdentityCommand)
|
|
14
|
+
.sc(AssumeRoleWithWebIdentity)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_AssumeRootCommand, se_AssumeRootCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { AssumeRoot } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class AssumeRootCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {})
|
|
18
13
|
.n("STSClient", "AssumeRootCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_AssumeRootCommand)
|
|
21
|
-
.de(de_AssumeRootCommand)
|
|
14
|
+
.sc(AssumeRoot)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DecodeAuthorizationMessage } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DecodeAuthorizationMessageCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
|
|
17
13
|
.n("STSClient", "DecodeAuthorizationMessageCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DecodeAuthorizationMessageCommand)
|
|
20
|
-
.de(de_DecodeAuthorizationMessageCommand)
|
|
14
|
+
.sc(DecodeAuthorizationMessage)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetAccessKeyInfo } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetAccessKeyInfoCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
|
|
17
13
|
.n("STSClient", "GetAccessKeyInfoCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetAccessKeyInfoCommand)
|
|
20
|
-
.de(de_GetAccessKeyInfoCommand)
|
|
14
|
+
.sc(GetAccessKeyInfo)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetCallerIdentity } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetCallerIdentityCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
|
|
17
13
|
.n("STSClient", "GetCallerIdentityCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetCallerIdentityCommand)
|
|
20
|
-
.de(de_GetCallerIdentityCommand)
|
|
14
|
+
.sc(GetCallerIdentity)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetDelegatedAccessTokenCommand, se_GetDelegatedAccessTokenCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { GetDelegatedAccessToken } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetDelegatedAccessTokenCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {})
|
|
18
13
|
.n("STSClient", "GetDelegatedAccessTokenCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetDelegatedAccessTokenCommand)
|
|
21
|
-
.de(de_GetDelegatedAccessTokenCommand)
|
|
14
|
+
.sc(GetDelegatedAccessToken)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetFederationTokenCommand, se_GetFederationTokenCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { GetFederationToken } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetFederationTokenCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {})
|
|
18
13
|
.n("STSClient", "GetFederationTokenCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetFederationTokenCommand)
|
|
21
|
-
.de(de_GetFederationTokenCommand)
|
|
14
|
+
.sc(GetFederationToken)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetSessionTokenCommand, se_GetSessionTokenCommand } from "../protocols/Aws_query";
|
|
4
|
+
import { GetSessionToken } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetSessionTokenCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {})
|
|
18
13
|
.n("STSClient", "GetSessionTokenCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetSessionTokenCommand)
|
|
21
|
-
.de(de_GetSessionTokenCommand)
|
|
14
|
+
.sc(GetSessionToken)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { STSServiceException as __BaseException } from "./STSServiceException";
|
|
3
2
|
export class ExpiredTokenException extends __BaseException {
|
|
4
3
|
name = "ExpiredTokenException";
|
|
@@ -108,47 +107,3 @@ export class ExpiredTradeInTokenException extends __BaseException {
|
|
|
108
107
|
Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype);
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
|
-
export const CredentialsFilterSensitiveLog = (obj) => ({
|
|
112
|
-
...obj,
|
|
113
|
-
...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
|
|
114
|
-
});
|
|
115
|
-
export const AssumeRoleResponseFilterSensitiveLog = (obj) => ({
|
|
116
|
-
...obj,
|
|
117
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
118
|
-
});
|
|
119
|
-
export const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({
|
|
120
|
-
...obj,
|
|
121
|
-
...(obj.SAMLAssertion && { SAMLAssertion: SENSITIVE_STRING }),
|
|
122
|
-
});
|
|
123
|
-
export const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({
|
|
124
|
-
...obj,
|
|
125
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
126
|
-
});
|
|
127
|
-
export const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({
|
|
128
|
-
...obj,
|
|
129
|
-
...(obj.WebIdentityToken && { WebIdentityToken: SENSITIVE_STRING }),
|
|
130
|
-
});
|
|
131
|
-
export const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({
|
|
132
|
-
...obj,
|
|
133
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
134
|
-
});
|
|
135
|
-
export const AssumeRootResponseFilterSensitiveLog = (obj) => ({
|
|
136
|
-
...obj,
|
|
137
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
138
|
-
});
|
|
139
|
-
export const GetDelegatedAccessTokenRequestFilterSensitiveLog = (obj) => ({
|
|
140
|
-
...obj,
|
|
141
|
-
...(obj.TradeInToken && { TradeInToken: SENSITIVE_STRING }),
|
|
142
|
-
});
|
|
143
|
-
export const GetDelegatedAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
144
|
-
...obj,
|
|
145
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
146
|
-
});
|
|
147
|
-
export const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
|
148
|
-
...obj,
|
|
149
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
150
|
-
});
|
|
151
|
-
export const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({
|
|
152
|
-
...obj,
|
|
153
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
154
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoAuthSigner } from "@smithy/core";
|
|
3
4
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
5
|
import { parseUrl } from "@smithy/url-parser";
|
|
@@ -28,6 +29,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
29
|
},
|
|
29
30
|
],
|
|
30
31
|
logger: config?.logger ?? new NoOpLogger(),
|
|
32
|
+
protocol: config?.protocol ??
|
|
33
|
+
new AwsQueryProtocol({
|
|
34
|
+
defaultNamespace: "com.amazonaws.sts",
|
|
35
|
+
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
|
36
|
+
version: "2011-06-15",
|
|
37
|
+
}),
|
|
31
38
|
serviceId: config?.serviceId ?? "STS",
|
|
32
39
|
urlParser: config?.urlParser ?? parseUrl,
|
|
33
40
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|