@aws-sdk/client-sts 3.186.0 → 3.190.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sts
9
+
10
+
11
+
12
+
13
+
14
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-sts
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/client-sts
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_queryGetSessionTokenCommand = exports.deserializeAws_queryGetFederationTokenCommand = exports.deserializeAws_queryGetCallerIdentityCommand = exports.deserializeAws_queryGetAccessKeyInfoCommand = exports.deserializeAws_queryDecodeAuthorizationMessageCommand = exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = exports.deserializeAws_queryAssumeRoleWithSAMLCommand = exports.deserializeAws_queryAssumeRoleCommand = exports.serializeAws_queryGetSessionTokenCommand = exports.serializeAws_queryGetFederationTokenCommand = exports.serializeAws_queryGetCallerIdentityCommand = exports.serializeAws_queryGetAccessKeyInfoCommand = exports.serializeAws_queryDecodeAuthorizationMessageCommand = exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = exports.serializeAws_queryAssumeRoleWithSAMLCommand = exports.serializeAws_queryAssumeRoleCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const entities_1 = require("entities");
7
6
  const fast_xml_parser_1 = require("fast-xml-parser");
8
7
  const models_0_1 = require("../models/models_0");
9
8
  const STSServiceException_1 = require("../models/STSServiceException");
@@ -1023,13 +1022,18 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1023
1022
  };
1024
1023
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1025
1024
  if (encoded.length) {
1026
- const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
1025
+ const parser = new fast_xml_parser_1.XMLParser({
1027
1026
  attributeNamePrefix: "",
1027
+ htmlEntities: true,
1028
1028
  ignoreAttributes: false,
1029
- parseNodeValue: false,
1029
+ ignoreDeclaration: true,
1030
+ parseTagValue: false,
1030
1031
  trimValues: false,
1031
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
1032
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
1032
1033
  });
1034
+ parser.addEntity("#xD", "\r");
1035
+ parser.addEntity("#10", "\n");
1036
+ const parsedObj = parser.parse(encoded);
1033
1037
  const textNodeName = "#text";
1034
1038
  const key = Object.keys(parsedObj)[0];
1035
1039
  const parsedObjToReturn = parsedObj[key];
package/dist-es/STS.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
3
2
  import { AssumeRoleWithSAMLCommand, } from "./commands/AssumeRoleWithSAMLCommand";
4
3
  import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
@@ -8,123 +7,117 @@ import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand";
8
7
  import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
9
8
  import { GetSessionTokenCommand, } from "./commands/GetSessionTokenCommand";
10
9
  import { STSClient } from "./STSClient";
11
- var STS = (function (_super) {
12
- __extends(STS, _super);
13
- function STS() {
14
- return _super !== null && _super.apply(this, arguments) || this;
15
- }
16
- STS.prototype.assumeRole = function (args, optionsOrCb, cb) {
17
- var command = new AssumeRoleCommand(args);
10
+ export class STS extends STSClient {
11
+ assumeRole(args, optionsOrCb, cb) {
12
+ const command = new AssumeRoleCommand(args);
18
13
  if (typeof optionsOrCb === "function") {
19
14
  this.send(command, optionsOrCb);
20
15
  }
21
16
  else if (typeof cb === "function") {
22
17
  if (typeof optionsOrCb !== "object")
23
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
18
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
19
  this.send(command, optionsOrCb || {}, cb);
25
20
  }
26
21
  else {
27
22
  return this.send(command, optionsOrCb);
28
23
  }
29
- };
30
- STS.prototype.assumeRoleWithSAML = function (args, optionsOrCb, cb) {
31
- var command = new AssumeRoleWithSAMLCommand(args);
24
+ }
25
+ assumeRoleWithSAML(args, optionsOrCb, cb) {
26
+ const command = new AssumeRoleWithSAMLCommand(args);
32
27
  if (typeof optionsOrCb === "function") {
33
28
  this.send(command, optionsOrCb);
34
29
  }
35
30
  else if (typeof cb === "function") {
36
31
  if (typeof optionsOrCb !== "object")
37
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
33
  this.send(command, optionsOrCb || {}, cb);
39
34
  }
40
35
  else {
41
36
  return this.send(command, optionsOrCb);
42
37
  }
43
- };
44
- STS.prototype.assumeRoleWithWebIdentity = function (args, optionsOrCb, cb) {
45
- var command = new AssumeRoleWithWebIdentityCommand(args);
38
+ }
39
+ assumeRoleWithWebIdentity(args, optionsOrCb, cb) {
40
+ const command = new AssumeRoleWithWebIdentityCommand(args);
46
41
  if (typeof optionsOrCb === "function") {
47
42
  this.send(command, optionsOrCb);
48
43
  }
49
44
  else if (typeof cb === "function") {
50
45
  if (typeof optionsOrCb !== "object")
51
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
47
  this.send(command, optionsOrCb || {}, cb);
53
48
  }
54
49
  else {
55
50
  return this.send(command, optionsOrCb);
56
51
  }
57
- };
58
- STS.prototype.decodeAuthorizationMessage = function (args, optionsOrCb, cb) {
59
- var command = new DecodeAuthorizationMessageCommand(args);
52
+ }
53
+ decodeAuthorizationMessage(args, optionsOrCb, cb) {
54
+ const command = new DecodeAuthorizationMessageCommand(args);
60
55
  if (typeof optionsOrCb === "function") {
61
56
  this.send(command, optionsOrCb);
62
57
  }
63
58
  else if (typeof cb === "function") {
64
59
  if (typeof optionsOrCb !== "object")
65
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
61
  this.send(command, optionsOrCb || {}, cb);
67
62
  }
68
63
  else {
69
64
  return this.send(command, optionsOrCb);
70
65
  }
71
- };
72
- STS.prototype.getAccessKeyInfo = function (args, optionsOrCb, cb) {
73
- var command = new GetAccessKeyInfoCommand(args);
66
+ }
67
+ getAccessKeyInfo(args, optionsOrCb, cb) {
68
+ const command = new GetAccessKeyInfoCommand(args);
74
69
  if (typeof optionsOrCb === "function") {
75
70
  this.send(command, optionsOrCb);
76
71
  }
77
72
  else if (typeof cb === "function") {
78
73
  if (typeof optionsOrCb !== "object")
79
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
75
  this.send(command, optionsOrCb || {}, cb);
81
76
  }
82
77
  else {
83
78
  return this.send(command, optionsOrCb);
84
79
  }
85
- };
86
- STS.prototype.getCallerIdentity = function (args, optionsOrCb, cb) {
87
- var command = new GetCallerIdentityCommand(args);
80
+ }
81
+ getCallerIdentity(args, optionsOrCb, cb) {
82
+ const command = new GetCallerIdentityCommand(args);
88
83
  if (typeof optionsOrCb === "function") {
89
84
  this.send(command, optionsOrCb);
90
85
  }
91
86
  else if (typeof cb === "function") {
92
87
  if (typeof optionsOrCb !== "object")
93
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
89
  this.send(command, optionsOrCb || {}, cb);
95
90
  }
96
91
  else {
97
92
  return this.send(command, optionsOrCb);
98
93
  }
99
- };
100
- STS.prototype.getFederationToken = function (args, optionsOrCb, cb) {
101
- var command = new GetFederationTokenCommand(args);
94
+ }
95
+ getFederationToken(args, optionsOrCb, cb) {
96
+ const command = new GetFederationTokenCommand(args);
102
97
  if (typeof optionsOrCb === "function") {
103
98
  this.send(command, optionsOrCb);
104
99
  }
105
100
  else if (typeof cb === "function") {
106
101
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
103
  this.send(command, optionsOrCb || {}, cb);
109
104
  }
110
105
  else {
111
106
  return this.send(command, optionsOrCb);
112
107
  }
113
- };
114
- STS.prototype.getSessionToken = function (args, optionsOrCb, cb) {
115
- var command = new GetSessionTokenCommand(args);
108
+ }
109
+ getSessionToken(args, optionsOrCb, cb) {
110
+ const command = new GetSessionTokenCommand(args);
116
111
  if (typeof optionsOrCb === "function") {
117
112
  this.send(command, optionsOrCb);
118
113
  }
119
114
  else if (typeof cb === "function") {
120
115
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
117
  this.send(command, optionsOrCb || {}, cb);
123
118
  }
124
119
  else {
125
120
  return this.send(command, optionsOrCb);
126
121
  }
127
- };
128
- return STS;
129
- }(STSClient));
130
- export { STS };
122
+ }
123
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,30 +8,25 @@ import { resolveStsAuthConfig } from "@aws-sdk/middleware-sdk-sts";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var STSClient = (function (_super) {
13
- __extends(STSClient, _super);
14
- function STSClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveStsAuthConfig(_config_4, { stsClientCtor: STSClient });
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
31
- return _this;
11
+ export class STSClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveStsAuthConfig(_config_4, { stsClientCtor: STSClient });
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
32
28
  }
33
- STSClient.prototype.destroy = function () {
34
- _super.prototype.destroy.call(this);
35
- };
36
- return STSClient;
37
- }(__Client));
38
- export { STSClient };
29
+ destroy() {
30
+ super.destroy();
31
+ }
32
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { AssumeRoleRequestFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_queryAssumeRoleCommand, serializeAws_queryAssumeRoleCommand } from "../protocols/Aws_query";
7
- var AssumeRoleCommand = (function (_super) {
8
- __extends(AssumeRoleCommand, _super);
9
- function AssumeRoleCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class AssumeRoleCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- AssumeRoleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getAwsAuthPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "STSClient";
20
- var commandName = "AssumeRoleCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "STSClient";
17
+ const commandName = "AssumeRoleCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: AssumeRoleRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: AssumeRoleResponseFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- AssumeRoleCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_queryAssumeRoleCommand(input, context);
35
- };
36
- AssumeRoleCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_queryAssumeRoleCommand(output, context);
38
- };
39
- return AssumeRoleCommand;
40
- }($Command));
41
- export { AssumeRoleCommand };
33
+ }
34
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryAssumeRoleWithSAMLCommand, serializeAws_queryAssumeRoleWithSAMLCommand, } from "../protocols/Aws_query";
6
- var AssumeRoleWithSAMLCommand = (function (_super) {
7
- __extends(AssumeRoleWithSAMLCommand, _super);
8
- function AssumeRoleWithSAMLCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssumeRoleWithSAMLCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssumeRoleWithSAMLCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "STSClient";
18
- var commandName = "AssumeRoleWithSAMLCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "STSClient";
15
+ const commandName = "AssumeRoleWithSAMLCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssumeRoleWithSAMLRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssumeRoleWithSAMLResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssumeRoleWithSAMLCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryAssumeRoleWithSAMLCommand(input, context);
33
- };
34
- AssumeRoleWithSAMLCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryAssumeRoleWithSAMLCommand(output, context);
36
- };
37
- return AssumeRoleWithSAMLCommand;
38
- }($Command));
39
- export { AssumeRoleWithSAMLCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryAssumeRoleWithWebIdentityCommand, serializeAws_queryAssumeRoleWithWebIdentityCommand, } from "../protocols/Aws_query";
6
- var AssumeRoleWithWebIdentityCommand = (function (_super) {
7
- __extends(AssumeRoleWithWebIdentityCommand, _super);
8
- function AssumeRoleWithWebIdentityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssumeRoleWithWebIdentityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssumeRoleWithWebIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "STSClient";
18
- var commandName = "AssumeRoleWithWebIdentityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "STSClient";
15
+ const commandName = "AssumeRoleWithWebIdentityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssumeRoleWithWebIdentityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryAssumeRoleWithWebIdentityCommand(input, context);
33
- };
34
- AssumeRoleWithWebIdentityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryAssumeRoleWithWebIdentityCommand(output, context);
36
- };
37
- return AssumeRoleWithWebIdentityCommand;
38
- }($Command));
39
- export { AssumeRoleWithWebIdentityCommand };
31
+ }
32
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { DecodeAuthorizationMessageRequestFilterSensitiveLog, DecodeAuthorizationMessageResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_queryDecodeAuthorizationMessageCommand, serializeAws_queryDecodeAuthorizationMessageCommand, } from "../protocols/Aws_query";
7
- var DecodeAuthorizationMessageCommand = (function (_super) {
8
- __extends(DecodeAuthorizationMessageCommand, _super);
9
- function DecodeAuthorizationMessageCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class DecodeAuthorizationMessageCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- DecodeAuthorizationMessageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getAwsAuthPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "STSClient";
20
- var commandName = "DecodeAuthorizationMessageCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "STSClient";
17
+ const commandName = "DecodeAuthorizationMessageCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: DecodeAuthorizationMessageRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: DecodeAuthorizationMessageResponseFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- DecodeAuthorizationMessageCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_queryDecodeAuthorizationMessageCommand(input, context);
35
- };
36
- DecodeAuthorizationMessageCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_queryDecodeAuthorizationMessageCommand(output, context);
38
- };
39
- return DecodeAuthorizationMessageCommand;
40
- }($Command));
41
- export { DecodeAuthorizationMessageCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetAccessKeyInfoRequestFilterSensitiveLog, GetAccessKeyInfoResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_queryGetAccessKeyInfoCommand, serializeAws_queryGetAccessKeyInfoCommand, } from "../protocols/Aws_query";
7
- var GetAccessKeyInfoCommand = (function (_super) {
8
- __extends(GetAccessKeyInfoCommand, _super);
9
- function GetAccessKeyInfoCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetAccessKeyInfoCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetAccessKeyInfoCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getAwsAuthPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "STSClient";
20
- var commandName = "GetAccessKeyInfoCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "STSClient";
17
+ const commandName = "GetAccessKeyInfoCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetAccessKeyInfoRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetAccessKeyInfoResponseFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetAccessKeyInfoCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_queryGetAccessKeyInfoCommand(input, context);
35
- };
36
- GetAccessKeyInfoCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_queryGetAccessKeyInfoCommand(output, context);
38
- };
39
- return GetAccessKeyInfoCommand;
40
- }($Command));
41
- export { GetAccessKeyInfoCommand };
33
+ }
34
+ }