@aws-sdk/client-sagemaker-featurestore-runtime 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/SageMakerFeatureStoreRuntime.js +1 -2
- package/{dist/cjs → dist-cjs}/SageMakerFeatureStoreRuntimeClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/BatchGetRecordCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteRecordCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetRecordCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutRecordCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/SageMakerFeatureStoreRuntime.js +2 -32
- package/{dist/es → dist-es}/SageMakerFeatureStoreRuntimeClient.js +2 -37
- package/{dist/es → dist-es}/commands/BatchGetRecordCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteRecordCommand.js +4 -32
- package/{dist/es → dist-es}/commands/GetRecordCommand.js +4 -32
- package/{dist/es → dist-es}/commands/PutRecordCommand.js +4 -34
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -46
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +105 -111
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/SageMakerFeatureStoreRuntime.d.ts +2 -2
- package/{dist/types → dist-types}/SageMakerFeatureStoreRuntimeClient.d.ts +5 -5
- package/{dist/types → dist-types}/commands/BatchGetRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SageMakerFeatureStoreRuntime.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/SageMakerFeatureStoreRuntimeClient.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/BatchGetRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/PutRecordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/SageMakerFeatureStoreRuntime.ts +0 -166
- package/SageMakerFeatureStoreRuntimeClient.ts +0 -274
- package/commands/BatchGetRecordCommand.ts +0 -98
- package/commands/DeleteRecordCommand.ts +0 -100
- package/commands/GetRecordCommand.ts +0 -100
- package/commands/PutRecordCommand.ts +0 -102
- package/dist/cjs/SageMakerFeatureStoreRuntime.js.map +0 -1
- package/dist/cjs/SageMakerFeatureStoreRuntimeClient.js.map +0 -1
- package/dist/cjs/commands/BatchGetRecordCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRecordCommand.js.map +0 -1
- package/dist/cjs/commands/GetRecordCommand.js.map +0 -1
- package/dist/cjs/commands/PutRecordCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SageMakerFeatureStoreRuntime.js.map +0 -1
- package/dist/es/SageMakerFeatureStoreRuntimeClient.js.map +0 -1
- package/dist/es/commands/BatchGetRecordCommand.js.map +0 -1
- package/dist/es/commands/DeleteRecordCommand.js.map +0 -1
- package/dist/es/commands/GetRecordCommand.js.map +0 -1
- package/dist/es/commands/PutRecordCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -8
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -360
- package/protocols/Aws_restJson1.ts +0 -834
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,107 +1,61 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
export var AccessForbidden;
|
|
3
3
|
(function (AccessForbidden) {
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
AccessForbidden.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
5
|
})(AccessForbidden || (AccessForbidden = {}));
|
|
9
6
|
export var BatchGetRecordIdentifier;
|
|
10
7
|
(function (BatchGetRecordIdentifier) {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
8
|
BatchGetRecordIdentifier.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
9
|
})(BatchGetRecordIdentifier || (BatchGetRecordIdentifier = {}));
|
|
16
10
|
export var BatchGetRecordRequest;
|
|
17
11
|
(function (BatchGetRecordRequest) {
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
12
|
BatchGetRecordRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
13
|
})(BatchGetRecordRequest || (BatchGetRecordRequest = {}));
|
|
23
14
|
export var BatchGetRecordError;
|
|
24
15
|
(function (BatchGetRecordError) {
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
16
|
BatchGetRecordError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(BatchGetRecordError || (BatchGetRecordError = {}));
|
|
30
18
|
export var FeatureValue;
|
|
31
19
|
(function (FeatureValue) {
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
20
|
FeatureValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
21
|
})(FeatureValue || (FeatureValue = {}));
|
|
37
22
|
export var BatchGetRecordResultDetail;
|
|
38
23
|
(function (BatchGetRecordResultDetail) {
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
24
|
BatchGetRecordResultDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
25
|
})(BatchGetRecordResultDetail || (BatchGetRecordResultDetail = {}));
|
|
44
26
|
export var BatchGetRecordResponse;
|
|
45
27
|
(function (BatchGetRecordResponse) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
28
|
BatchGetRecordResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
29
|
})(BatchGetRecordResponse || (BatchGetRecordResponse = {}));
|
|
51
30
|
export var InternalFailure;
|
|
52
31
|
(function (InternalFailure) {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
32
|
InternalFailure.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
33
|
})(InternalFailure || (InternalFailure = {}));
|
|
58
34
|
export var ServiceUnavailable;
|
|
59
35
|
(function (ServiceUnavailable) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
36
|
ServiceUnavailable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
37
|
})(ServiceUnavailable || (ServiceUnavailable = {}));
|
|
65
38
|
export var ValidationError;
|
|
66
39
|
(function (ValidationError) {
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
40
|
ValidationError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
71
41
|
})(ValidationError || (ValidationError = {}));
|
|
72
42
|
export var DeleteRecordRequest;
|
|
73
43
|
(function (DeleteRecordRequest) {
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
44
|
DeleteRecordRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
45
|
})(DeleteRecordRequest || (DeleteRecordRequest = {}));
|
|
79
46
|
export var GetRecordRequest;
|
|
80
47
|
(function (GetRecordRequest) {
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
48
|
GetRecordRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
85
49
|
})(GetRecordRequest || (GetRecordRequest = {}));
|
|
86
50
|
export var GetRecordResponse;
|
|
87
51
|
(function (GetRecordResponse) {
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
52
|
GetRecordResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
92
53
|
})(GetRecordResponse || (GetRecordResponse = {}));
|
|
93
54
|
export var ResourceNotFound;
|
|
94
55
|
(function (ResourceNotFound) {
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
56
|
ResourceNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
99
57
|
})(ResourceNotFound || (ResourceNotFound = {}));
|
|
100
58
|
export var PutRecordRequest;
|
|
101
59
|
(function (PutRecordRequest) {
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
60
|
PutRecordRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
61
|
})(PutRecordRequest || (PutRecordRequest = {}));
|
|
107
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1BatchGetRecordCommand = function (input, contex
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -16,7 +16,7 @@ export var serializeAws_restJson1BatchGetRecordCommand = function (input, contex
|
|
|
16
16
|
input.Identifiers !== null && {
|
|
17
17
|
Identifiers: serializeAws_restJson1BatchGetRecordIdentifiers(input.Identifiers, context),
|
|
18
18
|
})));
|
|
19
|
-
return [2
|
|
19
|
+
return [2, new __HttpRequest({
|
|
20
20
|
protocol: protocol,
|
|
21
21
|
hostname: hostname,
|
|
22
22
|
port: port,
|
|
@@ -32,7 +32,7 @@ export var serializeAws_restJson1DeleteRecordCommand = function (input, context)
|
|
|
32
32
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
33
33
|
return __generator(this, function (_c) {
|
|
34
34
|
switch (_c.label) {
|
|
35
|
-
case 0: return [4
|
|
35
|
+
case 0: return [4, context.endpoint()];
|
|
36
36
|
case 1:
|
|
37
37
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
38
38
|
headers = {};
|
|
@@ -50,7 +50,7 @@ export var serializeAws_restJson1DeleteRecordCommand = function (input, context)
|
|
|
50
50
|
query = __assign(__assign({}, (input.RecordIdentifierValueAsString !== undefined && {
|
|
51
51
|
RecordIdentifierValueAsString: input.RecordIdentifierValueAsString,
|
|
52
52
|
})), (input.EventTime !== undefined && { EventTime: input.EventTime }));
|
|
53
|
-
return [2
|
|
53
|
+
return [2, new __HttpRequest({
|
|
54
54
|
protocol: protocol,
|
|
55
55
|
hostname: hostname,
|
|
56
56
|
port: port,
|
|
@@ -67,7 +67,7 @@ export var serializeAws_restJson1GetRecordCommand = function (input, context) {
|
|
|
67
67
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
68
68
|
return __generator(this, function (_c) {
|
|
69
69
|
switch (_c.label) {
|
|
70
|
-
case 0: return [4
|
|
70
|
+
case 0: return [4, context.endpoint()];
|
|
71
71
|
case 1:
|
|
72
72
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
73
73
|
headers = {};
|
|
@@ -85,7 +85,7 @@ export var serializeAws_restJson1GetRecordCommand = function (input, context) {
|
|
|
85
85
|
query = __assign(__assign({}, (input.RecordIdentifierValueAsString !== undefined && {
|
|
86
86
|
RecordIdentifierValueAsString: input.RecordIdentifierValueAsString,
|
|
87
87
|
})), (input.FeatureNames !== undefined && { FeatureName: (input.FeatureNames || []).map(function (_entry) { return _entry; }) }));
|
|
88
|
-
return [2
|
|
88
|
+
return [2, new __HttpRequest({
|
|
89
89
|
protocol: protocol,
|
|
90
90
|
hostname: hostname,
|
|
91
91
|
port: port,
|
|
@@ -102,7 +102,7 @@ export var serializeAws_restJson1PutRecordCommand = function (input, context) {
|
|
|
102
102
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
103
103
|
return __generator(this, function (_c) {
|
|
104
104
|
switch (_c.label) {
|
|
105
|
-
case 0: return [4
|
|
105
|
+
case 0: return [4, context.endpoint()];
|
|
106
106
|
case 1:
|
|
107
107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
108
108
|
headers = {
|
|
@@ -121,7 +121,7 @@ export var serializeAws_restJson1PutRecordCommand = function (input, context) {
|
|
|
121
121
|
}
|
|
122
122
|
body = JSON.stringify(__assign({}, (input.Record !== undefined &&
|
|
123
123
|
input.Record !== null && { Record: serializeAws_restJson1Record(input.Record, context) })));
|
|
124
|
-
return [2
|
|
124
|
+
return [2, new __HttpRequest({
|
|
125
125
|
protocol: protocol,
|
|
126
126
|
hostname: hostname,
|
|
127
127
|
port: port,
|
|
@@ -139,7 +139,7 @@ export var deserializeAws_restJson1BatchGetRecordCommand = function (output, con
|
|
|
139
139
|
switch (_c.label) {
|
|
140
140
|
case 0:
|
|
141
141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
142
|
-
return [2
|
|
142
|
+
return [2, deserializeAws_restJson1BatchGetRecordCommandError(output, context)];
|
|
143
143
|
}
|
|
144
144
|
contents = {
|
|
145
145
|
$metadata: deserializeMetadata(output),
|
|
@@ -149,7 +149,7 @@ export var deserializeAws_restJson1BatchGetRecordCommand = function (output, con
|
|
|
149
149
|
};
|
|
150
150
|
_a = __expectNonNull;
|
|
151
151
|
_b = __expectObject;
|
|
152
|
-
return [4
|
|
152
|
+
return [4, parseBody(output.body, context)];
|
|
153
153
|
case 1:
|
|
154
154
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
155
155
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
@@ -161,7 +161,7 @@ export var deserializeAws_restJson1BatchGetRecordCommand = function (output, con
|
|
|
161
161
|
if (data.UnprocessedIdentifiers !== undefined && data.UnprocessedIdentifiers !== null) {
|
|
162
162
|
contents.UnprocessedIdentifiers = deserializeAws_restJson1UnprocessedIdentifiers(data.UnprocessedIdentifiers, context);
|
|
163
163
|
}
|
|
164
|
-
return [2
|
|
164
|
+
return [2, Promise.resolve(contents)];
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
}); };
|
|
@@ -173,47 +173,47 @@ var deserializeAws_restJson1BatchGetRecordCommandError = function (output, conte
|
|
|
173
173
|
case 0:
|
|
174
174
|
_a = [__assign({}, output)];
|
|
175
175
|
_g = {};
|
|
176
|
-
return [4
|
|
176
|
+
return [4, parseBody(output.body, context)];
|
|
177
177
|
case 1:
|
|
178
178
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
179
179
|
errorCode = "UnknownError";
|
|
180
180
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
181
181
|
_b = errorCode;
|
|
182
182
|
switch (_b) {
|
|
183
|
-
case "AccessForbidden": return [3
|
|
184
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3
|
|
185
|
-
case "InternalFailure": return [3
|
|
186
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3
|
|
187
|
-
case "ServiceUnavailable": return [3
|
|
188
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3
|
|
189
|
-
case "ValidationError": return [3
|
|
190
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3
|
|
183
|
+
case "AccessForbidden": return [3, 2];
|
|
184
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3, 2];
|
|
185
|
+
case "InternalFailure": return [3, 4];
|
|
186
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3, 4];
|
|
187
|
+
case "ServiceUnavailable": return [3, 6];
|
|
188
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3, 6];
|
|
189
|
+
case "ValidationError": return [3, 8];
|
|
190
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3, 8];
|
|
191
191
|
}
|
|
192
|
-
return [3
|
|
192
|
+
return [3, 10];
|
|
193
193
|
case 2:
|
|
194
194
|
_c = [{}];
|
|
195
|
-
return [4
|
|
195
|
+
return [4, deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)];
|
|
196
196
|
case 3:
|
|
197
197
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
198
|
-
return [3
|
|
198
|
+
return [3, 11];
|
|
199
199
|
case 4:
|
|
200
200
|
_d = [{}];
|
|
201
|
-
return [4
|
|
201
|
+
return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
202
202
|
case 5:
|
|
203
203
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
204
|
-
return [3
|
|
204
|
+
return [3, 11];
|
|
205
205
|
case 6:
|
|
206
206
|
_e = [{}];
|
|
207
|
-
return [4
|
|
207
|
+
return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
208
208
|
case 7:
|
|
209
209
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
210
|
-
return [3
|
|
210
|
+
return [3, 11];
|
|
211
211
|
case 8:
|
|
212
212
|
_f = [{}];
|
|
213
|
-
return [4
|
|
213
|
+
return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
214
214
|
case 9:
|
|
215
215
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
216
|
-
return [3
|
|
216
|
+
return [3, 11];
|
|
217
217
|
case 10:
|
|
218
218
|
parsedBody = parsedOutput.body;
|
|
219
219
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -223,7 +223,7 @@ var deserializeAws_restJson1BatchGetRecordCommandError = function (output, conte
|
|
|
223
223
|
message = response.message || response.Message || errorCode;
|
|
224
224
|
response.message = message;
|
|
225
225
|
delete response.Message;
|
|
226
|
-
return [2
|
|
226
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
}); };
|
|
@@ -233,15 +233,15 @@ export var deserializeAws_restJson1DeleteRecordCommand = function (output, conte
|
|
|
233
233
|
switch (_a.label) {
|
|
234
234
|
case 0:
|
|
235
235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
236
|
-
return [2
|
|
236
|
+
return [2, deserializeAws_restJson1DeleteRecordCommandError(output, context)];
|
|
237
237
|
}
|
|
238
238
|
contents = {
|
|
239
239
|
$metadata: deserializeMetadata(output),
|
|
240
240
|
};
|
|
241
|
-
return [4
|
|
241
|
+
return [4, collectBody(output.body, context)];
|
|
242
242
|
case 1:
|
|
243
243
|
_a.sent();
|
|
244
|
-
return [2
|
|
244
|
+
return [2, Promise.resolve(contents)];
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
}); };
|
|
@@ -253,47 +253,47 @@ var deserializeAws_restJson1DeleteRecordCommandError = function (output, context
|
|
|
253
253
|
case 0:
|
|
254
254
|
_a = [__assign({}, output)];
|
|
255
255
|
_g = {};
|
|
256
|
-
return [4
|
|
256
|
+
return [4, parseBody(output.body, context)];
|
|
257
257
|
case 1:
|
|
258
258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
259
259
|
errorCode = "UnknownError";
|
|
260
260
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
261
261
|
_b = errorCode;
|
|
262
262
|
switch (_b) {
|
|
263
|
-
case "AccessForbidden": return [3
|
|
264
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3
|
|
265
|
-
case "InternalFailure": return [3
|
|
266
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3
|
|
267
|
-
case "ServiceUnavailable": return [3
|
|
268
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3
|
|
269
|
-
case "ValidationError": return [3
|
|
270
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3
|
|
263
|
+
case "AccessForbidden": return [3, 2];
|
|
264
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3, 2];
|
|
265
|
+
case "InternalFailure": return [3, 4];
|
|
266
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3, 4];
|
|
267
|
+
case "ServiceUnavailable": return [3, 6];
|
|
268
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3, 6];
|
|
269
|
+
case "ValidationError": return [3, 8];
|
|
270
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3, 8];
|
|
271
271
|
}
|
|
272
|
-
return [3
|
|
272
|
+
return [3, 10];
|
|
273
273
|
case 2:
|
|
274
274
|
_c = [{}];
|
|
275
|
-
return [4
|
|
275
|
+
return [4, deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)];
|
|
276
276
|
case 3:
|
|
277
277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
278
|
-
return [3
|
|
278
|
+
return [3, 11];
|
|
279
279
|
case 4:
|
|
280
280
|
_d = [{}];
|
|
281
|
-
return [4
|
|
281
|
+
return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
282
282
|
case 5:
|
|
283
283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
284
|
-
return [3
|
|
284
|
+
return [3, 11];
|
|
285
285
|
case 6:
|
|
286
286
|
_e = [{}];
|
|
287
|
-
return [4
|
|
287
|
+
return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
288
288
|
case 7:
|
|
289
289
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
290
|
-
return [3
|
|
290
|
+
return [3, 11];
|
|
291
291
|
case 8:
|
|
292
292
|
_f = [{}];
|
|
293
|
-
return [4
|
|
293
|
+
return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
294
294
|
case 9:
|
|
295
295
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
296
|
-
return [3
|
|
296
|
+
return [3, 11];
|
|
297
297
|
case 10:
|
|
298
298
|
parsedBody = parsedOutput.body;
|
|
299
299
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -303,7 +303,7 @@ var deserializeAws_restJson1DeleteRecordCommandError = function (output, context
|
|
|
303
303
|
message = response.message || response.Message || errorCode;
|
|
304
304
|
response.message = message;
|
|
305
305
|
delete response.Message;
|
|
306
|
-
return [2
|
|
306
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
}); };
|
|
@@ -313,7 +313,7 @@ export var deserializeAws_restJson1GetRecordCommand = function (output, context)
|
|
|
313
313
|
switch (_c.label) {
|
|
314
314
|
case 0:
|
|
315
315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
|
-
return [2
|
|
316
|
+
return [2, deserializeAws_restJson1GetRecordCommandError(output, context)];
|
|
317
317
|
}
|
|
318
318
|
contents = {
|
|
319
319
|
$metadata: deserializeMetadata(output),
|
|
@@ -321,13 +321,13 @@ export var deserializeAws_restJson1GetRecordCommand = function (output, context)
|
|
|
321
321
|
};
|
|
322
322
|
_a = __expectNonNull;
|
|
323
323
|
_b = __expectObject;
|
|
324
|
-
return [4
|
|
324
|
+
return [4, parseBody(output.body, context)];
|
|
325
325
|
case 1:
|
|
326
326
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
327
327
|
if (data.Record !== undefined && data.Record !== null) {
|
|
328
328
|
contents.Record = deserializeAws_restJson1Record(data.Record, context);
|
|
329
329
|
}
|
|
330
|
-
return [2
|
|
330
|
+
return [2, Promise.resolve(contents)];
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
@@ -339,55 +339,55 @@ var deserializeAws_restJson1GetRecordCommandError = function (output, context) {
|
|
|
339
339
|
case 0:
|
|
340
340
|
_a = [__assign({}, output)];
|
|
341
341
|
_h = {};
|
|
342
|
-
return [4
|
|
342
|
+
return [4, parseBody(output.body, context)];
|
|
343
343
|
case 1:
|
|
344
344
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
345
345
|
errorCode = "UnknownError";
|
|
346
346
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
347
347
|
_b = errorCode;
|
|
348
348
|
switch (_b) {
|
|
349
|
-
case "AccessForbidden": return [3
|
|
350
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3
|
|
351
|
-
case "InternalFailure": return [3
|
|
352
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3
|
|
353
|
-
case "ResourceNotFound": return [3
|
|
354
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound": return [3
|
|
355
|
-
case "ServiceUnavailable": return [3
|
|
356
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3
|
|
357
|
-
case "ValidationError": return [3
|
|
358
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3
|
|
349
|
+
case "AccessForbidden": return [3, 2];
|
|
350
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3, 2];
|
|
351
|
+
case "InternalFailure": return [3, 4];
|
|
352
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3, 4];
|
|
353
|
+
case "ResourceNotFound": return [3, 6];
|
|
354
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound": return [3, 6];
|
|
355
|
+
case "ServiceUnavailable": return [3, 8];
|
|
356
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3, 8];
|
|
357
|
+
case "ValidationError": return [3, 10];
|
|
358
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3, 10];
|
|
359
359
|
}
|
|
360
|
-
return [3
|
|
360
|
+
return [3, 12];
|
|
361
361
|
case 2:
|
|
362
362
|
_c = [{}];
|
|
363
|
-
return [4
|
|
363
|
+
return [4, deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)];
|
|
364
364
|
case 3:
|
|
365
365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
366
|
-
return [3
|
|
366
|
+
return [3, 13];
|
|
367
367
|
case 4:
|
|
368
368
|
_d = [{}];
|
|
369
|
-
return [4
|
|
369
|
+
return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
370
370
|
case 5:
|
|
371
371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
372
|
-
return [3
|
|
372
|
+
return [3, 13];
|
|
373
373
|
case 6:
|
|
374
374
|
_e = [{}];
|
|
375
|
-
return [4
|
|
375
|
+
return [4, deserializeAws_restJson1ResourceNotFoundResponse(parsedOutput, context)];
|
|
376
376
|
case 7:
|
|
377
377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
378
|
-
return [3
|
|
378
|
+
return [3, 13];
|
|
379
379
|
case 8:
|
|
380
380
|
_f = [{}];
|
|
381
|
-
return [4
|
|
381
|
+
return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
382
382
|
case 9:
|
|
383
383
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
384
|
-
return [3
|
|
384
|
+
return [3, 13];
|
|
385
385
|
case 10:
|
|
386
386
|
_g = [{}];
|
|
387
|
-
return [4
|
|
387
|
+
return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
388
388
|
case 11:
|
|
389
389
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
390
|
-
return [3
|
|
390
|
+
return [3, 13];
|
|
391
391
|
case 12:
|
|
392
392
|
parsedBody = parsedOutput.body;
|
|
393
393
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -397,7 +397,7 @@ var deserializeAws_restJson1GetRecordCommandError = function (output, context) {
|
|
|
397
397
|
message = response.message || response.Message || errorCode;
|
|
398
398
|
response.message = message;
|
|
399
399
|
delete response.Message;
|
|
400
|
-
return [2
|
|
400
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}); };
|
|
@@ -407,15 +407,15 @@ export var deserializeAws_restJson1PutRecordCommand = function (output, context)
|
|
|
407
407
|
switch (_a.label) {
|
|
408
408
|
case 0:
|
|
409
409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
410
|
-
return [2
|
|
410
|
+
return [2, deserializeAws_restJson1PutRecordCommandError(output, context)];
|
|
411
411
|
}
|
|
412
412
|
contents = {
|
|
413
413
|
$metadata: deserializeMetadata(output),
|
|
414
414
|
};
|
|
415
|
-
return [4
|
|
415
|
+
return [4, collectBody(output.body, context)];
|
|
416
416
|
case 1:
|
|
417
417
|
_a.sent();
|
|
418
|
-
return [2
|
|
418
|
+
return [2, Promise.resolve(contents)];
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}); };
|
|
@@ -427,47 +427,47 @@ var deserializeAws_restJson1PutRecordCommandError = function (output, context) {
|
|
|
427
427
|
case 0:
|
|
428
428
|
_a = [__assign({}, output)];
|
|
429
429
|
_g = {};
|
|
430
|
-
return [4
|
|
430
|
+
return [4, parseBody(output.body, context)];
|
|
431
431
|
case 1:
|
|
432
432
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
433
433
|
errorCode = "UnknownError";
|
|
434
434
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
435
|
_b = errorCode;
|
|
436
436
|
switch (_b) {
|
|
437
|
-
case "AccessForbidden": return [3
|
|
438
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3
|
|
439
|
-
case "InternalFailure": return [3
|
|
440
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3
|
|
441
|
-
case "ServiceUnavailable": return [3
|
|
442
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3
|
|
443
|
-
case "ValidationError": return [3
|
|
444
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3
|
|
437
|
+
case "AccessForbidden": return [3, 2];
|
|
438
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden": return [3, 2];
|
|
439
|
+
case "InternalFailure": return [3, 4];
|
|
440
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure": return [3, 4];
|
|
441
|
+
case "ServiceUnavailable": return [3, 6];
|
|
442
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable": return [3, 6];
|
|
443
|
+
case "ValidationError": return [3, 8];
|
|
444
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError": return [3, 8];
|
|
445
445
|
}
|
|
446
|
-
return [3
|
|
446
|
+
return [3, 10];
|
|
447
447
|
case 2:
|
|
448
448
|
_c = [{}];
|
|
449
|
-
return [4
|
|
449
|
+
return [4, deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)];
|
|
450
450
|
case 3:
|
|
451
451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
452
|
-
return [3
|
|
452
|
+
return [3, 11];
|
|
453
453
|
case 4:
|
|
454
454
|
_d = [{}];
|
|
455
|
-
return [4
|
|
455
|
+
return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
456
456
|
case 5:
|
|
457
457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
458
|
-
return [3
|
|
458
|
+
return [3, 11];
|
|
459
459
|
case 6:
|
|
460
460
|
_e = [{}];
|
|
461
|
-
return [4
|
|
461
|
+
return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
462
462
|
case 7:
|
|
463
463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
464
|
-
return [3
|
|
464
|
+
return [3, 11];
|
|
465
465
|
case 8:
|
|
466
466
|
_f = [{}];
|
|
467
|
-
return [4
|
|
467
|
+
return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
468
468
|
case 9:
|
|
469
469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
470
|
-
return [3
|
|
470
|
+
return [3, 11];
|
|
471
471
|
case 10:
|
|
472
472
|
parsedBody = parsedOutput.body;
|
|
473
473
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -477,7 +477,7 @@ var deserializeAws_restJson1PutRecordCommandError = function (output, context) {
|
|
|
477
477
|
message = response.message || response.Message || errorCode;
|
|
478
478
|
response.message = message;
|
|
479
479
|
delete response.Message;
|
|
480
|
-
return [2
|
|
480
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
}); };
|
|
@@ -494,7 +494,7 @@ var deserializeAws_restJson1AccessForbiddenResponse = function (parsedOutput, co
|
|
|
494
494
|
if (data.Message !== undefined && data.Message !== null) {
|
|
495
495
|
contents.Message = __expectString(data.Message);
|
|
496
496
|
}
|
|
497
|
-
return [2
|
|
497
|
+
return [2, contents];
|
|
498
498
|
});
|
|
499
499
|
}); };
|
|
500
500
|
var deserializeAws_restJson1InternalFailureResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -510,7 +510,7 @@ var deserializeAws_restJson1InternalFailureResponse = function (parsedOutput, co
|
|
|
510
510
|
if (data.Message !== undefined && data.Message !== null) {
|
|
511
511
|
contents.Message = __expectString(data.Message);
|
|
512
512
|
}
|
|
513
|
-
return [2
|
|
513
|
+
return [2, contents];
|
|
514
514
|
});
|
|
515
515
|
}); };
|
|
516
516
|
var deserializeAws_restJson1ResourceNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -526,7 +526,7 @@ var deserializeAws_restJson1ResourceNotFoundResponse = function (parsedOutput, c
|
|
|
526
526
|
if (data.Message !== undefined && data.Message !== null) {
|
|
527
527
|
contents.Message = __expectString(data.Message);
|
|
528
528
|
}
|
|
529
|
-
return [2
|
|
529
|
+
return [2, contents];
|
|
530
530
|
});
|
|
531
531
|
}); };
|
|
532
532
|
var deserializeAws_restJson1ServiceUnavailableResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -542,7 +542,7 @@ var deserializeAws_restJson1ServiceUnavailableResponse = function (parsedOutput,
|
|
|
542
542
|
if (data.Message !== undefined && data.Message !== null) {
|
|
543
543
|
contents.Message = __expectString(data.Message);
|
|
544
544
|
}
|
|
545
|
-
return [2
|
|
545
|
+
return [2, contents];
|
|
546
546
|
});
|
|
547
547
|
}); };
|
|
548
548
|
var deserializeAws_restJson1ValidationErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -558,7 +558,7 @@ var deserializeAws_restJson1ValidationErrorResponse = function (parsedOutput, co
|
|
|
558
558
|
if (data.Message !== undefined && data.Message !== null) {
|
|
559
559
|
contents.Message = __expectString(data.Message);
|
|
560
560
|
}
|
|
561
|
-
return [2
|
|
561
|
+
return [2, contents];
|
|
562
562
|
});
|
|
563
563
|
}); };
|
|
564
564
|
var serializeAws_restJson1BatchGetRecordIdentifier = function (input, context) {
|
|
@@ -715,7 +715,6 @@ var deserializeMetadata = function (output) {
|
|
|
715
715
|
cfId: output.headers["x-amz-cf-id"],
|
|
716
716
|
});
|
|
717
717
|
};
|
|
718
|
-
// Collect low-level response body stream to Uint8Array.
|
|
719
718
|
var collectBody = function (streamBody, context) {
|
|
720
719
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
721
720
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -723,7 +722,6 @@ var collectBody = function (streamBody, context) {
|
|
|
723
722
|
}
|
|
724
723
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
725
724
|
};
|
|
726
|
-
// Encode Uint8Array data into string with utf-8.
|
|
727
725
|
var collectBodyString = function (streamBody, context) {
|
|
728
726
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
729
727
|
};
|
|
@@ -742,9 +740,6 @@ var parseBody = function (streamBody, context) {
|
|
|
742
740
|
return {};
|
|
743
741
|
});
|
|
744
742
|
};
|
|
745
|
-
/**
|
|
746
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
747
|
-
*/
|
|
748
743
|
var loadRestJsonErrorCode = function (output, data) {
|
|
749
744
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
750
745
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -769,4 +764,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
769
764
|
}
|
|
770
765
|
return "";
|
|
771
766
|
};
|
|
772
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|