@aws-sdk/client-sts 3.948.0 → 3.953.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/index.js +197 -144
- package/dist-cjs/runtimeConfig.shared.js +7 -6
- package/dist-es/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/commands/AssumeRootCommand.js +2 -2
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-es/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-es/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-es/commands/GetDelegatedAccessTokenCommand.js +2 -2
- package/dist-es/commands/GetFederationTokenCommand.js +2 -2
- package/dist-es/commands/GetSessionTokenCommand.js +2 -2
- package/dist-es/commands/GetWebIdentityTokenCommand.js +2 -2
- package/dist-es/defaultStsRoleAssumers.js +3 -2
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.shared.js +7 -6
- package/dist-es/schemas/schemas_0.js +101 -101
- package/dist-types/STSClient.d.ts +1 -10
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +6 -2
- package/dist-types/runtimeConfig.d.ts +6 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -2
- package/dist-types/runtimeConfig.shared.d.ts +6 -1
- package/dist-types/schemas/schemas_0.d.ts +53 -63
- package/dist-types/ts3.4/STSClient.d.ts +0 -4
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +52 -64
- package/package.json +34 -34
|
@@ -32,12 +32,13 @@ const getRuntimeConfig = (config) => {
|
|
|
32
32
|
},
|
|
33
33
|
],
|
|
34
34
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
35
|
-
protocol: config?.protocol ??
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
|
|
36
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
37
|
+
defaultNamespace: "com.amazonaws.sts",
|
|
38
|
+
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
|
39
|
+
version: "2011-06-15",
|
|
40
|
+
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
41
|
+
},
|
|
41
42
|
serviceId: config?.serviceId ?? "STS",
|
|
42
43
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
43
44
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { AssumeRole } from "../schemas/schemas_0";
|
|
4
|
+
import { AssumeRole$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class AssumeRoleCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class AssumeRoleCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
|
13
13
|
.n("STSClient", "AssumeRoleCommand")
|
|
14
|
-
.sc(AssumeRole)
|
|
14
|
+
.sc(AssumeRole$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { AssumeRoleWithSAML } from "../schemas/schemas_0";
|
|
4
|
+
import { AssumeRoleWithSAML$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class AssumeRoleWithSAMLCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class AssumeRoleWithSAMLCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {})
|
|
13
13
|
.n("STSClient", "AssumeRoleWithSAMLCommand")
|
|
14
|
-
.sc(AssumeRoleWithSAML)
|
|
14
|
+
.sc(AssumeRoleWithSAML$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { AssumeRoleWithWebIdentity } from "../schemas/schemas_0";
|
|
4
|
+
import { AssumeRoleWithWebIdentity$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class AssumeRoleWithWebIdentityCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class AssumeRoleWithWebIdentityCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
|
13
13
|
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
|
14
|
-
.sc(AssumeRoleWithWebIdentity)
|
|
14
|
+
.sc(AssumeRoleWithWebIdentity$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { AssumeRoot } from "../schemas/schemas_0";
|
|
4
|
+
import { AssumeRoot$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class AssumeRootCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class AssumeRootCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {})
|
|
13
13
|
.n("STSClient", "AssumeRootCommand")
|
|
14
|
-
.sc(AssumeRoot)
|
|
14
|
+
.sc(AssumeRoot$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { DecodeAuthorizationMessage } from "../schemas/schemas_0";
|
|
4
|
+
import { DecodeAuthorizationMessage$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class DecodeAuthorizationMessageCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class DecodeAuthorizationMessageCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
|
|
13
13
|
.n("STSClient", "DecodeAuthorizationMessageCommand")
|
|
14
|
-
.sc(DecodeAuthorizationMessage)
|
|
14
|
+
.sc(DecodeAuthorizationMessage$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetAccessKeyInfo } from "../schemas/schemas_0";
|
|
4
|
+
import { GetAccessKeyInfo$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetAccessKeyInfoCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetAccessKeyInfoCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
|
|
13
13
|
.n("STSClient", "GetAccessKeyInfoCommand")
|
|
14
|
-
.sc(GetAccessKeyInfo)
|
|
14
|
+
.sc(GetAccessKeyInfo$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetCallerIdentity } from "../schemas/schemas_0";
|
|
4
|
+
import { GetCallerIdentity$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetCallerIdentityCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetCallerIdentityCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
|
|
13
13
|
.n("STSClient", "GetCallerIdentityCommand")
|
|
14
|
-
.sc(GetCallerIdentity)
|
|
14
|
+
.sc(GetCallerIdentity$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetDelegatedAccessToken } from "../schemas/schemas_0";
|
|
4
|
+
import { GetDelegatedAccessToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetDelegatedAccessTokenCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetDelegatedAccessTokenCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {})
|
|
13
13
|
.n("STSClient", "GetDelegatedAccessTokenCommand")
|
|
14
|
-
.sc(GetDelegatedAccessToken)
|
|
14
|
+
.sc(GetDelegatedAccessToken$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetFederationToken } from "../schemas/schemas_0";
|
|
4
|
+
import { GetFederationToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetFederationTokenCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetFederationTokenCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {})
|
|
13
13
|
.n("STSClient", "GetFederationTokenCommand")
|
|
14
|
-
.sc(GetFederationToken)
|
|
14
|
+
.sc(GetFederationToken$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetSessionToken } from "../schemas/schemas_0";
|
|
4
|
+
import { GetSessionToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetSessionTokenCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetSessionTokenCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {})
|
|
13
13
|
.n("STSClient", "GetSessionTokenCommand")
|
|
14
|
-
.sc(GetSessionToken)
|
|
14
|
+
.sc(GetSessionToken$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetWebIdentityToken } from "../schemas/schemas_0";
|
|
4
|
+
import { GetWebIdentityToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetWebIdentityTokenCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetWebIdentityTokenCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSSecurityTokenServiceV20110615", "GetWebIdentityToken", {})
|
|
13
13
|
.n("STSClient", "GetWebIdentityTokenCommand")
|
|
14
|
-
.sc(GetWebIdentityToken)
|
|
14
|
+
.sc(GetWebIdentityToken$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -14,9 +14,10 @@ const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
|
|
14
14
|
const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
|
|
15
15
|
const region = typeof _region === "function" ? await _region() : _region;
|
|
16
16
|
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
17
|
-
|
|
17
|
+
let stsDefaultRegion = "";
|
|
18
|
+
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)());
|
|
18
19
|
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
|
19
|
-
return
|
|
20
|
+
return resolvedRegion;
|
|
20
21
|
};
|
|
21
22
|
export const getDefaultRoleAssumer = (stsOptions, STSClient) => {
|
|
22
23
|
let stsClient;
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./STSClient";
|
|
2
2
|
export * from "./STS";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
4
5
|
export * from "./models/errors";
|
|
5
6
|
export * from "./defaultRoleAssumers";
|
|
6
7
|
export { STSServiceException } from "./models/STSServiceException";
|
|
@@ -29,12 +29,13 @@ export const getRuntimeConfig = (config) => {
|
|
|
29
29
|
},
|
|
30
30
|
],
|
|
31
31
|
logger: config?.logger ?? new NoOpLogger(),
|
|
32
|
-
protocol: config?.protocol ??
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
protocol: config?.protocol ?? AwsQueryProtocol,
|
|
33
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
34
|
+
defaultNamespace: "com.amazonaws.sts",
|
|
35
|
+
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
|
36
|
+
version: "2011-06-15",
|
|
37
|
+
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
38
|
+
},
|
|
38
39
|
serviceId: config?.serviceId ?? "STS",
|
|
39
40
|
urlParser: config?.urlParser ?? parseUrl,
|
|
40
41
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|