@aws-sdk/client-sagemaker-a2i-runtime 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/SageMakerA2IRuntime.js +29 -22
- package/dist-es/SageMakerA2IRuntimeClient.js +28 -22
- package/dist-es/commands/DeleteHumanLoopCommand.js +28 -21
- package/dist-es/commands/DescribeHumanLoopCommand.js +28 -21
- package/dist-es/commands/ListHumanLoopsCommand.js +28 -21
- package/dist-es/commands/StartHumanLoopCommand.js +28 -21
- package/dist-es/commands/StopHumanLoopCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SageMakerA2IRuntimeServiceException.js +10 -5
- package/dist-es/models/models_0.js +87 -114
- package/dist-es/pagination/ListHumanLoopsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +606 -441
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
|
|
@@ -473,10 +473,10 @@ const deserializeAws_restJson1HumanLoopSummary = (output, context) => {
|
|
|
473
473
|
};
|
|
474
474
|
};
|
|
475
475
|
const deserializeMetadata = (output) => {
|
|
476
|
-
var _a;
|
|
476
|
+
var _a, _b;
|
|
477
477
|
return ({
|
|
478
478
|
httpStatusCode: output.statusCode,
|
|
479
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
479
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
480
480
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
481
481
|
cfId: output.headers["x-amz-cf-id"],
|
|
482
482
|
});
|
|
@@ -1,78 +1,85 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { DeleteHumanLoopCommand, } from "./commands/DeleteHumanLoopCommand";
|
|
2
3
|
import { DescribeHumanLoopCommand, } from "./commands/DescribeHumanLoopCommand";
|
|
3
4
|
import { ListHumanLoopsCommand, } from "./commands/ListHumanLoopsCommand";
|
|
4
5
|
import { StartHumanLoopCommand, } from "./commands/StartHumanLoopCommand";
|
|
5
6
|
import { StopHumanLoopCommand, } from "./commands/StopHumanLoopCommand";
|
|
6
7
|
import { SageMakerA2IRuntimeClient } from "./SageMakerA2IRuntimeClient";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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);
|
|
10
15
|
if (typeof optionsOrCb === "function") {
|
|
11
16
|
this.send(command, optionsOrCb);
|
|
12
17
|
}
|
|
13
18
|
else if (typeof cb === "function") {
|
|
14
19
|
if (typeof optionsOrCb !== "object")
|
|
15
|
-
throw new Error(
|
|
20
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
16
21
|
this.send(command, optionsOrCb || {}, cb);
|
|
17
22
|
}
|
|
18
23
|
else {
|
|
19
24
|
return this.send(command, optionsOrCb);
|
|
20
25
|
}
|
|
21
|
-
}
|
|
22
|
-
describeHumanLoop(args, optionsOrCb, cb) {
|
|
23
|
-
|
|
26
|
+
};
|
|
27
|
+
SageMakerA2IRuntime.prototype.describeHumanLoop = function (args, optionsOrCb, cb) {
|
|
28
|
+
var command = new DescribeHumanLoopCommand(args);
|
|
24
29
|
if (typeof optionsOrCb === "function") {
|
|
25
30
|
this.send(command, optionsOrCb);
|
|
26
31
|
}
|
|
27
32
|
else if (typeof cb === "function") {
|
|
28
33
|
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(
|
|
34
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
30
35
|
this.send(command, optionsOrCb || {}, cb);
|
|
31
36
|
}
|
|
32
37
|
else {
|
|
33
38
|
return this.send(command, optionsOrCb);
|
|
34
39
|
}
|
|
35
|
-
}
|
|
36
|
-
listHumanLoops(args, optionsOrCb, cb) {
|
|
37
|
-
|
|
40
|
+
};
|
|
41
|
+
SageMakerA2IRuntime.prototype.listHumanLoops = function (args, optionsOrCb, cb) {
|
|
42
|
+
var command = new ListHumanLoopsCommand(args);
|
|
38
43
|
if (typeof optionsOrCb === "function") {
|
|
39
44
|
this.send(command, optionsOrCb);
|
|
40
45
|
}
|
|
41
46
|
else if (typeof cb === "function") {
|
|
42
47
|
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(
|
|
48
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
44
49
|
this.send(command, optionsOrCb || {}, cb);
|
|
45
50
|
}
|
|
46
51
|
else {
|
|
47
52
|
return this.send(command, optionsOrCb);
|
|
48
53
|
}
|
|
49
|
-
}
|
|
50
|
-
startHumanLoop(args, optionsOrCb, cb) {
|
|
51
|
-
|
|
54
|
+
};
|
|
55
|
+
SageMakerA2IRuntime.prototype.startHumanLoop = function (args, optionsOrCb, cb) {
|
|
56
|
+
var command = new StartHumanLoopCommand(args);
|
|
52
57
|
if (typeof optionsOrCb === "function") {
|
|
53
58
|
this.send(command, optionsOrCb);
|
|
54
59
|
}
|
|
55
60
|
else if (typeof cb === "function") {
|
|
56
61
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
62
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
58
63
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
64
|
}
|
|
60
65
|
else {
|
|
61
66
|
return this.send(command, optionsOrCb);
|
|
62
67
|
}
|
|
63
|
-
}
|
|
64
|
-
stopHumanLoop(args, optionsOrCb, cb) {
|
|
65
|
-
|
|
68
|
+
};
|
|
69
|
+
SageMakerA2IRuntime.prototype.stopHumanLoop = function (args, optionsOrCb, cb) {
|
|
70
|
+
var command = new StopHumanLoopCommand(args);
|
|
66
71
|
if (typeof optionsOrCb === "function") {
|
|
67
72
|
this.send(command, optionsOrCb);
|
|
68
73
|
}
|
|
69
74
|
else if (typeof cb === "function") {
|
|
70
75
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
76
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
72
77
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
78
|
}
|
|
74
79
|
else {
|
|
75
80
|
return this.send(command, optionsOrCb);
|
|
76
81
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
82
|
+
};
|
|
83
|
+
return SageMakerA2IRuntime;
|
|
84
|
+
}(SageMakerA2IRuntimeClient));
|
|
85
|
+
export { SageMakerA2IRuntime };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
SageMakerA2IRuntimeClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return SageMakerA2IRuntimeClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { SageMakerA2IRuntimeClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteHumanLoopRequestFilterSensitiveLog, DeleteHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DeleteHumanLoopCommand, serializeAws_restJson1DeleteHumanLoopCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteHumanLoopCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: DeleteHumanLoopRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteHumanLoopResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_restJson1DeleteHumanLoopCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteHumanLoopCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DeleteHumanLoopCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteHumanLoopCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteHumanLoopCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeHumanLoopRequestFilterSensitiveLog, DescribeHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DescribeHumanLoopCommand, serializeAws_restJson1DescribeHumanLoopCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeHumanLoopCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: DescribeHumanLoopRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeHumanLoopResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_restJson1DescribeHumanLoopCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeHumanLoopCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DescribeHumanLoopCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeHumanLoopCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeHumanLoopCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListHumanLoopsRequestFilterSensitiveLog, ListHumanLoopsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1ListHumanLoopsCommand, serializeAws_restJson1ListHumanLoopsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListHumanLoopsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: ListHumanLoopsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListHumanLoopsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_restJson1ListHumanLoopsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListHumanLoopsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1ListHumanLoopsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListHumanLoopsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListHumanLoopsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { StartHumanLoopRequestFilterSensitiveLog, StartHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1StartHumanLoopCommand, serializeAws_restJson1StartHumanLoopCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
StartHumanLoopCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: StartHumanLoopRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: StartHumanLoopResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_restJson1StartHumanLoopCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
StartHumanLoopCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1StartHumanLoopCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return StartHumanLoopCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StartHumanLoopCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { StopHumanLoopRequestFilterSensitiveLog, StopHumanLoopResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1StopHumanLoopCommand, serializeAws_restJson1StopHumanLoopCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
StopHumanLoopCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: StopHumanLoopRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: StopHumanLoopResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_restJson1StopHumanLoopCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
StopHumanLoopCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1StopHumanLoopCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return StopHumanLoopCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StopHumanLoopCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var regionHash = {};
|
|
4
|
+
var partitionHash = {
|
|
4
5
|
aws: {
|
|
5
6
|
regions: [
|
|
6
7
|
"af-south-1",
|
|
@@ -120,9 +121,8 @@ const partitionHash = {
|
|
|
120
121
|
],
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
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
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return SageMakerA2IRuntimeServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { SageMakerA2IRuntimeServiceException };
|