@aws-sdk/client-sts 3.477.0 → 3.481.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/commands/AssumeRoleCommand.js +18 -42
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +18 -42
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +18 -42
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +18 -42
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +18 -42
- package/dist-cjs/commands/GetCallerIdentityCommand.js +18 -42
- package/dist-cjs/commands/GetFederationTokenCommand.js +18 -42
- package/dist-cjs/commands/GetSessionTokenCommand.js +18 -42
- package/dist-cjs/endpoint/EndpointParameters.js +8 -1
- package/dist-es/commands/AssumeRoleCommand.js +18 -42
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +18 -42
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +18 -42
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +18 -42
- package/dist-es/commands/GetAccessKeyInfoCommand.js +18 -42
- package/dist-es/commands/GetCallerIdentityCommand.js +18 -42
- package/dist-es/commands/GetFederationTokenCommand.js +18 -42
- package/dist-es/commands/GetSessionTokenCommand.js +18 -42
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-types/commands/AssumeRoleCommand.d.ts +6 -21
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +6 -21
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -21
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +6 -21
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +6 -21
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +6 -21
- package/dist-types/commands/GetFederationTokenCommand.d.ts +6 -21
- package/dist-types/commands/GetSessionTokenCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -0
- package/package.json +10 -10
|
@@ -5,49 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class AssumeRoleCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
-
const { logger } = configuration;
|
|
30
|
-
const clientName = "STSClient";
|
|
31
|
-
const commandName = "AssumeRoleCommand";
|
|
32
|
-
const handlerExecutionContext = {
|
|
33
|
-
logger,
|
|
34
|
-
clientName,
|
|
35
|
-
commandName,
|
|
36
|
-
inputFilterSensitiveLog: (_) => _,
|
|
37
|
-
outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog,
|
|
38
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
39
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
40
|
-
operation: "AssumeRole",
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
const { requestHandler } = configuration;
|
|
44
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
45
|
-
}
|
|
46
|
-
serialize(input, context) {
|
|
47
|
-
return (0, Aws_query_1.se_AssumeRoleCommand)(input, context);
|
|
48
|
-
}
|
|
49
|
-
deserialize(output, context) {
|
|
50
|
-
return (0, Aws_query_1.de_AssumeRoleCommand)(output, context);
|
|
51
|
-
}
|
|
11
|
+
class AssumeRoleCommand 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", "AssumeRole", {})
|
|
23
|
+
.n("STSClient", "AssumeRoleCommand")
|
|
24
|
+
.f(void 0, models_0_1.AssumeRoleResponseFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_query_1.se_AssumeRoleCommand)
|
|
26
|
+
.de(Aws_query_1.de_AssumeRoleCommand)
|
|
27
|
+
.build() {
|
|
52
28
|
}
|
|
53
29
|
exports.AssumeRoleCommand = AssumeRoleCommand;
|
|
@@ -5,49 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
-
const { logger } = configuration;
|
|
30
|
-
const clientName = "STSClient";
|
|
31
|
-
const commandName = "AssumeRoleWithSAMLCommand";
|
|
32
|
-
const handlerExecutionContext = {
|
|
33
|
-
logger,
|
|
34
|
-
clientName,
|
|
35
|
-
commandName,
|
|
36
|
-
inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
|
37
|
-
outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
|
38
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
39
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
40
|
-
operation: "AssumeRoleWithSAML",
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
const { requestHandler } = configuration;
|
|
44
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
45
|
-
}
|
|
46
|
-
serialize(input, context) {
|
|
47
|
-
return (0, Aws_query_1.se_AssumeRoleWithSAMLCommand)(input, context);
|
|
48
|
-
}
|
|
49
|
-
deserialize(output, context) {
|
|
50
|
-
return (0, Aws_query_1.de_AssumeRoleWithSAMLCommand)(output, context);
|
|
51
|
-
}
|
|
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() {
|
|
52
28
|
}
|
|
53
29
|
exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand;
|
|
@@ -5,49 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
-
const { logger } = configuration;
|
|
30
|
-
const clientName = "STSClient";
|
|
31
|
-
const commandName = "AssumeRoleWithWebIdentityCommand";
|
|
32
|
-
const handlerExecutionContext = {
|
|
33
|
-
logger,
|
|
34
|
-
clientName,
|
|
35
|
-
commandName,
|
|
36
|
-
inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
|
37
|
-
outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
|
38
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
39
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
40
|
-
operation: "AssumeRoleWithWebIdentity",
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
const { requestHandler } = configuration;
|
|
44
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
45
|
-
}
|
|
46
|
-
serialize(input, context) {
|
|
47
|
-
return (0, Aws_query_1.se_AssumeRoleWithWebIdentityCommand)(input, context);
|
|
48
|
-
}
|
|
49
|
-
deserialize(output, context) {
|
|
50
|
-
return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context);
|
|
51
|
-
}
|
|
11
|
+
class AssumeRoleWithWebIdentityCommand 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", "AssumeRoleWithWebIdentity", {})
|
|
23
|
+
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
|
24
|
+
.f(models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_query_1.se_AssumeRoleWithWebIdentityCommand)
|
|
26
|
+
.de(Aws_query_1.de_AssumeRoleWithWebIdentityCommand)
|
|
27
|
+
.build() {
|
|
52
28
|
}
|
|
53
29
|
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
|
|
@@ -5,48 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
-
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "STSClient";
|
|
30
|
-
const commandName = "DecodeAuthorizationMessageCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
39
|
-
operation: "DecodeAuthorizationMessage",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_query_1.se_DecodeAuthorizationMessageCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_query_1.de_DecodeAuthorizationMessageCommand)(output, context);
|
|
50
|
-
}
|
|
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() {
|
|
51
27
|
}
|
|
52
28
|
exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand;
|
|
@@ -5,48 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
-
class GetAccessKeyInfoCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "STSClient";
|
|
30
|
-
const commandName = "GetAccessKeyInfoCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
39
|
-
operation: "GetAccessKeyInfo",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_query_1.se_GetAccessKeyInfoCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_query_1.de_GetAccessKeyInfoCommand)(output, context);
|
|
50
|
-
}
|
|
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() {
|
|
51
27
|
}
|
|
52
28
|
exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand;
|
|
@@ -5,48 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
-
class GetCallerIdentityCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "STSClient";
|
|
30
|
-
const commandName = "GetCallerIdentityCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
39
|
-
operation: "GetCallerIdentity",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_query_1.se_GetCallerIdentityCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_query_1.de_GetCallerIdentityCommand)(output, context);
|
|
50
|
-
}
|
|
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() {
|
|
51
27
|
}
|
|
52
28
|
exports.GetCallerIdentityCommand = GetCallerIdentityCommand;
|
|
@@ -5,49 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class GetFederationTokenCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
-
const { logger } = configuration;
|
|
30
|
-
const clientName = "STSClient";
|
|
31
|
-
const commandName = "GetFederationTokenCommand";
|
|
32
|
-
const handlerExecutionContext = {
|
|
33
|
-
logger,
|
|
34
|
-
clientName,
|
|
35
|
-
commandName,
|
|
36
|
-
inputFilterSensitiveLog: (_) => _,
|
|
37
|
-
outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog,
|
|
38
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
39
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
40
|
-
operation: "GetFederationToken",
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
const { requestHandler } = configuration;
|
|
44
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
45
|
-
}
|
|
46
|
-
serialize(input, context) {
|
|
47
|
-
return (0, Aws_query_1.se_GetFederationTokenCommand)(input, context);
|
|
48
|
-
}
|
|
49
|
-
deserialize(output, context) {
|
|
50
|
-
return (0, Aws_query_1.de_GetFederationTokenCommand)(output, context);
|
|
51
|
-
}
|
|
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() {
|
|
52
28
|
}
|
|
53
29
|
exports.GetFederationTokenCommand = GetFederationTokenCommand;
|
|
@@ -5,49 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
11
|
-
class GetSessionTokenCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
-
const { logger } = configuration;
|
|
30
|
-
const clientName = "STSClient";
|
|
31
|
-
const commandName = "GetSessionTokenCommand";
|
|
32
|
-
const handlerExecutionContext = {
|
|
33
|
-
logger,
|
|
34
|
-
clientName,
|
|
35
|
-
commandName,
|
|
36
|
-
inputFilterSensitiveLog: (_) => _,
|
|
37
|
-
outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog,
|
|
38
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
39
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
40
|
-
operation: "GetSessionToken",
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
const { requestHandler } = configuration;
|
|
44
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
45
|
-
}
|
|
46
|
-
serialize(input, context) {
|
|
47
|
-
return (0, Aws_query_1.se_GetSessionTokenCommand)(input, context);
|
|
48
|
-
}
|
|
49
|
-
deserialize(output, context) {
|
|
50
|
-
return (0, Aws_query_1.de_GetSessionTokenCommand)(output, context);
|
|
51
|
-
}
|
|
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() {
|
|
52
28
|
}
|
|
53
29
|
exports.GetSessionTokenCommand = GetSessionTokenCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -11,3 +11,10 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
14
|
+
exports.commonParams = {
|
|
15
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
@@ -1,49 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { AssumeRoleResponseFilterSensitiveLog } from "../models/models_0";
|
|
6
6
|
import { de_AssumeRoleCommand, se_AssumeRoleCommand } from "../protocols/Aws_query";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class AssumeRoleCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
-
const { logger } = configuration;
|
|
27
|
-
const clientName = "STSClient";
|
|
28
|
-
const commandName = "AssumeRoleCommand";
|
|
29
|
-
const handlerExecutionContext = {
|
|
30
|
-
logger,
|
|
31
|
-
clientName,
|
|
32
|
-
commandName,
|
|
33
|
-
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog: AssumeRoleResponseFilterSensitiveLog,
|
|
35
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
37
|
-
operation: "AssumeRole",
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
const { requestHandler } = configuration;
|
|
41
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
42
|
-
}
|
|
43
|
-
serialize(input, context) {
|
|
44
|
-
return se_AssumeRoleCommand(input, context);
|
|
45
|
-
}
|
|
46
|
-
deserialize(output, context) {
|
|
47
|
-
return de_AssumeRoleCommand(output, context);
|
|
48
|
-
}
|
|
8
|
+
export class AssumeRoleCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
|
20
|
+
.n("STSClient", "AssumeRoleCommand")
|
|
21
|
+
.f(void 0, AssumeRoleResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_AssumeRoleCommand)
|
|
23
|
+
.de(de_AssumeRoleCommand)
|
|
24
|
+
.build() {
|
|
49
25
|
}
|