@aws-sdk/client-lookoutequipment 3.310.0 → 3.315.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.
@@ -8,332 +8,233 @@ const uuid_1 = require("uuid");
8
8
  const LookoutEquipmentServiceException_1 = require("../models/LookoutEquipmentServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_CreateDatasetCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-amz-json-1.0",
13
- "x-amz-target": "AWSLookoutEquipmentFrontendService.CreateDataset",
14
- };
11
+ const headers = sharedHeaders("CreateDataset");
15
12
  let body;
16
13
  body = JSON.stringify(se_CreateDatasetRequest(input, context));
17
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
15
  };
19
16
  exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
20
17
  const se_CreateInferenceSchedulerCommand = async (input, context) => {
21
- const headers = {
22
- "content-type": "application/x-amz-json-1.0",
23
- "x-amz-target": "AWSLookoutEquipmentFrontendService.CreateInferenceScheduler",
24
- };
18
+ const headers = sharedHeaders("CreateInferenceScheduler");
25
19
  let body;
26
20
  body = JSON.stringify(se_CreateInferenceSchedulerRequest(input, context));
27
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
22
  };
29
23
  exports.se_CreateInferenceSchedulerCommand = se_CreateInferenceSchedulerCommand;
30
24
  const se_CreateLabelCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-amz-json-1.0",
33
- "x-amz-target": "AWSLookoutEquipmentFrontendService.CreateLabel",
34
- };
25
+ const headers = sharedHeaders("CreateLabel");
35
26
  let body;
36
27
  body = JSON.stringify(se_CreateLabelRequest(input, context));
37
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
29
  };
39
30
  exports.se_CreateLabelCommand = se_CreateLabelCommand;
40
31
  const se_CreateLabelGroupCommand = async (input, context) => {
41
- const headers = {
42
- "content-type": "application/x-amz-json-1.0",
43
- "x-amz-target": "AWSLookoutEquipmentFrontendService.CreateLabelGroup",
44
- };
32
+ const headers = sharedHeaders("CreateLabelGroup");
45
33
  let body;
46
34
  body = JSON.stringify(se_CreateLabelGroupRequest(input, context));
47
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
36
  };
49
37
  exports.se_CreateLabelGroupCommand = se_CreateLabelGroupCommand;
50
38
  const se_CreateModelCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.0",
53
- "x-amz-target": "AWSLookoutEquipmentFrontendService.CreateModel",
54
- };
39
+ const headers = sharedHeaders("CreateModel");
55
40
  let body;
56
41
  body = JSON.stringify(se_CreateModelRequest(input, context));
57
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
43
  };
59
44
  exports.se_CreateModelCommand = se_CreateModelCommand;
60
45
  const se_DeleteDatasetCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.0",
63
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteDataset",
64
- };
46
+ const headers = sharedHeaders("DeleteDataset");
65
47
  let body;
66
- body = JSON.stringify(se_DeleteDatasetRequest(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
67
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
50
  };
69
51
  exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
70
52
  const se_DeleteInferenceSchedulerCommand = async (input, context) => {
71
- const headers = {
72
- "content-type": "application/x-amz-json-1.0",
73
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteInferenceScheduler",
74
- };
53
+ const headers = sharedHeaders("DeleteInferenceScheduler");
75
54
  let body;
76
- body = JSON.stringify(se_DeleteInferenceSchedulerRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
57
  };
79
58
  exports.se_DeleteInferenceSchedulerCommand = se_DeleteInferenceSchedulerCommand;
80
59
  const se_DeleteLabelCommand = async (input, context) => {
81
- const headers = {
82
- "content-type": "application/x-amz-json-1.0",
83
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteLabel",
84
- };
60
+ const headers = sharedHeaders("DeleteLabel");
85
61
  let body;
86
- body = JSON.stringify(se_DeleteLabelRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
87
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
64
  };
89
65
  exports.se_DeleteLabelCommand = se_DeleteLabelCommand;
90
66
  const se_DeleteLabelGroupCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-amz-json-1.0",
93
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteLabelGroup",
94
- };
67
+ const headers = sharedHeaders("DeleteLabelGroup");
95
68
  let body;
96
- body = JSON.stringify(se_DeleteLabelGroupRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
71
  };
99
72
  exports.se_DeleteLabelGroupCommand = se_DeleteLabelGroupCommand;
100
73
  const se_DeleteModelCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-amz-json-1.0",
103
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteModel",
104
- };
74
+ const headers = sharedHeaders("DeleteModel");
105
75
  let body;
106
- body = JSON.stringify(se_DeleteModelRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
107
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
78
  };
109
79
  exports.se_DeleteModelCommand = se_DeleteModelCommand;
110
80
  const se_DescribeDataIngestionJobCommand = async (input, context) => {
111
- const headers = {
112
- "content-type": "application/x-amz-json-1.0",
113
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeDataIngestionJob",
114
- };
81
+ const headers = sharedHeaders("DescribeDataIngestionJob");
115
82
  let body;
116
- body = JSON.stringify(se_DescribeDataIngestionJobRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
85
  };
119
86
  exports.se_DescribeDataIngestionJobCommand = se_DescribeDataIngestionJobCommand;
120
87
  const se_DescribeDatasetCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-amz-json-1.0",
123
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeDataset",
124
- };
88
+ const headers = sharedHeaders("DescribeDataset");
125
89
  let body;
126
- body = JSON.stringify(se_DescribeDatasetRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
127
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
92
  };
129
93
  exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
130
94
  const se_DescribeInferenceSchedulerCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.0",
133
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeInferenceScheduler",
134
- };
95
+ const headers = sharedHeaders("DescribeInferenceScheduler");
135
96
  let body;
136
- body = JSON.stringify(se_DescribeInferenceSchedulerRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
137
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
99
  };
139
100
  exports.se_DescribeInferenceSchedulerCommand = se_DescribeInferenceSchedulerCommand;
140
101
  const se_DescribeLabelCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.0",
143
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeLabel",
144
- };
102
+ const headers = sharedHeaders("DescribeLabel");
145
103
  let body;
146
- body = JSON.stringify(se_DescribeLabelRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
106
  };
149
107
  exports.se_DescribeLabelCommand = se_DescribeLabelCommand;
150
108
  const se_DescribeLabelGroupCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.0",
153
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeLabelGroup",
154
- };
109
+ const headers = sharedHeaders("DescribeLabelGroup");
155
110
  let body;
156
- body = JSON.stringify(se_DescribeLabelGroupRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
157
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
158
113
  };
159
114
  exports.se_DescribeLabelGroupCommand = se_DescribeLabelGroupCommand;
160
115
  const se_DescribeModelCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-amz-json-1.0",
163
- "x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeModel",
164
- };
116
+ const headers = sharedHeaders("DescribeModel");
165
117
  let body;
166
- body = JSON.stringify(se_DescribeModelRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
120
  };
169
121
  exports.se_DescribeModelCommand = se_DescribeModelCommand;
170
122
  const se_ListDataIngestionJobsCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-amz-json-1.0",
173
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListDataIngestionJobs",
174
- };
123
+ const headers = sharedHeaders("ListDataIngestionJobs");
175
124
  let body;
176
- body = JSON.stringify(se_ListDataIngestionJobsRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
177
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
127
  };
179
128
  exports.se_ListDataIngestionJobsCommand = se_ListDataIngestionJobsCommand;
180
129
  const se_ListDatasetsCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-amz-json-1.0",
183
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListDatasets",
184
- };
130
+ const headers = sharedHeaders("ListDatasets");
185
131
  let body;
186
- body = JSON.stringify(se_ListDatasetsRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
187
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
134
  };
189
135
  exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
190
136
  const se_ListInferenceEventsCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-amz-json-1.0",
193
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListInferenceEvents",
194
- };
137
+ const headers = sharedHeaders("ListInferenceEvents");
195
138
  let body;
196
139
  body = JSON.stringify(se_ListInferenceEventsRequest(input, context));
197
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
141
  };
199
142
  exports.se_ListInferenceEventsCommand = se_ListInferenceEventsCommand;
200
143
  const se_ListInferenceExecutionsCommand = async (input, context) => {
201
- const headers = {
202
- "content-type": "application/x-amz-json-1.0",
203
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListInferenceExecutions",
204
- };
144
+ const headers = sharedHeaders("ListInferenceExecutions");
205
145
  let body;
206
146
  body = JSON.stringify(se_ListInferenceExecutionsRequest(input, context));
207
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
148
  };
209
149
  exports.se_ListInferenceExecutionsCommand = se_ListInferenceExecutionsCommand;
210
150
  const se_ListInferenceSchedulersCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-amz-json-1.0",
213
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListInferenceSchedulers",
214
- };
151
+ const headers = sharedHeaders("ListInferenceSchedulers");
215
152
  let body;
216
- body = JSON.stringify(se_ListInferenceSchedulersRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
155
  };
219
156
  exports.se_ListInferenceSchedulersCommand = se_ListInferenceSchedulersCommand;
220
157
  const se_ListLabelGroupsCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.0",
223
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListLabelGroups",
224
- };
158
+ const headers = sharedHeaders("ListLabelGroups");
225
159
  let body;
226
- body = JSON.stringify(se_ListLabelGroupsRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
227
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
162
  };
229
163
  exports.se_ListLabelGroupsCommand = se_ListLabelGroupsCommand;
230
164
  const se_ListLabelsCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.0",
233
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListLabels",
234
- };
165
+ const headers = sharedHeaders("ListLabels");
235
166
  let body;
236
167
  body = JSON.stringify(se_ListLabelsRequest(input, context));
237
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
169
  };
239
170
  exports.se_ListLabelsCommand = se_ListLabelsCommand;
240
171
  const se_ListModelsCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.0",
243
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListModels",
244
- };
172
+ const headers = sharedHeaders("ListModels");
245
173
  let body;
246
- body = JSON.stringify(se_ListModelsRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
247
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
176
  };
249
177
  exports.se_ListModelsCommand = se_ListModelsCommand;
250
178
  const se_ListSensorStatisticsCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-amz-json-1.0",
253
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListSensorStatistics",
254
- };
179
+ const headers = sharedHeaders("ListSensorStatistics");
255
180
  let body;
256
- body = JSON.stringify(se_ListSensorStatisticsRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
257
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
183
  };
259
184
  exports.se_ListSensorStatisticsCommand = se_ListSensorStatisticsCommand;
260
185
  const se_ListTagsForResourceCommand = async (input, context) => {
261
- const headers = {
262
- "content-type": "application/x-amz-json-1.0",
263
- "x-amz-target": "AWSLookoutEquipmentFrontendService.ListTagsForResource",
264
- };
186
+ const headers = sharedHeaders("ListTagsForResource");
265
187
  let body;
266
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
267
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
190
  };
269
191
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
270
192
  const se_StartDataIngestionJobCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-amz-json-1.0",
273
- "x-amz-target": "AWSLookoutEquipmentFrontendService.StartDataIngestionJob",
274
- };
193
+ const headers = sharedHeaders("StartDataIngestionJob");
275
194
  let body;
276
195
  body = JSON.stringify(se_StartDataIngestionJobRequest(input, context));
277
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
197
  };
279
198
  exports.se_StartDataIngestionJobCommand = se_StartDataIngestionJobCommand;
280
199
  const se_StartInferenceSchedulerCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-amz-json-1.0",
283
- "x-amz-target": "AWSLookoutEquipmentFrontendService.StartInferenceScheduler",
284
- };
200
+ const headers = sharedHeaders("StartInferenceScheduler");
285
201
  let body;
286
- body = JSON.stringify(se_StartInferenceSchedulerRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
204
  };
289
205
  exports.se_StartInferenceSchedulerCommand = se_StartInferenceSchedulerCommand;
290
206
  const se_StopInferenceSchedulerCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-amz-json-1.0",
293
- "x-amz-target": "AWSLookoutEquipmentFrontendService.StopInferenceScheduler",
294
- };
207
+ const headers = sharedHeaders("StopInferenceScheduler");
295
208
  let body;
296
- body = JSON.stringify(se_StopInferenceSchedulerRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
297
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
211
  };
299
212
  exports.se_StopInferenceSchedulerCommand = se_StopInferenceSchedulerCommand;
300
213
  const se_TagResourceCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-amz-json-1.0",
303
- "x-amz-target": "AWSLookoutEquipmentFrontendService.TagResource",
304
- };
214
+ const headers = sharedHeaders("TagResource");
305
215
  let body;
306
- body = JSON.stringify(se_TagResourceRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
218
  };
309
219
  exports.se_TagResourceCommand = se_TagResourceCommand;
310
220
  const se_UntagResourceCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.0",
313
- "x-amz-target": "AWSLookoutEquipmentFrontendService.UntagResource",
314
- };
221
+ const headers = sharedHeaders("UntagResource");
315
222
  let body;
316
- body = JSON.stringify(se_UntagResourceRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
317
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
225
  };
319
226
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
320
227
  const se_UpdateInferenceSchedulerCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.0",
323
- "x-amz-target": "AWSLookoutEquipmentFrontendService.UpdateInferenceScheduler",
324
- };
228
+ const headers = sharedHeaders("UpdateInferenceScheduler");
325
229
  let body;
326
- body = JSON.stringify(se_UpdateInferenceSchedulerRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
327
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
232
  };
329
233
  exports.se_UpdateInferenceSchedulerCommand = se_UpdateInferenceSchedulerCommand;
330
234
  const se_UpdateLabelGroupCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.0",
333
- "x-amz-target": "AWSLookoutEquipmentFrontendService.UpdateLabelGroup",
334
- };
235
+ const headers = sharedHeaders("UpdateLabelGroup");
335
236
  let body;
336
- body = JSON.stringify(se_UpdateLabelGroupRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
337
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
239
  };
339
240
  exports.se_UpdateLabelGroupCommand = se_UpdateLabelGroupCommand;
@@ -343,12 +244,12 @@ const de_CreateDatasetCommand = async (output, context) => {
343
244
  }
344
245
  const data = await parseBody(output.body, context);
345
246
  let contents = {};
346
- contents = de_CreateDatasetResponse(data, context);
247
+ contents = (0, smithy_client_1._json)(data);
347
248
  const response = {
348
249
  $metadata: deserializeMetadata(output),
349
250
  ...contents,
350
251
  };
351
- return Promise.resolve(response);
252
+ return response;
352
253
  };
353
254
  exports.de_CreateDatasetCommand = de_CreateDatasetCommand;
354
255
  const de_CreateDatasetCommandError = async (output, context) => {
@@ -378,10 +279,9 @@ const de_CreateDatasetCommandError = async (output, context) => {
378
279
  throw await de_ValidationExceptionRes(parsedOutput, context);
379
280
  default:
380
281
  const parsedBody = parsedOutput.body;
381
- (0, smithy_client_1.throwDefaultError)({
282
+ return throwDefaultError({
382
283
  output,
383
284
  parsedBody,
384
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
385
285
  errorCode,
386
286
  });
387
287
  }
@@ -392,12 +292,12 @@ const de_CreateInferenceSchedulerCommand = async (output, context) => {
392
292
  }
393
293
  const data = await parseBody(output.body, context);
394
294
  let contents = {};
395
- contents = de_CreateInferenceSchedulerResponse(data, context);
295
+ contents = (0, smithy_client_1._json)(data);
396
296
  const response = {
397
297
  $metadata: deserializeMetadata(output),
398
298
  ...contents,
399
299
  };
400
- return Promise.resolve(response);
300
+ return response;
401
301
  };
402
302
  exports.de_CreateInferenceSchedulerCommand = de_CreateInferenceSchedulerCommand;
403
303
  const de_CreateInferenceSchedulerCommandError = async (output, context) => {
@@ -430,10 +330,9 @@ const de_CreateInferenceSchedulerCommandError = async (output, context) => {
430
330
  throw await de_ValidationExceptionRes(parsedOutput, context);
431
331
  default:
432
332
  const parsedBody = parsedOutput.body;
433
- (0, smithy_client_1.throwDefaultError)({
333
+ return throwDefaultError({
434
334
  output,
435
335
  parsedBody,
436
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
437
336
  errorCode,
438
337
  });
439
338
  }
@@ -444,12 +343,12 @@ const de_CreateLabelCommand = async (output, context) => {
444
343
  }
445
344
  const data = await parseBody(output.body, context);
446
345
  let contents = {};
447
- contents = de_CreateLabelResponse(data, context);
346
+ contents = (0, smithy_client_1._json)(data);
448
347
  const response = {
449
348
  $metadata: deserializeMetadata(output),
450
349
  ...contents,
451
350
  };
452
- return Promise.resolve(response);
351
+ return response;
453
352
  };
454
353
  exports.de_CreateLabelCommand = de_CreateLabelCommand;
455
354
  const de_CreateLabelCommandError = async (output, context) => {
@@ -482,10 +381,9 @@ const de_CreateLabelCommandError = async (output, context) => {
482
381
  throw await de_ValidationExceptionRes(parsedOutput, context);
483
382
  default:
484
383
  const parsedBody = parsedOutput.body;
485
- (0, smithy_client_1.throwDefaultError)({
384
+ return throwDefaultError({
486
385
  output,
487
386
  parsedBody,
488
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
489
387
  errorCode,
490
388
  });
491
389
  }
@@ -496,12 +394,12 @@ const de_CreateLabelGroupCommand = async (output, context) => {
496
394
  }
497
395
  const data = await parseBody(output.body, context);
498
396
  let contents = {};
499
- contents = de_CreateLabelGroupResponse(data, context);
397
+ contents = (0, smithy_client_1._json)(data);
500
398
  const response = {
501
399
  $metadata: deserializeMetadata(output),
502
400
  ...contents,
503
401
  };
504
- return Promise.resolve(response);
402
+ return response;
505
403
  };
506
404
  exports.de_CreateLabelGroupCommand = de_CreateLabelGroupCommand;
507
405
  const de_CreateLabelGroupCommandError = async (output, context) => {
@@ -531,10 +429,9 @@ const de_CreateLabelGroupCommandError = async (output, context) => {
531
429
  throw await de_ValidationExceptionRes(parsedOutput, context);
532
430
  default:
533
431
  const parsedBody = parsedOutput.body;
534
- (0, smithy_client_1.throwDefaultError)({
432
+ return throwDefaultError({
535
433
  output,
536
434
  parsedBody,
537
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
538
435
  errorCode,
539
436
  });
540
437
  }
@@ -545,12 +442,12 @@ const de_CreateModelCommand = async (output, context) => {
545
442
  }
546
443
  const data = await parseBody(output.body, context);
547
444
  let contents = {};
548
- contents = de_CreateModelResponse(data, context);
445
+ contents = (0, smithy_client_1._json)(data);
549
446
  const response = {
550
447
  $metadata: deserializeMetadata(output),
551
448
  ...contents,
552
449
  };
553
- return Promise.resolve(response);
450
+ return response;
554
451
  };
555
452
  exports.de_CreateModelCommand = de_CreateModelCommand;
556
453
  const de_CreateModelCommandError = async (output, context) => {
@@ -583,10 +480,9 @@ const de_CreateModelCommandError = async (output, context) => {
583
480
  throw await de_ValidationExceptionRes(parsedOutput, context);
584
481
  default:
585
482
  const parsedBody = parsedOutput.body;
586
- (0, smithy_client_1.throwDefaultError)({
483
+ return throwDefaultError({
587
484
  output,
588
485
  parsedBody,
589
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
590
486
  errorCode,
591
487
  });
592
488
  }
@@ -599,7 +495,7 @@ const de_DeleteDatasetCommand = async (output, context) => {
599
495
  const response = {
600
496
  $metadata: deserializeMetadata(output),
601
497
  };
602
- return Promise.resolve(response);
498
+ return response;
603
499
  };
604
500
  exports.de_DeleteDatasetCommand = de_DeleteDatasetCommand;
605
501
  const de_DeleteDatasetCommandError = async (output, context) => {
@@ -629,10 +525,9 @@ const de_DeleteDatasetCommandError = async (output, context) => {
629
525
  throw await de_ValidationExceptionRes(parsedOutput, context);
630
526
  default:
631
527
  const parsedBody = parsedOutput.body;
632
- (0, smithy_client_1.throwDefaultError)({
528
+ return throwDefaultError({
633
529
  output,
634
530
  parsedBody,
635
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
636
531
  errorCode,
637
532
  });
638
533
  }
@@ -645,7 +540,7 @@ const de_DeleteInferenceSchedulerCommand = async (output, context) => {
645
540
  const response = {
646
541
  $metadata: deserializeMetadata(output),
647
542
  };
648
- return Promise.resolve(response);
543
+ return response;
649
544
  };
650
545
  exports.de_DeleteInferenceSchedulerCommand = de_DeleteInferenceSchedulerCommand;
651
546
  const de_DeleteInferenceSchedulerCommandError = async (output, context) => {
@@ -675,10 +570,9 @@ const de_DeleteInferenceSchedulerCommandError = async (output, context) => {
675
570
  throw await de_ValidationExceptionRes(parsedOutput, context);
676
571
  default:
677
572
  const parsedBody = parsedOutput.body;
678
- (0, smithy_client_1.throwDefaultError)({
573
+ return throwDefaultError({
679
574
  output,
680
575
  parsedBody,
681
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
682
576
  errorCode,
683
577
  });
684
578
  }
@@ -691,7 +585,7 @@ const de_DeleteLabelCommand = async (output, context) => {
691
585
  const response = {
692
586
  $metadata: deserializeMetadata(output),
693
587
  };
694
- return Promise.resolve(response);
588
+ return response;
695
589
  };
696
590
  exports.de_DeleteLabelCommand = de_DeleteLabelCommand;
697
591
  const de_DeleteLabelCommandError = async (output, context) => {
@@ -721,10 +615,9 @@ const de_DeleteLabelCommandError = async (output, context) => {
721
615
  throw await de_ValidationExceptionRes(parsedOutput, context);
722
616
  default:
723
617
  const parsedBody = parsedOutput.body;
724
- (0, smithy_client_1.throwDefaultError)({
618
+ return throwDefaultError({
725
619
  output,
726
620
  parsedBody,
727
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
728
621
  errorCode,
729
622
  });
730
623
  }
@@ -737,7 +630,7 @@ const de_DeleteLabelGroupCommand = async (output, context) => {
737
630
  const response = {
738
631
  $metadata: deserializeMetadata(output),
739
632
  };
740
- return Promise.resolve(response);
633
+ return response;
741
634
  };
742
635
  exports.de_DeleteLabelGroupCommand = de_DeleteLabelGroupCommand;
743
636
  const de_DeleteLabelGroupCommandError = async (output, context) => {
@@ -767,10 +660,9 @@ const de_DeleteLabelGroupCommandError = async (output, context) => {
767
660
  throw await de_ValidationExceptionRes(parsedOutput, context);
768
661
  default:
769
662
  const parsedBody = parsedOutput.body;
770
- (0, smithy_client_1.throwDefaultError)({
663
+ return throwDefaultError({
771
664
  output,
772
665
  parsedBody,
773
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
774
666
  errorCode,
775
667
  });
776
668
  }
@@ -783,7 +675,7 @@ const de_DeleteModelCommand = async (output, context) => {
783
675
  const response = {
784
676
  $metadata: deserializeMetadata(output),
785
677
  };
786
- return Promise.resolve(response);
678
+ return response;
787
679
  };
788
680
  exports.de_DeleteModelCommand = de_DeleteModelCommand;
789
681
  const de_DeleteModelCommandError = async (output, context) => {
@@ -813,10 +705,9 @@ const de_DeleteModelCommandError = async (output, context) => {
813
705
  throw await de_ValidationExceptionRes(parsedOutput, context);
814
706
  default:
815
707
  const parsedBody = parsedOutput.body;
816
- (0, smithy_client_1.throwDefaultError)({
708
+ return throwDefaultError({
817
709
  output,
818
710
  parsedBody,
819
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
820
711
  errorCode,
821
712
  });
822
713
  }
@@ -832,7 +723,7 @@ const de_DescribeDataIngestionJobCommand = async (output, context) => {
832
723
  $metadata: deserializeMetadata(output),
833
724
  ...contents,
834
725
  };
835
- return Promise.resolve(response);
726
+ return response;
836
727
  };
837
728
  exports.de_DescribeDataIngestionJobCommand = de_DescribeDataIngestionJobCommand;
838
729
  const de_DescribeDataIngestionJobCommandError = async (output, context) => {
@@ -859,10 +750,9 @@ const de_DescribeDataIngestionJobCommandError = async (output, context) => {
859
750
  throw await de_ValidationExceptionRes(parsedOutput, context);
860
751
  default:
861
752
  const parsedBody = parsedOutput.body;
862
- (0, smithy_client_1.throwDefaultError)({
753
+ return throwDefaultError({
863
754
  output,
864
755
  parsedBody,
865
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
866
756
  errorCode,
867
757
  });
868
758
  }
@@ -878,7 +768,7 @@ const de_DescribeDatasetCommand = async (output, context) => {
878
768
  $metadata: deserializeMetadata(output),
879
769
  ...contents,
880
770
  };
881
- return Promise.resolve(response);
771
+ return response;
882
772
  };
883
773
  exports.de_DescribeDatasetCommand = de_DescribeDatasetCommand;
884
774
  const de_DescribeDatasetCommandError = async (output, context) => {
@@ -905,10 +795,9 @@ const de_DescribeDatasetCommandError = async (output, context) => {
905
795
  throw await de_ValidationExceptionRes(parsedOutput, context);
906
796
  default:
907
797
  const parsedBody = parsedOutput.body;
908
- (0, smithy_client_1.throwDefaultError)({
798
+ return throwDefaultError({
909
799
  output,
910
800
  parsedBody,
911
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
912
801
  errorCode,
913
802
  });
914
803
  }
@@ -924,7 +813,7 @@ const de_DescribeInferenceSchedulerCommand = async (output, context) => {
924
813
  $metadata: deserializeMetadata(output),
925
814
  ...contents,
926
815
  };
927
- return Promise.resolve(response);
816
+ return response;
928
817
  };
929
818
  exports.de_DescribeInferenceSchedulerCommand = de_DescribeInferenceSchedulerCommand;
930
819
  const de_DescribeInferenceSchedulerCommandError = async (output, context) => {
@@ -951,10 +840,9 @@ const de_DescribeInferenceSchedulerCommandError = async (output, context) => {
951
840
  throw await de_ValidationExceptionRes(parsedOutput, context);
952
841
  default:
953
842
  const parsedBody = parsedOutput.body;
954
- (0, smithy_client_1.throwDefaultError)({
843
+ return throwDefaultError({
955
844
  output,
956
845
  parsedBody,
957
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
958
846
  errorCode,
959
847
  });
960
848
  }
@@ -970,7 +858,7 @@ const de_DescribeLabelCommand = async (output, context) => {
970
858
  $metadata: deserializeMetadata(output),
971
859
  ...contents,
972
860
  };
973
- return Promise.resolve(response);
861
+ return response;
974
862
  };
975
863
  exports.de_DescribeLabelCommand = de_DescribeLabelCommand;
976
864
  const de_DescribeLabelCommandError = async (output, context) => {
@@ -997,10 +885,9 @@ const de_DescribeLabelCommandError = async (output, context) => {
997
885
  throw await de_ValidationExceptionRes(parsedOutput, context);
998
886
  default:
999
887
  const parsedBody = parsedOutput.body;
1000
- (0, smithy_client_1.throwDefaultError)({
888
+ return throwDefaultError({
1001
889
  output,
1002
890
  parsedBody,
1003
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1004
891
  errorCode,
1005
892
  });
1006
893
  }
@@ -1016,7 +903,7 @@ const de_DescribeLabelGroupCommand = async (output, context) => {
1016
903
  $metadata: deserializeMetadata(output),
1017
904
  ...contents,
1018
905
  };
1019
- return Promise.resolve(response);
906
+ return response;
1020
907
  };
1021
908
  exports.de_DescribeLabelGroupCommand = de_DescribeLabelGroupCommand;
1022
909
  const de_DescribeLabelGroupCommandError = async (output, context) => {
@@ -1043,10 +930,9 @@ const de_DescribeLabelGroupCommandError = async (output, context) => {
1043
930
  throw await de_ValidationExceptionRes(parsedOutput, context);
1044
931
  default:
1045
932
  const parsedBody = parsedOutput.body;
1046
- (0, smithy_client_1.throwDefaultError)({
933
+ return throwDefaultError({
1047
934
  output,
1048
935
  parsedBody,
1049
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1050
936
  errorCode,
1051
937
  });
1052
938
  }
@@ -1062,7 +948,7 @@ const de_DescribeModelCommand = async (output, context) => {
1062
948
  $metadata: deserializeMetadata(output),
1063
949
  ...contents,
1064
950
  };
1065
- return Promise.resolve(response);
951
+ return response;
1066
952
  };
1067
953
  exports.de_DescribeModelCommand = de_DescribeModelCommand;
1068
954
  const de_DescribeModelCommandError = async (output, context) => {
@@ -1089,10 +975,9 @@ const de_DescribeModelCommandError = async (output, context) => {
1089
975
  throw await de_ValidationExceptionRes(parsedOutput, context);
1090
976
  default:
1091
977
  const parsedBody = parsedOutput.body;
1092
- (0, smithy_client_1.throwDefaultError)({
978
+ return throwDefaultError({
1093
979
  output,
1094
980
  parsedBody,
1095
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1096
981
  errorCode,
1097
982
  });
1098
983
  }
@@ -1103,12 +988,12 @@ const de_ListDataIngestionJobsCommand = async (output, context) => {
1103
988
  }
1104
989
  const data = await parseBody(output.body, context);
1105
990
  let contents = {};
1106
- contents = de_ListDataIngestionJobsResponse(data, context);
991
+ contents = (0, smithy_client_1._json)(data);
1107
992
  const response = {
1108
993
  $metadata: deserializeMetadata(output),
1109
994
  ...contents,
1110
995
  };
1111
- return Promise.resolve(response);
996
+ return response;
1112
997
  };
1113
998
  exports.de_ListDataIngestionJobsCommand = de_ListDataIngestionJobsCommand;
1114
999
  const de_ListDataIngestionJobsCommandError = async (output, context) => {
@@ -1132,10 +1017,9 @@ const de_ListDataIngestionJobsCommandError = async (output, context) => {
1132
1017
  throw await de_ValidationExceptionRes(parsedOutput, context);
1133
1018
  default:
1134
1019
  const parsedBody = parsedOutput.body;
1135
- (0, smithy_client_1.throwDefaultError)({
1020
+ return throwDefaultError({
1136
1021
  output,
1137
1022
  parsedBody,
1138
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1139
1023
  errorCode,
1140
1024
  });
1141
1025
  }
@@ -1151,7 +1035,7 @@ const de_ListDatasetsCommand = async (output, context) => {
1151
1035
  $metadata: deserializeMetadata(output),
1152
1036
  ...contents,
1153
1037
  };
1154
- return Promise.resolve(response);
1038
+ return response;
1155
1039
  };
1156
1040
  exports.de_ListDatasetsCommand = de_ListDatasetsCommand;
1157
1041
  const de_ListDatasetsCommandError = async (output, context) => {
@@ -1175,10 +1059,9 @@ const de_ListDatasetsCommandError = async (output, context) => {
1175
1059
  throw await de_ValidationExceptionRes(parsedOutput, context);
1176
1060
  default:
1177
1061
  const parsedBody = parsedOutput.body;
1178
- (0, smithy_client_1.throwDefaultError)({
1062
+ return throwDefaultError({
1179
1063
  output,
1180
1064
  parsedBody,
1181
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1182
1065
  errorCode,
1183
1066
  });
1184
1067
  }
@@ -1194,7 +1077,7 @@ const de_ListInferenceEventsCommand = async (output, context) => {
1194
1077
  $metadata: deserializeMetadata(output),
1195
1078
  ...contents,
1196
1079
  };
1197
- return Promise.resolve(response);
1080
+ return response;
1198
1081
  };
1199
1082
  exports.de_ListInferenceEventsCommand = de_ListInferenceEventsCommand;
1200
1083
  const de_ListInferenceEventsCommandError = async (output, context) => {
@@ -1221,10 +1104,9 @@ const de_ListInferenceEventsCommandError = async (output, context) => {
1221
1104
  throw await de_ValidationExceptionRes(parsedOutput, context);
1222
1105
  default:
1223
1106
  const parsedBody = parsedOutput.body;
1224
- (0, smithy_client_1.throwDefaultError)({
1107
+ return throwDefaultError({
1225
1108
  output,
1226
1109
  parsedBody,
1227
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1228
1110
  errorCode,
1229
1111
  });
1230
1112
  }
@@ -1240,7 +1122,7 @@ const de_ListInferenceExecutionsCommand = async (output, context) => {
1240
1122
  $metadata: deserializeMetadata(output),
1241
1123
  ...contents,
1242
1124
  };
1243
- return Promise.resolve(response);
1125
+ return response;
1244
1126
  };
1245
1127
  exports.de_ListInferenceExecutionsCommand = de_ListInferenceExecutionsCommand;
1246
1128
  const de_ListInferenceExecutionsCommandError = async (output, context) => {
@@ -1267,10 +1149,9 @@ const de_ListInferenceExecutionsCommandError = async (output, context) => {
1267
1149
  throw await de_ValidationExceptionRes(parsedOutput, context);
1268
1150
  default:
1269
1151
  const parsedBody = parsedOutput.body;
1270
- (0, smithy_client_1.throwDefaultError)({
1152
+ return throwDefaultError({
1271
1153
  output,
1272
1154
  parsedBody,
1273
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1274
1155
  errorCode,
1275
1156
  });
1276
1157
  }
@@ -1281,12 +1162,12 @@ const de_ListInferenceSchedulersCommand = async (output, context) => {
1281
1162
  }
1282
1163
  const data = await parseBody(output.body, context);
1283
1164
  let contents = {};
1284
- contents = de_ListInferenceSchedulersResponse(data, context);
1165
+ contents = (0, smithy_client_1._json)(data);
1285
1166
  const response = {
1286
1167
  $metadata: deserializeMetadata(output),
1287
1168
  ...contents,
1288
1169
  };
1289
- return Promise.resolve(response);
1170
+ return response;
1290
1171
  };
1291
1172
  exports.de_ListInferenceSchedulersCommand = de_ListInferenceSchedulersCommand;
1292
1173
  const de_ListInferenceSchedulersCommandError = async (output, context) => {
@@ -1310,10 +1191,9 @@ const de_ListInferenceSchedulersCommandError = async (output, context) => {
1310
1191
  throw await de_ValidationExceptionRes(parsedOutput, context);
1311
1192
  default:
1312
1193
  const parsedBody = parsedOutput.body;
1313
- (0, smithy_client_1.throwDefaultError)({
1194
+ return throwDefaultError({
1314
1195
  output,
1315
1196
  parsedBody,
1316
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1317
1197
  errorCode,
1318
1198
  });
1319
1199
  }
@@ -1329,7 +1209,7 @@ const de_ListLabelGroupsCommand = async (output, context) => {
1329
1209
  $metadata: deserializeMetadata(output),
1330
1210
  ...contents,
1331
1211
  };
1332
- return Promise.resolve(response);
1212
+ return response;
1333
1213
  };
1334
1214
  exports.de_ListLabelGroupsCommand = de_ListLabelGroupsCommand;
1335
1215
  const de_ListLabelGroupsCommandError = async (output, context) => {
@@ -1353,10 +1233,9 @@ const de_ListLabelGroupsCommandError = async (output, context) => {
1353
1233
  throw await de_ValidationExceptionRes(parsedOutput, context);
1354
1234
  default:
1355
1235
  const parsedBody = parsedOutput.body;
1356
- (0, smithy_client_1.throwDefaultError)({
1236
+ return throwDefaultError({
1357
1237
  output,
1358
1238
  parsedBody,
1359
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1360
1239
  errorCode,
1361
1240
  });
1362
1241
  }
@@ -1372,7 +1251,7 @@ const de_ListLabelsCommand = async (output, context) => {
1372
1251
  $metadata: deserializeMetadata(output),
1373
1252
  ...contents,
1374
1253
  };
1375
- return Promise.resolve(response);
1254
+ return response;
1376
1255
  };
1377
1256
  exports.de_ListLabelsCommand = de_ListLabelsCommand;
1378
1257
  const de_ListLabelsCommandError = async (output, context) => {
@@ -1396,10 +1275,9 @@ const de_ListLabelsCommandError = async (output, context) => {
1396
1275
  throw await de_ValidationExceptionRes(parsedOutput, context);
1397
1276
  default:
1398
1277
  const parsedBody = parsedOutput.body;
1399
- (0, smithy_client_1.throwDefaultError)({
1278
+ return throwDefaultError({
1400
1279
  output,
1401
1280
  parsedBody,
1402
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1403
1281
  errorCode,
1404
1282
  });
1405
1283
  }
@@ -1415,7 +1293,7 @@ const de_ListModelsCommand = async (output, context) => {
1415
1293
  $metadata: deserializeMetadata(output),
1416
1294
  ...contents,
1417
1295
  };
1418
- return Promise.resolve(response);
1296
+ return response;
1419
1297
  };
1420
1298
  exports.de_ListModelsCommand = de_ListModelsCommand;
1421
1299
  const de_ListModelsCommandError = async (output, context) => {
@@ -1439,10 +1317,9 @@ const de_ListModelsCommandError = async (output, context) => {
1439
1317
  throw await de_ValidationExceptionRes(parsedOutput, context);
1440
1318
  default:
1441
1319
  const parsedBody = parsedOutput.body;
1442
- (0, smithy_client_1.throwDefaultError)({
1320
+ return throwDefaultError({
1443
1321
  output,
1444
1322
  parsedBody,
1445
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1446
1323
  errorCode,
1447
1324
  });
1448
1325
  }
@@ -1458,7 +1335,7 @@ const de_ListSensorStatisticsCommand = async (output, context) => {
1458
1335
  $metadata: deserializeMetadata(output),
1459
1336
  ...contents,
1460
1337
  };
1461
- return Promise.resolve(response);
1338
+ return response;
1462
1339
  };
1463
1340
  exports.de_ListSensorStatisticsCommand = de_ListSensorStatisticsCommand;
1464
1341
  const de_ListSensorStatisticsCommandError = async (output, context) => {
@@ -1485,10 +1362,9 @@ const de_ListSensorStatisticsCommandError = async (output, context) => {
1485
1362
  throw await de_ValidationExceptionRes(parsedOutput, context);
1486
1363
  default:
1487
1364
  const parsedBody = parsedOutput.body;
1488
- (0, smithy_client_1.throwDefaultError)({
1365
+ return throwDefaultError({
1489
1366
  output,
1490
1367
  parsedBody,
1491
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1492
1368
  errorCode,
1493
1369
  });
1494
1370
  }
@@ -1499,12 +1375,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1499
1375
  }
1500
1376
  const data = await parseBody(output.body, context);
1501
1377
  let contents = {};
1502
- contents = de_ListTagsForResourceResponse(data, context);
1378
+ contents = (0, smithy_client_1._json)(data);
1503
1379
  const response = {
1504
1380
  $metadata: deserializeMetadata(output),
1505
1381
  ...contents,
1506
1382
  };
1507
- return Promise.resolve(response);
1383
+ return response;
1508
1384
  };
1509
1385
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1510
1386
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1531,10 +1407,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1531
1407
  throw await de_ValidationExceptionRes(parsedOutput, context);
1532
1408
  default:
1533
1409
  const parsedBody = parsedOutput.body;
1534
- (0, smithy_client_1.throwDefaultError)({
1410
+ return throwDefaultError({
1535
1411
  output,
1536
1412
  parsedBody,
1537
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1538
1413
  errorCode,
1539
1414
  });
1540
1415
  }
@@ -1545,12 +1420,12 @@ const de_StartDataIngestionJobCommand = async (output, context) => {
1545
1420
  }
1546
1421
  const data = await parseBody(output.body, context);
1547
1422
  let contents = {};
1548
- contents = de_StartDataIngestionJobResponse(data, context);
1423
+ contents = (0, smithy_client_1._json)(data);
1549
1424
  const response = {
1550
1425
  $metadata: deserializeMetadata(output),
1551
1426
  ...contents,
1552
1427
  };
1553
- return Promise.resolve(response);
1428
+ return response;
1554
1429
  };
1555
1430
  exports.de_StartDataIngestionJobCommand = de_StartDataIngestionJobCommand;
1556
1431
  const de_StartDataIngestionJobCommandError = async (output, context) => {
@@ -1583,10 +1458,9 @@ const de_StartDataIngestionJobCommandError = async (output, context) => {
1583
1458
  throw await de_ValidationExceptionRes(parsedOutput, context);
1584
1459
  default:
1585
1460
  const parsedBody = parsedOutput.body;
1586
- (0, smithy_client_1.throwDefaultError)({
1461
+ return throwDefaultError({
1587
1462
  output,
1588
1463
  parsedBody,
1589
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1590
1464
  errorCode,
1591
1465
  });
1592
1466
  }
@@ -1597,12 +1471,12 @@ const de_StartInferenceSchedulerCommand = async (output, context) => {
1597
1471
  }
1598
1472
  const data = await parseBody(output.body, context);
1599
1473
  let contents = {};
1600
- contents = de_StartInferenceSchedulerResponse(data, context);
1474
+ contents = (0, smithy_client_1._json)(data);
1601
1475
  const response = {
1602
1476
  $metadata: deserializeMetadata(output),
1603
1477
  ...contents,
1604
1478
  };
1605
- return Promise.resolve(response);
1479
+ return response;
1606
1480
  };
1607
1481
  exports.de_StartInferenceSchedulerCommand = de_StartInferenceSchedulerCommand;
1608
1482
  const de_StartInferenceSchedulerCommandError = async (output, context) => {
@@ -1632,10 +1506,9 @@ const de_StartInferenceSchedulerCommandError = async (output, context) => {
1632
1506
  throw await de_ValidationExceptionRes(parsedOutput, context);
1633
1507
  default:
1634
1508
  const parsedBody = parsedOutput.body;
1635
- (0, smithy_client_1.throwDefaultError)({
1509
+ return throwDefaultError({
1636
1510
  output,
1637
1511
  parsedBody,
1638
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1639
1512
  errorCode,
1640
1513
  });
1641
1514
  }
@@ -1646,12 +1519,12 @@ const de_StopInferenceSchedulerCommand = async (output, context) => {
1646
1519
  }
1647
1520
  const data = await parseBody(output.body, context);
1648
1521
  let contents = {};
1649
- contents = de_StopInferenceSchedulerResponse(data, context);
1522
+ contents = (0, smithy_client_1._json)(data);
1650
1523
  const response = {
1651
1524
  $metadata: deserializeMetadata(output),
1652
1525
  ...contents,
1653
1526
  };
1654
- return Promise.resolve(response);
1527
+ return response;
1655
1528
  };
1656
1529
  exports.de_StopInferenceSchedulerCommand = de_StopInferenceSchedulerCommand;
1657
1530
  const de_StopInferenceSchedulerCommandError = async (output, context) => {
@@ -1681,10 +1554,9 @@ const de_StopInferenceSchedulerCommandError = async (output, context) => {
1681
1554
  throw await de_ValidationExceptionRes(parsedOutput, context);
1682
1555
  default:
1683
1556
  const parsedBody = parsedOutput.body;
1684
- (0, smithy_client_1.throwDefaultError)({
1557
+ return throwDefaultError({
1685
1558
  output,
1686
1559
  parsedBody,
1687
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1688
1560
  errorCode,
1689
1561
  });
1690
1562
  }
@@ -1695,12 +1567,12 @@ const de_TagResourceCommand = async (output, context) => {
1695
1567
  }
1696
1568
  const data = await parseBody(output.body, context);
1697
1569
  let contents = {};
1698
- contents = de_TagResourceResponse(data, context);
1570
+ contents = (0, smithy_client_1._json)(data);
1699
1571
  const response = {
1700
1572
  $metadata: deserializeMetadata(output),
1701
1573
  ...contents,
1702
1574
  };
1703
- return Promise.resolve(response);
1575
+ return response;
1704
1576
  };
1705
1577
  exports.de_TagResourceCommand = de_TagResourceCommand;
1706
1578
  const de_TagResourceCommandError = async (output, context) => {
@@ -1730,10 +1602,9 @@ const de_TagResourceCommandError = async (output, context) => {
1730
1602
  throw await de_ValidationExceptionRes(parsedOutput, context);
1731
1603
  default:
1732
1604
  const parsedBody = parsedOutput.body;
1733
- (0, smithy_client_1.throwDefaultError)({
1605
+ return throwDefaultError({
1734
1606
  output,
1735
1607
  parsedBody,
1736
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1737
1608
  errorCode,
1738
1609
  });
1739
1610
  }
@@ -1744,12 +1615,12 @@ const de_UntagResourceCommand = async (output, context) => {
1744
1615
  }
1745
1616
  const data = await parseBody(output.body, context);
1746
1617
  let contents = {};
1747
- contents = de_UntagResourceResponse(data, context);
1618
+ contents = (0, smithy_client_1._json)(data);
1748
1619
  const response = {
1749
1620
  $metadata: deserializeMetadata(output),
1750
1621
  ...contents,
1751
1622
  };
1752
- return Promise.resolve(response);
1623
+ return response;
1753
1624
  };
1754
1625
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1755
1626
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1776,10 +1647,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1776
1647
  throw await de_ValidationExceptionRes(parsedOutput, context);
1777
1648
  default:
1778
1649
  const parsedBody = parsedOutput.body;
1779
- (0, smithy_client_1.throwDefaultError)({
1650
+ return throwDefaultError({
1780
1651
  output,
1781
1652
  parsedBody,
1782
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1783
1653
  errorCode,
1784
1654
  });
1785
1655
  }
@@ -1792,7 +1662,7 @@ const de_UpdateInferenceSchedulerCommand = async (output, context) => {
1792
1662
  const response = {
1793
1663
  $metadata: deserializeMetadata(output),
1794
1664
  };
1795
- return Promise.resolve(response);
1665
+ return response;
1796
1666
  };
1797
1667
  exports.de_UpdateInferenceSchedulerCommand = de_UpdateInferenceSchedulerCommand;
1798
1668
  const de_UpdateInferenceSchedulerCommandError = async (output, context) => {
@@ -1822,10 +1692,9 @@ const de_UpdateInferenceSchedulerCommandError = async (output, context) => {
1822
1692
  throw await de_ValidationExceptionRes(parsedOutput, context);
1823
1693
  default:
1824
1694
  const parsedBody = parsedOutput.body;
1825
- (0, smithy_client_1.throwDefaultError)({
1695
+ return throwDefaultError({
1826
1696
  output,
1827
1697
  parsedBody,
1828
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1829
1698
  errorCode,
1830
1699
  });
1831
1700
  }
@@ -1838,7 +1707,7 @@ const de_UpdateLabelGroupCommand = async (output, context) => {
1838
1707
  const response = {
1839
1708
  $metadata: deserializeMetadata(output),
1840
1709
  };
1841
- return Promise.resolve(response);
1710
+ return response;
1842
1711
  };
1843
1712
  exports.de_UpdateLabelGroupCommand = de_UpdateLabelGroupCommand;
1844
1713
  const de_UpdateLabelGroupCommandError = async (output, context) => {
@@ -1868,17 +1737,16 @@ const de_UpdateLabelGroupCommandError = async (output, context) => {
1868
1737
  throw await de_ValidationExceptionRes(parsedOutput, context);
1869
1738
  default:
1870
1739
  const parsedBody = parsedOutput.body;
1871
- (0, smithy_client_1.throwDefaultError)({
1740
+ return throwDefaultError({
1872
1741
  output,
1873
1742
  parsedBody,
1874
- exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
1875
1743
  errorCode,
1876
1744
  });
1877
1745
  }
1878
1746
  };
1879
1747
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1880
1748
  const body = parsedOutput.body;
1881
- const deserialized = de_AccessDeniedException(body, context);
1749
+ const deserialized = (0, smithy_client_1._json)(body);
1882
1750
  const exception = new models_0_1.AccessDeniedException({
1883
1751
  $metadata: deserializeMetadata(parsedOutput),
1884
1752
  ...deserialized,
@@ -1887,7 +1755,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1887
1755
  };
1888
1756
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1889
1757
  const body = parsedOutput.body;
1890
- const deserialized = de_ConflictException(body, context);
1758
+ const deserialized = (0, smithy_client_1._json)(body);
1891
1759
  const exception = new models_0_1.ConflictException({
1892
1760
  $metadata: deserializeMetadata(parsedOutput),
1893
1761
  ...deserialized,
@@ -1896,7 +1764,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1896
1764
  };
1897
1765
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1898
1766
  const body = parsedOutput.body;
1899
- const deserialized = de_InternalServerException(body, context);
1767
+ const deserialized = (0, smithy_client_1._json)(body);
1900
1768
  const exception = new models_0_1.InternalServerException({
1901
1769
  $metadata: deserializeMetadata(parsedOutput),
1902
1770
  ...deserialized,
@@ -1905,7 +1773,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1905
1773
  };
1906
1774
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1907
1775
  const body = parsedOutput.body;
1908
- const deserialized = de_ResourceNotFoundException(body, context);
1776
+ const deserialized = (0, smithy_client_1._json)(body);
1909
1777
  const exception = new models_0_1.ResourceNotFoundException({
1910
1778
  $metadata: deserializeMetadata(parsedOutput),
1911
1779
  ...deserialized,
@@ -1914,7 +1782,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1914
1782
  };
1915
1783
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1916
1784
  const body = parsedOutput.body;
1917
- const deserialized = de_ServiceQuotaExceededException(body, context);
1785
+ const deserialized = (0, smithy_client_1._json)(body);
1918
1786
  const exception = new models_0_1.ServiceQuotaExceededException({
1919
1787
  $metadata: deserializeMetadata(parsedOutput),
1920
1788
  ...deserialized,
@@ -1923,7 +1791,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1923
1791
  };
1924
1792
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1925
1793
  const body = parsedOutput.body;
1926
- const deserialized = de_ThrottlingException(body, context);
1794
+ const deserialized = (0, smithy_client_1._json)(body);
1927
1795
  const exception = new models_0_1.ThrottlingException({
1928
1796
  $metadata: deserializeMetadata(parsedOutput),
1929
1797
  ...deserialized,
@@ -1932,7 +1800,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1932
1800
  };
1933
1801
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1934
1802
  const body = parsedOutput.body;
1935
- const deserialized = de_ValidationException(body, context);
1803
+ const deserialized = (0, smithy_client_1._json)(body);
1936
1804
  const exception = new models_0_1.ValidationException({
1937
1805
  $metadata: deserializeMetadata(parsedOutput),
1938
1806
  ...deserialized,
@@ -1940,1113 +1808,394 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1940
1808
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1941
1809
  };
1942
1810
  const se_CreateDatasetRequest = (input, context) => {
1943
- return {
1944
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
1945
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
1946
- ...(input.DatasetSchema != null && { DatasetSchema: se_DatasetSchema(input.DatasetSchema, context) }),
1947
- ...(input.ServerSideKmsKeyId != null && { ServerSideKmsKeyId: input.ServerSideKmsKeyId }),
1948
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1949
- };
1811
+ return (0, smithy_client_1.take)(input, {
1812
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1813
+ DatasetName: [],
1814
+ DatasetSchema: (_) => se_DatasetSchema(_, context),
1815
+ ServerSideKmsKeyId: [],
1816
+ Tags: smithy_client_1._json,
1817
+ });
1950
1818
  };
1951
1819
  const se_CreateInferenceSchedulerRequest = (input, context) => {
1952
- return {
1953
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
1954
- ...(input.DataDelayOffsetInMinutes != null && { DataDelayOffsetInMinutes: input.DataDelayOffsetInMinutes }),
1955
- ...(input.DataInputConfiguration != null && {
1956
- DataInputConfiguration: se_InferenceInputConfiguration(input.DataInputConfiguration, context),
1957
- }),
1958
- ...(input.DataOutputConfiguration != null && {
1959
- DataOutputConfiguration: se_InferenceOutputConfiguration(input.DataOutputConfiguration, context),
1960
- }),
1961
- ...(input.DataUploadFrequency != null && { DataUploadFrequency: input.DataUploadFrequency }),
1962
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
1963
- ...(input.ModelName != null && { ModelName: input.ModelName }),
1964
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1965
- ...(input.ServerSideKmsKeyId != null && { ServerSideKmsKeyId: input.ServerSideKmsKeyId }),
1966
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1967
- };
1820
+ return (0, smithy_client_1.take)(input, {
1821
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1822
+ DataDelayOffsetInMinutes: [],
1823
+ DataInputConfiguration: smithy_client_1._json,
1824
+ DataOutputConfiguration: smithy_client_1._json,
1825
+ DataUploadFrequency: [],
1826
+ InferenceSchedulerName: [],
1827
+ ModelName: [],
1828
+ RoleArn: [],
1829
+ ServerSideKmsKeyId: [],
1830
+ Tags: smithy_client_1._json,
1831
+ });
1968
1832
  };
1969
1833
  const se_CreateLabelGroupRequest = (input, context) => {
1970
- return {
1971
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
1972
- ...(input.FaultCodes != null && { FaultCodes: se_FaultCodes(input.FaultCodes, context) }),
1973
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
1974
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1975
- };
1834
+ return (0, smithy_client_1.take)(input, {
1835
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1836
+ FaultCodes: smithy_client_1._json,
1837
+ LabelGroupName: [],
1838
+ Tags: smithy_client_1._json,
1839
+ });
1976
1840
  };
1977
1841
  const se_CreateLabelRequest = (input, context) => {
1978
- return {
1979
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
1980
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1981
- ...(input.Equipment != null && { Equipment: input.Equipment }),
1982
- ...(input.FaultCode != null && { FaultCode: input.FaultCode }),
1983
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
1984
- ...(input.Notes != null && { Notes: input.Notes }),
1985
- ...(input.Rating != null && { Rating: input.Rating }),
1986
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1987
- };
1842
+ return (0, smithy_client_1.take)(input, {
1843
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1844
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1845
+ Equipment: [],
1846
+ FaultCode: [],
1847
+ LabelGroupName: [],
1848
+ Notes: [],
1849
+ Rating: [],
1850
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1851
+ });
1988
1852
  };
1989
1853
  const se_CreateModelRequest = (input, context) => {
1990
- return {
1991
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
1992
- ...(input.DataPreProcessingConfiguration != null && {
1993
- DataPreProcessingConfiguration: se_DataPreProcessingConfiguration(input.DataPreProcessingConfiguration, context),
1994
- }),
1995
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
1996
- ...(input.DatasetSchema != null && { DatasetSchema: se_DatasetSchema(input.DatasetSchema, context) }),
1997
- ...(input.EvaluationDataEndTime != null && {
1998
- EvaluationDataEndTime: Math.round(input.EvaluationDataEndTime.getTime() / 1000),
1999
- }),
2000
- ...(input.EvaluationDataStartTime != null && {
2001
- EvaluationDataStartTime: Math.round(input.EvaluationDataStartTime.getTime() / 1000),
2002
- }),
2003
- ...(input.LabelsInputConfiguration != null && {
2004
- LabelsInputConfiguration: se_LabelsInputConfiguration(input.LabelsInputConfiguration, context),
2005
- }),
2006
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2007
- ...(input.OffCondition != null && { OffCondition: input.OffCondition }),
2008
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
2009
- ...(input.ServerSideKmsKeyId != null && { ServerSideKmsKeyId: input.ServerSideKmsKeyId }),
2010
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2011
- ...(input.TrainingDataEndTime != null && {
2012
- TrainingDataEndTime: Math.round(input.TrainingDataEndTime.getTime() / 1000),
2013
- }),
2014
- ...(input.TrainingDataStartTime != null && {
2015
- TrainingDataStartTime: Math.round(input.TrainingDataStartTime.getTime() / 1000),
2016
- }),
2017
- };
2018
- };
2019
- const se_DataPreProcessingConfiguration = (input, context) => {
2020
- return {
2021
- ...(input.TargetSamplingRate != null && { TargetSamplingRate: input.TargetSamplingRate }),
2022
- };
1854
+ return (0, smithy_client_1.take)(input, {
1855
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1856
+ DataPreProcessingConfiguration: smithy_client_1._json,
1857
+ DatasetName: [],
1858
+ DatasetSchema: (_) => se_DatasetSchema(_, context),
1859
+ EvaluationDataEndTime: (_) => Math.round(_.getTime() / 1000),
1860
+ EvaluationDataStartTime: (_) => Math.round(_.getTime() / 1000),
1861
+ LabelsInputConfiguration: smithy_client_1._json,
1862
+ ModelName: [],
1863
+ OffCondition: [],
1864
+ RoleArn: [],
1865
+ ServerSideKmsKeyId: [],
1866
+ Tags: smithy_client_1._json,
1867
+ TrainingDataEndTime: (_) => Math.round(_.getTime() / 1000),
1868
+ TrainingDataStartTime: (_) => Math.round(_.getTime() / 1000),
1869
+ });
2023
1870
  };
2024
1871
  const se_DatasetSchema = (input, context) => {
2025
- return {
2026
- ...(input.InlineDataSchema != null && { InlineDataSchema: smithy_client_1.LazyJsonString.fromObject(input.InlineDataSchema) }),
2027
- };
2028
- };
2029
- const se_DeleteDatasetRequest = (input, context) => {
2030
- return {
2031
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
2032
- };
2033
- };
2034
- const se_DeleteInferenceSchedulerRequest = (input, context) => {
2035
- return {
2036
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2037
- };
2038
- };
2039
- const se_DeleteLabelGroupRequest = (input, context) => {
2040
- return {
2041
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2042
- };
2043
- };
2044
- const se_DeleteLabelRequest = (input, context) => {
2045
- return {
2046
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2047
- ...(input.LabelId != null && { LabelId: input.LabelId }),
2048
- };
2049
- };
2050
- const se_DeleteModelRequest = (input, context) => {
2051
- return {
2052
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2053
- };
2054
- };
2055
- const se_DescribeDataIngestionJobRequest = (input, context) => {
2056
- return {
2057
- ...(input.JobId != null && { JobId: input.JobId }),
2058
- };
2059
- };
2060
- const se_DescribeDatasetRequest = (input, context) => {
2061
- return {
2062
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
2063
- };
2064
- };
2065
- const se_DescribeInferenceSchedulerRequest = (input, context) => {
2066
- return {
2067
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2068
- };
2069
- };
2070
- const se_DescribeLabelGroupRequest = (input, context) => {
2071
- return {
2072
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2073
- };
2074
- };
2075
- const se_DescribeLabelRequest = (input, context) => {
2076
- return {
2077
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2078
- ...(input.LabelId != null && { LabelId: input.LabelId }),
2079
- };
2080
- };
2081
- const se_DescribeModelRequest = (input, context) => {
2082
- return {
2083
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2084
- };
2085
- };
2086
- const se_FaultCodes = (input, context) => {
2087
- return input
2088
- .filter((e) => e != null)
2089
- .map((entry) => {
2090
- return entry;
1872
+ return (0, smithy_client_1.take)(input, {
1873
+ InlineDataSchema: smithy_client_1.LazyJsonString.fromObject,
2091
1874
  });
2092
1875
  };
2093
- const se_InferenceInputConfiguration = (input, context) => {
2094
- return {
2095
- ...(input.InferenceInputNameConfiguration != null && {
2096
- InferenceInputNameConfiguration: se_InferenceInputNameConfiguration(input.InferenceInputNameConfiguration, context),
2097
- }),
2098
- ...(input.InputTimeZoneOffset != null && { InputTimeZoneOffset: input.InputTimeZoneOffset }),
2099
- ...(input.S3InputConfiguration != null && {
2100
- S3InputConfiguration: se_InferenceS3InputConfiguration(input.S3InputConfiguration, context),
2101
- }),
2102
- };
2103
- };
2104
- const se_InferenceInputNameConfiguration = (input, context) => {
2105
- return {
2106
- ...(input.ComponentTimestampDelimiter != null && {
2107
- ComponentTimestampDelimiter: input.ComponentTimestampDelimiter,
2108
- }),
2109
- ...(input.TimestampFormat != null && { TimestampFormat: input.TimestampFormat }),
2110
- };
2111
- };
2112
- const se_InferenceOutputConfiguration = (input, context) => {
2113
- return {
2114
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2115
- ...(input.S3OutputConfiguration != null && {
2116
- S3OutputConfiguration: se_InferenceS3OutputConfiguration(input.S3OutputConfiguration, context),
2117
- }),
2118
- };
2119
- };
2120
- const se_InferenceS3InputConfiguration = (input, context) => {
2121
- return {
2122
- ...(input.Bucket != null && { Bucket: input.Bucket }),
2123
- ...(input.Prefix != null && { Prefix: input.Prefix }),
2124
- };
2125
- };
2126
- const se_InferenceS3OutputConfiguration = (input, context) => {
2127
- return {
2128
- ...(input.Bucket != null && { Bucket: input.Bucket }),
2129
- ...(input.Prefix != null && { Prefix: input.Prefix }),
2130
- };
2131
- };
2132
- const se_IngestionInputConfiguration = (input, context) => {
2133
- return {
2134
- ...(input.S3InputConfiguration != null && {
2135
- S3InputConfiguration: se_IngestionS3InputConfiguration(input.S3InputConfiguration, context),
2136
- }),
2137
- };
2138
- };
2139
- const se_IngestionS3InputConfiguration = (input, context) => {
2140
- return {
2141
- ...(input.Bucket != null && { Bucket: input.Bucket }),
2142
- ...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
2143
- ...(input.Prefix != null && { Prefix: input.Prefix }),
2144
- };
2145
- };
2146
- const se_LabelsInputConfiguration = (input, context) => {
2147
- return {
2148
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2149
- ...(input.S3InputConfiguration != null && {
2150
- S3InputConfiguration: se_LabelsS3InputConfiguration(input.S3InputConfiguration, context),
2151
- }),
2152
- };
2153
- };
2154
- const se_LabelsS3InputConfiguration = (input, context) => {
2155
- return {
2156
- ...(input.Bucket != null && { Bucket: input.Bucket }),
2157
- ...(input.Prefix != null && { Prefix: input.Prefix }),
2158
- };
2159
- };
2160
- const se_ListDataIngestionJobsRequest = (input, context) => {
2161
- return {
2162
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
2163
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2164
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2165
- ...(input.Status != null && { Status: input.Status }),
2166
- };
2167
- };
2168
- const se_ListDatasetsRequest = (input, context) => {
2169
- return {
2170
- ...(input.DatasetNameBeginsWith != null && { DatasetNameBeginsWith: input.DatasetNameBeginsWith }),
2171
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2172
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2173
- };
2174
- };
2175
1876
  const se_ListInferenceEventsRequest = (input, context) => {
2176
- return {
2177
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2178
- ...(input.IntervalEndTime != null && { IntervalEndTime: Math.round(input.IntervalEndTime.getTime() / 1000) }),
2179
- ...(input.IntervalStartTime != null && { IntervalStartTime: Math.round(input.IntervalStartTime.getTime() / 1000) }),
2180
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2181
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2182
- };
1877
+ return (0, smithy_client_1.take)(input, {
1878
+ InferenceSchedulerName: [],
1879
+ IntervalEndTime: (_) => Math.round(_.getTime() / 1000),
1880
+ IntervalStartTime: (_) => Math.round(_.getTime() / 1000),
1881
+ MaxResults: [],
1882
+ NextToken: [],
1883
+ });
2183
1884
  };
2184
1885
  const se_ListInferenceExecutionsRequest = (input, context) => {
2185
- return {
2186
- ...(input.DataEndTimeBefore != null && { DataEndTimeBefore: Math.round(input.DataEndTimeBefore.getTime() / 1000) }),
2187
- ...(input.DataStartTimeAfter != null && {
2188
- DataStartTimeAfter: Math.round(input.DataStartTimeAfter.getTime() / 1000),
2189
- }),
2190
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2191
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2192
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2193
- ...(input.Status != null && { Status: input.Status }),
2194
- };
2195
- };
2196
- const se_ListInferenceSchedulersRequest = (input, context) => {
2197
- return {
2198
- ...(input.InferenceSchedulerNameBeginsWith != null && {
2199
- InferenceSchedulerNameBeginsWith: input.InferenceSchedulerNameBeginsWith,
2200
- }),
2201
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2202
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2203
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2204
- ...(input.Status != null && { Status: input.Status }),
2205
- };
2206
- };
2207
- const se_ListLabelGroupsRequest = (input, context) => {
2208
- return {
2209
- ...(input.LabelGroupNameBeginsWith != null && { LabelGroupNameBeginsWith: input.LabelGroupNameBeginsWith }),
2210
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2211
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2212
- };
1886
+ return (0, smithy_client_1.take)(input, {
1887
+ DataEndTimeBefore: (_) => Math.round(_.getTime() / 1000),
1888
+ DataStartTimeAfter: (_) => Math.round(_.getTime() / 1000),
1889
+ InferenceSchedulerName: [],
1890
+ MaxResults: [],
1891
+ NextToken: [],
1892
+ Status: [],
1893
+ });
2213
1894
  };
2214
1895
  const se_ListLabelsRequest = (input, context) => {
2215
- return {
2216
- ...(input.Equipment != null && { Equipment: input.Equipment }),
2217
- ...(input.FaultCode != null && { FaultCode: input.FaultCode }),
2218
- ...(input.IntervalEndTime != null && { IntervalEndTime: Math.round(input.IntervalEndTime.getTime() / 1000) }),
2219
- ...(input.IntervalStartTime != null && { IntervalStartTime: Math.round(input.IntervalStartTime.getTime() / 1000) }),
2220
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2221
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2222
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2223
- };
2224
- };
2225
- const se_ListModelsRequest = (input, context) => {
2226
- return {
2227
- ...(input.DatasetNameBeginsWith != null && { DatasetNameBeginsWith: input.DatasetNameBeginsWith }),
2228
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2229
- ...(input.ModelNameBeginsWith != null && { ModelNameBeginsWith: input.ModelNameBeginsWith }),
2230
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2231
- ...(input.Status != null && { Status: input.Status }),
2232
- };
2233
- };
2234
- const se_ListSensorStatisticsRequest = (input, context) => {
2235
- return {
2236
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
2237
- ...(input.IngestionJobId != null && { IngestionJobId: input.IngestionJobId }),
2238
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2239
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2240
- };
2241
- };
2242
- const se_ListTagsForResourceRequest = (input, context) => {
2243
- return {
2244
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2245
- };
2246
- };
2247
- const se_StartDataIngestionJobRequest = (input, context) => {
2248
- return {
2249
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2250
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
2251
- ...(input.IngestionInputConfiguration != null && {
2252
- IngestionInputConfiguration: se_IngestionInputConfiguration(input.IngestionInputConfiguration, context),
2253
- }),
2254
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
2255
- };
2256
- };
2257
- const se_StartInferenceSchedulerRequest = (input, context) => {
2258
- return {
2259
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2260
- };
2261
- };
2262
- const se_StopInferenceSchedulerRequest = (input, context) => {
2263
- return {
2264
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2265
- };
2266
- };
2267
- const se_Tag = (input, context) => {
2268
- return {
2269
- ...(input.Key != null && { Key: input.Key }),
2270
- ...(input.Value != null && { Value: input.Value }),
2271
- };
2272
- };
2273
- const se_TagKeyList = (input, context) => {
2274
- return input
2275
- .filter((e) => e != null)
2276
- .map((entry) => {
2277
- return entry;
1896
+ return (0, smithy_client_1.take)(input, {
1897
+ Equipment: [],
1898
+ FaultCode: [],
1899
+ IntervalEndTime: (_) => Math.round(_.getTime() / 1000),
1900
+ IntervalStartTime: (_) => Math.round(_.getTime() / 1000),
1901
+ LabelGroupName: [],
1902
+ MaxResults: [],
1903
+ NextToken: [],
2278
1904
  });
2279
1905
  };
2280
- const se_TagList = (input, context) => {
2281
- return input
2282
- .filter((e) => e != null)
2283
- .map((entry) => {
2284
- return se_Tag(entry, context);
1906
+ const se_StartDataIngestionJobRequest = (input, context) => {
1907
+ return (0, smithy_client_1.take)(input, {
1908
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1909
+ DatasetName: [],
1910
+ IngestionInputConfiguration: smithy_client_1._json,
1911
+ RoleArn: [],
2285
1912
  });
2286
1913
  };
2287
- const se_TagResourceRequest = (input, context) => {
2288
- return {
2289
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2290
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2291
- };
2292
- };
2293
- const se_UntagResourceRequest = (input, context) => {
2294
- return {
2295
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2296
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2297
- };
2298
- };
2299
- const se_UpdateInferenceSchedulerRequest = (input, context) => {
2300
- return {
2301
- ...(input.DataDelayOffsetInMinutes != null && { DataDelayOffsetInMinutes: input.DataDelayOffsetInMinutes }),
2302
- ...(input.DataInputConfiguration != null && {
2303
- DataInputConfiguration: se_InferenceInputConfiguration(input.DataInputConfiguration, context),
2304
- }),
2305
- ...(input.DataOutputConfiguration != null && {
2306
- DataOutputConfiguration: se_InferenceOutputConfiguration(input.DataOutputConfiguration, context),
2307
- }),
2308
- ...(input.DataUploadFrequency != null && { DataUploadFrequency: input.DataUploadFrequency }),
2309
- ...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
2310
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
2311
- };
2312
- };
2313
- const se_UpdateLabelGroupRequest = (input, context) => {
2314
- return {
2315
- ...(input.FaultCodes != null && { FaultCodes: se_FaultCodes(input.FaultCodes, context) }),
2316
- ...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
2317
- };
2318
- };
2319
- const de_AccessDeniedException = (output, context) => {
2320
- return {
2321
- Message: (0, smithy_client_1.expectString)(output.Message),
2322
- };
2323
- };
2324
- const de_CategoricalValues = (output, context) => {
2325
- return {
2326
- NumberOfCategory: (0, smithy_client_1.expectInt32)(output.NumberOfCategory),
2327
- Status: (0, smithy_client_1.expectString)(output.Status),
2328
- };
2329
- };
2330
- const de_ConflictException = (output, context) => {
2331
- return {
2332
- Message: (0, smithy_client_1.expectString)(output.Message),
2333
- };
2334
- };
2335
1914
  const de_CountPercent = (output, context) => {
2336
- return {
2337
- Count: (0, smithy_client_1.expectInt32)(output.Count),
2338
- Percentage: (0, smithy_client_1.limitedParseFloat32)(output.Percentage),
2339
- };
2340
- };
2341
- const de_CreateDatasetResponse = (output, context) => {
2342
- return {
2343
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2344
- DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
2345
- Status: (0, smithy_client_1.expectString)(output.Status),
2346
- };
2347
- };
2348
- const de_CreateInferenceSchedulerResponse = (output, context) => {
2349
- return {
2350
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2351
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2352
- Status: (0, smithy_client_1.expectString)(output.Status),
2353
- };
2354
- };
2355
- const de_CreateLabelGroupResponse = (output, context) => {
2356
- return {
2357
- LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
2358
- LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
2359
- };
2360
- };
2361
- const de_CreateLabelResponse = (output, context) => {
2362
- return {
2363
- LabelId: (0, smithy_client_1.expectString)(output.LabelId),
2364
- };
2365
- };
2366
- const de_CreateModelResponse = (output, context) => {
2367
- return {
2368
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
2369
- Status: (0, smithy_client_1.expectString)(output.Status),
2370
- };
2371
- };
2372
- const de_DataIngestionJobSummaries = (output, context) => {
2373
- const retVal = (output || [])
2374
- .filter((e) => e != null)
2375
- .map((entry) => {
2376
- if (entry === null) {
2377
- return null;
2378
- }
2379
- return de_DataIngestionJobSummary(entry, context);
1915
+ return (0, smithy_client_1.take)(output, {
1916
+ Count: smithy_client_1.expectInt32,
1917
+ Percentage: smithy_client_1.limitedParseFloat32,
2380
1918
  });
2381
- return retVal;
2382
- };
2383
- const de_DataIngestionJobSummary = (output, context) => {
2384
- return {
2385
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2386
- DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
2387
- IngestionInputConfiguration: output.IngestionInputConfiguration != null
2388
- ? de_IngestionInputConfiguration(output.IngestionInputConfiguration, context)
2389
- : undefined,
2390
- JobId: (0, smithy_client_1.expectString)(output.JobId),
2391
- Status: (0, smithy_client_1.expectString)(output.Status),
2392
- };
2393
- };
2394
- const de_DataPreProcessingConfiguration = (output, context) => {
2395
- return {
2396
- TargetSamplingRate: (0, smithy_client_1.expectString)(output.TargetSamplingRate),
2397
- };
2398
- };
2399
- const de_DataQualitySummary = (output, context) => {
2400
- return {
2401
- DuplicateTimestamps: output.DuplicateTimestamps != null ? de_DuplicateTimestamps(output.DuplicateTimestamps, context) : undefined,
2402
- InsufficientSensorData: output.InsufficientSensorData != null
2403
- ? de_InsufficientSensorData(output.InsufficientSensorData, context)
2404
- : undefined,
2405
- InvalidSensorData: output.InvalidSensorData != null ? de_InvalidSensorData(output.InvalidSensorData, context) : undefined,
2406
- MissingSensorData: output.MissingSensorData != null ? de_MissingSensorData(output.MissingSensorData, context) : undefined,
2407
- UnsupportedTimestamps: output.UnsupportedTimestamps != null
2408
- ? de_UnsupportedTimestamps(output.UnsupportedTimestamps, context)
2409
- : undefined,
2410
- };
2411
1919
  };
2412
1920
  const de_DatasetSummaries = (output, context) => {
2413
1921
  const retVal = (output || [])
2414
1922
  .filter((e) => e != null)
2415
1923
  .map((entry) => {
2416
- if (entry === null) {
2417
- return null;
2418
- }
2419
1924
  return de_DatasetSummary(entry, context);
2420
1925
  });
2421
1926
  return retVal;
2422
1927
  };
2423
1928
  const de_DatasetSummary = (output, context) => {
2424
- return {
2425
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2426
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2427
- DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
2428
- Status: (0, smithy_client_1.expectString)(output.Status),
2429
- };
1929
+ return (0, smithy_client_1.take)(output, {
1930
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1931
+ DatasetArn: smithy_client_1.expectString,
1932
+ DatasetName: smithy_client_1.expectString,
1933
+ Status: smithy_client_1.expectString,
1934
+ });
2430
1935
  };
2431
1936
  const de_DescribeDataIngestionJobResponse = (output, context) => {
2432
- return {
2433
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2434
- DataEndTime: output.DataEndTime != null
2435
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
2436
- : undefined,
2437
- DataQualitySummary: output.DataQualitySummary != null ? de_DataQualitySummary(output.DataQualitySummary, context) : undefined,
2438
- DataStartTime: output.DataStartTime != null
2439
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
2440
- : undefined,
2441
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2442
- FailedReason: (0, smithy_client_1.expectString)(output.FailedReason),
2443
- IngestedDataSize: (0, smithy_client_1.expectLong)(output.IngestedDataSize),
2444
- IngestedFilesSummary: output.IngestedFilesSummary != null ? de_IngestedFilesSummary(output.IngestedFilesSummary, context) : undefined,
2445
- IngestionInputConfiguration: output.IngestionInputConfiguration != null
2446
- ? de_IngestionInputConfiguration(output.IngestionInputConfiguration, context)
2447
- : undefined,
2448
- JobId: (0, smithy_client_1.expectString)(output.JobId),
2449
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
2450
- Status: (0, smithy_client_1.expectString)(output.Status),
2451
- StatusDetail: (0, smithy_client_1.expectString)(output.StatusDetail),
2452
- };
1937
+ return (0, smithy_client_1.take)(output, {
1938
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1939
+ DataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1940
+ DataQualitySummary: smithy_client_1._json,
1941
+ DataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1942
+ DatasetArn: smithy_client_1.expectString,
1943
+ FailedReason: smithy_client_1.expectString,
1944
+ IngestedDataSize: smithy_client_1.expectLong,
1945
+ IngestedFilesSummary: smithy_client_1._json,
1946
+ IngestionInputConfiguration: smithy_client_1._json,
1947
+ JobId: smithy_client_1.expectString,
1948
+ RoleArn: smithy_client_1.expectString,
1949
+ Status: smithy_client_1.expectString,
1950
+ StatusDetail: smithy_client_1.expectString,
1951
+ });
2453
1952
  };
2454
1953
  const de_DescribeDatasetResponse = (output, context) => {
2455
- return {
2456
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2457
- DataEndTime: output.DataEndTime != null
2458
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
2459
- : undefined,
2460
- DataQualitySummary: output.DataQualitySummary != null ? de_DataQualitySummary(output.DataQualitySummary, context) : undefined,
2461
- DataStartTime: output.DataStartTime != null
2462
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
2463
- : undefined,
2464
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2465
- DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
2466
- IngestedFilesSummary: output.IngestedFilesSummary != null ? de_IngestedFilesSummary(output.IngestedFilesSummary, context) : undefined,
2467
- IngestionInputConfiguration: output.IngestionInputConfiguration != null
2468
- ? de_IngestionInputConfiguration(output.IngestionInputConfiguration, context)
2469
- : undefined,
2470
- LastUpdatedAt: output.LastUpdatedAt != null
2471
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
2472
- : undefined,
2473
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
2474
- Schema: output.Schema != null ? new smithy_client_1.LazyJsonString(output.Schema) : undefined,
2475
- ServerSideKmsKeyId: (0, smithy_client_1.expectString)(output.ServerSideKmsKeyId),
2476
- Status: (0, smithy_client_1.expectString)(output.Status),
2477
- };
1954
+ return (0, smithy_client_1.take)(output, {
1955
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1956
+ DataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1957
+ DataQualitySummary: smithy_client_1._json,
1958
+ DataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1959
+ DatasetArn: smithy_client_1.expectString,
1960
+ DatasetName: smithy_client_1.expectString,
1961
+ IngestedFilesSummary: smithy_client_1._json,
1962
+ IngestionInputConfiguration: smithy_client_1._json,
1963
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1964
+ RoleArn: smithy_client_1.expectString,
1965
+ Schema: (_) => new smithy_client_1.LazyJsonString(_),
1966
+ ServerSideKmsKeyId: smithy_client_1.expectString,
1967
+ Status: smithy_client_1.expectString,
1968
+ });
2478
1969
  };
2479
1970
  const de_DescribeInferenceSchedulerResponse = (output, context) => {
2480
- return {
2481
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2482
- DataDelayOffsetInMinutes: (0, smithy_client_1.expectLong)(output.DataDelayOffsetInMinutes),
2483
- DataInputConfiguration: output.DataInputConfiguration != null
2484
- ? de_InferenceInputConfiguration(output.DataInputConfiguration, context)
2485
- : undefined,
2486
- DataOutputConfiguration: output.DataOutputConfiguration != null
2487
- ? de_InferenceOutputConfiguration(output.DataOutputConfiguration, context)
2488
- : undefined,
2489
- DataUploadFrequency: (0, smithy_client_1.expectString)(output.DataUploadFrequency),
2490
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2491
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2492
- LatestInferenceResult: (0, smithy_client_1.expectString)(output.LatestInferenceResult),
2493
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
2494
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
2495
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
2496
- ServerSideKmsKeyId: (0, smithy_client_1.expectString)(output.ServerSideKmsKeyId),
2497
- Status: (0, smithy_client_1.expectString)(output.Status),
2498
- UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
2499
- };
1971
+ return (0, smithy_client_1.take)(output, {
1972
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1973
+ DataDelayOffsetInMinutes: smithy_client_1.expectLong,
1974
+ DataInputConfiguration: smithy_client_1._json,
1975
+ DataOutputConfiguration: smithy_client_1._json,
1976
+ DataUploadFrequency: smithy_client_1.expectString,
1977
+ InferenceSchedulerArn: smithy_client_1.expectString,
1978
+ InferenceSchedulerName: smithy_client_1.expectString,
1979
+ LatestInferenceResult: smithy_client_1.expectString,
1980
+ ModelArn: smithy_client_1.expectString,
1981
+ ModelName: smithy_client_1.expectString,
1982
+ RoleArn: smithy_client_1.expectString,
1983
+ ServerSideKmsKeyId: smithy_client_1.expectString,
1984
+ Status: smithy_client_1.expectString,
1985
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1986
+ });
2500
1987
  };
2501
1988
  const de_DescribeLabelGroupResponse = (output, context) => {
2502
- return {
2503
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2504
- FaultCodes: output.FaultCodes != null ? de_FaultCodes(output.FaultCodes, context) : undefined,
2505
- LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
2506
- LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
2507
- UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
2508
- };
1989
+ return (0, smithy_client_1.take)(output, {
1990
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1991
+ FaultCodes: smithy_client_1._json,
1992
+ LabelGroupArn: smithy_client_1.expectString,
1993
+ LabelGroupName: smithy_client_1.expectString,
1994
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1995
+ });
2509
1996
  };
2510
1997
  const de_DescribeLabelResponse = (output, context) => {
2511
- return {
2512
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2513
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2514
- Equipment: (0, smithy_client_1.expectString)(output.Equipment),
2515
- FaultCode: (0, smithy_client_1.expectString)(output.FaultCode),
2516
- LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
2517
- LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
2518
- LabelId: (0, smithy_client_1.expectString)(output.LabelId),
2519
- Notes: (0, smithy_client_1.expectString)(output.Notes),
2520
- Rating: (0, smithy_client_1.expectString)(output.Rating),
2521
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2522
- };
1998
+ return (0, smithy_client_1.take)(output, {
1999
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2000
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2001
+ Equipment: smithy_client_1.expectString,
2002
+ FaultCode: smithy_client_1.expectString,
2003
+ LabelGroupArn: smithy_client_1.expectString,
2004
+ LabelGroupName: smithy_client_1.expectString,
2005
+ LabelId: smithy_client_1.expectString,
2006
+ Notes: smithy_client_1.expectString,
2007
+ Rating: smithy_client_1.expectString,
2008
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2009
+ });
2523
2010
  };
2524
2011
  const de_DescribeModelResponse = (output, context) => {
2525
- return {
2526
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2527
- DataPreProcessingConfiguration: output.DataPreProcessingConfiguration != null
2528
- ? de_DataPreProcessingConfiguration(output.DataPreProcessingConfiguration, context)
2529
- : undefined,
2530
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2531
- DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
2532
- EvaluationDataEndTime: output.EvaluationDataEndTime != null
2533
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EvaluationDataEndTime)))
2534
- : undefined,
2535
- EvaluationDataStartTime: output.EvaluationDataStartTime != null
2536
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EvaluationDataStartTime)))
2537
- : undefined,
2538
- FailedReason: (0, smithy_client_1.expectString)(output.FailedReason),
2539
- LabelsInputConfiguration: output.LabelsInputConfiguration != null
2540
- ? de_LabelsInputConfiguration(output.LabelsInputConfiguration, context)
2541
- : undefined,
2542
- LastUpdatedTime: output.LastUpdatedTime != null
2543
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
2544
- : undefined,
2545
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
2546
- ModelMetrics: output.ModelMetrics != null ? new smithy_client_1.LazyJsonString(output.ModelMetrics) : undefined,
2547
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
2548
- OffCondition: (0, smithy_client_1.expectString)(output.OffCondition),
2549
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
2550
- Schema: output.Schema != null ? new smithy_client_1.LazyJsonString(output.Schema) : undefined,
2551
- ServerSideKmsKeyId: (0, smithy_client_1.expectString)(output.ServerSideKmsKeyId),
2552
- Status: (0, smithy_client_1.expectString)(output.Status),
2553
- TrainingDataEndTime: output.TrainingDataEndTime != null
2554
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingDataEndTime)))
2555
- : undefined,
2556
- TrainingDataStartTime: output.TrainingDataStartTime != null
2557
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingDataStartTime)))
2558
- : undefined,
2559
- TrainingExecutionEndTime: output.TrainingExecutionEndTime != null
2560
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingExecutionEndTime)))
2561
- : undefined,
2562
- TrainingExecutionStartTime: output.TrainingExecutionStartTime != null
2563
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingExecutionStartTime)))
2564
- : undefined,
2565
- };
2566
- };
2567
- const de_DuplicateTimestamps = (output, context) => {
2568
- return {
2569
- TotalNumberOfDuplicateTimestamps: (0, smithy_client_1.expectInt32)(output.TotalNumberOfDuplicateTimestamps),
2570
- };
2571
- };
2572
- const de_FaultCodes = (output, context) => {
2573
- const retVal = (output || [])
2574
- .filter((e) => e != null)
2575
- .map((entry) => {
2576
- if (entry === null) {
2577
- return null;
2578
- }
2579
- return (0, smithy_client_1.expectString)(entry);
2012
+ return (0, smithy_client_1.take)(output, {
2013
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2014
+ DataPreProcessingConfiguration: smithy_client_1._json,
2015
+ DatasetArn: smithy_client_1.expectString,
2016
+ DatasetName: smithy_client_1.expectString,
2017
+ EvaluationDataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2018
+ EvaluationDataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2019
+ FailedReason: smithy_client_1.expectString,
2020
+ LabelsInputConfiguration: smithy_client_1._json,
2021
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2022
+ ModelArn: smithy_client_1.expectString,
2023
+ ModelMetrics: (_) => new smithy_client_1.LazyJsonString(_),
2024
+ ModelName: smithy_client_1.expectString,
2025
+ OffCondition: smithy_client_1.expectString,
2026
+ RoleArn: smithy_client_1.expectString,
2027
+ Schema: (_) => new smithy_client_1.LazyJsonString(_),
2028
+ ServerSideKmsKeyId: smithy_client_1.expectString,
2029
+ Status: smithy_client_1.expectString,
2030
+ TrainingDataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2031
+ TrainingDataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2032
+ TrainingExecutionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2033
+ TrainingExecutionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2580
2034
  });
2581
- return retVal;
2582
2035
  };
2583
2036
  const de_InferenceEventSummaries = (output, context) => {
2584
2037
  const retVal = (output || [])
2585
2038
  .filter((e) => e != null)
2586
2039
  .map((entry) => {
2587
- if (entry === null) {
2588
- return null;
2589
- }
2590
2040
  return de_InferenceEventSummary(entry, context);
2591
2041
  });
2592
2042
  return retVal;
2593
2043
  };
2594
2044
  const de_InferenceEventSummary = (output, context) => {
2595
- return {
2596
- Diagnostics: (0, smithy_client_1.expectString)(output.Diagnostics),
2597
- EventDurationInSeconds: (0, smithy_client_1.expectLong)(output.EventDurationInSeconds),
2598
- EventEndTime: output.EventEndTime != null
2599
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventEndTime)))
2600
- : undefined,
2601
- EventStartTime: output.EventStartTime != null
2602
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventStartTime)))
2603
- : undefined,
2604
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2605
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2606
- };
2045
+ return (0, smithy_client_1.take)(output, {
2046
+ Diagnostics: smithy_client_1.expectString,
2047
+ EventDurationInSeconds: smithy_client_1.expectLong,
2048
+ EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2049
+ EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2050
+ InferenceSchedulerArn: smithy_client_1.expectString,
2051
+ InferenceSchedulerName: smithy_client_1.expectString,
2052
+ });
2607
2053
  };
2608
2054
  const de_InferenceExecutionSummaries = (output, context) => {
2609
2055
  const retVal = (output || [])
2610
2056
  .filter((e) => e != null)
2611
2057
  .map((entry) => {
2612
- if (entry === null) {
2613
- return null;
2614
- }
2615
2058
  return de_InferenceExecutionSummary(entry, context);
2616
2059
  });
2617
2060
  return retVal;
2618
2061
  };
2619
2062
  const de_InferenceExecutionSummary = (output, context) => {
2620
- return {
2621
- CustomerResultObject: output.CustomerResultObject != null ? de_S3Object(output.CustomerResultObject, context) : undefined,
2622
- DataEndTime: output.DataEndTime != null
2623
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
2624
- : undefined,
2625
- DataInputConfiguration: output.DataInputConfiguration != null
2626
- ? de_InferenceInputConfiguration(output.DataInputConfiguration, context)
2627
- : undefined,
2628
- DataOutputConfiguration: output.DataOutputConfiguration != null
2629
- ? de_InferenceOutputConfiguration(output.DataOutputConfiguration, context)
2630
- : undefined,
2631
- DataStartTime: output.DataStartTime != null
2632
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
2633
- : undefined,
2634
- FailedReason: (0, smithy_client_1.expectString)(output.FailedReason),
2635
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2636
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2637
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
2638
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
2639
- ScheduledStartTime: output.ScheduledStartTime != null
2640
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledStartTime)))
2641
- : undefined,
2642
- Status: (0, smithy_client_1.expectString)(output.Status),
2643
- };
2644
- };
2645
- const de_InferenceInputConfiguration = (output, context) => {
2646
- return {
2647
- InferenceInputNameConfiguration: output.InferenceInputNameConfiguration != null
2648
- ? de_InferenceInputNameConfiguration(output.InferenceInputNameConfiguration, context)
2649
- : undefined,
2650
- InputTimeZoneOffset: (0, smithy_client_1.expectString)(output.InputTimeZoneOffset),
2651
- S3InputConfiguration: output.S3InputConfiguration != null
2652
- ? de_InferenceS3InputConfiguration(output.S3InputConfiguration, context)
2653
- : undefined,
2654
- };
2655
- };
2656
- const de_InferenceInputNameConfiguration = (output, context) => {
2657
- return {
2658
- ComponentTimestampDelimiter: (0, smithy_client_1.expectString)(output.ComponentTimestampDelimiter),
2659
- TimestampFormat: (0, smithy_client_1.expectString)(output.TimestampFormat),
2660
- };
2661
- };
2662
- const de_InferenceOutputConfiguration = (output, context) => {
2663
- return {
2664
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
2665
- S3OutputConfiguration: output.S3OutputConfiguration != null
2666
- ? de_InferenceS3OutputConfiguration(output.S3OutputConfiguration, context)
2667
- : undefined,
2668
- };
2669
- };
2670
- const de_InferenceS3InputConfiguration = (output, context) => {
2671
- return {
2672
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2673
- Prefix: (0, smithy_client_1.expectString)(output.Prefix),
2674
- };
2675
- };
2676
- const de_InferenceS3OutputConfiguration = (output, context) => {
2677
- return {
2678
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2679
- Prefix: (0, smithy_client_1.expectString)(output.Prefix),
2680
- };
2681
- };
2682
- const de_InferenceSchedulerSummaries = (output, context) => {
2683
- const retVal = (output || [])
2684
- .filter((e) => e != null)
2685
- .map((entry) => {
2686
- if (entry === null) {
2687
- return null;
2688
- }
2689
- return de_InferenceSchedulerSummary(entry, context);
2063
+ return (0, smithy_client_1.take)(output, {
2064
+ CustomerResultObject: smithy_client_1._json,
2065
+ DataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2066
+ DataInputConfiguration: smithy_client_1._json,
2067
+ DataOutputConfiguration: smithy_client_1._json,
2068
+ DataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2069
+ FailedReason: smithy_client_1.expectString,
2070
+ InferenceSchedulerArn: smithy_client_1.expectString,
2071
+ InferenceSchedulerName: smithy_client_1.expectString,
2072
+ ModelArn: smithy_client_1.expectString,
2073
+ ModelName: smithy_client_1.expectString,
2074
+ ScheduledStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2075
+ Status: smithy_client_1.expectString,
2690
2076
  });
2691
- return retVal;
2692
- };
2693
- const de_InferenceSchedulerSummary = (output, context) => {
2694
- return {
2695
- DataDelayOffsetInMinutes: (0, smithy_client_1.expectLong)(output.DataDelayOffsetInMinutes),
2696
- DataUploadFrequency: (0, smithy_client_1.expectString)(output.DataUploadFrequency),
2697
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2698
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2699
- LatestInferenceResult: (0, smithy_client_1.expectString)(output.LatestInferenceResult),
2700
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
2701
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
2702
- Status: (0, smithy_client_1.expectString)(output.Status),
2703
- };
2704
- };
2705
- const de_IngestedFilesSummary = (output, context) => {
2706
- return {
2707
- DiscardedFiles: output.DiscardedFiles != null ? de_ListOfDiscardedFiles(output.DiscardedFiles, context) : undefined,
2708
- IngestedNumberOfFiles: (0, smithy_client_1.expectInt32)(output.IngestedNumberOfFiles),
2709
- TotalNumberOfFiles: (0, smithy_client_1.expectInt32)(output.TotalNumberOfFiles),
2710
- };
2711
- };
2712
- const de_IngestionInputConfiguration = (output, context) => {
2713
- return {
2714
- S3InputConfiguration: output.S3InputConfiguration != null
2715
- ? de_IngestionS3InputConfiguration(output.S3InputConfiguration, context)
2716
- : undefined,
2717
- };
2718
- };
2719
- const de_IngestionS3InputConfiguration = (output, context) => {
2720
- return {
2721
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2722
- KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
2723
- Prefix: (0, smithy_client_1.expectString)(output.Prefix),
2724
- };
2725
- };
2726
- const de_InsufficientSensorData = (output, context) => {
2727
- return {
2728
- MissingCompleteSensorData: output.MissingCompleteSensorData != null
2729
- ? de_MissingCompleteSensorData(output.MissingCompleteSensorData, context)
2730
- : undefined,
2731
- SensorsWithShortDateRange: output.SensorsWithShortDateRange != null
2732
- ? de_SensorsWithShortDateRange(output.SensorsWithShortDateRange, context)
2733
- : undefined,
2734
- };
2735
- };
2736
- const de_InternalServerException = (output, context) => {
2737
- return {
2738
- Message: (0, smithy_client_1.expectString)(output.Message),
2739
- };
2740
- };
2741
- const de_InvalidSensorData = (output, context) => {
2742
- return {
2743
- AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2744
- TotalNumberOfInvalidValues: (0, smithy_client_1.expectInt32)(output.TotalNumberOfInvalidValues),
2745
- };
2746
2077
  };
2747
2078
  const de_LabelGroupSummaries = (output, context) => {
2748
2079
  const retVal = (output || [])
2749
2080
  .filter((e) => e != null)
2750
2081
  .map((entry) => {
2751
- if (entry === null) {
2752
- return null;
2753
- }
2754
2082
  return de_LabelGroupSummary(entry, context);
2755
2083
  });
2756
2084
  return retVal;
2757
2085
  };
2758
2086
  const de_LabelGroupSummary = (output, context) => {
2759
- return {
2760
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2761
- LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
2762
- LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
2763
- UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
2764
- };
2765
- };
2766
- const de_LabelsInputConfiguration = (output, context) => {
2767
- return {
2768
- LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
2769
- S3InputConfiguration: output.S3InputConfiguration != null
2770
- ? de_LabelsS3InputConfiguration(output.S3InputConfiguration, context)
2771
- : undefined,
2772
- };
2773
- };
2774
- const de_LabelsS3InputConfiguration = (output, context) => {
2775
- return {
2776
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2777
- Prefix: (0, smithy_client_1.expectString)(output.Prefix),
2778
- };
2087
+ return (0, smithy_client_1.take)(output, {
2088
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2089
+ LabelGroupArn: smithy_client_1.expectString,
2090
+ LabelGroupName: smithy_client_1.expectString,
2091
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2092
+ });
2779
2093
  };
2780
2094
  const de_LabelSummaries = (output, context) => {
2781
2095
  const retVal = (output || [])
2782
2096
  .filter((e) => e != null)
2783
2097
  .map((entry) => {
2784
- if (entry === null) {
2785
- return null;
2786
- }
2787
2098
  return de_LabelSummary(entry, context);
2788
2099
  });
2789
2100
  return retVal;
2790
2101
  };
2791
2102
  const de_LabelSummary = (output, context) => {
2792
- return {
2793
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2794
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2795
- Equipment: (0, smithy_client_1.expectString)(output.Equipment),
2796
- FaultCode: (0, smithy_client_1.expectString)(output.FaultCode),
2797
- LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
2798
- LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
2799
- LabelId: (0, smithy_client_1.expectString)(output.LabelId),
2800
- Rating: (0, smithy_client_1.expectString)(output.Rating),
2801
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2802
- };
2803
- };
2804
- const de_LargeTimestampGaps = (output, context) => {
2805
- return {
2806
- MaxTimestampGapInDays: (0, smithy_client_1.expectInt32)(output.MaxTimestampGapInDays),
2807
- NumberOfLargeTimestampGaps: (0, smithy_client_1.expectInt32)(output.NumberOfLargeTimestampGaps),
2808
- Status: (0, smithy_client_1.expectString)(output.Status),
2809
- };
2810
- };
2811
- const de_ListDataIngestionJobsResponse = (output, context) => {
2812
- return {
2813
- DataIngestionJobSummaries: output.DataIngestionJobSummaries != null
2814
- ? de_DataIngestionJobSummaries(output.DataIngestionJobSummaries, context)
2815
- : undefined,
2816
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2817
- };
2103
+ return (0, smithy_client_1.take)(output, {
2104
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2105
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2106
+ Equipment: smithy_client_1.expectString,
2107
+ FaultCode: smithy_client_1.expectString,
2108
+ LabelGroupArn: smithy_client_1.expectString,
2109
+ LabelGroupName: smithy_client_1.expectString,
2110
+ LabelId: smithy_client_1.expectString,
2111
+ Rating: smithy_client_1.expectString,
2112
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2113
+ });
2818
2114
  };
2819
2115
  const de_ListDatasetsResponse = (output, context) => {
2820
- return {
2821
- DatasetSummaries: output.DatasetSummaries != null ? de_DatasetSummaries(output.DatasetSummaries, context) : undefined,
2822
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2823
- };
2116
+ return (0, smithy_client_1.take)(output, {
2117
+ DatasetSummaries: (_) => de_DatasetSummaries(_, context),
2118
+ NextToken: smithy_client_1.expectString,
2119
+ });
2824
2120
  };
2825
2121
  const de_ListInferenceEventsResponse = (output, context) => {
2826
- return {
2827
- InferenceEventSummaries: output.InferenceEventSummaries != null
2828
- ? de_InferenceEventSummaries(output.InferenceEventSummaries, context)
2829
- : undefined,
2830
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2831
- };
2122
+ return (0, smithy_client_1.take)(output, {
2123
+ InferenceEventSummaries: (_) => de_InferenceEventSummaries(_, context),
2124
+ NextToken: smithy_client_1.expectString,
2125
+ });
2832
2126
  };
2833
2127
  const de_ListInferenceExecutionsResponse = (output, context) => {
2834
- return {
2835
- InferenceExecutionSummaries: output.InferenceExecutionSummaries != null
2836
- ? de_InferenceExecutionSummaries(output.InferenceExecutionSummaries, context)
2837
- : undefined,
2838
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2839
- };
2840
- };
2841
- const de_ListInferenceSchedulersResponse = (output, context) => {
2842
- return {
2843
- InferenceSchedulerSummaries: output.InferenceSchedulerSummaries != null
2844
- ? de_InferenceSchedulerSummaries(output.InferenceSchedulerSummaries, context)
2845
- : undefined,
2846
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2847
- };
2128
+ return (0, smithy_client_1.take)(output, {
2129
+ InferenceExecutionSummaries: (_) => de_InferenceExecutionSummaries(_, context),
2130
+ NextToken: smithy_client_1.expectString,
2131
+ });
2848
2132
  };
2849
2133
  const de_ListLabelGroupsResponse = (output, context) => {
2850
- return {
2851
- LabelGroupSummaries: output.LabelGroupSummaries != null ? de_LabelGroupSummaries(output.LabelGroupSummaries, context) : undefined,
2852
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2853
- };
2134
+ return (0, smithy_client_1.take)(output, {
2135
+ LabelGroupSummaries: (_) => de_LabelGroupSummaries(_, context),
2136
+ NextToken: smithy_client_1.expectString,
2137
+ });
2854
2138
  };
2855
2139
  const de_ListLabelsResponse = (output, context) => {
2856
- return {
2857
- LabelSummaries: output.LabelSummaries != null ? de_LabelSummaries(output.LabelSummaries, context) : undefined,
2858
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2859
- };
2140
+ return (0, smithy_client_1.take)(output, {
2141
+ LabelSummaries: (_) => de_LabelSummaries(_, context),
2142
+ NextToken: smithy_client_1.expectString,
2143
+ });
2860
2144
  };
2861
2145
  const de_ListModelsResponse = (output, context) => {
2862
- return {
2863
- ModelSummaries: output.ModelSummaries != null ? de_ModelSummaries(output.ModelSummaries, context) : undefined,
2864
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2865
- };
2866
- };
2867
- const de_ListOfDiscardedFiles = (output, context) => {
2868
- const retVal = (output || [])
2869
- .filter((e) => e != null)
2870
- .map((entry) => {
2871
- if (entry === null) {
2872
- return null;
2873
- }
2874
- return de_S3Object(entry, context);
2146
+ return (0, smithy_client_1.take)(output, {
2147
+ ModelSummaries: (_) => de_ModelSummaries(_, context),
2148
+ NextToken: smithy_client_1.expectString,
2875
2149
  });
2876
- return retVal;
2877
2150
  };
2878
2151
  const de_ListSensorStatisticsResponse = (output, context) => {
2879
- return {
2880
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2881
- SensorStatisticsSummaries: output.SensorStatisticsSummaries != null
2882
- ? de_SensorStatisticsSummaries(output.SensorStatisticsSummaries, context)
2883
- : undefined,
2884
- };
2885
- };
2886
- const de_ListTagsForResourceResponse = (output, context) => {
2887
- return {
2888
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2889
- };
2890
- };
2891
- const de_MissingCompleteSensorData = (output, context) => {
2892
- return {
2893
- AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2894
- };
2895
- };
2896
- const de_MissingSensorData = (output, context) => {
2897
- return {
2898
- AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2899
- TotalNumberOfMissingValues: (0, smithy_client_1.expectInt32)(output.TotalNumberOfMissingValues),
2900
- };
2152
+ return (0, smithy_client_1.take)(output, {
2153
+ NextToken: smithy_client_1.expectString,
2154
+ SensorStatisticsSummaries: (_) => de_SensorStatisticsSummaries(_, context),
2155
+ });
2901
2156
  };
2902
2157
  const de_ModelSummaries = (output, context) => {
2903
2158
  const retVal = (output || [])
2904
2159
  .filter((e) => e != null)
2905
2160
  .map((entry) => {
2906
- if (entry === null) {
2907
- return null;
2908
- }
2909
2161
  return de_ModelSummary(entry, context);
2910
2162
  });
2911
2163
  return retVal;
2912
2164
  };
2913
2165
  const de_ModelSummary = (output, context) => {
2914
- return {
2915
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2916
- DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
2917
- DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
2918
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
2919
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
2920
- Status: (0, smithy_client_1.expectString)(output.Status),
2921
- };
2922
- };
2923
- const de_MonotonicValues = (output, context) => {
2924
- return {
2925
- Monotonicity: (0, smithy_client_1.expectString)(output.Monotonicity),
2926
- Status: (0, smithy_client_1.expectString)(output.Status),
2927
- };
2928
- };
2929
- const de_MultipleOperatingModes = (output, context) => {
2930
- return {
2931
- Status: (0, smithy_client_1.expectString)(output.Status),
2932
- };
2933
- };
2934
- const de_ResourceNotFoundException = (output, context) => {
2935
- return {
2936
- Message: (0, smithy_client_1.expectString)(output.Message),
2937
- };
2938
- };
2939
- const de_S3Object = (output, context) => {
2940
- return {
2941
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2942
- Key: (0, smithy_client_1.expectString)(output.Key),
2943
- };
2166
+ return (0, smithy_client_1.take)(output, {
2167
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2168
+ DatasetArn: smithy_client_1.expectString,
2169
+ DatasetName: smithy_client_1.expectString,
2170
+ ModelArn: smithy_client_1.expectString,
2171
+ ModelName: smithy_client_1.expectString,
2172
+ Status: smithy_client_1.expectString,
2173
+ });
2944
2174
  };
2945
2175
  const de_SensorStatisticsSummaries = (output, context) => {
2946
2176
  const retVal = (output || [])
2947
2177
  .filter((e) => e != null)
2948
2178
  .map((entry) => {
2949
- if (entry === null) {
2950
- return null;
2951
- }
2952
2179
  return de_SensorStatisticsSummary(entry, context);
2953
2180
  });
2954
2181
  return retVal;
2955
2182
  };
2956
2183
  const de_SensorStatisticsSummary = (output, context) => {
2957
- return {
2958
- CategoricalValues: output.CategoricalValues != null ? de_CategoricalValues(output.CategoricalValues, context) : undefined,
2959
- ComponentName: (0, smithy_client_1.expectString)(output.ComponentName),
2960
- DataEndTime: output.DataEndTime != null
2961
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
2962
- : undefined,
2963
- DataExists: (0, smithy_client_1.expectBoolean)(output.DataExists),
2964
- DataStartTime: output.DataStartTime != null
2965
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
2966
- : undefined,
2967
- DuplicateTimestamps: output.DuplicateTimestamps != null ? de_CountPercent(output.DuplicateTimestamps, context) : undefined,
2968
- InvalidDateEntries: output.InvalidDateEntries != null ? de_CountPercent(output.InvalidDateEntries, context) : undefined,
2969
- InvalidValues: output.InvalidValues != null ? de_CountPercent(output.InvalidValues, context) : undefined,
2970
- LargeTimestampGaps: output.LargeTimestampGaps != null ? de_LargeTimestampGaps(output.LargeTimestampGaps, context) : undefined,
2971
- MissingValues: output.MissingValues != null ? de_CountPercent(output.MissingValues, context) : undefined,
2972
- MonotonicValues: output.MonotonicValues != null ? de_MonotonicValues(output.MonotonicValues, context) : undefined,
2973
- MultipleOperatingModes: output.MultipleOperatingModes != null
2974
- ? de_MultipleOperatingModes(output.MultipleOperatingModes, context)
2975
- : undefined,
2976
- SensorName: (0, smithy_client_1.expectString)(output.SensorName),
2977
- };
2978
- };
2979
- const de_SensorsWithShortDateRange = (output, context) => {
2980
- return {
2981
- AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2982
- };
2983
- };
2984
- const de_ServiceQuotaExceededException = (output, context) => {
2985
- return {
2986
- Message: (0, smithy_client_1.expectString)(output.Message),
2987
- };
2988
- };
2989
- const de_StartDataIngestionJobResponse = (output, context) => {
2990
- return {
2991
- JobId: (0, smithy_client_1.expectString)(output.JobId),
2992
- Status: (0, smithy_client_1.expectString)(output.Status),
2993
- };
2994
- };
2995
- const de_StartInferenceSchedulerResponse = (output, context) => {
2996
- return {
2997
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2998
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2999
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
3000
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
3001
- Status: (0, smithy_client_1.expectString)(output.Status),
3002
- };
3003
- };
3004
- const de_StopInferenceSchedulerResponse = (output, context) => {
3005
- return {
3006
- InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
3007
- InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
3008
- ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
3009
- ModelName: (0, smithy_client_1.expectString)(output.ModelName),
3010
- Status: (0, smithy_client_1.expectString)(output.Status),
3011
- };
3012
- };
3013
- const de_Tag = (output, context) => {
3014
- return {
3015
- Key: (0, smithy_client_1.expectString)(output.Key),
3016
- Value: (0, smithy_client_1.expectString)(output.Value),
3017
- };
3018
- };
3019
- const de_TagList = (output, context) => {
3020
- const retVal = (output || [])
3021
- .filter((e) => e != null)
3022
- .map((entry) => {
3023
- if (entry === null) {
3024
- return null;
3025
- }
3026
- return de_Tag(entry, context);
2184
+ return (0, smithy_client_1.take)(output, {
2185
+ CategoricalValues: smithy_client_1._json,
2186
+ ComponentName: smithy_client_1.expectString,
2187
+ DataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2188
+ DataExists: smithy_client_1.expectBoolean,
2189
+ DataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2190
+ DuplicateTimestamps: (_) => de_CountPercent(_, context),
2191
+ InvalidDateEntries: (_) => de_CountPercent(_, context),
2192
+ InvalidValues: (_) => de_CountPercent(_, context),
2193
+ LargeTimestampGaps: smithy_client_1._json,
2194
+ MissingValues: (_) => de_CountPercent(_, context),
2195
+ MonotonicValues: smithy_client_1._json,
2196
+ MultipleOperatingModes: smithy_client_1._json,
2197
+ SensorName: smithy_client_1.expectString,
3027
2198
  });
3028
- return retVal;
3029
- };
3030
- const de_TagResourceResponse = (output, context) => {
3031
- return {};
3032
- };
3033
- const de_ThrottlingException = (output, context) => {
3034
- return {
3035
- Message: (0, smithy_client_1.expectString)(output.Message),
3036
- };
3037
- };
3038
- const de_UnsupportedTimestamps = (output, context) => {
3039
- return {
3040
- TotalNumberOfUnsupportedTimestamps: (0, smithy_client_1.expectInt32)(output.TotalNumberOfUnsupportedTimestamps),
3041
- };
3042
- };
3043
- const de_UntagResourceResponse = (output, context) => {
3044
- return {};
3045
- };
3046
- const de_ValidationException = (output, context) => {
3047
- return {
3048
- Message: (0, smithy_client_1.expectString)(output.Message),
3049
- };
3050
2199
  };
3051
2200
  const deserializeMetadata = (output) => ({
3052
2201
  httpStatusCode: output.statusCode,
@@ -3061,6 +2210,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3061
2210
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3062
2211
  };
3063
2212
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2213
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(LookoutEquipmentServiceException_1.LookoutEquipmentServiceException);
3064
2214
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3065
2215
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3066
2216
  const contents = {
@@ -3079,6 +2229,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3079
2229
  }
3080
2230
  return new protocol_http_1.HttpRequest(contents);
3081
2231
  };
2232
+ function sharedHeaders(operation) {
2233
+ return {
2234
+ "content-type": "application/x-amz-json-1.0",
2235
+ "x-amz-target": `AWSLookoutEquipmentFrontendService.${operation}`,
2236
+ };
2237
+ }
3082
2238
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3083
2239
  if (encoded.length) {
3084
2240
  return JSON.parse(encoded);