@aws-sdk/client-sagemaker-a2i-runtime 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 +16 -0
- package/dist-es/SageMakerA2IRuntime.js +22 -29
- package/dist-es/SageMakerA2IRuntimeClient.js +22 -28
- package/dist-es/commands/DeleteHumanLoopCommand.js +21 -28
- package/dist-es/commands/DescribeHumanLoopCommand.js +21 -28
- package/dist-es/commands/ListHumanLoopsCommand.js +21 -28
- package/dist-es/commands/StartHumanLoopCommand.js +21 -28
- package/dist-es/commands/StopHumanLoopCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SageMakerA2IRuntimeServiceException.js +5 -10
- package/dist-es/models/models_0.js +114 -87
- package/dist-es/pagination/ListHumanLoopsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +441 -606
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { SageMakerA2IRuntimeServiceException as __BaseException } from "./SageMakerA2IRuntimeServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
export class InternalServerException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "InternalServerException",
|
|
6
|
+
$fault: "server",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "InternalServerException";
|
|
10
|
+
this.$fault = "server";
|
|
11
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
12
|
+
this.Message = opts.Message;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
}
|
|
15
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ResourceNotFoundException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ResourceNotFoundException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
25
|
+
this.Message = opts.Message;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
}
|
|
28
|
+
export class ThrottlingException extends __BaseException {
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ThrottlingException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
this.name = "ThrottlingException";
|
|
36
|
+
this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
38
|
+
this.Message = opts.Message;
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
}
|
|
41
|
+
export class ValidationException extends __BaseException {
|
|
42
|
+
constructor(opts) {
|
|
43
|
+
super({
|
|
44
|
+
name: "ValidationException",
|
|
45
|
+
$fault: "client",
|
|
46
|
+
...opts,
|
|
47
|
+
});
|
|
48
|
+
this.name = "ValidationException";
|
|
49
|
+
this.$fault = "client";
|
|
50
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
51
|
+
this.Message = opts.Message;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
-
}(__BaseException));
|
|
54
|
-
export { ValidationException };
|
|
53
|
+
}
|
|
55
54
|
export var HumanLoopStatus;
|
|
56
55
|
(function (HumanLoopStatus) {
|
|
57
56
|
HumanLoopStatus["COMPLETED"] = "Completed";
|
|
@@ -65,48 +64,76 @@ export var SortOrder;
|
|
|
65
64
|
SortOrder["ASCENDING"] = "Ascending";
|
|
66
65
|
SortOrder["DESCENDING"] = "Descending";
|
|
67
66
|
})(SortOrder || (SortOrder = {}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
export class ConflictException extends __BaseException {
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ConflictException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
this.name = "ConflictException";
|
|
75
|
+
this.$fault = "client";
|
|
76
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
77
|
+
this.Message = opts.Message;
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
}
|
|
80
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
81
|
+
constructor(opts) {
|
|
82
|
+
super({
|
|
83
|
+
name: "ServiceQuotaExceededException",
|
|
84
|
+
$fault: "client",
|
|
85
|
+
...opts,
|
|
86
|
+
});
|
|
87
|
+
this.name = "ServiceQuotaExceededException";
|
|
88
|
+
this.$fault = "client";
|
|
89
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
90
|
+
this.Message = opts.Message;
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
-
}(__BaseException));
|
|
93
|
-
export { ServiceQuotaExceededException };
|
|
92
|
+
}
|
|
94
93
|
export var ContentClassifier;
|
|
95
94
|
(function (ContentClassifier) {
|
|
96
95
|
ContentClassifier["FREE_OF_ADULT_CONTENT"] = "FreeOfAdultContent";
|
|
97
96
|
ContentClassifier["FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION"] = "FreeOfPersonallyIdentifiableInformation";
|
|
98
97
|
})(ContentClassifier || (ContentClassifier = {}));
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
export
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
export
|
|
112
|
-
|
|
98
|
+
export const DeleteHumanLoopRequestFilterSensitiveLog = (obj) => ({
|
|
99
|
+
...obj,
|
|
100
|
+
});
|
|
101
|
+
export const DeleteHumanLoopResponseFilterSensitiveLog = (obj) => ({
|
|
102
|
+
...obj,
|
|
103
|
+
});
|
|
104
|
+
export const DescribeHumanLoopRequestFilterSensitiveLog = (obj) => ({
|
|
105
|
+
...obj,
|
|
106
|
+
});
|
|
107
|
+
export const HumanLoopOutputFilterSensitiveLog = (obj) => ({
|
|
108
|
+
...obj,
|
|
109
|
+
});
|
|
110
|
+
export const DescribeHumanLoopResponseFilterSensitiveLog = (obj) => ({
|
|
111
|
+
...obj,
|
|
112
|
+
});
|
|
113
|
+
export const ListHumanLoopsRequestFilterSensitiveLog = (obj) => ({
|
|
114
|
+
...obj,
|
|
115
|
+
});
|
|
116
|
+
export const HumanLoopSummaryFilterSensitiveLog = (obj) => ({
|
|
117
|
+
...obj,
|
|
118
|
+
});
|
|
119
|
+
export const ListHumanLoopsResponseFilterSensitiveLog = (obj) => ({
|
|
120
|
+
...obj,
|
|
121
|
+
});
|
|
122
|
+
export const HumanLoopDataAttributesFilterSensitiveLog = (obj) => ({
|
|
123
|
+
...obj,
|
|
124
|
+
});
|
|
125
|
+
export const HumanLoopInputFilterSensitiveLog = (obj) => ({
|
|
126
|
+
...obj,
|
|
127
|
+
});
|
|
128
|
+
export const StartHumanLoopRequestFilterSensitiveLog = (obj) => ({
|
|
129
|
+
...obj,
|
|
130
|
+
});
|
|
131
|
+
export const StartHumanLoopResponseFilterSensitiveLog = (obj) => ({
|
|
132
|
+
...obj,
|
|
133
|
+
});
|
|
134
|
+
export const StopHumanLoopRequestFilterSensitiveLog = (obj) => ({
|
|
135
|
+
...obj,
|
|
136
|
+
});
|
|
137
|
+
export const StopHumanLoopResponseFilterSensitiveLog = (obj) => ({
|
|
138
|
+
...obj,
|
|
139
|
+
});
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListHumanLoopsCommand, } from "../commands/ListHumanLoopsCommand";
|
|
3
2
|
import { SageMakerA2IRuntime } from "../SageMakerA2IRuntime";
|
|
4
3
|
import { SageMakerA2IRuntimeClient } from "../SageMakerA2IRuntimeClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListHumanLoopsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListHumanLoopsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listHumanLoops.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listHumanLoops(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListHumanLoops(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListHumanLoops(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof SageMakerA2IRuntime) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof SageMakerA2IRuntimeClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected SageMakerA2IRuntime | SageMakerA2IRuntimeClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.NextToken = token;
|
|
49
|
-
input["MaxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof SageMakerA2IRuntime)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof SageMakerA2IRuntimeClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected SageMakerA2IRuntime | SageMakerA2IRuntimeClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|