@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
|
@@ -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 { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_AssumeRoleWithSAMLCommand, se_AssumeRoleWithSAMLCommand } from "../protocols/Aws_query";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class AssumeRoleWithSAMLCommand 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 = "AssumeRoleWithSAMLCommand";
|
|
29
|
-
const handlerExecutionContext = {
|
|
30
|
-
logger,
|
|
31
|
-
clientName,
|
|
32
|
-
commandName,
|
|
33
|
-
inputFilterSensitiveLog: AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog: AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
|
35
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
37
|
-
operation: "AssumeRoleWithSAML",
|
|
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_AssumeRoleWithSAMLCommand(input, context);
|
|
45
|
-
}
|
|
46
|
-
deserialize(output, context) {
|
|
47
|
-
return de_AssumeRoleWithSAMLCommand(output, context);
|
|
48
|
-
}
|
|
8
|
+
export class AssumeRoleWithSAMLCommand 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", "AssumeRoleWithSAML", {})
|
|
20
|
+
.n("STSClient", "AssumeRoleWithSAMLCommand")
|
|
21
|
+
.f(AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_AssumeRoleWithSAMLCommand)
|
|
23
|
+
.de(de_AssumeRoleWithSAMLCommand)
|
|
24
|
+
.build() {
|
|
49
25
|
}
|
|
@@ -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 { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_AssumeRoleWithWebIdentityCommand, se_AssumeRoleWithWebIdentityCommand } from "../protocols/Aws_query";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class AssumeRoleWithWebIdentityCommand 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 = "AssumeRoleWithWebIdentityCommand";
|
|
29
|
-
const handlerExecutionContext = {
|
|
30
|
-
logger,
|
|
31
|
-
clientName,
|
|
32
|
-
commandName,
|
|
33
|
-
inputFilterSensitiveLog: AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog: AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
|
35
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
37
|
-
operation: "AssumeRoleWithWebIdentity",
|
|
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_AssumeRoleWithWebIdentityCommand(input, context);
|
|
45
|
-
}
|
|
46
|
-
deserialize(output, context) {
|
|
47
|
-
return de_AssumeRoleWithWebIdentityCommand(output, context);
|
|
48
|
-
}
|
|
8
|
+
export class AssumeRoleWithWebIdentityCommand 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", "AssumeRoleWithWebIdentity", {})
|
|
20
|
+
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
|
21
|
+
.f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_AssumeRoleWithWebIdentityCommand)
|
|
23
|
+
.de(de_AssumeRoleWithWebIdentityCommand)
|
|
24
|
+
.build() {
|
|
49
25
|
}
|
|
@@ -1,48 +1,24 @@
|
|
|
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 { de_DecodeAuthorizationMessageCommand, se_DecodeAuthorizationMessageCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class DecodeAuthorizationMessageCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "STSClient";
|
|
27
|
-
const commandName = "DecodeAuthorizationMessageCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: (_) => _,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
36
|
-
operation: "DecodeAuthorizationMessage",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const { requestHandler } = configuration;
|
|
40
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
-
}
|
|
42
|
-
serialize(input, context) {
|
|
43
|
-
return se_DecodeAuthorizationMessageCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_DecodeAuthorizationMessageCommand(output, context);
|
|
47
|
-
}
|
|
7
|
+
export class DecodeAuthorizationMessageCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
|
|
19
|
+
.n("STSClient", "DecodeAuthorizationMessageCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DecodeAuthorizationMessageCommand)
|
|
22
|
+
.de(de_DecodeAuthorizationMessageCommand)
|
|
23
|
+
.build() {
|
|
48
24
|
}
|
|
@@ -1,48 +1,24 @@
|
|
|
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 { de_GetAccessKeyInfoCommand, se_GetAccessKeyInfoCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class GetAccessKeyInfoCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "STSClient";
|
|
27
|
-
const commandName = "GetAccessKeyInfoCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: (_) => _,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
36
|
-
operation: "GetAccessKeyInfo",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const { requestHandler } = configuration;
|
|
40
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
-
}
|
|
42
|
-
serialize(input, context) {
|
|
43
|
-
return se_GetAccessKeyInfoCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_GetAccessKeyInfoCommand(output, context);
|
|
47
|
-
}
|
|
7
|
+
export class GetAccessKeyInfoCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
|
|
19
|
+
.n("STSClient", "GetAccessKeyInfoCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetAccessKeyInfoCommand)
|
|
22
|
+
.de(de_GetAccessKeyInfoCommand)
|
|
23
|
+
.build() {
|
|
48
24
|
}
|
|
@@ -1,48 +1,24 @@
|
|
|
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 { de_GetCallerIdentityCommand, se_GetCallerIdentityCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class GetCallerIdentityCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "STSClient";
|
|
27
|
-
const commandName = "GetCallerIdentityCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: (_) => _,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
36
|
-
operation: "GetCallerIdentity",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const { requestHandler } = configuration;
|
|
40
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
-
}
|
|
42
|
-
serialize(input, context) {
|
|
43
|
-
return se_GetCallerIdentityCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_GetCallerIdentityCommand(output, context);
|
|
47
|
-
}
|
|
7
|
+
export class GetCallerIdentityCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
|
|
19
|
+
.n("STSClient", "GetCallerIdentityCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetCallerIdentityCommand)
|
|
22
|
+
.de(de_GetCallerIdentityCommand)
|
|
23
|
+
.build() {
|
|
48
24
|
}
|
|
@@ -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 { GetFederationTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_GetFederationTokenCommand, se_GetFederationTokenCommand } from "../protocols/Aws_query";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class GetFederationTokenCommand 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 = "GetFederationTokenCommand";
|
|
29
|
-
const handlerExecutionContext = {
|
|
30
|
-
logger,
|
|
31
|
-
clientName,
|
|
32
|
-
commandName,
|
|
33
|
-
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog: GetFederationTokenResponseFilterSensitiveLog,
|
|
35
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
37
|
-
operation: "GetFederationToken",
|
|
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_GetFederationTokenCommand(input, context);
|
|
45
|
-
}
|
|
46
|
-
deserialize(output, context) {
|
|
47
|
-
return de_GetFederationTokenCommand(output, context);
|
|
48
|
-
}
|
|
8
|
+
export class GetFederationTokenCommand 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", "GetFederationToken", {})
|
|
20
|
+
.n("STSClient", "GetFederationTokenCommand")
|
|
21
|
+
.f(void 0, GetFederationTokenResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_GetFederationTokenCommand)
|
|
23
|
+
.de(de_GetFederationTokenCommand)
|
|
24
|
+
.build() {
|
|
49
25
|
}
|
|
@@ -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 { GetSessionTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_GetSessionTokenCommand, se_GetSessionTokenCommand } from "../protocols/Aws_query";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class GetSessionTokenCommand 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 = "GetSessionTokenCommand";
|
|
29
|
-
const handlerExecutionContext = {
|
|
30
|
-
logger,
|
|
31
|
-
clientName,
|
|
32
|
-
commandName,
|
|
33
|
-
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog: GetSessionTokenResponseFilterSensitiveLog,
|
|
35
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
-
service: "AWSSecurityTokenServiceV20110615",
|
|
37
|
-
operation: "GetSessionToken",
|
|
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_GetSessionTokenCommand(input, context);
|
|
45
|
-
}
|
|
46
|
-
deserialize(output, context) {
|
|
47
|
-
return de_GetSessionTokenCommand(output, context);
|
|
48
|
-
}
|
|
8
|
+
export class GetSessionTokenCommand 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", "GetSessionToken", {})
|
|
20
|
+
.n("STSClient", "GetSessionTokenCommand")
|
|
21
|
+
.f(void 0, GetSessionTokenResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_GetSessionTokenCommand)
|
|
23
|
+
.de(de_GetSessionTokenCommand)
|
|
24
|
+
.build() {
|
|
49
25
|
}
|
|
@@ -7,3 +7,10 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
7
7
|
defaultSigningName: "sts",
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
export const commonParams = {
|
|
11
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface AssumeRoleCommandInput extends AssumeRoleRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const AssumeRoleCommand_base: {
|
|
24
|
+
new (input: AssumeRoleCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Returns a set of temporary security credentials that you can use to access Amazon Web Services
|
|
@@ -249,23 +252,5 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB
|
|
|
249
252
|
* ```
|
|
250
253
|
*
|
|
251
254
|
*/
|
|
252
|
-
export declare class AssumeRoleCommand extends
|
|
253
|
-
readonly input: AssumeRoleCommandInput;
|
|
254
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
255
|
-
/**
|
|
256
|
-
* @public
|
|
257
|
-
*/
|
|
258
|
-
constructor(input: AssumeRoleCommandInput);
|
|
259
|
-
/**
|
|
260
|
-
* @internal
|
|
261
|
-
*/
|
|
262
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleCommandInput, AssumeRoleCommandOutput>;
|
|
263
|
-
/**
|
|
264
|
-
* @internal
|
|
265
|
-
*/
|
|
266
|
-
private serialize;
|
|
267
|
-
/**
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
270
|
-
private deserialize;
|
|
255
|
+
export declare class AssumeRoleCommand extends AssumeRoleCommand_base {
|
|
271
256
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLReques
|
|
|
21
20
|
*/
|
|
22
21
|
export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const AssumeRoleWithSAMLCommand_base: {
|
|
24
|
+
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Returns a set of temporary security credentials for users who have been authenticated
|
|
@@ -274,23 +277,5 @@ export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLRespo
|
|
|
274
277
|
* ```
|
|
275
278
|
*
|
|
276
279
|
*/
|
|
277
|
-
export declare class AssumeRoleWithSAMLCommand extends
|
|
278
|
-
readonly input: AssumeRoleWithSAMLCommandInput;
|
|
279
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
280
|
-
/**
|
|
281
|
-
* @public
|
|
282
|
-
*/
|
|
283
|
-
constructor(input: AssumeRoleWithSAMLCommandInput);
|
|
284
|
-
/**
|
|
285
|
-
* @internal
|
|
286
|
-
*/
|
|
287
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput>;
|
|
288
|
-
/**
|
|
289
|
-
* @internal
|
|
290
|
-
*/
|
|
291
|
-
private serialize;
|
|
292
|
-
/**
|
|
293
|
-
* @internal
|
|
294
|
-
*/
|
|
295
|
-
private deserialize;
|
|
280
|
+
export declare class AssumeRoleWithSAMLCommand extends AssumeRoleWithSAMLCommand_base {
|
|
296
281
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWeb
|
|
|
21
20
|
*/
|
|
22
21
|
export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
24
|
+
new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Returns a set of temporary security credentials for users who have been authenticated in
|
|
@@ -283,23 +286,5 @@ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWe
|
|
|
283
286
|
* ```
|
|
284
287
|
*
|
|
285
288
|
*/
|
|
286
|
-
export declare class AssumeRoleWithWebIdentityCommand extends
|
|
287
|
-
readonly input: AssumeRoleWithWebIdentityCommandInput;
|
|
288
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
289
|
-
/**
|
|
290
|
-
* @public
|
|
291
|
-
*/
|
|
292
|
-
constructor(input: AssumeRoleWithWebIdentityCommandInput);
|
|
293
|
-
/**
|
|
294
|
-
* @internal
|
|
295
|
-
*/
|
|
296
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput>;
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
private serialize;
|
|
301
|
-
/**
|
|
302
|
-
* @internal
|
|
303
|
-
*/
|
|
304
|
-
private deserialize;
|
|
289
|
+
export declare class AssumeRoleWithWebIdentityCommand extends AssumeRoleWithWebIdentityCommand_base {
|
|
305
290
|
}
|