@aws-sdk/client-sagemaker-a2i-runtime 3.180.0 → 3.183.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,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
@@ -133,7 +133,7 @@ exports.deserializeAws_restJson1DeleteHumanLoopCommand = deserializeAws_restJson
133
133
  const deserializeAws_restJson1DeleteHumanLoopCommandError = async (output, context) => {
134
134
  const parsedOutput = {
135
135
  ...output,
136
- body: await parseBody(output.body, context),
136
+ body: await parseErrorBody(output.body, context),
137
137
  };
138
138
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
139
139
  switch (errorCode) {
@@ -197,7 +197,7 @@ exports.deserializeAws_restJson1DescribeHumanLoopCommand = deserializeAws_restJs
197
197
  const deserializeAws_restJson1DescribeHumanLoopCommandError = async (output, context) => {
198
198
  const parsedOutput = {
199
199
  ...output,
200
- body: await parseBody(output.body, context),
200
+ body: await parseErrorBody(output.body, context),
201
201
  };
202
202
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
203
203
  switch (errorCode) {
@@ -243,7 +243,7 @@ exports.deserializeAws_restJson1ListHumanLoopsCommand = deserializeAws_restJson1
243
243
  const deserializeAws_restJson1ListHumanLoopsCommandError = async (output, context) => {
244
244
  const parsedOutput = {
245
245
  ...output,
246
- body: await parseBody(output.body, context),
246
+ body: await parseErrorBody(output.body, context),
247
247
  };
248
248
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
249
249
  switch (errorCode) {
@@ -286,7 +286,7 @@ exports.deserializeAws_restJson1StartHumanLoopCommand = deserializeAws_restJson1
286
286
  const deserializeAws_restJson1StartHumanLoopCommandError = async (output, context) => {
287
287
  const parsedOutput = {
288
288
  ...output,
289
- body: await parseBody(output.body, context),
289
+ body: await parseErrorBody(output.body, context),
290
290
  };
291
291
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
292
292
  switch (errorCode) {
@@ -329,7 +329,7 @@ exports.deserializeAws_restJson1StopHumanLoopCommand = deserializeAws_restJson1S
329
329
  const deserializeAws_restJson1StopHumanLoopCommandError = async (output, context) => {
330
330
  const parsedOutput = {
331
331
  ...output,
332
- body: await parseBody(output.body, context),
332
+ body: await parseErrorBody(output.body, context),
333
333
  };
334
334
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
335
335
  switch (errorCode) {
@@ -499,6 +499,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
499
499
  }
500
500
  return {};
501
501
  });
502
+ const parseErrorBody = async (errorBody, context) => {
503
+ var _a;
504
+ const value = await parseBody(errorBody, context);
505
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
506
+ return value;
507
+ };
502
508
  const loadRestJsonErrorCode = (output, data) => {
503
509
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
504
510
  const sanitizeErrorCode = (rawValue) => {
@@ -1,85 +1,78 @@
1
- import { __extends } from "tslib";
2
1
  import { DeleteHumanLoopCommand, } from "./commands/DeleteHumanLoopCommand";
3
2
  import { DescribeHumanLoopCommand, } from "./commands/DescribeHumanLoopCommand";
4
3
  import { ListHumanLoopsCommand, } from "./commands/ListHumanLoopsCommand";
5
4
  import { StartHumanLoopCommand, } from "./commands/StartHumanLoopCommand";
6
5
  import { StopHumanLoopCommand, } from "./commands/StopHumanLoopCommand";
7
6
  import { SageMakerA2IRuntimeClient } from "./SageMakerA2IRuntimeClient";
8
- var SageMakerA2IRuntime = (function (_super) {
9
- __extends(SageMakerA2IRuntime, _super);
10
- function SageMakerA2IRuntime() {
11
- return _super !== null && _super.apply(this, arguments) || this;
12
- }
13
- SageMakerA2IRuntime.prototype.deleteHumanLoop = function (args, optionsOrCb, cb) {
14
- var command = new DeleteHumanLoopCommand(args);
7
+ export class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient {
8
+ deleteHumanLoop(args, optionsOrCb, cb) {
9
+ const command = new DeleteHumanLoopCommand(args);
15
10
  if (typeof optionsOrCb === "function") {
16
11
  this.send(command, optionsOrCb);
17
12
  }
18
13
  else if (typeof cb === "function") {
19
14
  if (typeof optionsOrCb !== "object")
20
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
15
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
21
16
  this.send(command, optionsOrCb || {}, cb);
22
17
  }
23
18
  else {
24
19
  return this.send(command, optionsOrCb);
25
20
  }
26
- };
27
- SageMakerA2IRuntime.prototype.describeHumanLoop = function (args, optionsOrCb, cb) {
28
- var command = new DescribeHumanLoopCommand(args);
21
+ }
22
+ describeHumanLoop(args, optionsOrCb, cb) {
23
+ const command = new DescribeHumanLoopCommand(args);
29
24
  if (typeof optionsOrCb === "function") {
30
25
  this.send(command, optionsOrCb);
31
26
  }
32
27
  else if (typeof cb === "function") {
33
28
  if (typeof optionsOrCb !== "object")
34
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
29
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
30
  this.send(command, optionsOrCb || {}, cb);
36
31
  }
37
32
  else {
38
33
  return this.send(command, optionsOrCb);
39
34
  }
40
- };
41
- SageMakerA2IRuntime.prototype.listHumanLoops = function (args, optionsOrCb, cb) {
42
- var command = new ListHumanLoopsCommand(args);
35
+ }
36
+ listHumanLoops(args, optionsOrCb, cb) {
37
+ const command = new ListHumanLoopsCommand(args);
43
38
  if (typeof optionsOrCb === "function") {
44
39
  this.send(command, optionsOrCb);
45
40
  }
46
41
  else if (typeof cb === "function") {
47
42
  if (typeof optionsOrCb !== "object")
48
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
43
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
44
  this.send(command, optionsOrCb || {}, cb);
50
45
  }
51
46
  else {
52
47
  return this.send(command, optionsOrCb);
53
48
  }
54
- };
55
- SageMakerA2IRuntime.prototype.startHumanLoop = function (args, optionsOrCb, cb) {
56
- var command = new StartHumanLoopCommand(args);
49
+ }
50
+ startHumanLoop(args, optionsOrCb, cb) {
51
+ const command = new StartHumanLoopCommand(args);
57
52
  if (typeof optionsOrCb === "function") {
58
53
  this.send(command, optionsOrCb);
59
54
  }
60
55
  else if (typeof cb === "function") {
61
56
  if (typeof optionsOrCb !== "object")
62
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
57
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
58
  this.send(command, optionsOrCb || {}, cb);
64
59
  }
65
60
  else {
66
61
  return this.send(command, optionsOrCb);
67
62
  }
68
- };
69
- SageMakerA2IRuntime.prototype.stopHumanLoop = function (args, optionsOrCb, cb) {
70
- var command = new StopHumanLoopCommand(args);
63
+ }
64
+ stopHumanLoop(args, optionsOrCb, cb) {
65
+ const command = new StopHumanLoopCommand(args);
71
66
  if (typeof optionsOrCb === "function") {
72
67
  this.send(command, optionsOrCb);
73
68
  }
74
69
  else if (typeof cb === "function") {
75
70
  if (typeof optionsOrCb !== "object")
76
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
72
  this.send(command, optionsOrCb || {}, cb);
78
73
  }
79
74
  else {
80
75
  return this.send(command, optionsOrCb);
81
76
  }
82
- };
83
- return SageMakerA2IRuntime;
84
- }(SageMakerA2IRuntimeClient));
85
- export { SageMakerA2IRuntime };
77
+ }
78
+ }
@@ -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,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
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 SageMakerA2IRuntimeClient = (function (_super) {
13
- __extends(SageMakerA2IRuntimeClient, _super);
14
- function SageMakerA2IRuntimeClient(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 = resolveAwsAuthConfig(_config_4);
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(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class SageMakerA2IRuntimeClient 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 = resolveAwsAuthConfig(_config_4);
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(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- SageMakerA2IRuntimeClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return SageMakerA2IRuntimeClient;
38
- }(__Client));
39
- export { SageMakerA2IRuntimeClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -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 { DeleteHumanLoopRequestFilterSensitiveLog, DeleteHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteHumanLoopCommand, serializeAws_restJson1DeleteHumanLoopCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteHumanLoopCommand = (function (_super) {
7
- __extends(DeleteHumanLoopCommand, _super);
8
- function DeleteHumanLoopCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteHumanLoopCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteHumanLoopCommand.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 = "SageMakerA2IRuntimeClient";
18
- var commandName = "DeleteHumanLoopCommand";
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 = "SageMakerA2IRuntimeClient";
15
+ const commandName = "DeleteHumanLoopCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteHumanLoopRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteHumanLoopResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteHumanLoopCommand.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_restJson1DeleteHumanLoopCommand(input, context);
33
- };
34
- DeleteHumanLoopCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteHumanLoopCommand(output, context);
36
- };
37
- return DeleteHumanLoopCommand;
38
- }($Command));
39
- export { DeleteHumanLoopCommand };
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 { DescribeHumanLoopRequestFilterSensitiveLog, DescribeHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeHumanLoopCommand, serializeAws_restJson1DescribeHumanLoopCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeHumanLoopCommand = (function (_super) {
7
- __extends(DescribeHumanLoopCommand, _super);
8
- function DescribeHumanLoopCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeHumanLoopCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeHumanLoopCommand.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 = "SageMakerA2IRuntimeClient";
18
- var commandName = "DescribeHumanLoopCommand";
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 = "SageMakerA2IRuntimeClient";
15
+ const commandName = "DescribeHumanLoopCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeHumanLoopRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeHumanLoopResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeHumanLoopCommand.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_restJson1DescribeHumanLoopCommand(input, context);
33
- };
34
- DescribeHumanLoopCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeHumanLoopCommand(output, context);
36
- };
37
- return DescribeHumanLoopCommand;
38
- }($Command));
39
- export { DescribeHumanLoopCommand };
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 { ListHumanLoopsRequestFilterSensitiveLog, ListHumanLoopsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListHumanLoopsCommand, serializeAws_restJson1ListHumanLoopsCommand, } from "../protocols/Aws_restJson1";
6
- var ListHumanLoopsCommand = (function (_super) {
7
- __extends(ListHumanLoopsCommand, _super);
8
- function ListHumanLoopsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListHumanLoopsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListHumanLoopsCommand.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 = "SageMakerA2IRuntimeClient";
18
- var commandName = "ListHumanLoopsCommand";
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 = "SageMakerA2IRuntimeClient";
15
+ const commandName = "ListHumanLoopsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListHumanLoopsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListHumanLoopsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListHumanLoopsCommand.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_restJson1ListHumanLoopsCommand(input, context);
33
- };
34
- ListHumanLoopsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListHumanLoopsCommand(output, context);
36
- };
37
- return ListHumanLoopsCommand;
38
- }($Command));
39
- export { ListHumanLoopsCommand };
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 { StartHumanLoopRequestFilterSensitiveLog, StartHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartHumanLoopCommand, serializeAws_restJson1StartHumanLoopCommand, } from "../protocols/Aws_restJson1";
6
- var StartHumanLoopCommand = (function (_super) {
7
- __extends(StartHumanLoopCommand, _super);
8
- function StartHumanLoopCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartHumanLoopCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartHumanLoopCommand.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 = "SageMakerA2IRuntimeClient";
18
- var commandName = "StartHumanLoopCommand";
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 = "SageMakerA2IRuntimeClient";
15
+ const commandName = "StartHumanLoopCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartHumanLoopRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartHumanLoopResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartHumanLoopCommand.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_restJson1StartHumanLoopCommand(input, context);
33
- };
34
- StartHumanLoopCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartHumanLoopCommand(output, context);
36
- };
37
- return StartHumanLoopCommand;
38
- }($Command));
39
- export { StartHumanLoopCommand };
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 { StopHumanLoopRequestFilterSensitiveLog, StopHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StopHumanLoopCommand, serializeAws_restJson1StopHumanLoopCommand, } from "../protocols/Aws_restJson1";
6
- var StopHumanLoopCommand = (function (_super) {
7
- __extends(StopHumanLoopCommand, _super);
8
- function StopHumanLoopCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopHumanLoopCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopHumanLoopCommand.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 = "SageMakerA2IRuntimeClient";
18
- var commandName = "StopHumanLoopCommand";
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 = "SageMakerA2IRuntimeClient";
15
+ const commandName = "StopHumanLoopCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopHumanLoopRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopHumanLoopResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopHumanLoopCommand.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_restJson1StopHumanLoopCommand(input, context);
33
- };
34
- StopHumanLoopCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StopHumanLoopCommand(output, context);
36
- };
37
- return StopHumanLoopCommand;
38
- }($Command));
39
- export { StopHumanLoopCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "sagemaker", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "sagemaker",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var SageMakerA2IRuntimeServiceException = (function (_super) {
4
- __extends(SageMakerA2IRuntimeServiceException, _super);
5
- function SageMakerA2IRuntimeServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, SageMakerA2IRuntimeServiceException.prototype);
8
- return _this;
2
+ export class SageMakerA2IRuntimeServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, SageMakerA2IRuntimeServiceException.prototype);
9
6
  }
10
- return SageMakerA2IRuntimeServiceException;
11
- }(__ServiceException));
12
- export { SageMakerA2IRuntimeServiceException };
7
+ }