@aws-sdk/client-iot-events 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CreateAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/CreateDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/CreateInputCommand.js +2 -2
- package/dist-cjs/commands/DeleteAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/DeleteDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/DeleteInputCommand.js +2 -2
- package/dist-cjs/commands/DescribeAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/DescribeDetectorModelAnalysisCommand.js +2 -2
- package/dist-cjs/commands/DescribeDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/DescribeInputCommand.js +2 -2
- package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +2 -2
- package/dist-cjs/commands/GetDetectorModelAnalysisResultsCommand.js +2 -2
- package/dist-cjs/commands/ListAlarmModelVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListAlarmModelsCommand.js +2 -2
- package/dist-cjs/commands/ListDetectorModelVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListDetectorModelsCommand.js +2 -2
- package/dist-cjs/commands/ListInputRoutingsCommand.js +2 -2
- package/dist-cjs/commands/ListInputsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutLoggingOptionsCommand.js +1 -1
- package/dist-cjs/commands/StartDetectorModelAnalysisCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/UpdateDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/UpdateInputCommand.js +2 -2
- package/dist-cjs/models/models_0.js +455 -681
- package/dist-cjs/protocols/Aws_restJson1.js +331 -610
- package/dist-es/commands/CreateAlarmModelCommand.js +3 -3
- package/dist-es/commands/CreateDetectorModelCommand.js +3 -3
- package/dist-es/commands/CreateInputCommand.js +3 -3
- package/dist-es/commands/DeleteAlarmModelCommand.js +3 -3
- package/dist-es/commands/DeleteDetectorModelCommand.js +3 -3
- package/dist-es/commands/DeleteInputCommand.js +3 -3
- package/dist-es/commands/DescribeAlarmModelCommand.js +3 -3
- package/dist-es/commands/DescribeDetectorModelAnalysisCommand.js +3 -3
- package/dist-es/commands/DescribeDetectorModelCommand.js +3 -3
- package/dist-es/commands/DescribeInputCommand.js +3 -3
- package/dist-es/commands/DescribeLoggingOptionsCommand.js +3 -3
- package/dist-es/commands/GetDetectorModelAnalysisResultsCommand.js +3 -3
- package/dist-es/commands/ListAlarmModelVersionsCommand.js +3 -3
- package/dist-es/commands/ListAlarmModelsCommand.js +3 -3
- package/dist-es/commands/ListDetectorModelVersionsCommand.js +3 -3
- package/dist-es/commands/ListDetectorModelsCommand.js +3 -3
- package/dist-es/commands/ListInputRoutingsCommand.js +3 -3
- package/dist-es/commands/ListInputsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutLoggingOptionsCommand.js +2 -2
- package/dist-es/commands/StartDetectorModelAnalysisCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAlarmModelCommand.js +3 -3
- package/dist-es/commands/UpdateDetectorModelCommand.js +3 -3
- package/dist-es/commands/UpdateInputCommand.js +3 -3
- package/dist-es/models/models_0.js +113 -452
- package/dist-es/protocols/Aws_restJson1.js +423 -595
- package/dist-types/models/models_0.d.ts +452 -678
- package/dist-types/ts3.4/models/models_0.d.ts +226 -452
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IoTEventsServiceException as __BaseException } from "../models/IoTEventsServiceException";
|
|
5
5
|
import { InternalFailureException, InvalidRequestException, LimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateAlarmModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_restJson1CreateInputCommand = function (input, context)
|
|
|
86
86
|
});
|
|
87
87
|
}); };
|
|
88
88
|
export var serializeAws_restJson1DeleteAlarmModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
89
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
89
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
90
90
|
return __generator(this, function (_c) {
|
|
91
91
|
switch (_c.label) {
|
|
92
92
|
case 0: return [4, context.endpoint()];
|
|
@@ -94,16 +94,7 @@ export var serializeAws_restJson1DeleteAlarmModelCommand = function (input, cont
|
|
|
94
94
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
95
95
|
headers = {};
|
|
96
96
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarm-models/{alarmModelName}";
|
|
97
|
-
|
|
98
|
-
labelValue = input.alarmModelName;
|
|
99
|
-
if (labelValue.length <= 0) {
|
|
100
|
-
throw new Error("Empty value provided for input HTTP label: alarmModelName.");
|
|
101
|
-
}
|
|
102
|
-
resolvedPath = resolvedPath.replace("{alarmModelName}", __extendedEncodeURIComponent(labelValue));
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
throw new Error("No value provided for input HTTP label: alarmModelName.");
|
|
106
|
-
}
|
|
97
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "alarmModelName", function () { return input.alarmModelName; }, "{alarmModelName}", false);
|
|
107
98
|
return [2, new __HttpRequest({
|
|
108
99
|
protocol: protocol,
|
|
109
100
|
hostname: hostname,
|
|
@@ -117,7 +108,7 @@ export var serializeAws_restJson1DeleteAlarmModelCommand = function (input, cont
|
|
|
117
108
|
});
|
|
118
109
|
}); };
|
|
119
110
|
export var serializeAws_restJson1DeleteDetectorModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
120
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
111
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
121
112
|
return __generator(this, function (_c) {
|
|
122
113
|
switch (_c.label) {
|
|
123
114
|
case 0: return [4, context.endpoint()];
|
|
@@ -125,16 +116,7 @@ export var serializeAws_restJson1DeleteDetectorModelCommand = function (input, c
|
|
|
125
116
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
126
117
|
headers = {};
|
|
127
118
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector-models/{detectorModelName}";
|
|
128
|
-
|
|
129
|
-
labelValue = input.detectorModelName;
|
|
130
|
-
if (labelValue.length <= 0) {
|
|
131
|
-
throw new Error("Empty value provided for input HTTP label: detectorModelName.");
|
|
132
|
-
}
|
|
133
|
-
resolvedPath = resolvedPath.replace("{detectorModelName}", __extendedEncodeURIComponent(labelValue));
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
throw new Error("No value provided for input HTTP label: detectorModelName.");
|
|
137
|
-
}
|
|
119
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "detectorModelName", function () { return input.detectorModelName; }, "{detectorModelName}", false);
|
|
138
120
|
return [2, new __HttpRequest({
|
|
139
121
|
protocol: protocol,
|
|
140
122
|
hostname: hostname,
|
|
@@ -148,7 +130,7 @@ export var serializeAws_restJson1DeleteDetectorModelCommand = function (input, c
|
|
|
148
130
|
});
|
|
149
131
|
}); };
|
|
150
132
|
export var serializeAws_restJson1DeleteInputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
133
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
152
134
|
return __generator(this, function (_c) {
|
|
153
135
|
switch (_c.label) {
|
|
154
136
|
case 0: return [4, context.endpoint()];
|
|
@@ -156,16 +138,7 @@ export var serializeAws_restJson1DeleteInputCommand = function (input, context)
|
|
|
156
138
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
157
139
|
headers = {};
|
|
158
140
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/{inputName}";
|
|
159
|
-
|
|
160
|
-
labelValue = input.inputName;
|
|
161
|
-
if (labelValue.length <= 0) {
|
|
162
|
-
throw new Error("Empty value provided for input HTTP label: inputName.");
|
|
163
|
-
}
|
|
164
|
-
resolvedPath = resolvedPath.replace("{inputName}", __extendedEncodeURIComponent(labelValue));
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
throw new Error("No value provided for input HTTP label: inputName.");
|
|
168
|
-
}
|
|
141
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "inputName", function () { return input.inputName; }, "{inputName}", false);
|
|
169
142
|
return [2, new __HttpRequest({
|
|
170
143
|
protocol: protocol,
|
|
171
144
|
hostname: hostname,
|
|
@@ -179,7 +152,7 @@ export var serializeAws_restJson1DeleteInputCommand = function (input, context)
|
|
|
179
152
|
});
|
|
180
153
|
}); };
|
|
181
154
|
export var serializeAws_restJson1DescribeAlarmModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
182
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
155
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
183
156
|
return __generator(this, function (_c) {
|
|
184
157
|
switch (_c.label) {
|
|
185
158
|
case 0: return [4, context.endpoint()];
|
|
@@ -187,17 +160,10 @@ export var serializeAws_restJson1DescribeAlarmModelCommand = function (input, co
|
|
|
187
160
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
188
161
|
headers = {};
|
|
189
162
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarm-models/{alarmModelName}";
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
resolvedPath = resolvedPath.replace("{alarmModelName}", __extendedEncodeURIComponent(labelValue));
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
throw new Error("No value provided for input HTTP label: alarmModelName.");
|
|
199
|
-
}
|
|
200
|
-
query = __assign({}, (input.alarmModelVersion !== undefined && { version: input.alarmModelVersion }));
|
|
163
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "alarmModelName", function () { return input.alarmModelName; }, "{alarmModelName}", false);
|
|
164
|
+
query = map({
|
|
165
|
+
version: [, input.alarmModelVersion],
|
|
166
|
+
});
|
|
201
167
|
return [2, new __HttpRequest({
|
|
202
168
|
protocol: protocol,
|
|
203
169
|
hostname: hostname,
|
|
@@ -212,7 +178,7 @@ export var serializeAws_restJson1DescribeAlarmModelCommand = function (input, co
|
|
|
212
178
|
});
|
|
213
179
|
}); };
|
|
214
180
|
export var serializeAws_restJson1DescribeDetectorModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
215
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
181
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
216
182
|
return __generator(this, function (_c) {
|
|
217
183
|
switch (_c.label) {
|
|
218
184
|
case 0: return [4, context.endpoint()];
|
|
@@ -220,17 +186,10 @@ export var serializeAws_restJson1DescribeDetectorModelCommand = function (input,
|
|
|
220
186
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
221
187
|
headers = {};
|
|
222
188
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector-models/{detectorModelName}";
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
resolvedPath = resolvedPath.replace("{detectorModelName}", __extendedEncodeURIComponent(labelValue));
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
throw new Error("No value provided for input HTTP label: detectorModelName.");
|
|
232
|
-
}
|
|
233
|
-
query = __assign({}, (input.detectorModelVersion !== undefined && { version: input.detectorModelVersion }));
|
|
189
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "detectorModelName", function () { return input.detectorModelName; }, "{detectorModelName}", false);
|
|
190
|
+
query = map({
|
|
191
|
+
version: [, input.detectorModelVersion],
|
|
192
|
+
});
|
|
234
193
|
return [2, new __HttpRequest({
|
|
235
194
|
protocol: protocol,
|
|
236
195
|
hostname: hostname,
|
|
@@ -245,7 +204,7 @@ export var serializeAws_restJson1DescribeDetectorModelCommand = function (input,
|
|
|
245
204
|
});
|
|
246
205
|
}); };
|
|
247
206
|
export var serializeAws_restJson1DescribeDetectorModelAnalysisCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
207
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
249
208
|
return __generator(this, function (_c) {
|
|
250
209
|
switch (_c.label) {
|
|
251
210
|
case 0: return [4, context.endpoint()];
|
|
@@ -253,16 +212,7 @@ export var serializeAws_restJson1DescribeDetectorModelAnalysisCommand = function
|
|
|
253
212
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
254
213
|
headers = {};
|
|
255
214
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analysis/detector-models/{analysisId}";
|
|
256
|
-
|
|
257
|
-
labelValue = input.analysisId;
|
|
258
|
-
if (labelValue.length <= 0) {
|
|
259
|
-
throw new Error("Empty value provided for input HTTP label: analysisId.");
|
|
260
|
-
}
|
|
261
|
-
resolvedPath = resolvedPath.replace("{analysisId}", __extendedEncodeURIComponent(labelValue));
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
throw new Error("No value provided for input HTTP label: analysisId.");
|
|
265
|
-
}
|
|
215
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analysisId", function () { return input.analysisId; }, "{analysisId}", false);
|
|
266
216
|
return [2, new __HttpRequest({
|
|
267
217
|
protocol: protocol,
|
|
268
218
|
hostname: hostname,
|
|
@@ -276,7 +226,7 @@ export var serializeAws_restJson1DescribeDetectorModelAnalysisCommand = function
|
|
|
276
226
|
});
|
|
277
227
|
}); };
|
|
278
228
|
export var serializeAws_restJson1DescribeInputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
279
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
229
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
280
230
|
return __generator(this, function (_c) {
|
|
281
231
|
switch (_c.label) {
|
|
282
232
|
case 0: return [4, context.endpoint()];
|
|
@@ -284,16 +234,7 @@ export var serializeAws_restJson1DescribeInputCommand = function (input, context
|
|
|
284
234
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
285
235
|
headers = {};
|
|
286
236
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/{inputName}";
|
|
287
|
-
|
|
288
|
-
labelValue = input.inputName;
|
|
289
|
-
if (labelValue.length <= 0) {
|
|
290
|
-
throw new Error("Empty value provided for input HTTP label: inputName.");
|
|
291
|
-
}
|
|
292
|
-
resolvedPath = resolvedPath.replace("{inputName}", __extendedEncodeURIComponent(labelValue));
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
throw new Error("No value provided for input HTTP label: inputName.");
|
|
296
|
-
}
|
|
237
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "inputName", function () { return input.inputName; }, "{inputName}", false);
|
|
297
238
|
return [2, new __HttpRequest({
|
|
298
239
|
protocol: protocol,
|
|
299
240
|
hostname: hostname,
|
|
@@ -331,7 +272,7 @@ export var serializeAws_restJson1DescribeLoggingOptionsCommand = function (input
|
|
|
331
272
|
});
|
|
332
273
|
}); };
|
|
333
274
|
export var serializeAws_restJson1GetDetectorModelAnalysisResultsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
334
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
275
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
335
276
|
return __generator(this, function (_c) {
|
|
336
277
|
switch (_c.label) {
|
|
337
278
|
case 0: return [4, context.endpoint()];
|
|
@@ -340,17 +281,11 @@ export var serializeAws_restJson1GetDetectorModelAnalysisResultsCommand = functi
|
|
|
340
281
|
headers = {};
|
|
341
282
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
342
283
|
"/analysis/detector-models/{analysisId}/results";
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
resolvedPath = resolvedPath.replace("{analysisId}", __extendedEncodeURIComponent(labelValue));
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
throw new Error("No value provided for input HTTP label: analysisId.");
|
|
352
|
-
}
|
|
353
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
284
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analysisId", function () { return input.analysisId; }, "{analysisId}", false);
|
|
285
|
+
query = map({
|
|
286
|
+
nextToken: [, input.nextToken],
|
|
287
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
288
|
+
});
|
|
354
289
|
return [2, new __HttpRequest({
|
|
355
290
|
protocol: protocol,
|
|
356
291
|
hostname: hostname,
|
|
@@ -373,7 +308,10 @@ export var serializeAws_restJson1ListAlarmModelsCommand = function (input, conte
|
|
|
373
308
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
374
309
|
headers = {};
|
|
375
310
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarm-models";
|
|
376
|
-
query =
|
|
311
|
+
query = map({
|
|
312
|
+
nextToken: [, input.nextToken],
|
|
313
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
314
|
+
});
|
|
377
315
|
return [2, new __HttpRequest({
|
|
378
316
|
protocol: protocol,
|
|
379
317
|
hostname: hostname,
|
|
@@ -388,7 +326,7 @@ export var serializeAws_restJson1ListAlarmModelsCommand = function (input, conte
|
|
|
388
326
|
});
|
|
389
327
|
}); };
|
|
390
328
|
export var serializeAws_restJson1ListAlarmModelVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
391
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
329
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
392
330
|
return __generator(this, function (_c) {
|
|
393
331
|
switch (_c.label) {
|
|
394
332
|
case 0: return [4, context.endpoint()];
|
|
@@ -396,17 +334,11 @@ export var serializeAws_restJson1ListAlarmModelVersionsCommand = function (input
|
|
|
396
334
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
397
335
|
headers = {};
|
|
398
336
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarm-models/{alarmModelName}/versions";
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
resolvedPath = resolvedPath.replace("{alarmModelName}", __extendedEncodeURIComponent(labelValue));
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
throw new Error("No value provided for input HTTP label: alarmModelName.");
|
|
408
|
-
}
|
|
409
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
337
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "alarmModelName", function () { return input.alarmModelName; }, "{alarmModelName}", false);
|
|
338
|
+
query = map({
|
|
339
|
+
nextToken: [, input.nextToken],
|
|
340
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
341
|
+
});
|
|
410
342
|
return [2, new __HttpRequest({
|
|
411
343
|
protocol: protocol,
|
|
412
344
|
hostname: hostname,
|
|
@@ -429,7 +361,10 @@ export var serializeAws_restJson1ListDetectorModelsCommand = function (input, co
|
|
|
429
361
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
430
362
|
headers = {};
|
|
431
363
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector-models";
|
|
432
|
-
query =
|
|
364
|
+
query = map({
|
|
365
|
+
nextToken: [, input.nextToken],
|
|
366
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
367
|
+
});
|
|
433
368
|
return [2, new __HttpRequest({
|
|
434
369
|
protocol: protocol,
|
|
435
370
|
hostname: hostname,
|
|
@@ -444,7 +379,7 @@ export var serializeAws_restJson1ListDetectorModelsCommand = function (input, co
|
|
|
444
379
|
});
|
|
445
380
|
}); };
|
|
446
381
|
export var serializeAws_restJson1ListDetectorModelVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
447
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
382
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
448
383
|
return __generator(this, function (_c) {
|
|
449
384
|
switch (_c.label) {
|
|
450
385
|
case 0: return [4, context.endpoint()];
|
|
@@ -453,17 +388,11 @@ export var serializeAws_restJson1ListDetectorModelVersionsCommand = function (in
|
|
|
453
388
|
headers = {};
|
|
454
389
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
455
390
|
"/detector-models/{detectorModelName}/versions";
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
resolvedPath = resolvedPath.replace("{detectorModelName}", __extendedEncodeURIComponent(labelValue));
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
throw new Error("No value provided for input HTTP label: detectorModelName.");
|
|
465
|
-
}
|
|
466
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
391
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "detectorModelName", function () { return input.detectorModelName; }, "{detectorModelName}", false);
|
|
392
|
+
query = map({
|
|
393
|
+
nextToken: [, input.nextToken],
|
|
394
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
395
|
+
});
|
|
467
396
|
return [2, new __HttpRequest({
|
|
468
397
|
protocol: protocol,
|
|
469
398
|
hostname: hostname,
|
|
@@ -512,7 +441,10 @@ export var serializeAws_restJson1ListInputsCommand = function (input, context) {
|
|
|
512
441
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
513
442
|
headers = {};
|
|
514
443
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs";
|
|
515
|
-
query =
|
|
444
|
+
query = map({
|
|
445
|
+
nextToken: [, input.nextToken],
|
|
446
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
447
|
+
});
|
|
516
448
|
return [2, new __HttpRequest({
|
|
517
449
|
protocol: protocol,
|
|
518
450
|
hostname: hostname,
|
|
@@ -535,7 +467,9 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
535
467
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
536
468
|
headers = {};
|
|
537
469
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
538
|
-
query =
|
|
470
|
+
query = map({
|
|
471
|
+
resourceArn: [, input.resourceArn],
|
|
472
|
+
});
|
|
539
473
|
return [2, new __HttpRequest({
|
|
540
474
|
protocol: protocol,
|
|
541
475
|
hostname: hostname,
|
|
@@ -612,7 +546,9 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
612
546
|
"content-type": "application/json",
|
|
613
547
|
};
|
|
614
548
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
615
|
-
query =
|
|
549
|
+
query = map({
|
|
550
|
+
resourceArn: [, input.resourceArn],
|
|
551
|
+
});
|
|
616
552
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
617
553
|
return [2, new __HttpRequest({
|
|
618
554
|
protocol: protocol,
|
|
@@ -636,7 +572,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
636
572
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
637
573
|
headers = {};
|
|
638
574
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
639
|
-
query =
|
|
575
|
+
query = map({
|
|
576
|
+
resourceArn: [, input.resourceArn],
|
|
577
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
578
|
+
});
|
|
640
579
|
return [2, new __HttpRequest({
|
|
641
580
|
protocol: protocol,
|
|
642
581
|
hostname: hostname,
|
|
@@ -651,7 +590,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
651
590
|
});
|
|
652
591
|
}); };
|
|
653
592
|
export var serializeAws_restJson1UpdateAlarmModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
654
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
593
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
655
594
|
return __generator(this, function (_c) {
|
|
656
595
|
switch (_c.label) {
|
|
657
596
|
case 0: return [4, context.endpoint()];
|
|
@@ -661,16 +600,7 @@ export var serializeAws_restJson1UpdateAlarmModelCommand = function (input, cont
|
|
|
661
600
|
"content-type": "application/json",
|
|
662
601
|
};
|
|
663
602
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarm-models/{alarmModelName}";
|
|
664
|
-
|
|
665
|
-
labelValue = input.alarmModelName;
|
|
666
|
-
if (labelValue.length <= 0) {
|
|
667
|
-
throw new Error("Empty value provided for input HTTP label: alarmModelName.");
|
|
668
|
-
}
|
|
669
|
-
resolvedPath = resolvedPath.replace("{alarmModelName}", __extendedEncodeURIComponent(labelValue));
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
throw new Error("No value provided for input HTTP label: alarmModelName.");
|
|
673
|
-
}
|
|
603
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "alarmModelName", function () { return input.alarmModelName; }, "{alarmModelName}", false);
|
|
674
604
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities != null && {
|
|
675
605
|
alarmCapabilities: serializeAws_restJson1AlarmCapabilities(input.alarmCapabilities, context),
|
|
676
606
|
})), (input.alarmEventActions != null && {
|
|
@@ -691,7 +621,7 @@ export var serializeAws_restJson1UpdateAlarmModelCommand = function (input, cont
|
|
|
691
621
|
});
|
|
692
622
|
}); };
|
|
693
623
|
export var serializeAws_restJson1UpdateDetectorModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
694
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
624
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
695
625
|
return __generator(this, function (_c) {
|
|
696
626
|
switch (_c.label) {
|
|
697
627
|
case 0: return [4, context.endpoint()];
|
|
@@ -701,16 +631,7 @@ export var serializeAws_restJson1UpdateDetectorModelCommand = function (input, c
|
|
|
701
631
|
"content-type": "application/json",
|
|
702
632
|
};
|
|
703
633
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector-models/{detectorModelName}";
|
|
704
|
-
|
|
705
|
-
labelValue = input.detectorModelName;
|
|
706
|
-
if (labelValue.length <= 0) {
|
|
707
|
-
throw new Error("Empty value provided for input HTTP label: detectorModelName.");
|
|
708
|
-
}
|
|
709
|
-
resolvedPath = resolvedPath.replace("{detectorModelName}", __extendedEncodeURIComponent(labelValue));
|
|
710
|
-
}
|
|
711
|
-
else {
|
|
712
|
-
throw new Error("No value provided for input HTTP label: detectorModelName.");
|
|
713
|
-
}
|
|
634
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "detectorModelName", function () { return input.detectorModelName; }, "{detectorModelName}", false);
|
|
714
635
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition != null && {
|
|
715
636
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
716
637
|
})), (input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription })), (input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
@@ -727,7 +648,7 @@ export var serializeAws_restJson1UpdateDetectorModelCommand = function (input, c
|
|
|
727
648
|
});
|
|
728
649
|
}); };
|
|
729
650
|
export var serializeAws_restJson1UpdateInputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
730
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
651
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
731
652
|
return __generator(this, function (_c) {
|
|
732
653
|
switch (_c.label) {
|
|
733
654
|
case 0: return [4, context.endpoint()];
|
|
@@ -737,16 +658,7 @@ export var serializeAws_restJson1UpdateInputCommand = function (input, context)
|
|
|
737
658
|
"content-type": "application/json",
|
|
738
659
|
};
|
|
739
660
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/{inputName}";
|
|
740
|
-
|
|
741
|
-
labelValue = input.inputName;
|
|
742
|
-
if (labelValue.length <= 0) {
|
|
743
|
-
throw new Error("Empty value provided for input HTTP label: inputName.");
|
|
744
|
-
}
|
|
745
|
-
resolvedPath = resolvedPath.replace("{inputName}", __extendedEncodeURIComponent(labelValue));
|
|
746
|
-
}
|
|
747
|
-
else {
|
|
748
|
-
throw new Error("No value provided for input HTTP label: inputName.");
|
|
749
|
-
}
|
|
661
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "inputName", function () { return input.inputName; }, "{inputName}", false);
|
|
750
662
|
body = JSON.stringify(__assign(__assign({}, (input.inputDefinition != null && {
|
|
751
663
|
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
752
664
|
})), (input.inputDescription != null && { inputDescription: input.inputDescription })));
|
|
@@ -770,40 +682,35 @@ export var deserializeAws_restJson1CreateAlarmModelCommand = function (output, c
|
|
|
770
682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
683
|
return [2, deserializeAws_restJson1CreateAlarmModelCommandError(output, context)];
|
|
772
684
|
}
|
|
773
|
-
contents = {
|
|
685
|
+
contents = map({
|
|
774
686
|
$metadata: deserializeMetadata(output),
|
|
775
|
-
|
|
776
|
-
alarmModelVersion: undefined,
|
|
777
|
-
creationTime: undefined,
|
|
778
|
-
lastUpdateTime: undefined,
|
|
779
|
-
status: undefined,
|
|
780
|
-
};
|
|
687
|
+
});
|
|
781
688
|
_a = __expectNonNull;
|
|
782
689
|
_b = __expectObject;
|
|
783
690
|
return [4, parseBody(output.body, context)];
|
|
784
691
|
case 1:
|
|
785
692
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
786
|
-
if (data.alarmModelArn
|
|
693
|
+
if (data.alarmModelArn != null) {
|
|
787
694
|
contents.alarmModelArn = __expectString(data.alarmModelArn);
|
|
788
695
|
}
|
|
789
|
-
if (data.alarmModelVersion
|
|
696
|
+
if (data.alarmModelVersion != null) {
|
|
790
697
|
contents.alarmModelVersion = __expectString(data.alarmModelVersion);
|
|
791
698
|
}
|
|
792
|
-
if (data.creationTime
|
|
699
|
+
if (data.creationTime != null) {
|
|
793
700
|
contents.creationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTime)));
|
|
794
701
|
}
|
|
795
|
-
if (data.lastUpdateTime
|
|
702
|
+
if (data.lastUpdateTime != null) {
|
|
796
703
|
contents.lastUpdateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateTime)));
|
|
797
704
|
}
|
|
798
|
-
if (data.status
|
|
705
|
+
if (data.status != null) {
|
|
799
706
|
contents.status = __expectString(data.status);
|
|
800
707
|
}
|
|
801
|
-
return [2,
|
|
708
|
+
return [2, contents];
|
|
802
709
|
}
|
|
803
710
|
});
|
|
804
711
|
}); };
|
|
805
712
|
var deserializeAws_restJson1CreateAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
-
var parsedOutput, _a,
|
|
713
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
807
714
|
var _c;
|
|
808
715
|
return __generator(this, function (_d) {
|
|
809
716
|
switch (_d.label) {
|
|
@@ -848,14 +755,14 @@ var deserializeAws_restJson1CreateAlarmModelCommandError = function (output, con
|
|
|
848
755
|
case 15: throw _d.sent();
|
|
849
756
|
case 16:
|
|
850
757
|
parsedBody = parsedOutput.body;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
$metadata: $metadata,
|
|
758
|
+
throwDefaultError({
|
|
759
|
+
output: output,
|
|
760
|
+
parsedBody: parsedBody,
|
|
761
|
+
exceptionCtor: __BaseException,
|
|
762
|
+
errorCode: errorCode,
|
|
857
763
|
});
|
|
858
|
-
|
|
764
|
+
_d.label = 17;
|
|
765
|
+
case 17: return [2];
|
|
859
766
|
}
|
|
860
767
|
});
|
|
861
768
|
}); };
|
|
@@ -867,24 +774,23 @@ export var deserializeAws_restJson1CreateDetectorModelCommand = function (output
|
|
|
867
774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
775
|
return [2, deserializeAws_restJson1CreateDetectorModelCommandError(output, context)];
|
|
869
776
|
}
|
|
870
|
-
contents = {
|
|
777
|
+
contents = map({
|
|
871
778
|
$metadata: deserializeMetadata(output),
|
|
872
|
-
|
|
873
|
-
};
|
|
779
|
+
});
|
|
874
780
|
_a = __expectNonNull;
|
|
875
781
|
_b = __expectObject;
|
|
876
782
|
return [4, parseBody(output.body, context)];
|
|
877
783
|
case 1:
|
|
878
784
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
879
|
-
if (data.detectorModelConfiguration
|
|
785
|
+
if (data.detectorModelConfiguration != null) {
|
|
880
786
|
contents.detectorModelConfiguration = deserializeAws_restJson1DetectorModelConfiguration(data.detectorModelConfiguration, context);
|
|
881
787
|
}
|
|
882
|
-
return [2,
|
|
788
|
+
return [2, contents];
|
|
883
789
|
}
|
|
884
790
|
});
|
|
885
791
|
}); };
|
|
886
792
|
var deserializeAws_restJson1CreateDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
887
|
-
var parsedOutput, _a,
|
|
793
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
888
794
|
var _c;
|
|
889
795
|
return __generator(this, function (_d) {
|
|
890
796
|
switch (_d.label) {
|
|
@@ -929,14 +835,14 @@ var deserializeAws_restJson1CreateDetectorModelCommandError = function (output,
|
|
|
929
835
|
case 15: throw _d.sent();
|
|
930
836
|
case 16:
|
|
931
837
|
parsedBody = parsedOutput.body;
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
$metadata: $metadata,
|
|
838
|
+
throwDefaultError({
|
|
839
|
+
output: output,
|
|
840
|
+
parsedBody: parsedBody,
|
|
841
|
+
exceptionCtor: __BaseException,
|
|
842
|
+
errorCode: errorCode,
|
|
938
843
|
});
|
|
939
|
-
|
|
844
|
+
_d.label = 17;
|
|
845
|
+
case 17: return [2];
|
|
940
846
|
}
|
|
941
847
|
});
|
|
942
848
|
}); };
|
|
@@ -948,24 +854,23 @@ export var deserializeAws_restJson1CreateInputCommand = function (output, contex
|
|
|
948
854
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
949
855
|
return [2, deserializeAws_restJson1CreateInputCommandError(output, context)];
|
|
950
856
|
}
|
|
951
|
-
contents = {
|
|
857
|
+
contents = map({
|
|
952
858
|
$metadata: deserializeMetadata(output),
|
|
953
|
-
|
|
954
|
-
};
|
|
859
|
+
});
|
|
955
860
|
_a = __expectNonNull;
|
|
956
861
|
_b = __expectObject;
|
|
957
862
|
return [4, parseBody(output.body, context)];
|
|
958
863
|
case 1:
|
|
959
864
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
960
|
-
if (data.inputConfiguration
|
|
865
|
+
if (data.inputConfiguration != null) {
|
|
961
866
|
contents.inputConfiguration = deserializeAws_restJson1InputConfiguration(data.inputConfiguration, context);
|
|
962
867
|
}
|
|
963
|
-
return [2,
|
|
868
|
+
return [2, contents];
|
|
964
869
|
}
|
|
965
870
|
});
|
|
966
871
|
}); };
|
|
967
872
|
var deserializeAws_restJson1CreateInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
968
|
-
var parsedOutput, _a,
|
|
873
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
969
874
|
var _c;
|
|
970
875
|
return __generator(this, function (_d) {
|
|
971
876
|
switch (_d.label) {
|
|
@@ -1002,14 +907,14 @@ var deserializeAws_restJson1CreateInputCommandError = function (output, context)
|
|
|
1002
907
|
case 11: throw _d.sent();
|
|
1003
908
|
case 12:
|
|
1004
909
|
parsedBody = parsedOutput.body;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
$metadata: $metadata,
|
|
910
|
+
throwDefaultError({
|
|
911
|
+
output: output,
|
|
912
|
+
parsedBody: parsedBody,
|
|
913
|
+
exceptionCtor: __BaseException,
|
|
914
|
+
errorCode: errorCode,
|
|
1011
915
|
});
|
|
1012
|
-
|
|
916
|
+
_d.label = 13;
|
|
917
|
+
case 13: return [2];
|
|
1013
918
|
}
|
|
1014
919
|
});
|
|
1015
920
|
}); };
|
|
@@ -1021,18 +926,18 @@ export var deserializeAws_restJson1DeleteAlarmModelCommand = function (output, c
|
|
|
1021
926
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1022
927
|
return [2, deserializeAws_restJson1DeleteAlarmModelCommandError(output, context)];
|
|
1023
928
|
}
|
|
1024
|
-
contents = {
|
|
929
|
+
contents = map({
|
|
1025
930
|
$metadata: deserializeMetadata(output),
|
|
1026
|
-
};
|
|
931
|
+
});
|
|
1027
932
|
return [4, collectBody(output.body, context)];
|
|
1028
933
|
case 1:
|
|
1029
934
|
_a.sent();
|
|
1030
|
-
return [2,
|
|
935
|
+
return [2, contents];
|
|
1031
936
|
}
|
|
1032
937
|
});
|
|
1033
938
|
}); };
|
|
1034
939
|
var deserializeAws_restJson1DeleteAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1035
|
-
var parsedOutput, _a,
|
|
940
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1036
941
|
var _c;
|
|
1037
942
|
return __generator(this, function (_d) {
|
|
1038
943
|
switch (_d.label) {
|
|
@@ -1073,14 +978,14 @@ var deserializeAws_restJson1DeleteAlarmModelCommandError = function (output, con
|
|
|
1073
978
|
case 13: throw _d.sent();
|
|
1074
979
|
case 14:
|
|
1075
980
|
parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
$metadata: $metadata,
|
|
981
|
+
throwDefaultError({
|
|
982
|
+
output: output,
|
|
983
|
+
parsedBody: parsedBody,
|
|
984
|
+
exceptionCtor: __BaseException,
|
|
985
|
+
errorCode: errorCode,
|
|
1082
986
|
});
|
|
1083
|
-
|
|
987
|
+
_d.label = 15;
|
|
988
|
+
case 15: return [2];
|
|
1084
989
|
}
|
|
1085
990
|
});
|
|
1086
991
|
}); };
|
|
@@ -1092,18 +997,18 @@ export var deserializeAws_restJson1DeleteDetectorModelCommand = function (output
|
|
|
1092
997
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1093
998
|
return [2, deserializeAws_restJson1DeleteDetectorModelCommandError(output, context)];
|
|
1094
999
|
}
|
|
1095
|
-
contents = {
|
|
1000
|
+
contents = map({
|
|
1096
1001
|
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
1002
|
+
});
|
|
1098
1003
|
return [4, collectBody(output.body, context)];
|
|
1099
1004
|
case 1:
|
|
1100
1005
|
_a.sent();
|
|
1101
|
-
return [2,
|
|
1006
|
+
return [2, contents];
|
|
1102
1007
|
}
|
|
1103
1008
|
});
|
|
1104
1009
|
}); };
|
|
1105
1010
|
var deserializeAws_restJson1DeleteDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1106
|
-
var parsedOutput, _a,
|
|
1011
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1107
1012
|
var _c;
|
|
1108
1013
|
return __generator(this, function (_d) {
|
|
1109
1014
|
switch (_d.label) {
|
|
@@ -1144,14 +1049,14 @@ var deserializeAws_restJson1DeleteDetectorModelCommandError = function (output,
|
|
|
1144
1049
|
case 13: throw _d.sent();
|
|
1145
1050
|
case 14:
|
|
1146
1051
|
parsedBody = parsedOutput.body;
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
$metadata: $metadata,
|
|
1052
|
+
throwDefaultError({
|
|
1053
|
+
output: output,
|
|
1054
|
+
parsedBody: parsedBody,
|
|
1055
|
+
exceptionCtor: __BaseException,
|
|
1056
|
+
errorCode: errorCode,
|
|
1153
1057
|
});
|
|
1154
|
-
|
|
1058
|
+
_d.label = 15;
|
|
1059
|
+
case 15: return [2];
|
|
1155
1060
|
}
|
|
1156
1061
|
});
|
|
1157
1062
|
}); };
|
|
@@ -1163,18 +1068,18 @@ export var deserializeAws_restJson1DeleteInputCommand = function (output, contex
|
|
|
1163
1068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1164
1069
|
return [2, deserializeAws_restJson1DeleteInputCommandError(output, context)];
|
|
1165
1070
|
}
|
|
1166
|
-
contents = {
|
|
1071
|
+
contents = map({
|
|
1167
1072
|
$metadata: deserializeMetadata(output),
|
|
1168
|
-
};
|
|
1073
|
+
});
|
|
1169
1074
|
return [4, collectBody(output.body, context)];
|
|
1170
1075
|
case 1:
|
|
1171
1076
|
_a.sent();
|
|
1172
|
-
return [2,
|
|
1077
|
+
return [2, contents];
|
|
1173
1078
|
}
|
|
1174
1079
|
});
|
|
1175
1080
|
}); };
|
|
1176
1081
|
var deserializeAws_restJson1DeleteInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1177
|
-
var parsedOutput, _a,
|
|
1082
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1178
1083
|
var _c;
|
|
1179
1084
|
return __generator(this, function (_d) {
|
|
1180
1085
|
switch (_d.label) {
|
|
@@ -1215,14 +1120,14 @@ var deserializeAws_restJson1DeleteInputCommandError = function (output, context)
|
|
|
1215
1120
|
case 13: throw _d.sent();
|
|
1216
1121
|
case 14:
|
|
1217
1122
|
parsedBody = parsedOutput.body;
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
$metadata: $metadata,
|
|
1123
|
+
throwDefaultError({
|
|
1124
|
+
output: output,
|
|
1125
|
+
parsedBody: parsedBody,
|
|
1126
|
+
exceptionCtor: __BaseException,
|
|
1127
|
+
errorCode: errorCode,
|
|
1224
1128
|
});
|
|
1225
|
-
|
|
1129
|
+
_d.label = 15;
|
|
1130
|
+
case 15: return [2];
|
|
1226
1131
|
}
|
|
1227
1132
|
});
|
|
1228
1133
|
}); };
|
|
@@ -1234,80 +1139,65 @@ export var deserializeAws_restJson1DescribeAlarmModelCommand = function (output,
|
|
|
1234
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1235
1140
|
return [2, deserializeAws_restJson1DescribeAlarmModelCommandError(output, context)];
|
|
1236
1141
|
}
|
|
1237
|
-
contents = {
|
|
1142
|
+
contents = map({
|
|
1238
1143
|
$metadata: deserializeMetadata(output),
|
|
1239
|
-
|
|
1240
|
-
alarmEventActions: undefined,
|
|
1241
|
-
alarmModelArn: undefined,
|
|
1242
|
-
alarmModelDescription: undefined,
|
|
1243
|
-
alarmModelName: undefined,
|
|
1244
|
-
alarmModelVersion: undefined,
|
|
1245
|
-
alarmNotification: undefined,
|
|
1246
|
-
alarmRule: undefined,
|
|
1247
|
-
creationTime: undefined,
|
|
1248
|
-
key: undefined,
|
|
1249
|
-
lastUpdateTime: undefined,
|
|
1250
|
-
roleArn: undefined,
|
|
1251
|
-
severity: undefined,
|
|
1252
|
-
status: undefined,
|
|
1253
|
-
statusMessage: undefined,
|
|
1254
|
-
};
|
|
1144
|
+
});
|
|
1255
1145
|
_a = __expectNonNull;
|
|
1256
1146
|
_b = __expectObject;
|
|
1257
1147
|
return [4, parseBody(output.body, context)];
|
|
1258
1148
|
case 1:
|
|
1259
1149
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1260
|
-
if (data.alarmCapabilities
|
|
1150
|
+
if (data.alarmCapabilities != null) {
|
|
1261
1151
|
contents.alarmCapabilities = deserializeAws_restJson1AlarmCapabilities(data.alarmCapabilities, context);
|
|
1262
1152
|
}
|
|
1263
|
-
if (data.alarmEventActions
|
|
1153
|
+
if (data.alarmEventActions != null) {
|
|
1264
1154
|
contents.alarmEventActions = deserializeAws_restJson1AlarmEventActions(data.alarmEventActions, context);
|
|
1265
1155
|
}
|
|
1266
|
-
if (data.alarmModelArn
|
|
1156
|
+
if (data.alarmModelArn != null) {
|
|
1267
1157
|
contents.alarmModelArn = __expectString(data.alarmModelArn);
|
|
1268
1158
|
}
|
|
1269
|
-
if (data.alarmModelDescription
|
|
1159
|
+
if (data.alarmModelDescription != null) {
|
|
1270
1160
|
contents.alarmModelDescription = __expectString(data.alarmModelDescription);
|
|
1271
1161
|
}
|
|
1272
|
-
if (data.alarmModelName
|
|
1162
|
+
if (data.alarmModelName != null) {
|
|
1273
1163
|
contents.alarmModelName = __expectString(data.alarmModelName);
|
|
1274
1164
|
}
|
|
1275
|
-
if (data.alarmModelVersion
|
|
1165
|
+
if (data.alarmModelVersion != null) {
|
|
1276
1166
|
contents.alarmModelVersion = __expectString(data.alarmModelVersion);
|
|
1277
1167
|
}
|
|
1278
|
-
if (data.alarmNotification
|
|
1168
|
+
if (data.alarmNotification != null) {
|
|
1279
1169
|
contents.alarmNotification = deserializeAws_restJson1AlarmNotification(data.alarmNotification, context);
|
|
1280
1170
|
}
|
|
1281
|
-
if (data.alarmRule
|
|
1171
|
+
if (data.alarmRule != null) {
|
|
1282
1172
|
contents.alarmRule = deserializeAws_restJson1AlarmRule(data.alarmRule, context);
|
|
1283
1173
|
}
|
|
1284
|
-
if (data.creationTime
|
|
1174
|
+
if (data.creationTime != null) {
|
|
1285
1175
|
contents.creationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTime)));
|
|
1286
1176
|
}
|
|
1287
|
-
if (data.key
|
|
1177
|
+
if (data.key != null) {
|
|
1288
1178
|
contents.key = __expectString(data.key);
|
|
1289
1179
|
}
|
|
1290
|
-
if (data.lastUpdateTime
|
|
1180
|
+
if (data.lastUpdateTime != null) {
|
|
1291
1181
|
contents.lastUpdateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateTime)));
|
|
1292
1182
|
}
|
|
1293
|
-
if (data.roleArn
|
|
1183
|
+
if (data.roleArn != null) {
|
|
1294
1184
|
contents.roleArn = __expectString(data.roleArn);
|
|
1295
1185
|
}
|
|
1296
|
-
if (data.severity
|
|
1186
|
+
if (data.severity != null) {
|
|
1297
1187
|
contents.severity = __expectInt32(data.severity);
|
|
1298
1188
|
}
|
|
1299
|
-
if (data.status
|
|
1189
|
+
if (data.status != null) {
|
|
1300
1190
|
contents.status = __expectString(data.status);
|
|
1301
1191
|
}
|
|
1302
|
-
if (data.statusMessage
|
|
1192
|
+
if (data.statusMessage != null) {
|
|
1303
1193
|
contents.statusMessage = __expectString(data.statusMessage);
|
|
1304
1194
|
}
|
|
1305
|
-
return [2,
|
|
1195
|
+
return [2, contents];
|
|
1306
1196
|
}
|
|
1307
1197
|
});
|
|
1308
1198
|
}); };
|
|
1309
1199
|
var deserializeAws_restJson1DescribeAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1310
|
-
var parsedOutput, _a,
|
|
1200
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1311
1201
|
var _c;
|
|
1312
1202
|
return __generator(this, function (_d) {
|
|
1313
1203
|
switch (_d.label) {
|
|
@@ -1344,14 +1234,14 @@ var deserializeAws_restJson1DescribeAlarmModelCommandError = function (output, c
|
|
|
1344
1234
|
case 11: throw _d.sent();
|
|
1345
1235
|
case 12:
|
|
1346
1236
|
parsedBody = parsedOutput.body;
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
$metadata: $metadata,
|
|
1237
|
+
throwDefaultError({
|
|
1238
|
+
output: output,
|
|
1239
|
+
parsedBody: parsedBody,
|
|
1240
|
+
exceptionCtor: __BaseException,
|
|
1241
|
+
errorCode: errorCode,
|
|
1353
1242
|
});
|
|
1354
|
-
|
|
1243
|
+
_d.label = 13;
|
|
1244
|
+
case 13: return [2];
|
|
1355
1245
|
}
|
|
1356
1246
|
});
|
|
1357
1247
|
}); };
|
|
@@ -1363,24 +1253,23 @@ export var deserializeAws_restJson1DescribeDetectorModelCommand = function (outp
|
|
|
1363
1253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
1254
|
return [2, deserializeAws_restJson1DescribeDetectorModelCommandError(output, context)];
|
|
1365
1255
|
}
|
|
1366
|
-
contents = {
|
|
1256
|
+
contents = map({
|
|
1367
1257
|
$metadata: deserializeMetadata(output),
|
|
1368
|
-
|
|
1369
|
-
};
|
|
1258
|
+
});
|
|
1370
1259
|
_a = __expectNonNull;
|
|
1371
1260
|
_b = __expectObject;
|
|
1372
1261
|
return [4, parseBody(output.body, context)];
|
|
1373
1262
|
case 1:
|
|
1374
1263
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1375
|
-
if (data.detectorModel
|
|
1264
|
+
if (data.detectorModel != null) {
|
|
1376
1265
|
contents.detectorModel = deserializeAws_restJson1DetectorModel(data.detectorModel, context);
|
|
1377
1266
|
}
|
|
1378
|
-
return [2,
|
|
1267
|
+
return [2, contents];
|
|
1379
1268
|
}
|
|
1380
1269
|
});
|
|
1381
1270
|
}); };
|
|
1382
1271
|
var deserializeAws_restJson1DescribeDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1383
|
-
var parsedOutput, _a,
|
|
1272
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1384
1273
|
var _c;
|
|
1385
1274
|
return __generator(this, function (_d) {
|
|
1386
1275
|
switch (_d.label) {
|
|
@@ -1417,14 +1306,14 @@ var deserializeAws_restJson1DescribeDetectorModelCommandError = function (output
|
|
|
1417
1306
|
case 11: throw _d.sent();
|
|
1418
1307
|
case 12:
|
|
1419
1308
|
parsedBody = parsedOutput.body;
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
$metadata: $metadata,
|
|
1309
|
+
throwDefaultError({
|
|
1310
|
+
output: output,
|
|
1311
|
+
parsedBody: parsedBody,
|
|
1312
|
+
exceptionCtor: __BaseException,
|
|
1313
|
+
errorCode: errorCode,
|
|
1426
1314
|
});
|
|
1427
|
-
|
|
1315
|
+
_d.label = 13;
|
|
1316
|
+
case 13: return [2];
|
|
1428
1317
|
}
|
|
1429
1318
|
});
|
|
1430
1319
|
}); };
|
|
@@ -1436,24 +1325,23 @@ export var deserializeAws_restJson1DescribeDetectorModelAnalysisCommand = functi
|
|
|
1436
1325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
1326
|
return [2, deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError(output, context)];
|
|
1438
1327
|
}
|
|
1439
|
-
contents = {
|
|
1328
|
+
contents = map({
|
|
1440
1329
|
$metadata: deserializeMetadata(output),
|
|
1441
|
-
|
|
1442
|
-
};
|
|
1330
|
+
});
|
|
1443
1331
|
_a = __expectNonNull;
|
|
1444
1332
|
_b = __expectObject;
|
|
1445
1333
|
return [4, parseBody(output.body, context)];
|
|
1446
1334
|
case 1:
|
|
1447
1335
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1448
|
-
if (data.status
|
|
1336
|
+
if (data.status != null) {
|
|
1449
1337
|
contents.status = __expectString(data.status);
|
|
1450
1338
|
}
|
|
1451
|
-
return [2,
|
|
1339
|
+
return [2, contents];
|
|
1452
1340
|
}
|
|
1453
1341
|
});
|
|
1454
1342
|
}); };
|
|
1455
1343
|
var deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1456
|
-
var parsedOutput, _a,
|
|
1344
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1457
1345
|
var _c;
|
|
1458
1346
|
return __generator(this, function (_d) {
|
|
1459
1347
|
switch (_d.label) {
|
|
@@ -1490,14 +1378,14 @@ var deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = function
|
|
|
1490
1378
|
case 11: throw _d.sent();
|
|
1491
1379
|
case 12:
|
|
1492
1380
|
parsedBody = parsedOutput.body;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
$metadata: $metadata,
|
|
1381
|
+
throwDefaultError({
|
|
1382
|
+
output: output,
|
|
1383
|
+
parsedBody: parsedBody,
|
|
1384
|
+
exceptionCtor: __BaseException,
|
|
1385
|
+
errorCode: errorCode,
|
|
1499
1386
|
});
|
|
1500
|
-
|
|
1387
|
+
_d.label = 13;
|
|
1388
|
+
case 13: return [2];
|
|
1501
1389
|
}
|
|
1502
1390
|
});
|
|
1503
1391
|
}); };
|
|
@@ -1509,24 +1397,23 @@ export var deserializeAws_restJson1DescribeInputCommand = function (output, cont
|
|
|
1509
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1510
1398
|
return [2, deserializeAws_restJson1DescribeInputCommandError(output, context)];
|
|
1511
1399
|
}
|
|
1512
|
-
contents = {
|
|
1400
|
+
contents = map({
|
|
1513
1401
|
$metadata: deserializeMetadata(output),
|
|
1514
|
-
|
|
1515
|
-
};
|
|
1402
|
+
});
|
|
1516
1403
|
_a = __expectNonNull;
|
|
1517
1404
|
_b = __expectObject;
|
|
1518
1405
|
return [4, parseBody(output.body, context)];
|
|
1519
1406
|
case 1:
|
|
1520
1407
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1521
|
-
if (data.input
|
|
1408
|
+
if (data.input != null) {
|
|
1522
1409
|
contents.input = deserializeAws_restJson1Input(data.input, context);
|
|
1523
1410
|
}
|
|
1524
|
-
return [2,
|
|
1411
|
+
return [2, contents];
|
|
1525
1412
|
}
|
|
1526
1413
|
});
|
|
1527
1414
|
}); };
|
|
1528
1415
|
var deserializeAws_restJson1DescribeInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1529
|
-
var parsedOutput, _a,
|
|
1416
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1530
1417
|
var _c;
|
|
1531
1418
|
return __generator(this, function (_d) {
|
|
1532
1419
|
switch (_d.label) {
|
|
@@ -1563,14 +1450,14 @@ var deserializeAws_restJson1DescribeInputCommandError = function (output, contex
|
|
|
1563
1450
|
case 11: throw _d.sent();
|
|
1564
1451
|
case 12:
|
|
1565
1452
|
parsedBody = parsedOutput.body;
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
$metadata: $metadata,
|
|
1453
|
+
throwDefaultError({
|
|
1454
|
+
output: output,
|
|
1455
|
+
parsedBody: parsedBody,
|
|
1456
|
+
exceptionCtor: __BaseException,
|
|
1457
|
+
errorCode: errorCode,
|
|
1572
1458
|
});
|
|
1573
|
-
|
|
1459
|
+
_d.label = 13;
|
|
1460
|
+
case 13: return [2];
|
|
1574
1461
|
}
|
|
1575
1462
|
});
|
|
1576
1463
|
}); };
|
|
@@ -1582,24 +1469,23 @@ export var deserializeAws_restJson1DescribeLoggingOptionsCommand = function (out
|
|
|
1582
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1583
1470
|
return [2, deserializeAws_restJson1DescribeLoggingOptionsCommandError(output, context)];
|
|
1584
1471
|
}
|
|
1585
|
-
contents = {
|
|
1472
|
+
contents = map({
|
|
1586
1473
|
$metadata: deserializeMetadata(output),
|
|
1587
|
-
|
|
1588
|
-
};
|
|
1474
|
+
});
|
|
1589
1475
|
_a = __expectNonNull;
|
|
1590
1476
|
_b = __expectObject;
|
|
1591
1477
|
return [4, parseBody(output.body, context)];
|
|
1592
1478
|
case 1:
|
|
1593
1479
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1594
|
-
if (data.loggingOptions
|
|
1480
|
+
if (data.loggingOptions != null) {
|
|
1595
1481
|
contents.loggingOptions = deserializeAws_restJson1LoggingOptions(data.loggingOptions, context);
|
|
1596
1482
|
}
|
|
1597
|
-
return [2,
|
|
1483
|
+
return [2, contents];
|
|
1598
1484
|
}
|
|
1599
1485
|
});
|
|
1600
1486
|
}); };
|
|
1601
1487
|
var deserializeAws_restJson1DescribeLoggingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1602
|
-
var parsedOutput, _a,
|
|
1488
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1603
1489
|
var _c;
|
|
1604
1490
|
return __generator(this, function (_d) {
|
|
1605
1491
|
switch (_d.label) {
|
|
@@ -1640,14 +1526,14 @@ var deserializeAws_restJson1DescribeLoggingOptionsCommandError = function (outpu
|
|
|
1640
1526
|
case 13: throw _d.sent();
|
|
1641
1527
|
case 14:
|
|
1642
1528
|
parsedBody = parsedOutput.body;
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
$metadata: $metadata,
|
|
1529
|
+
throwDefaultError({
|
|
1530
|
+
output: output,
|
|
1531
|
+
parsedBody: parsedBody,
|
|
1532
|
+
exceptionCtor: __BaseException,
|
|
1533
|
+
errorCode: errorCode,
|
|
1649
1534
|
});
|
|
1650
|
-
|
|
1535
|
+
_d.label = 15;
|
|
1536
|
+
case 15: return [2];
|
|
1651
1537
|
}
|
|
1652
1538
|
});
|
|
1653
1539
|
}); };
|
|
@@ -1659,28 +1545,26 @@ export var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommand = func
|
|
|
1659
1545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1660
1546
|
return [2, deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError(output, context)];
|
|
1661
1547
|
}
|
|
1662
|
-
contents = {
|
|
1548
|
+
contents = map({
|
|
1663
1549
|
$metadata: deserializeMetadata(output),
|
|
1664
|
-
|
|
1665
|
-
nextToken: undefined,
|
|
1666
|
-
};
|
|
1550
|
+
});
|
|
1667
1551
|
_a = __expectNonNull;
|
|
1668
1552
|
_b = __expectObject;
|
|
1669
1553
|
return [4, parseBody(output.body, context)];
|
|
1670
1554
|
case 1:
|
|
1671
1555
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1672
|
-
if (data.analysisResults
|
|
1556
|
+
if (data.analysisResults != null) {
|
|
1673
1557
|
contents.analysisResults = deserializeAws_restJson1AnalysisResults(data.analysisResults, context);
|
|
1674
1558
|
}
|
|
1675
|
-
if (data.nextToken
|
|
1559
|
+
if (data.nextToken != null) {
|
|
1676
1560
|
contents.nextToken = __expectString(data.nextToken);
|
|
1677
1561
|
}
|
|
1678
|
-
return [2,
|
|
1562
|
+
return [2, contents];
|
|
1679
1563
|
}
|
|
1680
1564
|
});
|
|
1681
1565
|
}); };
|
|
1682
1566
|
var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1683
|
-
var parsedOutput, _a,
|
|
1567
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1684
1568
|
var _c;
|
|
1685
1569
|
return __generator(this, function (_d) {
|
|
1686
1570
|
switch (_d.label) {
|
|
@@ -1717,14 +1601,14 @@ var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = functi
|
|
|
1717
1601
|
case 11: throw _d.sent();
|
|
1718
1602
|
case 12:
|
|
1719
1603
|
parsedBody = parsedOutput.body;
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
$metadata: $metadata,
|
|
1604
|
+
throwDefaultError({
|
|
1605
|
+
output: output,
|
|
1606
|
+
parsedBody: parsedBody,
|
|
1607
|
+
exceptionCtor: __BaseException,
|
|
1608
|
+
errorCode: errorCode,
|
|
1726
1609
|
});
|
|
1727
|
-
|
|
1610
|
+
_d.label = 13;
|
|
1611
|
+
case 13: return [2];
|
|
1728
1612
|
}
|
|
1729
1613
|
});
|
|
1730
1614
|
}); };
|
|
@@ -1736,28 +1620,26 @@ export var deserializeAws_restJson1ListAlarmModelsCommand = function (output, co
|
|
|
1736
1620
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1737
1621
|
return [2, deserializeAws_restJson1ListAlarmModelsCommandError(output, context)];
|
|
1738
1622
|
}
|
|
1739
|
-
contents = {
|
|
1623
|
+
contents = map({
|
|
1740
1624
|
$metadata: deserializeMetadata(output),
|
|
1741
|
-
|
|
1742
|
-
nextToken: undefined,
|
|
1743
|
-
};
|
|
1625
|
+
});
|
|
1744
1626
|
_a = __expectNonNull;
|
|
1745
1627
|
_b = __expectObject;
|
|
1746
1628
|
return [4, parseBody(output.body, context)];
|
|
1747
1629
|
case 1:
|
|
1748
1630
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1749
|
-
if (data.alarmModelSummaries
|
|
1631
|
+
if (data.alarmModelSummaries != null) {
|
|
1750
1632
|
contents.alarmModelSummaries = deserializeAws_restJson1AlarmModelSummaries(data.alarmModelSummaries, context);
|
|
1751
1633
|
}
|
|
1752
|
-
if (data.nextToken
|
|
1634
|
+
if (data.nextToken != null) {
|
|
1753
1635
|
contents.nextToken = __expectString(data.nextToken);
|
|
1754
1636
|
}
|
|
1755
|
-
return [2,
|
|
1637
|
+
return [2, contents];
|
|
1756
1638
|
}
|
|
1757
1639
|
});
|
|
1758
1640
|
}); };
|
|
1759
1641
|
var deserializeAws_restJson1ListAlarmModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1760
|
-
var parsedOutput, _a,
|
|
1642
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1761
1643
|
var _c;
|
|
1762
1644
|
return __generator(this, function (_d) {
|
|
1763
1645
|
switch (_d.label) {
|
|
@@ -1790,14 +1672,14 @@ var deserializeAws_restJson1ListAlarmModelsCommandError = function (output, cont
|
|
|
1790
1672
|
case 9: throw _d.sent();
|
|
1791
1673
|
case 10:
|
|
1792
1674
|
parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
$metadata: $metadata,
|
|
1675
|
+
throwDefaultError({
|
|
1676
|
+
output: output,
|
|
1677
|
+
parsedBody: parsedBody,
|
|
1678
|
+
exceptionCtor: __BaseException,
|
|
1679
|
+
errorCode: errorCode,
|
|
1799
1680
|
});
|
|
1800
|
-
|
|
1681
|
+
_d.label = 11;
|
|
1682
|
+
case 11: return [2];
|
|
1801
1683
|
}
|
|
1802
1684
|
});
|
|
1803
1685
|
}); };
|
|
@@ -1809,28 +1691,26 @@ export var deserializeAws_restJson1ListAlarmModelVersionsCommand = function (out
|
|
|
1809
1691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1810
1692
|
return [2, deserializeAws_restJson1ListAlarmModelVersionsCommandError(output, context)];
|
|
1811
1693
|
}
|
|
1812
|
-
contents = {
|
|
1694
|
+
contents = map({
|
|
1813
1695
|
$metadata: deserializeMetadata(output),
|
|
1814
|
-
|
|
1815
|
-
nextToken: undefined,
|
|
1816
|
-
};
|
|
1696
|
+
});
|
|
1817
1697
|
_a = __expectNonNull;
|
|
1818
1698
|
_b = __expectObject;
|
|
1819
1699
|
return [4, parseBody(output.body, context)];
|
|
1820
1700
|
case 1:
|
|
1821
1701
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1822
|
-
if (data.alarmModelVersionSummaries
|
|
1702
|
+
if (data.alarmModelVersionSummaries != null) {
|
|
1823
1703
|
contents.alarmModelVersionSummaries = deserializeAws_restJson1AlarmModelVersionSummaries(data.alarmModelVersionSummaries, context);
|
|
1824
1704
|
}
|
|
1825
|
-
if (data.nextToken
|
|
1705
|
+
if (data.nextToken != null) {
|
|
1826
1706
|
contents.nextToken = __expectString(data.nextToken);
|
|
1827
1707
|
}
|
|
1828
|
-
return [2,
|
|
1708
|
+
return [2, contents];
|
|
1829
1709
|
}
|
|
1830
1710
|
});
|
|
1831
1711
|
}); };
|
|
1832
1712
|
var deserializeAws_restJson1ListAlarmModelVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1833
|
-
var parsedOutput, _a,
|
|
1713
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1834
1714
|
var _c;
|
|
1835
1715
|
return __generator(this, function (_d) {
|
|
1836
1716
|
switch (_d.label) {
|
|
@@ -1867,14 +1747,14 @@ var deserializeAws_restJson1ListAlarmModelVersionsCommandError = function (outpu
|
|
|
1867
1747
|
case 11: throw _d.sent();
|
|
1868
1748
|
case 12:
|
|
1869
1749
|
parsedBody = parsedOutput.body;
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
$metadata: $metadata,
|
|
1750
|
+
throwDefaultError({
|
|
1751
|
+
output: output,
|
|
1752
|
+
parsedBody: parsedBody,
|
|
1753
|
+
exceptionCtor: __BaseException,
|
|
1754
|
+
errorCode: errorCode,
|
|
1876
1755
|
});
|
|
1877
|
-
|
|
1756
|
+
_d.label = 13;
|
|
1757
|
+
case 13: return [2];
|
|
1878
1758
|
}
|
|
1879
1759
|
});
|
|
1880
1760
|
}); };
|
|
@@ -1886,28 +1766,26 @@ export var deserializeAws_restJson1ListDetectorModelsCommand = function (output,
|
|
|
1886
1766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1887
1767
|
return [2, deserializeAws_restJson1ListDetectorModelsCommandError(output, context)];
|
|
1888
1768
|
}
|
|
1889
|
-
contents = {
|
|
1769
|
+
contents = map({
|
|
1890
1770
|
$metadata: deserializeMetadata(output),
|
|
1891
|
-
|
|
1892
|
-
nextToken: undefined,
|
|
1893
|
-
};
|
|
1771
|
+
});
|
|
1894
1772
|
_a = __expectNonNull;
|
|
1895
1773
|
_b = __expectObject;
|
|
1896
1774
|
return [4, parseBody(output.body, context)];
|
|
1897
1775
|
case 1:
|
|
1898
1776
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1899
|
-
if (data.detectorModelSummaries
|
|
1777
|
+
if (data.detectorModelSummaries != null) {
|
|
1900
1778
|
contents.detectorModelSummaries = deserializeAws_restJson1DetectorModelSummaries(data.detectorModelSummaries, context);
|
|
1901
1779
|
}
|
|
1902
|
-
if (data.nextToken
|
|
1780
|
+
if (data.nextToken != null) {
|
|
1903
1781
|
contents.nextToken = __expectString(data.nextToken);
|
|
1904
1782
|
}
|
|
1905
|
-
return [2,
|
|
1783
|
+
return [2, contents];
|
|
1906
1784
|
}
|
|
1907
1785
|
});
|
|
1908
1786
|
}); };
|
|
1909
1787
|
var deserializeAws_restJson1ListDetectorModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1910
|
-
var parsedOutput, _a,
|
|
1788
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1911
1789
|
var _c;
|
|
1912
1790
|
return __generator(this, function (_d) {
|
|
1913
1791
|
switch (_d.label) {
|
|
@@ -1940,14 +1818,14 @@ var deserializeAws_restJson1ListDetectorModelsCommandError = function (output, c
|
|
|
1940
1818
|
case 9: throw _d.sent();
|
|
1941
1819
|
case 10:
|
|
1942
1820
|
parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
$metadata: $metadata,
|
|
1821
|
+
throwDefaultError({
|
|
1822
|
+
output: output,
|
|
1823
|
+
parsedBody: parsedBody,
|
|
1824
|
+
exceptionCtor: __BaseException,
|
|
1825
|
+
errorCode: errorCode,
|
|
1949
1826
|
});
|
|
1950
|
-
|
|
1827
|
+
_d.label = 11;
|
|
1828
|
+
case 11: return [2];
|
|
1951
1829
|
}
|
|
1952
1830
|
});
|
|
1953
1831
|
}); };
|
|
@@ -1959,28 +1837,26 @@ export var deserializeAws_restJson1ListDetectorModelVersionsCommand = function (
|
|
|
1959
1837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1960
1838
|
return [2, deserializeAws_restJson1ListDetectorModelVersionsCommandError(output, context)];
|
|
1961
1839
|
}
|
|
1962
|
-
contents = {
|
|
1840
|
+
contents = map({
|
|
1963
1841
|
$metadata: deserializeMetadata(output),
|
|
1964
|
-
|
|
1965
|
-
nextToken: undefined,
|
|
1966
|
-
};
|
|
1842
|
+
});
|
|
1967
1843
|
_a = __expectNonNull;
|
|
1968
1844
|
_b = __expectObject;
|
|
1969
1845
|
return [4, parseBody(output.body, context)];
|
|
1970
1846
|
case 1:
|
|
1971
1847
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1972
|
-
if (data.detectorModelVersionSummaries
|
|
1848
|
+
if (data.detectorModelVersionSummaries != null) {
|
|
1973
1849
|
contents.detectorModelVersionSummaries = deserializeAws_restJson1DetectorModelVersionSummaries(data.detectorModelVersionSummaries, context);
|
|
1974
1850
|
}
|
|
1975
|
-
if (data.nextToken
|
|
1851
|
+
if (data.nextToken != null) {
|
|
1976
1852
|
contents.nextToken = __expectString(data.nextToken);
|
|
1977
1853
|
}
|
|
1978
|
-
return [2,
|
|
1854
|
+
return [2, contents];
|
|
1979
1855
|
}
|
|
1980
1856
|
});
|
|
1981
1857
|
}); };
|
|
1982
1858
|
var deserializeAws_restJson1ListDetectorModelVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1983
|
-
var parsedOutput, _a,
|
|
1859
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1984
1860
|
var _c;
|
|
1985
1861
|
return __generator(this, function (_d) {
|
|
1986
1862
|
switch (_d.label) {
|
|
@@ -2017,14 +1893,14 @@ var deserializeAws_restJson1ListDetectorModelVersionsCommandError = function (ou
|
|
|
2017
1893
|
case 11: throw _d.sent();
|
|
2018
1894
|
case 12:
|
|
2019
1895
|
parsedBody = parsedOutput.body;
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
$metadata: $metadata,
|
|
1896
|
+
throwDefaultError({
|
|
1897
|
+
output: output,
|
|
1898
|
+
parsedBody: parsedBody,
|
|
1899
|
+
exceptionCtor: __BaseException,
|
|
1900
|
+
errorCode: errorCode,
|
|
2026
1901
|
});
|
|
2027
|
-
|
|
1902
|
+
_d.label = 13;
|
|
1903
|
+
case 13: return [2];
|
|
2028
1904
|
}
|
|
2029
1905
|
});
|
|
2030
1906
|
}); };
|
|
@@ -2036,28 +1912,26 @@ export var deserializeAws_restJson1ListInputRoutingsCommand = function (output,
|
|
|
2036
1912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2037
1913
|
return [2, deserializeAws_restJson1ListInputRoutingsCommandError(output, context)];
|
|
2038
1914
|
}
|
|
2039
|
-
contents = {
|
|
1915
|
+
contents = map({
|
|
2040
1916
|
$metadata: deserializeMetadata(output),
|
|
2041
|
-
|
|
2042
|
-
routedResources: undefined,
|
|
2043
|
-
};
|
|
1917
|
+
});
|
|
2044
1918
|
_a = __expectNonNull;
|
|
2045
1919
|
_b = __expectObject;
|
|
2046
1920
|
return [4, parseBody(output.body, context)];
|
|
2047
1921
|
case 1:
|
|
2048
1922
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2049
|
-
if (data.nextToken
|
|
1923
|
+
if (data.nextToken != null) {
|
|
2050
1924
|
contents.nextToken = __expectString(data.nextToken);
|
|
2051
1925
|
}
|
|
2052
|
-
if (data.routedResources
|
|
1926
|
+
if (data.routedResources != null) {
|
|
2053
1927
|
contents.routedResources = deserializeAws_restJson1RoutedResources(data.routedResources, context);
|
|
2054
1928
|
}
|
|
2055
|
-
return [2,
|
|
1929
|
+
return [2, contents];
|
|
2056
1930
|
}
|
|
2057
1931
|
});
|
|
2058
1932
|
}); };
|
|
2059
1933
|
var deserializeAws_restJson1ListInputRoutingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2060
|
-
var parsedOutput, _a,
|
|
1934
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2061
1935
|
var _c;
|
|
2062
1936
|
return __generator(this, function (_d) {
|
|
2063
1937
|
switch (_d.label) {
|
|
@@ -2094,14 +1968,14 @@ var deserializeAws_restJson1ListInputRoutingsCommandError = function (output, co
|
|
|
2094
1968
|
case 11: throw _d.sent();
|
|
2095
1969
|
case 12:
|
|
2096
1970
|
parsedBody = parsedOutput.body;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
$metadata: $metadata,
|
|
1971
|
+
throwDefaultError({
|
|
1972
|
+
output: output,
|
|
1973
|
+
parsedBody: parsedBody,
|
|
1974
|
+
exceptionCtor: __BaseException,
|
|
1975
|
+
errorCode: errorCode,
|
|
2103
1976
|
});
|
|
2104
|
-
|
|
1977
|
+
_d.label = 13;
|
|
1978
|
+
case 13: return [2];
|
|
2105
1979
|
}
|
|
2106
1980
|
});
|
|
2107
1981
|
}); };
|
|
@@ -2113,28 +1987,26 @@ export var deserializeAws_restJson1ListInputsCommand = function (output, context
|
|
|
2113
1987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2114
1988
|
return [2, deserializeAws_restJson1ListInputsCommandError(output, context)];
|
|
2115
1989
|
}
|
|
2116
|
-
contents = {
|
|
1990
|
+
contents = map({
|
|
2117
1991
|
$metadata: deserializeMetadata(output),
|
|
2118
|
-
|
|
2119
|
-
nextToken: undefined,
|
|
2120
|
-
};
|
|
1992
|
+
});
|
|
2121
1993
|
_a = __expectNonNull;
|
|
2122
1994
|
_b = __expectObject;
|
|
2123
1995
|
return [4, parseBody(output.body, context)];
|
|
2124
1996
|
case 1:
|
|
2125
1997
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2126
|
-
if (data.inputSummaries
|
|
1998
|
+
if (data.inputSummaries != null) {
|
|
2127
1999
|
contents.inputSummaries = deserializeAws_restJson1InputSummaries(data.inputSummaries, context);
|
|
2128
2000
|
}
|
|
2129
|
-
if (data.nextToken
|
|
2001
|
+
if (data.nextToken != null) {
|
|
2130
2002
|
contents.nextToken = __expectString(data.nextToken);
|
|
2131
2003
|
}
|
|
2132
|
-
return [2,
|
|
2004
|
+
return [2, contents];
|
|
2133
2005
|
}
|
|
2134
2006
|
});
|
|
2135
2007
|
}); };
|
|
2136
2008
|
var deserializeAws_restJson1ListInputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2137
|
-
var parsedOutput, _a,
|
|
2009
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2138
2010
|
var _c;
|
|
2139
2011
|
return __generator(this, function (_d) {
|
|
2140
2012
|
switch (_d.label) {
|
|
@@ -2167,14 +2039,14 @@ var deserializeAws_restJson1ListInputsCommandError = function (output, context)
|
|
|
2167
2039
|
case 9: throw _d.sent();
|
|
2168
2040
|
case 10:
|
|
2169
2041
|
parsedBody = parsedOutput.body;
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
$metadata: $metadata,
|
|
2042
|
+
throwDefaultError({
|
|
2043
|
+
output: output,
|
|
2044
|
+
parsedBody: parsedBody,
|
|
2045
|
+
exceptionCtor: __BaseException,
|
|
2046
|
+
errorCode: errorCode,
|
|
2176
2047
|
});
|
|
2177
|
-
|
|
2048
|
+
_d.label = 11;
|
|
2049
|
+
case 11: return [2];
|
|
2178
2050
|
}
|
|
2179
2051
|
});
|
|
2180
2052
|
}); };
|
|
@@ -2186,24 +2058,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2186
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2187
2059
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2188
2060
|
}
|
|
2189
|
-
contents = {
|
|
2061
|
+
contents = map({
|
|
2190
2062
|
$metadata: deserializeMetadata(output),
|
|
2191
|
-
|
|
2192
|
-
};
|
|
2063
|
+
});
|
|
2193
2064
|
_a = __expectNonNull;
|
|
2194
2065
|
_b = __expectObject;
|
|
2195
2066
|
return [4, parseBody(output.body, context)];
|
|
2196
2067
|
case 1:
|
|
2197
2068
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2198
|
-
if (data.tags
|
|
2069
|
+
if (data.tags != null) {
|
|
2199
2070
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
2200
2071
|
}
|
|
2201
|
-
return [2,
|
|
2072
|
+
return [2, contents];
|
|
2202
2073
|
}
|
|
2203
2074
|
});
|
|
2204
2075
|
}); };
|
|
2205
2076
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2206
|
-
var parsedOutput, _a,
|
|
2077
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2207
2078
|
var _c;
|
|
2208
2079
|
return __generator(this, function (_d) {
|
|
2209
2080
|
switch (_d.label) {
|
|
@@ -2240,14 +2111,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2240
2111
|
case 11: throw _d.sent();
|
|
2241
2112
|
case 12:
|
|
2242
2113
|
parsedBody = parsedOutput.body;
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
$metadata: $metadata,
|
|
2114
|
+
throwDefaultError({
|
|
2115
|
+
output: output,
|
|
2116
|
+
parsedBody: parsedBody,
|
|
2117
|
+
exceptionCtor: __BaseException,
|
|
2118
|
+
errorCode: errorCode,
|
|
2249
2119
|
});
|
|
2250
|
-
|
|
2120
|
+
_d.label = 13;
|
|
2121
|
+
case 13: return [2];
|
|
2251
2122
|
}
|
|
2252
2123
|
});
|
|
2253
2124
|
}); };
|
|
@@ -2259,18 +2130,18 @@ export var deserializeAws_restJson1PutLoggingOptionsCommand = function (output,
|
|
|
2259
2130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2260
2131
|
return [2, deserializeAws_restJson1PutLoggingOptionsCommandError(output, context)];
|
|
2261
2132
|
}
|
|
2262
|
-
contents = {
|
|
2133
|
+
contents = map({
|
|
2263
2134
|
$metadata: deserializeMetadata(output),
|
|
2264
|
-
};
|
|
2135
|
+
});
|
|
2265
2136
|
return [4, collectBody(output.body, context)];
|
|
2266
2137
|
case 1:
|
|
2267
2138
|
_a.sent();
|
|
2268
|
-
return [2,
|
|
2139
|
+
return [2, contents];
|
|
2269
2140
|
}
|
|
2270
2141
|
});
|
|
2271
2142
|
}); };
|
|
2272
2143
|
var deserializeAws_restJson1PutLoggingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2273
|
-
var parsedOutput, _a,
|
|
2144
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2274
2145
|
var _c;
|
|
2275
2146
|
return __generator(this, function (_d) {
|
|
2276
2147
|
switch (_d.label) {
|
|
@@ -2311,14 +2182,14 @@ var deserializeAws_restJson1PutLoggingOptionsCommandError = function (output, co
|
|
|
2311
2182
|
case 13: throw _d.sent();
|
|
2312
2183
|
case 14:
|
|
2313
2184
|
parsedBody = parsedOutput.body;
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
$metadata: $metadata,
|
|
2185
|
+
throwDefaultError({
|
|
2186
|
+
output: output,
|
|
2187
|
+
parsedBody: parsedBody,
|
|
2188
|
+
exceptionCtor: __BaseException,
|
|
2189
|
+
errorCode: errorCode,
|
|
2320
2190
|
});
|
|
2321
|
-
|
|
2191
|
+
_d.label = 15;
|
|
2192
|
+
case 15: return [2];
|
|
2322
2193
|
}
|
|
2323
2194
|
});
|
|
2324
2195
|
}); };
|
|
@@ -2330,24 +2201,23 @@ export var deserializeAws_restJson1StartDetectorModelAnalysisCommand = function
|
|
|
2330
2201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2331
2202
|
return [2, deserializeAws_restJson1StartDetectorModelAnalysisCommandError(output, context)];
|
|
2332
2203
|
}
|
|
2333
|
-
contents = {
|
|
2204
|
+
contents = map({
|
|
2334
2205
|
$metadata: deserializeMetadata(output),
|
|
2335
|
-
|
|
2336
|
-
};
|
|
2206
|
+
});
|
|
2337
2207
|
_a = __expectNonNull;
|
|
2338
2208
|
_b = __expectObject;
|
|
2339
2209
|
return [4, parseBody(output.body, context)];
|
|
2340
2210
|
case 1:
|
|
2341
2211
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2342
|
-
if (data.analysisId
|
|
2212
|
+
if (data.analysisId != null) {
|
|
2343
2213
|
contents.analysisId = __expectString(data.analysisId);
|
|
2344
2214
|
}
|
|
2345
|
-
return [2,
|
|
2215
|
+
return [2, contents];
|
|
2346
2216
|
}
|
|
2347
2217
|
});
|
|
2348
2218
|
}); };
|
|
2349
2219
|
var deserializeAws_restJson1StartDetectorModelAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2350
|
-
var parsedOutput, _a,
|
|
2220
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2351
2221
|
var _c;
|
|
2352
2222
|
return __generator(this, function (_d) {
|
|
2353
2223
|
switch (_d.label) {
|
|
@@ -2384,14 +2254,14 @@ var deserializeAws_restJson1StartDetectorModelAnalysisCommandError = function (o
|
|
|
2384
2254
|
case 11: throw _d.sent();
|
|
2385
2255
|
case 12:
|
|
2386
2256
|
parsedBody = parsedOutput.body;
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
$metadata: $metadata,
|
|
2257
|
+
throwDefaultError({
|
|
2258
|
+
output: output,
|
|
2259
|
+
parsedBody: parsedBody,
|
|
2260
|
+
exceptionCtor: __BaseException,
|
|
2261
|
+
errorCode: errorCode,
|
|
2393
2262
|
});
|
|
2394
|
-
|
|
2263
|
+
_d.label = 13;
|
|
2264
|
+
case 13: return [2];
|
|
2395
2265
|
}
|
|
2396
2266
|
});
|
|
2397
2267
|
}); };
|
|
@@ -2403,18 +2273,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2403
2273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2404
2274
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2405
2275
|
}
|
|
2406
|
-
contents = {
|
|
2276
|
+
contents = map({
|
|
2407
2277
|
$metadata: deserializeMetadata(output),
|
|
2408
|
-
};
|
|
2278
|
+
});
|
|
2409
2279
|
return [4, collectBody(output.body, context)];
|
|
2410
2280
|
case 1:
|
|
2411
2281
|
_a.sent();
|
|
2412
|
-
return [2,
|
|
2282
|
+
return [2, contents];
|
|
2413
2283
|
}
|
|
2414
2284
|
});
|
|
2415
2285
|
}); };
|
|
2416
2286
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2417
|
-
var parsedOutput, _a,
|
|
2287
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2418
2288
|
var _c;
|
|
2419
2289
|
return __generator(this, function (_d) {
|
|
2420
2290
|
switch (_d.label) {
|
|
@@ -2455,14 +2325,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2455
2325
|
case 13: throw _d.sent();
|
|
2456
2326
|
case 14:
|
|
2457
2327
|
parsedBody = parsedOutput.body;
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
$metadata: $metadata,
|
|
2328
|
+
throwDefaultError({
|
|
2329
|
+
output: output,
|
|
2330
|
+
parsedBody: parsedBody,
|
|
2331
|
+
exceptionCtor: __BaseException,
|
|
2332
|
+
errorCode: errorCode,
|
|
2464
2333
|
});
|
|
2465
|
-
|
|
2334
|
+
_d.label = 15;
|
|
2335
|
+
case 15: return [2];
|
|
2466
2336
|
}
|
|
2467
2337
|
});
|
|
2468
2338
|
}); };
|
|
@@ -2474,18 +2344,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2474
2344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2475
2345
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2476
2346
|
}
|
|
2477
|
-
contents = {
|
|
2347
|
+
contents = map({
|
|
2478
2348
|
$metadata: deserializeMetadata(output),
|
|
2479
|
-
};
|
|
2349
|
+
});
|
|
2480
2350
|
return [4, collectBody(output.body, context)];
|
|
2481
2351
|
case 1:
|
|
2482
2352
|
_a.sent();
|
|
2483
|
-
return [2,
|
|
2353
|
+
return [2, contents];
|
|
2484
2354
|
}
|
|
2485
2355
|
});
|
|
2486
2356
|
}); };
|
|
2487
2357
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2488
|
-
var parsedOutput, _a,
|
|
2358
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2489
2359
|
var _c;
|
|
2490
2360
|
return __generator(this, function (_d) {
|
|
2491
2361
|
switch (_d.label) {
|
|
@@ -2522,14 +2392,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2522
2392
|
case 11: throw _d.sent();
|
|
2523
2393
|
case 12:
|
|
2524
2394
|
parsedBody = parsedOutput.body;
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
$metadata: $metadata,
|
|
2395
|
+
throwDefaultError({
|
|
2396
|
+
output: output,
|
|
2397
|
+
parsedBody: parsedBody,
|
|
2398
|
+
exceptionCtor: __BaseException,
|
|
2399
|
+
errorCode: errorCode,
|
|
2531
2400
|
});
|
|
2532
|
-
|
|
2401
|
+
_d.label = 13;
|
|
2402
|
+
case 13: return [2];
|
|
2533
2403
|
}
|
|
2534
2404
|
});
|
|
2535
2405
|
}); };
|
|
@@ -2541,40 +2411,35 @@ export var deserializeAws_restJson1UpdateAlarmModelCommand = function (output, c
|
|
|
2541
2411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2542
2412
|
return [2, deserializeAws_restJson1UpdateAlarmModelCommandError(output, context)];
|
|
2543
2413
|
}
|
|
2544
|
-
contents = {
|
|
2414
|
+
contents = map({
|
|
2545
2415
|
$metadata: deserializeMetadata(output),
|
|
2546
|
-
|
|
2547
|
-
alarmModelVersion: undefined,
|
|
2548
|
-
creationTime: undefined,
|
|
2549
|
-
lastUpdateTime: undefined,
|
|
2550
|
-
status: undefined,
|
|
2551
|
-
};
|
|
2416
|
+
});
|
|
2552
2417
|
_a = __expectNonNull;
|
|
2553
2418
|
_b = __expectObject;
|
|
2554
2419
|
return [4, parseBody(output.body, context)];
|
|
2555
2420
|
case 1:
|
|
2556
2421
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2557
|
-
if (data.alarmModelArn
|
|
2422
|
+
if (data.alarmModelArn != null) {
|
|
2558
2423
|
contents.alarmModelArn = __expectString(data.alarmModelArn);
|
|
2559
2424
|
}
|
|
2560
|
-
if (data.alarmModelVersion
|
|
2425
|
+
if (data.alarmModelVersion != null) {
|
|
2561
2426
|
contents.alarmModelVersion = __expectString(data.alarmModelVersion);
|
|
2562
2427
|
}
|
|
2563
|
-
if (data.creationTime
|
|
2428
|
+
if (data.creationTime != null) {
|
|
2564
2429
|
contents.creationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTime)));
|
|
2565
2430
|
}
|
|
2566
|
-
if (data.lastUpdateTime
|
|
2431
|
+
if (data.lastUpdateTime != null) {
|
|
2567
2432
|
contents.lastUpdateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateTime)));
|
|
2568
2433
|
}
|
|
2569
|
-
if (data.status
|
|
2434
|
+
if (data.status != null) {
|
|
2570
2435
|
contents.status = __expectString(data.status);
|
|
2571
2436
|
}
|
|
2572
|
-
return [2,
|
|
2437
|
+
return [2, contents];
|
|
2573
2438
|
}
|
|
2574
2439
|
});
|
|
2575
2440
|
}); };
|
|
2576
2441
|
var deserializeAws_restJson1UpdateAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2577
|
-
var parsedOutput, _a,
|
|
2442
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2578
2443
|
var _c;
|
|
2579
2444
|
return __generator(this, function (_d) {
|
|
2580
2445
|
switch (_d.label) {
|
|
@@ -2615,14 +2480,14 @@ var deserializeAws_restJson1UpdateAlarmModelCommandError = function (output, con
|
|
|
2615
2480
|
case 13: throw _d.sent();
|
|
2616
2481
|
case 14:
|
|
2617
2482
|
parsedBody = parsedOutput.body;
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
$metadata: $metadata,
|
|
2483
|
+
throwDefaultError({
|
|
2484
|
+
output: output,
|
|
2485
|
+
parsedBody: parsedBody,
|
|
2486
|
+
exceptionCtor: __BaseException,
|
|
2487
|
+
errorCode: errorCode,
|
|
2624
2488
|
});
|
|
2625
|
-
|
|
2489
|
+
_d.label = 15;
|
|
2490
|
+
case 15: return [2];
|
|
2626
2491
|
}
|
|
2627
2492
|
});
|
|
2628
2493
|
}); };
|
|
@@ -2634,24 +2499,23 @@ export var deserializeAws_restJson1UpdateDetectorModelCommand = function (output
|
|
|
2634
2499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2635
2500
|
return [2, deserializeAws_restJson1UpdateDetectorModelCommandError(output, context)];
|
|
2636
2501
|
}
|
|
2637
|
-
contents = {
|
|
2502
|
+
contents = map({
|
|
2638
2503
|
$metadata: deserializeMetadata(output),
|
|
2639
|
-
|
|
2640
|
-
};
|
|
2504
|
+
});
|
|
2641
2505
|
_a = __expectNonNull;
|
|
2642
2506
|
_b = __expectObject;
|
|
2643
2507
|
return [4, parseBody(output.body, context)];
|
|
2644
2508
|
case 1:
|
|
2645
2509
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2646
|
-
if (data.detectorModelConfiguration
|
|
2510
|
+
if (data.detectorModelConfiguration != null) {
|
|
2647
2511
|
contents.detectorModelConfiguration = deserializeAws_restJson1DetectorModelConfiguration(data.detectorModelConfiguration, context);
|
|
2648
2512
|
}
|
|
2649
|
-
return [2,
|
|
2513
|
+
return [2, contents];
|
|
2650
2514
|
}
|
|
2651
2515
|
});
|
|
2652
2516
|
}); };
|
|
2653
2517
|
var deserializeAws_restJson1UpdateDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2654
|
-
var parsedOutput, _a,
|
|
2518
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2655
2519
|
var _c;
|
|
2656
2520
|
return __generator(this, function (_d) {
|
|
2657
2521
|
switch (_d.label) {
|
|
@@ -2692,14 +2556,14 @@ var deserializeAws_restJson1UpdateDetectorModelCommandError = function (output,
|
|
|
2692
2556
|
case 13: throw _d.sent();
|
|
2693
2557
|
case 14:
|
|
2694
2558
|
parsedBody = parsedOutput.body;
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
$metadata: $metadata,
|
|
2559
|
+
throwDefaultError({
|
|
2560
|
+
output: output,
|
|
2561
|
+
parsedBody: parsedBody,
|
|
2562
|
+
exceptionCtor: __BaseException,
|
|
2563
|
+
errorCode: errorCode,
|
|
2701
2564
|
});
|
|
2702
|
-
|
|
2565
|
+
_d.label = 15;
|
|
2566
|
+
case 15: return [2];
|
|
2703
2567
|
}
|
|
2704
2568
|
});
|
|
2705
2569
|
}); };
|
|
@@ -2711,24 +2575,23 @@ export var deserializeAws_restJson1UpdateInputCommand = function (output, contex
|
|
|
2711
2575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2712
2576
|
return [2, deserializeAws_restJson1UpdateInputCommandError(output, context)];
|
|
2713
2577
|
}
|
|
2714
|
-
contents = {
|
|
2578
|
+
contents = map({
|
|
2715
2579
|
$metadata: deserializeMetadata(output),
|
|
2716
|
-
|
|
2717
|
-
};
|
|
2580
|
+
});
|
|
2718
2581
|
_a = __expectNonNull;
|
|
2719
2582
|
_b = __expectObject;
|
|
2720
2583
|
return [4, parseBody(output.body, context)];
|
|
2721
2584
|
case 1:
|
|
2722
2585
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2723
|
-
if (data.inputConfiguration
|
|
2586
|
+
if (data.inputConfiguration != null) {
|
|
2724
2587
|
contents.inputConfiguration = deserializeAws_restJson1InputConfiguration(data.inputConfiguration, context);
|
|
2725
2588
|
}
|
|
2726
|
-
return [2,
|
|
2589
|
+
return [2, contents];
|
|
2727
2590
|
}
|
|
2728
2591
|
});
|
|
2729
2592
|
}); };
|
|
2730
2593
|
var deserializeAws_restJson1UpdateInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2731
|
-
var parsedOutput, _a,
|
|
2594
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2732
2595
|
var _c;
|
|
2733
2596
|
return __generator(this, function (_d) {
|
|
2734
2597
|
switch (_d.label) {
|
|
@@ -2769,23 +2632,24 @@ var deserializeAws_restJson1UpdateInputCommandError = function (output, context)
|
|
|
2769
2632
|
case 13: throw _d.sent();
|
|
2770
2633
|
case 14:
|
|
2771
2634
|
parsedBody = parsedOutput.body;
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
$metadata: $metadata,
|
|
2635
|
+
throwDefaultError({
|
|
2636
|
+
output: output,
|
|
2637
|
+
parsedBody: parsedBody,
|
|
2638
|
+
exceptionCtor: __BaseException,
|
|
2639
|
+
errorCode: errorCode,
|
|
2778
2640
|
});
|
|
2779
|
-
|
|
2641
|
+
_d.label = 15;
|
|
2642
|
+
case 15: return [2];
|
|
2780
2643
|
}
|
|
2781
2644
|
});
|
|
2782
2645
|
}); };
|
|
2646
|
+
var map = __map;
|
|
2783
2647
|
var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2784
2648
|
var contents, data, exception;
|
|
2785
2649
|
return __generator(this, function (_a) {
|
|
2786
|
-
contents = {};
|
|
2650
|
+
contents = map({});
|
|
2787
2651
|
data = parsedOutput.body;
|
|
2788
|
-
if (data.message
|
|
2652
|
+
if (data.message != null) {
|
|
2789
2653
|
contents.message = __expectString(data.message);
|
|
2790
2654
|
}
|
|
2791
2655
|
exception = new InternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2795,9 +2659,9 @@ var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedO
|
|
|
2795
2659
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2796
2660
|
var contents, data, exception;
|
|
2797
2661
|
return __generator(this, function (_a) {
|
|
2798
|
-
contents = {};
|
|
2662
|
+
contents = map({});
|
|
2799
2663
|
data = parsedOutput.body;
|
|
2800
|
-
if (data.message
|
|
2664
|
+
if (data.message != null) {
|
|
2801
2665
|
contents.message = __expectString(data.message);
|
|
2802
2666
|
}
|
|
2803
2667
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2807,9 +2671,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
2807
2671
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2808
2672
|
var contents, data, exception;
|
|
2809
2673
|
return __generator(this, function (_a) {
|
|
2810
|
-
contents = {};
|
|
2674
|
+
contents = map({});
|
|
2811
2675
|
data = parsedOutput.body;
|
|
2812
|
-
if (data.message
|
|
2676
|
+
if (data.message != null) {
|
|
2813
2677
|
contents.message = __expectString(data.message);
|
|
2814
2678
|
}
|
|
2815
2679
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2819,15 +2683,15 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
2819
2683
|
var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2820
2684
|
var contents, data, exception;
|
|
2821
2685
|
return __generator(this, function (_a) {
|
|
2822
|
-
contents = {};
|
|
2686
|
+
contents = map({});
|
|
2823
2687
|
data = parsedOutput.body;
|
|
2824
|
-
if (data.message
|
|
2688
|
+
if (data.message != null) {
|
|
2825
2689
|
contents.message = __expectString(data.message);
|
|
2826
2690
|
}
|
|
2827
|
-
if (data.resourceArn
|
|
2691
|
+
if (data.resourceArn != null) {
|
|
2828
2692
|
contents.resourceArn = __expectString(data.resourceArn);
|
|
2829
2693
|
}
|
|
2830
|
-
if (data.resourceId
|
|
2694
|
+
if (data.resourceId != null) {
|
|
2831
2695
|
contents.resourceId = __expectString(data.resourceId);
|
|
2832
2696
|
}
|
|
2833
2697
|
exception = new ResourceAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2837,9 +2701,9 @@ var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (p
|
|
|
2837
2701
|
var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2838
2702
|
var contents, data, exception;
|
|
2839
2703
|
return __generator(this, function (_a) {
|
|
2840
|
-
contents = {};
|
|
2704
|
+
contents = map({});
|
|
2841
2705
|
data = parsedOutput.body;
|
|
2842
|
-
if (data.message
|
|
2706
|
+
if (data.message != null) {
|
|
2843
2707
|
contents.message = __expectString(data.message);
|
|
2844
2708
|
}
|
|
2845
2709
|
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2849,9 +2713,9 @@ var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOut
|
|
|
2849
2713
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2850
2714
|
var contents, data, exception;
|
|
2851
2715
|
return __generator(this, function (_a) {
|
|
2852
|
-
contents = {};
|
|
2716
|
+
contents = map({});
|
|
2853
2717
|
data = parsedOutput.body;
|
|
2854
|
-
if (data.message
|
|
2718
|
+
if (data.message != null) {
|
|
2855
2719
|
contents.message = __expectString(data.message);
|
|
2856
2720
|
}
|
|
2857
2721
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2861,9 +2725,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2861
2725
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2862
2726
|
var contents, data, exception;
|
|
2863
2727
|
return __generator(this, function (_a) {
|
|
2864
|
-
contents = {};
|
|
2728
|
+
contents = map({});
|
|
2865
2729
|
data = parsedOutput.body;
|
|
2866
|
-
if (data.message
|
|
2730
|
+
if (data.message != null) {
|
|
2867
2731
|
contents.message = __expectString(data.message);
|
|
2868
2732
|
}
|
|
2869
2733
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2873,9 +2737,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
2873
2737
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2874
2738
|
var contents, data, exception;
|
|
2875
2739
|
return __generator(this, function (_a) {
|
|
2876
|
-
contents = {};
|
|
2740
|
+
contents = map({});
|
|
2877
2741
|
data = parsedOutput.body;
|
|
2878
|
-
if (data.message
|
|
2742
|
+
if (data.message != null) {
|
|
2879
2743
|
contents.message = __expectString(data.message);
|
|
2880
2744
|
}
|
|
2881
2745
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2885,9 +2749,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2885
2749
|
var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2886
2750
|
var contents, data, exception;
|
|
2887
2751
|
return __generator(this, function (_a) {
|
|
2888
|
-
contents = {};
|
|
2752
|
+
contents = map({});
|
|
2889
2753
|
data = parsedOutput.body;
|
|
2890
|
-
if (data.message
|
|
2754
|
+
if (data.message != null) {
|
|
2891
2755
|
contents.message = __expectString(data.message);
|
|
2892
2756
|
}
|
|
2893
2757
|
exception = new UnsupportedOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2910,9 +2774,6 @@ var serializeAws_restJson1Actions = function (input, context) {
|
|
|
2910
2774
|
return input
|
|
2911
2775
|
.filter(function (e) { return e != null; })
|
|
2912
2776
|
.map(function (entry) {
|
|
2913
|
-
if (entry === null) {
|
|
2914
|
-
return null;
|
|
2915
|
-
}
|
|
2916
2777
|
return serializeAws_restJson1Action(entry, context);
|
|
2917
2778
|
});
|
|
2918
2779
|
};
|
|
@@ -2927,9 +2788,6 @@ var serializeAws_restJson1AlarmActions = function (input, context) {
|
|
|
2927
2788
|
return input
|
|
2928
2789
|
.filter(function (e) { return e != null; })
|
|
2929
2790
|
.map(function (entry) {
|
|
2930
|
-
if (entry === null) {
|
|
2931
|
-
return null;
|
|
2932
|
-
}
|
|
2933
2791
|
return serializeAws_restJson1AlarmAction(entry, context);
|
|
2934
2792
|
});
|
|
2935
2793
|
};
|
|
@@ -2971,9 +2829,6 @@ var serializeAws_restJson1Attributes = function (input, context) {
|
|
|
2971
2829
|
return input
|
|
2972
2830
|
.filter(function (e) { return e != null; })
|
|
2973
2831
|
.map(function (entry) {
|
|
2974
|
-
if (entry === null) {
|
|
2975
|
-
return null;
|
|
2976
|
-
}
|
|
2977
2832
|
return serializeAws_restJson1Attribute(entry, context);
|
|
2978
2833
|
});
|
|
2979
2834
|
};
|
|
@@ -2987,9 +2842,6 @@ var serializeAws_restJson1DetectorDebugOptions = function (input, context) {
|
|
|
2987
2842
|
return input
|
|
2988
2843
|
.filter(function (e) { return e != null; })
|
|
2989
2844
|
.map(function (entry) {
|
|
2990
|
-
if (entry === null) {
|
|
2991
|
-
return null;
|
|
2992
|
-
}
|
|
2993
2845
|
return serializeAws_restJson1DetectorDebugOption(entry, context);
|
|
2994
2846
|
});
|
|
2995
2847
|
};
|
|
@@ -3009,9 +2861,6 @@ var serializeAws_restJson1EmailConfigurations = function (input, context) {
|
|
|
3009
2861
|
return input
|
|
3010
2862
|
.filter(function (e) { return e != null; })
|
|
3011
2863
|
.map(function (entry) {
|
|
3012
|
-
if (entry === null) {
|
|
3013
|
-
return null;
|
|
3014
|
-
}
|
|
3015
2864
|
return serializeAws_restJson1EmailConfiguration(entry, context);
|
|
3016
2865
|
});
|
|
3017
2866
|
};
|
|
@@ -3028,9 +2877,6 @@ var serializeAws_restJson1Events = function (input, context) {
|
|
|
3028
2877
|
return input
|
|
3029
2878
|
.filter(function (e) { return e != null; })
|
|
3030
2879
|
.map(function (entry) {
|
|
3031
|
-
if (entry === null) {
|
|
3032
|
-
return null;
|
|
3033
|
-
}
|
|
3034
2880
|
return serializeAws_restJson1Event(entry, context);
|
|
3035
2881
|
});
|
|
3036
2882
|
};
|
|
@@ -3091,9 +2937,6 @@ var serializeAws_restJson1NotificationActions = function (input, context) {
|
|
|
3091
2937
|
return input
|
|
3092
2938
|
.filter(function (e) { return e != null; })
|
|
3093
2939
|
.map(function (entry) {
|
|
3094
|
-
if (entry === null) {
|
|
3095
|
-
return null;
|
|
3096
|
-
}
|
|
3097
2940
|
return serializeAws_restJson1NotificationAction(entry, context);
|
|
3098
2941
|
});
|
|
3099
2942
|
};
|
|
@@ -3123,9 +2966,6 @@ var serializeAws_restJson1RecipientDetails = function (input, context) {
|
|
|
3123
2966
|
return input
|
|
3124
2967
|
.filter(function (e) { return e != null; })
|
|
3125
2968
|
.map(function (entry) {
|
|
3126
|
-
if (entry === null) {
|
|
3127
|
-
return null;
|
|
3128
|
-
}
|
|
3129
2969
|
return serializeAws_restJson1RecipientDetail(entry, context);
|
|
3130
2970
|
});
|
|
3131
2971
|
};
|
|
@@ -3148,9 +2988,6 @@ var serializeAws_restJson1SMSConfigurations = function (input, context) {
|
|
|
3148
2988
|
return input
|
|
3149
2989
|
.filter(function (e) { return e != null; })
|
|
3150
2990
|
.map(function (entry) {
|
|
3151
|
-
if (entry === null) {
|
|
3152
|
-
return null;
|
|
3153
|
-
}
|
|
3154
2991
|
return serializeAws_restJson1SMSConfiguration(entry, context);
|
|
3155
2992
|
});
|
|
3156
2993
|
};
|
|
@@ -3170,9 +3007,6 @@ var serializeAws_restJson1States = function (input, context) {
|
|
|
3170
3007
|
return input
|
|
3171
3008
|
.filter(function (e) { return e != null; })
|
|
3172
3009
|
.map(function (entry) {
|
|
3173
|
-
if (entry === null) {
|
|
3174
|
-
return null;
|
|
3175
|
-
}
|
|
3176
3010
|
return serializeAws_restJson1State(entry, context);
|
|
3177
3011
|
});
|
|
3178
3012
|
};
|
|
@@ -3183,9 +3017,6 @@ var serializeAws_restJson1Tags = function (input, context) {
|
|
|
3183
3017
|
return input
|
|
3184
3018
|
.filter(function (e) { return e != null; })
|
|
3185
3019
|
.map(function (entry) {
|
|
3186
|
-
if (entry === null) {
|
|
3187
|
-
return null;
|
|
3188
|
-
}
|
|
3189
3020
|
return serializeAws_restJson1Tag(entry, context);
|
|
3190
3021
|
});
|
|
3191
3022
|
};
|
|
@@ -3196,9 +3027,6 @@ var serializeAws_restJson1TransitionEvents = function (input, context) {
|
|
|
3196
3027
|
return input
|
|
3197
3028
|
.filter(function (e) { return e != null; })
|
|
3198
3029
|
.map(function (entry) {
|
|
3199
|
-
if (entry === null) {
|
|
3200
|
-
return null;
|
|
3201
|
-
}
|
|
3202
3030
|
return serializeAws_restJson1TransitionEvent(entry, context);
|
|
3203
3031
|
});
|
|
3204
3032
|
};
|