@aws-sdk/client-sts 3.490.0 → 3.495.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/STS.js +1 -27
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +1 -29
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +1 -28
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +1 -28
- package/dist-cjs/commands/GetCallerIdentityCommand.js +1 -28
- package/dist-cjs/commands/GetFederationTokenCommand.js +1 -29
- package/dist-cjs/commands/GetSessionTokenCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -11
- package/dist-cjs/defaultRoleAssumers.js +1 -28
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +254 -11
- package/dist-cjs/models/index.js +1 -4
- package/package.json +39 -39
package/dist-cjs/STS.js
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STS = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const AssumeRoleCommand_1 = require("./commands/AssumeRoleCommand");
|
|
6
|
-
const AssumeRoleWithSAMLCommand_1 = require("./commands/AssumeRoleWithSAMLCommand");
|
|
7
|
-
const AssumeRoleWithWebIdentityCommand_1 = require("./commands/AssumeRoleWithWebIdentityCommand");
|
|
8
|
-
const DecodeAuthorizationMessageCommand_1 = require("./commands/DecodeAuthorizationMessageCommand");
|
|
9
|
-
const GetAccessKeyInfoCommand_1 = require("./commands/GetAccessKeyInfoCommand");
|
|
10
|
-
const GetCallerIdentityCommand_1 = require("./commands/GetCallerIdentityCommand");
|
|
11
|
-
const GetFederationTokenCommand_1 = require("./commands/GetFederationTokenCommand");
|
|
12
|
-
const GetSessionTokenCommand_1 = require("./commands/GetSessionTokenCommand");
|
|
13
|
-
const STSClient_1 = require("./STSClient");
|
|
14
|
-
const commands = {
|
|
15
|
-
AssumeRoleCommand: AssumeRoleCommand_1.AssumeRoleCommand,
|
|
16
|
-
AssumeRoleWithSAMLCommand: AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand,
|
|
17
|
-
AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand,
|
|
18
|
-
DecodeAuthorizationMessageCommand: DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand,
|
|
19
|
-
GetAccessKeyInfoCommand: GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand,
|
|
20
|
-
GetCallerIdentityCommand: GetCallerIdentityCommand_1.GetCallerIdentityCommand,
|
|
21
|
-
GetFederationTokenCommand: GetFederationTokenCommand_1.GetFederationTokenCommand,
|
|
22
|
-
GetSessionTokenCommand: GetSessionTokenCommand_1.GetSessionTokenCommand,
|
|
23
|
-
};
|
|
24
|
-
class STS extends STSClient_1.STSClient {
|
|
25
|
-
}
|
|
26
|
-
exports.STS = STS;
|
|
27
|
-
(0, smithy_client_1.createAggregatedClient)(commands, STS);
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command
|
|
12
|
-
.classBuilder()
|
|
13
|
-
.ep({
|
|
14
|
-
...EndpointParameters_1.commonParams,
|
|
15
|
-
})
|
|
16
|
-
.m(function (Command, cs, config, o) {
|
|
17
|
-
return [
|
|
18
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
-
];
|
|
21
|
-
})
|
|
22
|
-
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {})
|
|
23
|
-
.n("STSClient", "AssumeRoleWithSAMLCommand")
|
|
24
|
-
.f(models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog)
|
|
25
|
-
.ser(Aws_query_1.se_AssumeRoleWithSAMLCommand)
|
|
26
|
-
.de(Aws_query_1.de_AssumeRoleWithSAMLCommand)
|
|
27
|
-
.build() {
|
|
28
|
-
}
|
|
29
|
-
exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
-
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
|
|
22
|
-
.n("STSClient", "DecodeAuthorizationMessageCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_query_1.se_DecodeAuthorizationMessageCommand)
|
|
25
|
-
.de(Aws_query_1.de_DecodeAuthorizationMessageCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAccessKeyInfoCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
-
class GetAccessKeyInfoCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
|
|
22
|
-
.n("STSClient", "GetAccessKeyInfoCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_query_1.se_GetAccessKeyInfoCommand)
|
|
25
|
-
.de(Aws_query_1.de_GetAccessKeyInfoCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCallerIdentityCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
-
class GetCallerIdentityCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
|
|
22
|
-
.n("STSClient", "GetCallerIdentityCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_query_1.se_GetCallerIdentityCommand)
|
|
25
|
-
.de(Aws_query_1.de_GetCallerIdentityCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.GetCallerIdentityCommand = GetCallerIdentityCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetFederationTokenCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class GetFederationTokenCommand extends smithy_client_1.Command
|
|
12
|
-
.classBuilder()
|
|
13
|
-
.ep({
|
|
14
|
-
...EndpointParameters_1.commonParams,
|
|
15
|
-
})
|
|
16
|
-
.m(function (Command, cs, config, o) {
|
|
17
|
-
return [
|
|
18
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
-
];
|
|
21
|
-
})
|
|
22
|
-
.s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {})
|
|
23
|
-
.n("STSClient", "GetFederationTokenCommand")
|
|
24
|
-
.f(void 0, models_0_1.GetFederationTokenResponseFilterSensitiveLog)
|
|
25
|
-
.ser(Aws_query_1.se_GetFederationTokenCommand)
|
|
26
|
-
.de(Aws_query_1.de_GetFederationTokenCommand)
|
|
27
|
-
.build() {
|
|
28
|
-
}
|
|
29
|
-
exports.GetFederationTokenCommand = GetFederationTokenCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetSessionTokenCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class GetSessionTokenCommand extends smithy_client_1.Command
|
|
12
|
-
.classBuilder()
|
|
13
|
-
.ep({
|
|
14
|
-
...EndpointParameters_1.commonParams,
|
|
15
|
-
})
|
|
16
|
-
.m(function (Command, cs, config, o) {
|
|
17
|
-
return [
|
|
18
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
-
];
|
|
21
|
-
})
|
|
22
|
-
.s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {})
|
|
23
|
-
.n("STSClient", "GetSessionTokenCommand")
|
|
24
|
-
.f(void 0, models_0_1.GetSessionTokenResponseFilterSensitiveLog)
|
|
25
|
-
.ser(Aws_query_1.se_GetSessionTokenCommand)
|
|
26
|
-
.de(Aws_query_1.de_GetSessionTokenCommand)
|
|
27
|
-
.build() {
|
|
28
|
-
}
|
|
29
|
-
exports.GetSessionTokenCommand = GetSessionTokenCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./AssumeRoleCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./AssumeRoleWithSAMLCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./AssumeRoleWithWebIdentityCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./DecodeAuthorizationMessageCommand"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./GetAccessKeyInfoCommand"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./GetCallerIdentityCommand"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./GetFederationTokenCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./GetSessionTokenCommand"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0;
|
|
4
|
-
const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers");
|
|
5
|
-
const STSClient_1 = require("./STSClient");
|
|
6
|
-
const getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
|
7
|
-
if (!customizations)
|
|
8
|
-
return baseCtor;
|
|
9
|
-
else
|
|
10
|
-
return class CustomizableSTSClient extends baseCtor {
|
|
11
|
-
constructor(config) {
|
|
12
|
-
super(config);
|
|
13
|
-
for (const customization of customizations) {
|
|
14
|
-
this.middlewareStack.use(customization);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins));
|
|
20
|
-
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
|
|
21
|
-
const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins));
|
|
22
|
-
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
23
|
-
const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
|
24
|
-
roleAssumer: (0, exports.getDefaultRoleAssumer)(input),
|
|
25
|
-
roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input),
|
|
26
|
-
...input,
|
|
27
|
-
});
|
|
28
|
-
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,255 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
|
|
22
|
+
// src/index.ts
|
|
23
|
+
var src_exports = {};
|
|
24
|
+
__export(src_exports, {
|
|
25
|
+
AssumeRoleWithSAMLCommand: () => AssumeRoleWithSAMLCommand,
|
|
26
|
+
ClientInputEndpointParameters: () => import_EndpointParameters7.ClientInputEndpointParameters,
|
|
27
|
+
DecodeAuthorizationMessageCommand: () => DecodeAuthorizationMessageCommand,
|
|
28
|
+
GetAccessKeyInfoCommand: () => GetAccessKeyInfoCommand,
|
|
29
|
+
GetCallerIdentityCommand: () => GetCallerIdentityCommand,
|
|
30
|
+
GetFederationTokenCommand: () => GetFederationTokenCommand,
|
|
31
|
+
GetSessionTokenCommand: () => GetSessionTokenCommand,
|
|
32
|
+
RuntimeExtension: () => import_runtimeExtensions.RuntimeExtension,
|
|
33
|
+
STS: () => STS,
|
|
34
|
+
STSServiceException: () => import_STSServiceException.STSServiceException,
|
|
35
|
+
decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
|
|
36
|
+
getDefaultRoleAssumer: () => getDefaultRoleAssumer,
|
|
37
|
+
getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(src_exports);
|
|
40
|
+
__reExport(src_exports, require("././STSClient"), module.exports);
|
|
41
|
+
|
|
42
|
+
// src/STS.ts
|
|
43
|
+
|
|
44
|
+
var import_AssumeRoleCommand = require("./commands/AssumeRoleCommand");
|
|
45
|
+
|
|
46
|
+
// src/commands/AssumeRoleWithSAMLCommand.ts
|
|
47
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
48
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
49
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
50
|
+
var import_types = require("@smithy/types");
|
|
51
|
+
var import_EndpointParameters = require("./endpoint/EndpointParameters");
|
|
52
|
+
var import_models_0 = require("./models/models_0");
|
|
53
|
+
var import_Aws_query = require("./protocols/Aws_query");
|
|
54
|
+
var _AssumeRoleWithSAMLCommand = class _AssumeRoleWithSAMLCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
55
|
+
...import_EndpointParameters.commonParams
|
|
56
|
+
}).m(function(Command, cs, config, o) {
|
|
57
|
+
return [
|
|
58
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
59
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
60
|
+
];
|
|
61
|
+
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").f(import_models_0.AssumeRoleWithSAMLRequestFilterSensitiveLog, import_models_0.AssumeRoleWithSAMLResponseFilterSensitiveLog).ser(import_Aws_query.se_AssumeRoleWithSAMLCommand).de(import_Aws_query.de_AssumeRoleWithSAMLCommand).build() {
|
|
62
|
+
};
|
|
63
|
+
__name(_AssumeRoleWithSAMLCommand, "AssumeRoleWithSAMLCommand");
|
|
64
|
+
var AssumeRoleWithSAMLCommand = _AssumeRoleWithSAMLCommand;
|
|
65
|
+
|
|
66
|
+
// src/STS.ts
|
|
67
|
+
var import_AssumeRoleWithWebIdentityCommand = require("./commands/AssumeRoleWithWebIdentityCommand");
|
|
68
|
+
|
|
69
|
+
// src/commands/DecodeAuthorizationMessageCommand.ts
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
var import_EndpointParameters2 = require("./endpoint/EndpointParameters");
|
|
75
|
+
var import_Aws_query2 = require("./protocols/Aws_query");
|
|
76
|
+
var _DecodeAuthorizationMessageCommand = class _DecodeAuthorizationMessageCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
77
|
+
...import_EndpointParameters2.commonParams
|
|
78
|
+
}).m(function(Command, cs, config, o) {
|
|
79
|
+
return [
|
|
80
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
81
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
82
|
+
];
|
|
83
|
+
}).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").f(void 0, void 0).ser(import_Aws_query2.se_DecodeAuthorizationMessageCommand).de(import_Aws_query2.de_DecodeAuthorizationMessageCommand).build() {
|
|
84
|
+
};
|
|
85
|
+
__name(_DecodeAuthorizationMessageCommand, "DecodeAuthorizationMessageCommand");
|
|
86
|
+
var DecodeAuthorizationMessageCommand = _DecodeAuthorizationMessageCommand;
|
|
87
|
+
|
|
88
|
+
// src/commands/GetAccessKeyInfoCommand.ts
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
var import_EndpointParameters3 = require("./endpoint/EndpointParameters");
|
|
94
|
+
var import_Aws_query3 = require("./protocols/Aws_query");
|
|
95
|
+
var _GetAccessKeyInfoCommand = class _GetAccessKeyInfoCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
96
|
+
...import_EndpointParameters3.commonParams
|
|
97
|
+
}).m(function(Command, cs, config, o) {
|
|
98
|
+
return [
|
|
99
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
100
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
101
|
+
];
|
|
102
|
+
}).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").f(void 0, void 0).ser(import_Aws_query3.se_GetAccessKeyInfoCommand).de(import_Aws_query3.de_GetAccessKeyInfoCommand).build() {
|
|
103
|
+
};
|
|
104
|
+
__name(_GetAccessKeyInfoCommand, "GetAccessKeyInfoCommand");
|
|
105
|
+
var GetAccessKeyInfoCommand = _GetAccessKeyInfoCommand;
|
|
106
|
+
|
|
107
|
+
// src/commands/GetCallerIdentityCommand.ts
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
var import_EndpointParameters4 = require("./endpoint/EndpointParameters");
|
|
113
|
+
var import_Aws_query4 = require("./protocols/Aws_query");
|
|
114
|
+
var _GetCallerIdentityCommand = class _GetCallerIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
115
|
+
...import_EndpointParameters4.commonParams
|
|
116
|
+
}).m(function(Command, cs, config, o) {
|
|
117
|
+
return [
|
|
118
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
119
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
120
|
+
];
|
|
121
|
+
}).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").f(void 0, void 0).ser(import_Aws_query4.se_GetCallerIdentityCommand).de(import_Aws_query4.de_GetCallerIdentityCommand).build() {
|
|
122
|
+
};
|
|
123
|
+
__name(_GetCallerIdentityCommand, "GetCallerIdentityCommand");
|
|
124
|
+
var GetCallerIdentityCommand = _GetCallerIdentityCommand;
|
|
125
|
+
|
|
126
|
+
// src/commands/GetFederationTokenCommand.ts
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
var import_EndpointParameters5 = require("./endpoint/EndpointParameters");
|
|
132
|
+
var import_models_02 = require("./models/models_0");
|
|
133
|
+
var import_Aws_query5 = require("./protocols/Aws_query");
|
|
134
|
+
var _GetFederationTokenCommand = class _GetFederationTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
135
|
+
...import_EndpointParameters5.commonParams
|
|
136
|
+
}).m(function(Command, cs, config, o) {
|
|
137
|
+
return [
|
|
138
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
139
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
140
|
+
];
|
|
141
|
+
}).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").f(void 0, import_models_02.GetFederationTokenResponseFilterSensitiveLog).ser(import_Aws_query5.se_GetFederationTokenCommand).de(import_Aws_query5.de_GetFederationTokenCommand).build() {
|
|
142
|
+
};
|
|
143
|
+
__name(_GetFederationTokenCommand, "GetFederationTokenCommand");
|
|
144
|
+
var GetFederationTokenCommand = _GetFederationTokenCommand;
|
|
145
|
+
|
|
146
|
+
// src/commands/GetSessionTokenCommand.ts
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
var import_EndpointParameters6 = require("./endpoint/EndpointParameters");
|
|
152
|
+
var import_models_03 = require("./models/models_0");
|
|
153
|
+
var import_Aws_query6 = require("./protocols/Aws_query");
|
|
154
|
+
var _GetSessionTokenCommand = class _GetSessionTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
155
|
+
...import_EndpointParameters6.commonParams
|
|
156
|
+
}).m(function(Command, cs, config, o) {
|
|
157
|
+
return [
|
|
158
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
159
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
160
|
+
];
|
|
161
|
+
}).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").f(void 0, import_models_03.GetSessionTokenResponseFilterSensitiveLog).ser(import_Aws_query6.se_GetSessionTokenCommand).de(import_Aws_query6.de_GetSessionTokenCommand).build() {
|
|
162
|
+
};
|
|
163
|
+
__name(_GetSessionTokenCommand, "GetSessionTokenCommand");
|
|
164
|
+
var GetSessionTokenCommand = _GetSessionTokenCommand;
|
|
165
|
+
|
|
166
|
+
// src/STS.ts
|
|
167
|
+
var import_STSClient = require("././STSClient");
|
|
168
|
+
var commands = {
|
|
169
|
+
AssumeRoleCommand: import_AssumeRoleCommand.AssumeRoleCommand,
|
|
170
|
+
AssumeRoleWithSAMLCommand,
|
|
171
|
+
AssumeRoleWithWebIdentityCommand: import_AssumeRoleWithWebIdentityCommand.AssumeRoleWithWebIdentityCommand,
|
|
172
|
+
DecodeAuthorizationMessageCommand,
|
|
173
|
+
GetAccessKeyInfoCommand,
|
|
174
|
+
GetCallerIdentityCommand,
|
|
175
|
+
GetFederationTokenCommand,
|
|
176
|
+
GetSessionTokenCommand
|
|
177
|
+
};
|
|
178
|
+
var _STS = class _STS extends import_STSClient.STSClient {
|
|
179
|
+
};
|
|
180
|
+
__name(_STS, "STS");
|
|
181
|
+
var STS = _STS;
|
|
182
|
+
(0, import_smithy_client.createAggregatedClient)(commands, STS);
|
|
183
|
+
|
|
184
|
+
// src/index.ts
|
|
185
|
+
var import_EndpointParameters7 = require("./endpoint/EndpointParameters");
|
|
186
|
+
var import_runtimeExtensions = require("././runtimeExtensions");
|
|
187
|
+
|
|
188
|
+
// src/commands/index.ts
|
|
189
|
+
var commands_exports = {};
|
|
190
|
+
__export(commands_exports, {
|
|
191
|
+
AssumeRoleWithSAMLCommand: () => AssumeRoleWithSAMLCommand,
|
|
192
|
+
DecodeAuthorizationMessageCommand: () => DecodeAuthorizationMessageCommand,
|
|
193
|
+
GetAccessKeyInfoCommand: () => GetAccessKeyInfoCommand,
|
|
194
|
+
GetCallerIdentityCommand: () => GetCallerIdentityCommand,
|
|
195
|
+
GetFederationTokenCommand: () => GetFederationTokenCommand,
|
|
196
|
+
GetSessionTokenCommand: () => GetSessionTokenCommand
|
|
197
|
+
});
|
|
198
|
+
__reExport(commands_exports, require("./commands/AssumeRoleCommand"));
|
|
199
|
+
__reExport(commands_exports, require("./commands/AssumeRoleWithWebIdentityCommand"));
|
|
200
|
+
|
|
201
|
+
// src/index.ts
|
|
202
|
+
__reExport(src_exports, commands_exports, module.exports);
|
|
203
|
+
|
|
204
|
+
// src/models/index.ts
|
|
205
|
+
var models_exports = {};
|
|
206
|
+
__reExport(models_exports, require("./models/models_0"));
|
|
207
|
+
|
|
208
|
+
// src/index.ts
|
|
209
|
+
__reExport(src_exports, models_exports, module.exports);
|
|
210
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
211
|
+
|
|
212
|
+
// src/defaultRoleAssumers.ts
|
|
213
|
+
var import_defaultStsRoleAssumers = require("././defaultStsRoleAssumers");
|
|
214
|
+
var import_STSClient2 = require("././STSClient");
|
|
215
|
+
var getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => {
|
|
216
|
+
var _a;
|
|
217
|
+
if (!customizations)
|
|
218
|
+
return baseCtor;
|
|
219
|
+
else
|
|
220
|
+
return _a = class extends baseCtor {
|
|
221
|
+
constructor(config) {
|
|
222
|
+
super(config);
|
|
223
|
+
for (const customization of customizations) {
|
|
224
|
+
this.middlewareStack.use(customization);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}, __name(_a, "CustomizableSTSClient"), _a;
|
|
228
|
+
}, "getCustomizableStsClientCtor");
|
|
229
|
+
var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => (0, import_defaultStsRoleAssumers.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumer");
|
|
230
|
+
var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => (0, import_defaultStsRoleAssumers.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
|
|
231
|
+
var decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({
|
|
232
|
+
roleAssumer: getDefaultRoleAssumer(input),
|
|
233
|
+
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
|
|
234
|
+
...input
|
|
235
|
+
}), "decorateDefaultCredentialProvider");
|
|
236
|
+
|
|
237
|
+
// src/index.ts
|
|
238
|
+
var import_STSServiceException = require("./models/STSServiceException");
|
|
239
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
240
|
+
0 && (module.exports = {
|
|
241
|
+
AssumeRoleWithSAMLCommand,
|
|
242
|
+
ClientInputEndpointParameters,
|
|
243
|
+
DecodeAuthorizationMessageCommand,
|
|
244
|
+
GetAccessKeyInfoCommand,
|
|
245
|
+
GetCallerIdentityCommand,
|
|
246
|
+
GetFederationTokenCommand,
|
|
247
|
+
GetSessionTokenCommand,
|
|
248
|
+
RuntimeExtension,
|
|
249
|
+
STS,
|
|
250
|
+
STSServiceException,
|
|
251
|
+
decorateDefaultCredentialProvider,
|
|
252
|
+
getDefaultRoleAssumer,
|
|
253
|
+
getDefaultRoleAssumerWithWebIdentity,
|
|
254
|
+
...require("././STSClient")
|
|
255
|
+
});
|
package/dist-cjs/models/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -22,47 +22,47 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-middleware": "^2.0
|
|
59
|
-
"@smithy/util-retry": "^2.0
|
|
60
|
-
"@smithy/util-utf8": "^2.0
|
|
25
|
+
"@aws-sdk/core": "3.495.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-middleware": "^2.1.0",
|
|
59
|
+
"@smithy/util-retry": "^2.1.0",
|
|
60
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
61
61
|
"fast-xml-parser": "4.2.5",
|
|
62
62
|
"tslib": "^2.5.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
65
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
66
66
|
"@tsconfig/node14": "1.0.3",
|
|
67
67
|
"@types/node": "^14.14.31",
|
|
68
68
|
"concurrently": "7.0.0",
|