@aws-sdk/client-iotfleetwise 3.312.0 → 3.316.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.
@@ -9,21 +9,21 @@ const models_0_1 = require("../models/models_0");
9
9
  const se_AssociateVehicleFleetCommand = async (input, context) => {
10
10
  const headers = sharedHeaders("AssociateVehicleFleet");
11
11
  let body;
12
- body = JSON.stringify(se_AssociateVehicleFleetRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
14
  };
15
15
  exports.se_AssociateVehicleFleetCommand = se_AssociateVehicleFleetCommand;
16
16
  const se_BatchCreateVehicleCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("BatchCreateVehicle");
18
18
  let body;
19
- body = JSON.stringify(se_BatchCreateVehicleRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
21
  };
22
22
  exports.se_BatchCreateVehicleCommand = se_BatchCreateVehicleCommand;
23
23
  const se_BatchUpdateVehicleCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("BatchUpdateVehicle");
25
25
  let body;
26
- body = JSON.stringify(se_BatchUpdateVehicleRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_BatchUpdateVehicleCommand = se_BatchUpdateVehicleCommand;
@@ -44,14 +44,14 @@ exports.se_CreateDecoderManifestCommand = se_CreateDecoderManifestCommand;
44
44
  const se_CreateFleetCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("CreateFleet");
46
46
  let body;
47
- body = JSON.stringify(se_CreateFleetRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_CreateFleetCommand = se_CreateFleetCommand;
51
51
  const se_CreateModelManifestCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("CreateModelManifest");
53
53
  let body;
54
- body = JSON.stringify(se_CreateModelManifestRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_CreateModelManifestCommand = se_CreateModelManifestCommand;
@@ -65,119 +65,119 @@ exports.se_CreateSignalCatalogCommand = se_CreateSignalCatalogCommand;
65
65
  const se_CreateVehicleCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("CreateVehicle");
67
67
  let body;
68
- body = JSON.stringify(se_CreateVehicleRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_CreateVehicleCommand = se_CreateVehicleCommand;
72
72
  const se_DeleteCampaignCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DeleteCampaign");
74
74
  let body;
75
- body = JSON.stringify(se_DeleteCampaignRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
79
79
  const se_DeleteDecoderManifestCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("DeleteDecoderManifest");
81
81
  let body;
82
- body = JSON.stringify(se_DeleteDecoderManifestRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
84
  };
85
85
  exports.se_DeleteDecoderManifestCommand = se_DeleteDecoderManifestCommand;
86
86
  const se_DeleteFleetCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("DeleteFleet");
88
88
  let body;
89
- body = JSON.stringify(se_DeleteFleetRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_DeleteFleetCommand = se_DeleteFleetCommand;
93
93
  const se_DeleteModelManifestCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("DeleteModelManifest");
95
95
  let body;
96
- body = JSON.stringify(se_DeleteModelManifestRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
98
  };
99
99
  exports.se_DeleteModelManifestCommand = se_DeleteModelManifestCommand;
100
100
  const se_DeleteSignalCatalogCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("DeleteSignalCatalog");
102
102
  let body;
103
- body = JSON.stringify(se_DeleteSignalCatalogRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
105
  };
106
106
  exports.se_DeleteSignalCatalogCommand = se_DeleteSignalCatalogCommand;
107
107
  const se_DeleteVehicleCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("DeleteVehicle");
109
109
  let body;
110
- body = JSON.stringify(se_DeleteVehicleRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  exports.se_DeleteVehicleCommand = se_DeleteVehicleCommand;
114
114
  const se_DisassociateVehicleFleetCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("DisassociateVehicleFleet");
116
116
  let body;
117
- body = JSON.stringify(se_DisassociateVehicleFleetRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  exports.se_DisassociateVehicleFleetCommand = se_DisassociateVehicleFleetCommand;
121
121
  const se_GetCampaignCommand = async (input, context) => {
122
122
  const headers = sharedHeaders("GetCampaign");
123
123
  let body;
124
- body = JSON.stringify(se_GetCampaignRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
127
  exports.se_GetCampaignCommand = se_GetCampaignCommand;
128
128
  const se_GetDecoderManifestCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("GetDecoderManifest");
130
130
  let body;
131
- body = JSON.stringify(se_GetDecoderManifestRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
132
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
133
  };
134
134
  exports.se_GetDecoderManifestCommand = se_GetDecoderManifestCommand;
135
135
  const se_GetFleetCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("GetFleet");
137
137
  let body;
138
- body = JSON.stringify(se_GetFleetRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
139
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
140
  };
141
141
  exports.se_GetFleetCommand = se_GetFleetCommand;
142
142
  const se_GetLoggingOptionsCommand = async (input, context) => {
143
143
  const headers = sharedHeaders("GetLoggingOptions");
144
144
  let body;
145
- body = JSON.stringify(se_GetLoggingOptionsRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
147
  };
148
148
  exports.se_GetLoggingOptionsCommand = se_GetLoggingOptionsCommand;
149
149
  const se_GetModelManifestCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("GetModelManifest");
151
151
  let body;
152
- body = JSON.stringify(se_GetModelManifestRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  exports.se_GetModelManifestCommand = se_GetModelManifestCommand;
156
156
  const se_GetRegisterAccountStatusCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("GetRegisterAccountStatus");
158
158
  let body;
159
- body = JSON.stringify(se_GetRegisterAccountStatusRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  exports.se_GetRegisterAccountStatusCommand = se_GetRegisterAccountStatusCommand;
163
163
  const se_GetSignalCatalogCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("GetSignalCatalog");
165
165
  let body;
166
- body = JSON.stringify(se_GetSignalCatalogRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
168
  };
169
169
  exports.se_GetSignalCatalogCommand = se_GetSignalCatalogCommand;
170
170
  const se_GetVehicleCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("GetVehicle");
172
172
  let body;
173
- body = JSON.stringify(se_GetVehicleRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.se_GetVehicleCommand = se_GetVehicleCommand;
177
177
  const se_GetVehicleStatusCommand = async (input, context) => {
178
178
  const headers = sharedHeaders("GetVehicleStatus");
179
179
  let body;
180
- body = JSON.stringify(se_GetVehicleStatusRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
181
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
182
  };
183
183
  exports.se_GetVehicleStatusCommand = se_GetVehicleStatusCommand;
@@ -191,133 +191,133 @@ exports.se_ImportDecoderManifestCommand = se_ImportDecoderManifestCommand;
191
191
  const se_ImportSignalCatalogCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("ImportSignalCatalog");
193
193
  let body;
194
- body = JSON.stringify(se_ImportSignalCatalogRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  exports.se_ImportSignalCatalogCommand = se_ImportSignalCatalogCommand;
198
198
  const se_ListCampaignsCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("ListCampaigns");
200
200
  let body;
201
- body = JSON.stringify(se_ListCampaignsRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  exports.se_ListCampaignsCommand = se_ListCampaignsCommand;
205
205
  const se_ListDecoderManifestNetworkInterfacesCommand = async (input, context) => {
206
206
  const headers = sharedHeaders("ListDecoderManifestNetworkInterfaces");
207
207
  let body;
208
- body = JSON.stringify(se_ListDecoderManifestNetworkInterfacesRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
209
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
210
  };
211
211
  exports.se_ListDecoderManifestNetworkInterfacesCommand = se_ListDecoderManifestNetworkInterfacesCommand;
212
212
  const se_ListDecoderManifestsCommand = async (input, context) => {
213
213
  const headers = sharedHeaders("ListDecoderManifests");
214
214
  let body;
215
- body = JSON.stringify(se_ListDecoderManifestsRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
217
  };
218
218
  exports.se_ListDecoderManifestsCommand = se_ListDecoderManifestsCommand;
219
219
  const se_ListDecoderManifestSignalsCommand = async (input, context) => {
220
220
  const headers = sharedHeaders("ListDecoderManifestSignals");
221
221
  let body;
222
- body = JSON.stringify(se_ListDecoderManifestSignalsRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
223
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
224
  };
225
225
  exports.se_ListDecoderManifestSignalsCommand = se_ListDecoderManifestSignalsCommand;
226
226
  const se_ListFleetsCommand = async (input, context) => {
227
227
  const headers = sharedHeaders("ListFleets");
228
228
  let body;
229
- body = JSON.stringify(se_ListFleetsRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
230
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
231
  };
232
232
  exports.se_ListFleetsCommand = se_ListFleetsCommand;
233
233
  const se_ListFleetsForVehicleCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("ListFleetsForVehicle");
235
235
  let body;
236
- body = JSON.stringify(se_ListFleetsForVehicleRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  exports.se_ListFleetsForVehicleCommand = se_ListFleetsForVehicleCommand;
240
240
  const se_ListModelManifestNodesCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("ListModelManifestNodes");
242
242
  let body;
243
- body = JSON.stringify(se_ListModelManifestNodesRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  exports.se_ListModelManifestNodesCommand = se_ListModelManifestNodesCommand;
247
247
  const se_ListModelManifestsCommand = async (input, context) => {
248
248
  const headers = sharedHeaders("ListModelManifests");
249
249
  let body;
250
- body = JSON.stringify(se_ListModelManifestsRequest(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
251
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
252
  };
253
253
  exports.se_ListModelManifestsCommand = se_ListModelManifestsCommand;
254
254
  const se_ListSignalCatalogNodesCommand = async (input, context) => {
255
255
  const headers = sharedHeaders("ListSignalCatalogNodes");
256
256
  let body;
257
- body = JSON.stringify(se_ListSignalCatalogNodesRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.se_ListSignalCatalogNodesCommand = se_ListSignalCatalogNodesCommand;
261
261
  const se_ListSignalCatalogsCommand = async (input, context) => {
262
262
  const headers = sharedHeaders("ListSignalCatalogs");
263
263
  let body;
264
- body = JSON.stringify(se_ListSignalCatalogsRequest(input, context));
264
+ body = JSON.stringify((0, smithy_client_1._json)(input));
265
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
266
  };
267
267
  exports.se_ListSignalCatalogsCommand = se_ListSignalCatalogsCommand;
268
268
  const se_ListTagsForResourceCommand = async (input, context) => {
269
269
  const headers = sharedHeaders("ListTagsForResource");
270
270
  let body;
271
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
272
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
273
  };
274
274
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
275
275
  const se_ListVehiclesCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("ListVehicles");
277
277
  let body;
278
- body = JSON.stringify(se_ListVehiclesRequest(input, context));
278
+ body = JSON.stringify((0, smithy_client_1._json)(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  exports.se_ListVehiclesCommand = se_ListVehiclesCommand;
282
282
  const se_ListVehiclesInFleetCommand = async (input, context) => {
283
283
  const headers = sharedHeaders("ListVehiclesInFleet");
284
284
  let body;
285
- body = JSON.stringify(se_ListVehiclesInFleetRequest(input, context));
285
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
287
  };
288
288
  exports.se_ListVehiclesInFleetCommand = se_ListVehiclesInFleetCommand;
289
289
  const se_PutLoggingOptionsCommand = async (input, context) => {
290
290
  const headers = sharedHeaders("PutLoggingOptions");
291
291
  let body;
292
- body = JSON.stringify(se_PutLoggingOptionsRequest(input, context));
292
+ body = JSON.stringify((0, smithy_client_1._json)(input));
293
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
294
  };
295
295
  exports.se_PutLoggingOptionsCommand = se_PutLoggingOptionsCommand;
296
296
  const se_RegisterAccountCommand = async (input, context) => {
297
297
  const headers = sharedHeaders("RegisterAccount");
298
298
  let body;
299
- body = JSON.stringify(se_RegisterAccountRequest(input, context));
299
+ body = JSON.stringify((0, smithy_client_1._json)(input));
300
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
301
  };
302
302
  exports.se_RegisterAccountCommand = se_RegisterAccountCommand;
303
303
  const se_TagResourceCommand = async (input, context) => {
304
304
  const headers = sharedHeaders("TagResource");
305
305
  let body;
306
- body = JSON.stringify(se_TagResourceRequest(input, context));
306
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
308
  };
309
309
  exports.se_TagResourceCommand = se_TagResourceCommand;
310
310
  const se_UntagResourceCommand = async (input, context) => {
311
311
  const headers = sharedHeaders("UntagResource");
312
312
  let body;
313
- body = JSON.stringify(se_UntagResourceRequest(input, context));
313
+ body = JSON.stringify((0, smithy_client_1._json)(input));
314
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
315
  };
316
316
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
317
317
  const se_UpdateCampaignCommand = async (input, context) => {
318
318
  const headers = sharedHeaders("UpdateCampaign");
319
319
  let body;
320
- body = JSON.stringify(se_UpdateCampaignRequest(input, context));
320
+ body = JSON.stringify((0, smithy_client_1._json)(input));
321
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
322
  };
323
323
  exports.se_UpdateCampaignCommand = se_UpdateCampaignCommand;
@@ -331,14 +331,14 @@ exports.se_UpdateDecoderManifestCommand = se_UpdateDecoderManifestCommand;
331
331
  const se_UpdateFleetCommand = async (input, context) => {
332
332
  const headers = sharedHeaders("UpdateFleet");
333
333
  let body;
334
- body = JSON.stringify(se_UpdateFleetRequest(input, context));
334
+ body = JSON.stringify((0, smithy_client_1._json)(input));
335
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
336
  };
337
337
  exports.se_UpdateFleetCommand = se_UpdateFleetCommand;
338
338
  const se_UpdateModelManifestCommand = async (input, context) => {
339
339
  const headers = sharedHeaders("UpdateModelManifest");
340
340
  let body;
341
- body = JSON.stringify(se_UpdateModelManifestRequest(input, context));
341
+ body = JSON.stringify((0, smithy_client_1._json)(input));
342
342
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
343
  };
344
344
  exports.se_UpdateModelManifestCommand = se_UpdateModelManifestCommand;
@@ -352,7 +352,7 @@ exports.se_UpdateSignalCatalogCommand = se_UpdateSignalCatalogCommand;
352
352
  const se_UpdateVehicleCommand = async (input, context) => {
353
353
  const headers = sharedHeaders("UpdateVehicle");
354
354
  let body;
355
- body = JSON.stringify(se_UpdateVehicleRequest(input, context));
355
+ body = JSON.stringify((0, smithy_client_1._json)(input));
356
356
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
357
  };
358
358
  exports.se_UpdateVehicleCommand = se_UpdateVehicleCommand;
@@ -362,12 +362,12 @@ const de_AssociateVehicleFleetCommand = async (output, context) => {
362
362
  }
363
363
  const data = await parseBody(output.body, context);
364
364
  let contents = {};
365
- contents = de_AssociateVehicleFleetResponse(data, context);
365
+ contents = (0, smithy_client_1._json)(data);
366
366
  const response = {
367
367
  $metadata: deserializeMetadata(output),
368
368
  ...contents,
369
369
  };
370
- return Promise.resolve(response);
370
+ return response;
371
371
  };
372
372
  exports.de_AssociateVehicleFleetCommand = de_AssociateVehicleFleetCommand;
373
373
  const de_AssociateVehicleFleetCommandError = async (output, context) => {
@@ -394,10 +394,9 @@ const de_AssociateVehicleFleetCommandError = async (output, context) => {
394
394
  throw await de_ValidationExceptionRes(parsedOutput, context);
395
395
  default:
396
396
  const parsedBody = parsedOutput.body;
397
- (0, smithy_client_1.throwDefaultError)({
397
+ return throwDefaultError({
398
398
  output,
399
399
  parsedBody,
400
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
401
400
  errorCode,
402
401
  });
403
402
  }
@@ -408,12 +407,12 @@ const de_BatchCreateVehicleCommand = async (output, context) => {
408
407
  }
409
408
  const data = await parseBody(output.body, context);
410
409
  let contents = {};
411
- contents = de_BatchCreateVehicleResponse(data, context);
410
+ contents = (0, smithy_client_1._json)(data);
412
411
  const response = {
413
412
  $metadata: deserializeMetadata(output),
414
413
  ...contents,
415
414
  };
416
- return Promise.resolve(response);
415
+ return response;
417
416
  };
418
417
  exports.de_BatchCreateVehicleCommand = de_BatchCreateVehicleCommand;
419
418
  const de_BatchCreateVehicleCommandError = async (output, context) => {
@@ -440,10 +439,9 @@ const de_BatchCreateVehicleCommandError = async (output, context) => {
440
439
  throw await de_ValidationExceptionRes(parsedOutput, context);
441
440
  default:
442
441
  const parsedBody = parsedOutput.body;
443
- (0, smithy_client_1.throwDefaultError)({
442
+ return throwDefaultError({
444
443
  output,
445
444
  parsedBody,
446
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
447
445
  errorCode,
448
446
  });
449
447
  }
@@ -454,12 +452,12 @@ const de_BatchUpdateVehicleCommand = async (output, context) => {
454
452
  }
455
453
  const data = await parseBody(output.body, context);
456
454
  let contents = {};
457
- contents = de_BatchUpdateVehicleResponse(data, context);
455
+ contents = (0, smithy_client_1._json)(data);
458
456
  const response = {
459
457
  $metadata: deserializeMetadata(output),
460
458
  ...contents,
461
459
  };
462
- return Promise.resolve(response);
460
+ return response;
463
461
  };
464
462
  exports.de_BatchUpdateVehicleCommand = de_BatchUpdateVehicleCommand;
465
463
  const de_BatchUpdateVehicleCommandError = async (output, context) => {
@@ -483,10 +481,9 @@ const de_BatchUpdateVehicleCommandError = async (output, context) => {
483
481
  throw await de_ValidationExceptionRes(parsedOutput, context);
484
482
  default:
485
483
  const parsedBody = parsedOutput.body;
486
- (0, smithy_client_1.throwDefaultError)({
484
+ return throwDefaultError({
487
485
  output,
488
486
  parsedBody,
489
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
490
487
  errorCode,
491
488
  });
492
489
  }
@@ -497,12 +494,12 @@ const de_CreateCampaignCommand = async (output, context) => {
497
494
  }
498
495
  const data = await parseBody(output.body, context);
499
496
  let contents = {};
500
- contents = de_CreateCampaignResponse(data, context);
497
+ contents = (0, smithy_client_1._json)(data);
501
498
  const response = {
502
499
  $metadata: deserializeMetadata(output),
503
500
  ...contents,
504
501
  };
505
- return Promise.resolve(response);
502
+ return response;
506
503
  };
507
504
  exports.de_CreateCampaignCommand = de_CreateCampaignCommand;
508
505
  const de_CreateCampaignCommandError = async (output, context) => {
@@ -535,10 +532,9 @@ const de_CreateCampaignCommandError = async (output, context) => {
535
532
  throw await de_ValidationExceptionRes(parsedOutput, context);
536
533
  default:
537
534
  const parsedBody = parsedOutput.body;
538
- (0, smithy_client_1.throwDefaultError)({
535
+ return throwDefaultError({
539
536
  output,
540
537
  parsedBody,
541
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
542
538
  errorCode,
543
539
  });
544
540
  }
@@ -549,12 +545,12 @@ const de_CreateDecoderManifestCommand = async (output, context) => {
549
545
  }
550
546
  const data = await parseBody(output.body, context);
551
547
  let contents = {};
552
- contents = de_CreateDecoderManifestResponse(data, context);
548
+ contents = (0, smithy_client_1._json)(data);
553
549
  const response = {
554
550
  $metadata: deserializeMetadata(output),
555
551
  ...contents,
556
552
  };
557
- return Promise.resolve(response);
553
+ return response;
558
554
  };
559
555
  exports.de_CreateDecoderManifestCommand = de_CreateDecoderManifestCommand;
560
556
  const de_CreateDecoderManifestCommandError = async (output, context) => {
@@ -590,10 +586,9 @@ const de_CreateDecoderManifestCommandError = async (output, context) => {
590
586
  throw await de_ValidationExceptionRes(parsedOutput, context);
591
587
  default:
592
588
  const parsedBody = parsedOutput.body;
593
- (0, smithy_client_1.throwDefaultError)({
589
+ return throwDefaultError({
594
590
  output,
595
591
  parsedBody,
596
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
597
592
  errorCode,
598
593
  });
599
594
  }
@@ -604,12 +599,12 @@ const de_CreateFleetCommand = async (output, context) => {
604
599
  }
605
600
  const data = await parseBody(output.body, context);
606
601
  let contents = {};
607
- contents = de_CreateFleetResponse(data, context);
602
+ contents = (0, smithy_client_1._json)(data);
608
603
  const response = {
609
604
  $metadata: deserializeMetadata(output),
610
605
  ...contents,
611
606
  };
612
- return Promise.resolve(response);
607
+ return response;
613
608
  };
614
609
  exports.de_CreateFleetCommand = de_CreateFleetCommand;
615
610
  const de_CreateFleetCommandError = async (output, context) => {
@@ -642,10 +637,9 @@ const de_CreateFleetCommandError = async (output, context) => {
642
637
  throw await de_ValidationExceptionRes(parsedOutput, context);
643
638
  default:
644
639
  const parsedBody = parsedOutput.body;
645
- (0, smithy_client_1.throwDefaultError)({
640
+ return throwDefaultError({
646
641
  output,
647
642
  parsedBody,
648
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
649
643
  errorCode,
650
644
  });
651
645
  }
@@ -656,12 +650,12 @@ const de_CreateModelManifestCommand = async (output, context) => {
656
650
  }
657
651
  const data = await parseBody(output.body, context);
658
652
  let contents = {};
659
- contents = de_CreateModelManifestResponse(data, context);
653
+ contents = (0, smithy_client_1._json)(data);
660
654
  const response = {
661
655
  $metadata: deserializeMetadata(output),
662
656
  ...contents,
663
657
  };
664
- return Promise.resolve(response);
658
+ return response;
665
659
  };
666
660
  exports.de_CreateModelManifestCommand = de_CreateModelManifestCommand;
667
661
  const de_CreateModelManifestCommandError = async (output, context) => {
@@ -697,10 +691,9 @@ const de_CreateModelManifestCommandError = async (output, context) => {
697
691
  throw await de_ValidationExceptionRes(parsedOutput, context);
698
692
  default:
699
693
  const parsedBody = parsedOutput.body;
700
- (0, smithy_client_1.throwDefaultError)({
694
+ return throwDefaultError({
701
695
  output,
702
696
  parsedBody,
703
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
704
697
  errorCode,
705
698
  });
706
699
  }
@@ -711,12 +704,12 @@ const de_CreateSignalCatalogCommand = async (output, context) => {
711
704
  }
712
705
  const data = await parseBody(output.body, context);
713
706
  let contents = {};
714
- contents = de_CreateSignalCatalogResponse(data, context);
707
+ contents = (0, smithy_client_1._json)(data);
715
708
  const response = {
716
709
  $metadata: deserializeMetadata(output),
717
710
  ...contents,
718
711
  };
719
- return Promise.resolve(response);
712
+ return response;
720
713
  };
721
714
  exports.de_CreateSignalCatalogCommand = de_CreateSignalCatalogCommand;
722
715
  const de_CreateSignalCatalogCommandError = async (output, context) => {
@@ -752,10 +745,9 @@ const de_CreateSignalCatalogCommandError = async (output, context) => {
752
745
  throw await de_ValidationExceptionRes(parsedOutput, context);
753
746
  default:
754
747
  const parsedBody = parsedOutput.body;
755
- (0, smithy_client_1.throwDefaultError)({
748
+ return throwDefaultError({
756
749
  output,
757
750
  parsedBody,
758
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
759
751
  errorCode,
760
752
  });
761
753
  }
@@ -766,12 +758,12 @@ const de_CreateVehicleCommand = async (output, context) => {
766
758
  }
767
759
  const data = await parseBody(output.body, context);
768
760
  let contents = {};
769
- contents = de_CreateVehicleResponse(data, context);
761
+ contents = (0, smithy_client_1._json)(data);
770
762
  const response = {
771
763
  $metadata: deserializeMetadata(output),
772
764
  ...contents,
773
765
  };
774
- return Promise.resolve(response);
766
+ return response;
775
767
  };
776
768
  exports.de_CreateVehicleCommand = de_CreateVehicleCommand;
777
769
  const de_CreateVehicleCommandError = async (output, context) => {
@@ -804,10 +796,9 @@ const de_CreateVehicleCommandError = async (output, context) => {
804
796
  throw await de_ValidationExceptionRes(parsedOutput, context);
805
797
  default:
806
798
  const parsedBody = parsedOutput.body;
807
- (0, smithy_client_1.throwDefaultError)({
799
+ return throwDefaultError({
808
800
  output,
809
801
  parsedBody,
810
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
811
802
  errorCode,
812
803
  });
813
804
  }
@@ -818,12 +809,12 @@ const de_DeleteCampaignCommand = async (output, context) => {
818
809
  }
819
810
  const data = await parseBody(output.body, context);
820
811
  let contents = {};
821
- contents = de_DeleteCampaignResponse(data, context);
812
+ contents = (0, smithy_client_1._json)(data);
822
813
  const response = {
823
814
  $metadata: deserializeMetadata(output),
824
815
  ...contents,
825
816
  };
826
- return Promise.resolve(response);
817
+ return response;
827
818
  };
828
819
  exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
829
820
  const de_DeleteCampaignCommandError = async (output, context) => {
@@ -850,10 +841,9 @@ const de_DeleteCampaignCommandError = async (output, context) => {
850
841
  throw await de_ValidationExceptionRes(parsedOutput, context);
851
842
  default:
852
843
  const parsedBody = parsedOutput.body;
853
- (0, smithy_client_1.throwDefaultError)({
844
+ return throwDefaultError({
854
845
  output,
855
846
  parsedBody,
856
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
857
847
  errorCode,
858
848
  });
859
849
  }
@@ -864,12 +854,12 @@ const de_DeleteDecoderManifestCommand = async (output, context) => {
864
854
  }
865
855
  const data = await parseBody(output.body, context);
866
856
  let contents = {};
867
- contents = de_DeleteDecoderManifestResponse(data, context);
857
+ contents = (0, smithy_client_1._json)(data);
868
858
  const response = {
869
859
  $metadata: deserializeMetadata(output),
870
860
  ...contents,
871
861
  };
872
- return Promise.resolve(response);
862
+ return response;
873
863
  };
874
864
  exports.de_DeleteDecoderManifestCommand = de_DeleteDecoderManifestCommand;
875
865
  const de_DeleteDecoderManifestCommandError = async (output, context) => {
@@ -896,10 +886,9 @@ const de_DeleteDecoderManifestCommandError = async (output, context) => {
896
886
  throw await de_ValidationExceptionRes(parsedOutput, context);
897
887
  default:
898
888
  const parsedBody = parsedOutput.body;
899
- (0, smithy_client_1.throwDefaultError)({
889
+ return throwDefaultError({
900
890
  output,
901
891
  parsedBody,
902
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
903
892
  errorCode,
904
893
  });
905
894
  }
@@ -910,12 +899,12 @@ const de_DeleteFleetCommand = async (output, context) => {
910
899
  }
911
900
  const data = await parseBody(output.body, context);
912
901
  let contents = {};
913
- contents = de_DeleteFleetResponse(data, context);
902
+ contents = (0, smithy_client_1._json)(data);
914
903
  const response = {
915
904
  $metadata: deserializeMetadata(output),
916
905
  ...contents,
917
906
  };
918
- return Promise.resolve(response);
907
+ return response;
919
908
  };
920
909
  exports.de_DeleteFleetCommand = de_DeleteFleetCommand;
921
910
  const de_DeleteFleetCommandError = async (output, context) => {
@@ -939,10 +928,9 @@ const de_DeleteFleetCommandError = async (output, context) => {
939
928
  throw await de_ValidationExceptionRes(parsedOutput, context);
940
929
  default:
941
930
  const parsedBody = parsedOutput.body;
942
- (0, smithy_client_1.throwDefaultError)({
931
+ return throwDefaultError({
943
932
  output,
944
933
  parsedBody,
945
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
946
934
  errorCode,
947
935
  });
948
936
  }
@@ -953,12 +941,12 @@ const de_DeleteModelManifestCommand = async (output, context) => {
953
941
  }
954
942
  const data = await parseBody(output.body, context);
955
943
  let contents = {};
956
- contents = de_DeleteModelManifestResponse(data, context);
944
+ contents = (0, smithy_client_1._json)(data);
957
945
  const response = {
958
946
  $metadata: deserializeMetadata(output),
959
947
  ...contents,
960
948
  };
961
- return Promise.resolve(response);
949
+ return response;
962
950
  };
963
951
  exports.de_DeleteModelManifestCommand = de_DeleteModelManifestCommand;
964
952
  const de_DeleteModelManifestCommandError = async (output, context) => {
@@ -985,10 +973,9 @@ const de_DeleteModelManifestCommandError = async (output, context) => {
985
973
  throw await de_ValidationExceptionRes(parsedOutput, context);
986
974
  default:
987
975
  const parsedBody = parsedOutput.body;
988
- (0, smithy_client_1.throwDefaultError)({
976
+ return throwDefaultError({
989
977
  output,
990
978
  parsedBody,
991
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
992
979
  errorCode,
993
980
  });
994
981
  }
@@ -999,12 +986,12 @@ const de_DeleteSignalCatalogCommand = async (output, context) => {
999
986
  }
1000
987
  const data = await parseBody(output.body, context);
1001
988
  let contents = {};
1002
- contents = de_DeleteSignalCatalogResponse(data, context);
989
+ contents = (0, smithy_client_1._json)(data);
1003
990
  const response = {
1004
991
  $metadata: deserializeMetadata(output),
1005
992
  ...contents,
1006
993
  };
1007
- return Promise.resolve(response);
994
+ return response;
1008
995
  };
1009
996
  exports.de_DeleteSignalCatalogCommand = de_DeleteSignalCatalogCommand;
1010
997
  const de_DeleteSignalCatalogCommandError = async (output, context) => {
@@ -1031,10 +1018,9 @@ const de_DeleteSignalCatalogCommandError = async (output, context) => {
1031
1018
  throw await de_ValidationExceptionRes(parsedOutput, context);
1032
1019
  default:
1033
1020
  const parsedBody = parsedOutput.body;
1034
- (0, smithy_client_1.throwDefaultError)({
1021
+ return throwDefaultError({
1035
1022
  output,
1036
1023
  parsedBody,
1037
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1038
1024
  errorCode,
1039
1025
  });
1040
1026
  }
@@ -1045,12 +1031,12 @@ const de_DeleteVehicleCommand = async (output, context) => {
1045
1031
  }
1046
1032
  const data = await parseBody(output.body, context);
1047
1033
  let contents = {};
1048
- contents = de_DeleteVehicleResponse(data, context);
1034
+ contents = (0, smithy_client_1._json)(data);
1049
1035
  const response = {
1050
1036
  $metadata: deserializeMetadata(output),
1051
1037
  ...contents,
1052
1038
  };
1053
- return Promise.resolve(response);
1039
+ return response;
1054
1040
  };
1055
1041
  exports.de_DeleteVehicleCommand = de_DeleteVehicleCommand;
1056
1042
  const de_DeleteVehicleCommandError = async (output, context) => {
@@ -1074,10 +1060,9 @@ const de_DeleteVehicleCommandError = async (output, context) => {
1074
1060
  throw await de_ValidationExceptionRes(parsedOutput, context);
1075
1061
  default:
1076
1062
  const parsedBody = parsedOutput.body;
1077
- (0, smithy_client_1.throwDefaultError)({
1063
+ return throwDefaultError({
1078
1064
  output,
1079
1065
  parsedBody,
1080
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1081
1066
  errorCode,
1082
1067
  });
1083
1068
  }
@@ -1088,12 +1073,12 @@ const de_DisassociateVehicleFleetCommand = async (output, context) => {
1088
1073
  }
1089
1074
  const data = await parseBody(output.body, context);
1090
1075
  let contents = {};
1091
- contents = de_DisassociateVehicleFleetResponse(data, context);
1076
+ contents = (0, smithy_client_1._json)(data);
1092
1077
  const response = {
1093
1078
  $metadata: deserializeMetadata(output),
1094
1079
  ...contents,
1095
1080
  };
1096
- return Promise.resolve(response);
1081
+ return response;
1097
1082
  };
1098
1083
  exports.de_DisassociateVehicleFleetCommand = de_DisassociateVehicleFleetCommand;
1099
1084
  const de_DisassociateVehicleFleetCommandError = async (output, context) => {
@@ -1120,10 +1105,9 @@ const de_DisassociateVehicleFleetCommandError = async (output, context) => {
1120
1105
  throw await de_ValidationExceptionRes(parsedOutput, context);
1121
1106
  default:
1122
1107
  const parsedBody = parsedOutput.body;
1123
- (0, smithy_client_1.throwDefaultError)({
1108
+ return throwDefaultError({
1124
1109
  output,
1125
1110
  parsedBody,
1126
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1127
1111
  errorCode,
1128
1112
  });
1129
1113
  }
@@ -1139,7 +1123,7 @@ const de_GetCampaignCommand = async (output, context) => {
1139
1123
  $metadata: deserializeMetadata(output),
1140
1124
  ...contents,
1141
1125
  };
1142
- return Promise.resolve(response);
1126
+ return response;
1143
1127
  };
1144
1128
  exports.de_GetCampaignCommand = de_GetCampaignCommand;
1145
1129
  const de_GetCampaignCommandError = async (output, context) => {
@@ -1166,10 +1150,9 @@ const de_GetCampaignCommandError = async (output, context) => {
1166
1150
  throw await de_ValidationExceptionRes(parsedOutput, context);
1167
1151
  default:
1168
1152
  const parsedBody = parsedOutput.body;
1169
- (0, smithy_client_1.throwDefaultError)({
1153
+ return throwDefaultError({
1170
1154
  output,
1171
1155
  parsedBody,
1172
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1173
1156
  errorCode,
1174
1157
  });
1175
1158
  }
@@ -1185,7 +1168,7 @@ const de_GetDecoderManifestCommand = async (output, context) => {
1185
1168
  $metadata: deserializeMetadata(output),
1186
1169
  ...contents,
1187
1170
  };
1188
- return Promise.resolve(response);
1171
+ return response;
1189
1172
  };
1190
1173
  exports.de_GetDecoderManifestCommand = de_GetDecoderManifestCommand;
1191
1174
  const de_GetDecoderManifestCommandError = async (output, context) => {
@@ -1212,10 +1195,9 @@ const de_GetDecoderManifestCommandError = async (output, context) => {
1212
1195
  throw await de_ValidationExceptionRes(parsedOutput, context);
1213
1196
  default:
1214
1197
  const parsedBody = parsedOutput.body;
1215
- (0, smithy_client_1.throwDefaultError)({
1198
+ return throwDefaultError({
1216
1199
  output,
1217
1200
  parsedBody,
1218
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1219
1201
  errorCode,
1220
1202
  });
1221
1203
  }
@@ -1231,7 +1213,7 @@ const de_GetFleetCommand = async (output, context) => {
1231
1213
  $metadata: deserializeMetadata(output),
1232
1214
  ...contents,
1233
1215
  };
1234
- return Promise.resolve(response);
1216
+ return response;
1235
1217
  };
1236
1218
  exports.de_GetFleetCommand = de_GetFleetCommand;
1237
1219
  const de_GetFleetCommandError = async (output, context) => {
@@ -1258,10 +1240,9 @@ const de_GetFleetCommandError = async (output, context) => {
1258
1240
  throw await de_ValidationExceptionRes(parsedOutput, context);
1259
1241
  default:
1260
1242
  const parsedBody = parsedOutput.body;
1261
- (0, smithy_client_1.throwDefaultError)({
1243
+ return throwDefaultError({
1262
1244
  output,
1263
1245
  parsedBody,
1264
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1265
1246
  errorCode,
1266
1247
  });
1267
1248
  }
@@ -1272,12 +1253,12 @@ const de_GetLoggingOptionsCommand = async (output, context) => {
1272
1253
  }
1273
1254
  const data = await parseBody(output.body, context);
1274
1255
  let contents = {};
1275
- contents = de_GetLoggingOptionsResponse(data, context);
1256
+ contents = (0, smithy_client_1._json)(data);
1276
1257
  const response = {
1277
1258
  $metadata: deserializeMetadata(output),
1278
1259
  ...contents,
1279
1260
  };
1280
- return Promise.resolve(response);
1261
+ return response;
1281
1262
  };
1282
1263
  exports.de_GetLoggingOptionsCommand = de_GetLoggingOptionsCommand;
1283
1264
  const de_GetLoggingOptionsCommandError = async (output, context) => {
@@ -1298,10 +1279,9 @@ const de_GetLoggingOptionsCommandError = async (output, context) => {
1298
1279
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1299
1280
  default:
1300
1281
  const parsedBody = parsedOutput.body;
1301
- (0, smithy_client_1.throwDefaultError)({
1282
+ return throwDefaultError({
1302
1283
  output,
1303
1284
  parsedBody,
1304
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1305
1285
  errorCode,
1306
1286
  });
1307
1287
  }
@@ -1317,7 +1297,7 @@ const de_GetModelManifestCommand = async (output, context) => {
1317
1297
  $metadata: deserializeMetadata(output),
1318
1298
  ...contents,
1319
1299
  };
1320
- return Promise.resolve(response);
1300
+ return response;
1321
1301
  };
1322
1302
  exports.de_GetModelManifestCommand = de_GetModelManifestCommand;
1323
1303
  const de_GetModelManifestCommandError = async (output, context) => {
@@ -1344,10 +1324,9 @@ const de_GetModelManifestCommandError = async (output, context) => {
1344
1324
  throw await de_ValidationExceptionRes(parsedOutput, context);
1345
1325
  default:
1346
1326
  const parsedBody = parsedOutput.body;
1347
- (0, smithy_client_1.throwDefaultError)({
1327
+ return throwDefaultError({
1348
1328
  output,
1349
1329
  parsedBody,
1350
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1351
1330
  errorCode,
1352
1331
  });
1353
1332
  }
@@ -1363,7 +1342,7 @@ const de_GetRegisterAccountStatusCommand = async (output, context) => {
1363
1342
  $metadata: deserializeMetadata(output),
1364
1343
  ...contents,
1365
1344
  };
1366
- return Promise.resolve(response);
1345
+ return response;
1367
1346
  };
1368
1347
  exports.de_GetRegisterAccountStatusCommand = de_GetRegisterAccountStatusCommand;
1369
1348
  const de_GetRegisterAccountStatusCommandError = async (output, context) => {
@@ -1390,10 +1369,9 @@ const de_GetRegisterAccountStatusCommandError = async (output, context) => {
1390
1369
  throw await de_ValidationExceptionRes(parsedOutput, context);
1391
1370
  default:
1392
1371
  const parsedBody = parsedOutput.body;
1393
- (0, smithy_client_1.throwDefaultError)({
1372
+ return throwDefaultError({
1394
1373
  output,
1395
1374
  parsedBody,
1396
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1397
1375
  errorCode,
1398
1376
  });
1399
1377
  }
@@ -1409,7 +1387,7 @@ const de_GetSignalCatalogCommand = async (output, context) => {
1409
1387
  $metadata: deserializeMetadata(output),
1410
1388
  ...contents,
1411
1389
  };
1412
- return Promise.resolve(response);
1390
+ return response;
1413
1391
  };
1414
1392
  exports.de_GetSignalCatalogCommand = de_GetSignalCatalogCommand;
1415
1393
  const de_GetSignalCatalogCommandError = async (output, context) => {
@@ -1436,10 +1414,9 @@ const de_GetSignalCatalogCommandError = async (output, context) => {
1436
1414
  throw await de_ValidationExceptionRes(parsedOutput, context);
1437
1415
  default:
1438
1416
  const parsedBody = parsedOutput.body;
1439
- (0, smithy_client_1.throwDefaultError)({
1417
+ return throwDefaultError({
1440
1418
  output,
1441
1419
  parsedBody,
1442
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1443
1420
  errorCode,
1444
1421
  });
1445
1422
  }
@@ -1455,7 +1432,7 @@ const de_GetVehicleCommand = async (output, context) => {
1455
1432
  $metadata: deserializeMetadata(output),
1456
1433
  ...contents,
1457
1434
  };
1458
- return Promise.resolve(response);
1435
+ return response;
1459
1436
  };
1460
1437
  exports.de_GetVehicleCommand = de_GetVehicleCommand;
1461
1438
  const de_GetVehicleCommandError = async (output, context) => {
@@ -1482,10 +1459,9 @@ const de_GetVehicleCommandError = async (output, context) => {
1482
1459
  throw await de_ValidationExceptionRes(parsedOutput, context);
1483
1460
  default:
1484
1461
  const parsedBody = parsedOutput.body;
1485
- (0, smithy_client_1.throwDefaultError)({
1462
+ return throwDefaultError({
1486
1463
  output,
1487
1464
  parsedBody,
1488
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1489
1465
  errorCode,
1490
1466
  });
1491
1467
  }
@@ -1496,12 +1472,12 @@ const de_GetVehicleStatusCommand = async (output, context) => {
1496
1472
  }
1497
1473
  const data = await parseBody(output.body, context);
1498
1474
  let contents = {};
1499
- contents = de_GetVehicleStatusResponse(data, context);
1475
+ contents = (0, smithy_client_1._json)(data);
1500
1476
  const response = {
1501
1477
  $metadata: deserializeMetadata(output),
1502
1478
  ...contents,
1503
1479
  };
1504
- return Promise.resolve(response);
1480
+ return response;
1505
1481
  };
1506
1482
  exports.de_GetVehicleStatusCommand = de_GetVehicleStatusCommand;
1507
1483
  const de_GetVehicleStatusCommandError = async (output, context) => {
@@ -1528,10 +1504,9 @@ const de_GetVehicleStatusCommandError = async (output, context) => {
1528
1504
  throw await de_ValidationExceptionRes(parsedOutput, context);
1529
1505
  default:
1530
1506
  const parsedBody = parsedOutput.body;
1531
- (0, smithy_client_1.throwDefaultError)({
1507
+ return throwDefaultError({
1532
1508
  output,
1533
1509
  parsedBody,
1534
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1535
1510
  errorCode,
1536
1511
  });
1537
1512
  }
@@ -1542,12 +1517,12 @@ const de_ImportDecoderManifestCommand = async (output, context) => {
1542
1517
  }
1543
1518
  const data = await parseBody(output.body, context);
1544
1519
  let contents = {};
1545
- contents = de_ImportDecoderManifestResponse(data, context);
1520
+ contents = (0, smithy_client_1._json)(data);
1546
1521
  const response = {
1547
1522
  $metadata: deserializeMetadata(output),
1548
1523
  ...contents,
1549
1524
  };
1550
- return Promise.resolve(response);
1525
+ return response;
1551
1526
  };
1552
1527
  exports.de_ImportDecoderManifestCommand = de_ImportDecoderManifestCommand;
1553
1528
  const de_ImportDecoderManifestCommandError = async (output, context) => {
@@ -1583,10 +1558,9 @@ const de_ImportDecoderManifestCommandError = async (output, context) => {
1583
1558
  throw await de_ValidationExceptionRes(parsedOutput, context);
1584
1559
  default:
1585
1560
  const parsedBody = parsedOutput.body;
1586
- (0, smithy_client_1.throwDefaultError)({
1561
+ return throwDefaultError({
1587
1562
  output,
1588
1563
  parsedBody,
1589
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1590
1564
  errorCode,
1591
1565
  });
1592
1566
  }
@@ -1597,12 +1571,12 @@ const de_ImportSignalCatalogCommand = async (output, context) => {
1597
1571
  }
1598
1572
  const data = await parseBody(output.body, context);
1599
1573
  let contents = {};
1600
- contents = de_ImportSignalCatalogResponse(data, context);
1574
+ contents = (0, smithy_client_1._json)(data);
1601
1575
  const response = {
1602
1576
  $metadata: deserializeMetadata(output),
1603
1577
  ...contents,
1604
1578
  };
1605
- return Promise.resolve(response);
1579
+ return response;
1606
1580
  };
1607
1581
  exports.de_ImportSignalCatalogCommand = de_ImportSignalCatalogCommand;
1608
1582
  const de_ImportSignalCatalogCommandError = async (output, context) => {
@@ -1638,10 +1612,9 @@ const de_ImportSignalCatalogCommandError = async (output, context) => {
1638
1612
  throw await de_ValidationExceptionRes(parsedOutput, context);
1639
1613
  default:
1640
1614
  const parsedBody = parsedOutput.body;
1641
- (0, smithy_client_1.throwDefaultError)({
1615
+ return throwDefaultError({
1642
1616
  output,
1643
1617
  parsedBody,
1644
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1645
1618
  errorCode,
1646
1619
  });
1647
1620
  }
@@ -1657,7 +1630,7 @@ const de_ListCampaignsCommand = async (output, context) => {
1657
1630
  $metadata: deserializeMetadata(output),
1658
1631
  ...contents,
1659
1632
  };
1660
- return Promise.resolve(response);
1633
+ return response;
1661
1634
  };
1662
1635
  exports.de_ListCampaignsCommand = de_ListCampaignsCommand;
1663
1636
  const de_ListCampaignsCommandError = async (output, context) => {
@@ -1681,10 +1654,9 @@ const de_ListCampaignsCommandError = async (output, context) => {
1681
1654
  throw await de_ValidationExceptionRes(parsedOutput, context);
1682
1655
  default:
1683
1656
  const parsedBody = parsedOutput.body;
1684
- (0, smithy_client_1.throwDefaultError)({
1657
+ return throwDefaultError({
1685
1658
  output,
1686
1659
  parsedBody,
1687
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1688
1660
  errorCode,
1689
1661
  });
1690
1662
  }
@@ -1695,12 +1667,12 @@ const de_ListDecoderManifestNetworkInterfacesCommand = async (output, context) =
1695
1667
  }
1696
1668
  const data = await parseBody(output.body, context);
1697
1669
  let contents = {};
1698
- contents = de_ListDecoderManifestNetworkInterfacesResponse(data, context);
1670
+ contents = (0, smithy_client_1._json)(data);
1699
1671
  const response = {
1700
1672
  $metadata: deserializeMetadata(output),
1701
1673
  ...contents,
1702
1674
  };
1703
- return Promise.resolve(response);
1675
+ return response;
1704
1676
  };
1705
1677
  exports.de_ListDecoderManifestNetworkInterfacesCommand = de_ListDecoderManifestNetworkInterfacesCommand;
1706
1678
  const de_ListDecoderManifestNetworkInterfacesCommandError = async (output, context) => {
@@ -1727,10 +1699,9 @@ const de_ListDecoderManifestNetworkInterfacesCommandError = async (output, conte
1727
1699
  throw await de_ValidationExceptionRes(parsedOutput, context);
1728
1700
  default:
1729
1701
  const parsedBody = parsedOutput.body;
1730
- (0, smithy_client_1.throwDefaultError)({
1702
+ return throwDefaultError({
1731
1703
  output,
1732
1704
  parsedBody,
1733
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1734
1705
  errorCode,
1735
1706
  });
1736
1707
  }
@@ -1746,7 +1717,7 @@ const de_ListDecoderManifestsCommand = async (output, context) => {
1746
1717
  $metadata: deserializeMetadata(output),
1747
1718
  ...contents,
1748
1719
  };
1749
- return Promise.resolve(response);
1720
+ return response;
1750
1721
  };
1751
1722
  exports.de_ListDecoderManifestsCommand = de_ListDecoderManifestsCommand;
1752
1723
  const de_ListDecoderManifestsCommandError = async (output, context) => {
@@ -1770,10 +1741,9 @@ const de_ListDecoderManifestsCommandError = async (output, context) => {
1770
1741
  throw await de_ValidationExceptionRes(parsedOutput, context);
1771
1742
  default:
1772
1743
  const parsedBody = parsedOutput.body;
1773
- (0, smithy_client_1.throwDefaultError)({
1744
+ return throwDefaultError({
1774
1745
  output,
1775
1746
  parsedBody,
1776
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1777
1747
  errorCode,
1778
1748
  });
1779
1749
  }
@@ -1789,7 +1759,7 @@ const de_ListDecoderManifestSignalsCommand = async (output, context) => {
1789
1759
  $metadata: deserializeMetadata(output),
1790
1760
  ...contents,
1791
1761
  };
1792
- return Promise.resolve(response);
1762
+ return response;
1793
1763
  };
1794
1764
  exports.de_ListDecoderManifestSignalsCommand = de_ListDecoderManifestSignalsCommand;
1795
1765
  const de_ListDecoderManifestSignalsCommandError = async (output, context) => {
@@ -1816,10 +1786,9 @@ const de_ListDecoderManifestSignalsCommandError = async (output, context) => {
1816
1786
  throw await de_ValidationExceptionRes(parsedOutput, context);
1817
1787
  default:
1818
1788
  const parsedBody = parsedOutput.body;
1819
- (0, smithy_client_1.throwDefaultError)({
1789
+ return throwDefaultError({
1820
1790
  output,
1821
1791
  parsedBody,
1822
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1823
1792
  errorCode,
1824
1793
  });
1825
1794
  }
@@ -1835,7 +1804,7 @@ const de_ListFleetsCommand = async (output, context) => {
1835
1804
  $metadata: deserializeMetadata(output),
1836
1805
  ...contents,
1837
1806
  };
1838
- return Promise.resolve(response);
1807
+ return response;
1839
1808
  };
1840
1809
  exports.de_ListFleetsCommand = de_ListFleetsCommand;
1841
1810
  const de_ListFleetsCommandError = async (output, context) => {
@@ -1862,10 +1831,9 @@ const de_ListFleetsCommandError = async (output, context) => {
1862
1831
  throw await de_ValidationExceptionRes(parsedOutput, context);
1863
1832
  default:
1864
1833
  const parsedBody = parsedOutput.body;
1865
- (0, smithy_client_1.throwDefaultError)({
1834
+ return throwDefaultError({
1866
1835
  output,
1867
1836
  parsedBody,
1868
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1869
1837
  errorCode,
1870
1838
  });
1871
1839
  }
@@ -1876,12 +1844,12 @@ const de_ListFleetsForVehicleCommand = async (output, context) => {
1876
1844
  }
1877
1845
  const data = await parseBody(output.body, context);
1878
1846
  let contents = {};
1879
- contents = de_ListFleetsForVehicleResponse(data, context);
1847
+ contents = (0, smithy_client_1._json)(data);
1880
1848
  const response = {
1881
1849
  $metadata: deserializeMetadata(output),
1882
1850
  ...contents,
1883
1851
  };
1884
- return Promise.resolve(response);
1852
+ return response;
1885
1853
  };
1886
1854
  exports.de_ListFleetsForVehicleCommand = de_ListFleetsForVehicleCommand;
1887
1855
  const de_ListFleetsForVehicleCommandError = async (output, context) => {
@@ -1908,10 +1876,9 @@ const de_ListFleetsForVehicleCommandError = async (output, context) => {
1908
1876
  throw await de_ValidationExceptionRes(parsedOutput, context);
1909
1877
  default:
1910
1878
  const parsedBody = parsedOutput.body;
1911
- (0, smithy_client_1.throwDefaultError)({
1879
+ return throwDefaultError({
1912
1880
  output,
1913
1881
  parsedBody,
1914
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1915
1882
  errorCode,
1916
1883
  });
1917
1884
  }
@@ -1927,7 +1894,7 @@ const de_ListModelManifestNodesCommand = async (output, context) => {
1927
1894
  $metadata: deserializeMetadata(output),
1928
1895
  ...contents,
1929
1896
  };
1930
- return Promise.resolve(response);
1897
+ return response;
1931
1898
  };
1932
1899
  exports.de_ListModelManifestNodesCommand = de_ListModelManifestNodesCommand;
1933
1900
  const de_ListModelManifestNodesCommandError = async (output, context) => {
@@ -1957,10 +1924,9 @@ const de_ListModelManifestNodesCommandError = async (output, context) => {
1957
1924
  throw await de_ValidationExceptionRes(parsedOutput, context);
1958
1925
  default:
1959
1926
  const parsedBody = parsedOutput.body;
1960
- (0, smithy_client_1.throwDefaultError)({
1927
+ return throwDefaultError({
1961
1928
  output,
1962
1929
  parsedBody,
1963
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1964
1930
  errorCode,
1965
1931
  });
1966
1932
  }
@@ -1976,7 +1942,7 @@ const de_ListModelManifestsCommand = async (output, context) => {
1976
1942
  $metadata: deserializeMetadata(output),
1977
1943
  ...contents,
1978
1944
  };
1979
- return Promise.resolve(response);
1945
+ return response;
1980
1946
  };
1981
1947
  exports.de_ListModelManifestsCommand = de_ListModelManifestsCommand;
1982
1948
  const de_ListModelManifestsCommandError = async (output, context) => {
@@ -2000,10 +1966,9 @@ const de_ListModelManifestsCommandError = async (output, context) => {
2000
1966
  throw await de_ValidationExceptionRes(parsedOutput, context);
2001
1967
  default:
2002
1968
  const parsedBody = parsedOutput.body;
2003
- (0, smithy_client_1.throwDefaultError)({
1969
+ return throwDefaultError({
2004
1970
  output,
2005
1971
  parsedBody,
2006
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2007
1972
  errorCode,
2008
1973
  });
2009
1974
  }
@@ -2019,7 +1984,7 @@ const de_ListSignalCatalogNodesCommand = async (output, context) => {
2019
1984
  $metadata: deserializeMetadata(output),
2020
1985
  ...contents,
2021
1986
  };
2022
- return Promise.resolve(response);
1987
+ return response;
2023
1988
  };
2024
1989
  exports.de_ListSignalCatalogNodesCommand = de_ListSignalCatalogNodesCommand;
2025
1990
  const de_ListSignalCatalogNodesCommandError = async (output, context) => {
@@ -2049,10 +2014,9 @@ const de_ListSignalCatalogNodesCommandError = async (output, context) => {
2049
2014
  throw await de_ValidationExceptionRes(parsedOutput, context);
2050
2015
  default:
2051
2016
  const parsedBody = parsedOutput.body;
2052
- (0, smithy_client_1.throwDefaultError)({
2017
+ return throwDefaultError({
2053
2018
  output,
2054
2019
  parsedBody,
2055
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2056
2020
  errorCode,
2057
2021
  });
2058
2022
  }
@@ -2068,7 +2032,7 @@ const de_ListSignalCatalogsCommand = async (output, context) => {
2068
2032
  $metadata: deserializeMetadata(output),
2069
2033
  ...contents,
2070
2034
  };
2071
- return Promise.resolve(response);
2035
+ return response;
2072
2036
  };
2073
2037
  exports.de_ListSignalCatalogsCommand = de_ListSignalCatalogsCommand;
2074
2038
  const de_ListSignalCatalogsCommandError = async (output, context) => {
@@ -2092,10 +2056,9 @@ const de_ListSignalCatalogsCommandError = async (output, context) => {
2092
2056
  throw await de_ValidationExceptionRes(parsedOutput, context);
2093
2057
  default:
2094
2058
  const parsedBody = parsedOutput.body;
2095
- (0, smithy_client_1.throwDefaultError)({
2059
+ return throwDefaultError({
2096
2060
  output,
2097
2061
  parsedBody,
2098
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2099
2062
  errorCode,
2100
2063
  });
2101
2064
  }
@@ -2106,12 +2069,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2106
2069
  }
2107
2070
  const data = await parseBody(output.body, context);
2108
2071
  let contents = {};
2109
- contents = de_ListTagsForResourceResponse(data, context);
2072
+ contents = (0, smithy_client_1._json)(data);
2110
2073
  const response = {
2111
2074
  $metadata: deserializeMetadata(output),
2112
2075
  ...contents,
2113
2076
  };
2114
- return Promise.resolve(response);
2077
+ return response;
2115
2078
  };
2116
2079
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2117
2080
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2138,10 +2101,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2138
2101
  throw await de_ValidationExceptionRes(parsedOutput, context);
2139
2102
  default:
2140
2103
  const parsedBody = parsedOutput.body;
2141
- (0, smithy_client_1.throwDefaultError)({
2104
+ return throwDefaultError({
2142
2105
  output,
2143
2106
  parsedBody,
2144
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2145
2107
  errorCode,
2146
2108
  });
2147
2109
  }
@@ -2157,7 +2119,7 @@ const de_ListVehiclesCommand = async (output, context) => {
2157
2119
  $metadata: deserializeMetadata(output),
2158
2120
  ...contents,
2159
2121
  };
2160
- return Promise.resolve(response);
2122
+ return response;
2161
2123
  };
2162
2124
  exports.de_ListVehiclesCommand = de_ListVehiclesCommand;
2163
2125
  const de_ListVehiclesCommandError = async (output, context) => {
@@ -2181,10 +2143,9 @@ const de_ListVehiclesCommandError = async (output, context) => {
2181
2143
  throw await de_ValidationExceptionRes(parsedOutput, context);
2182
2144
  default:
2183
2145
  const parsedBody = parsedOutput.body;
2184
- (0, smithy_client_1.throwDefaultError)({
2146
+ return throwDefaultError({
2185
2147
  output,
2186
2148
  parsedBody,
2187
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2188
2149
  errorCode,
2189
2150
  });
2190
2151
  }
@@ -2195,12 +2156,12 @@ const de_ListVehiclesInFleetCommand = async (output, context) => {
2195
2156
  }
2196
2157
  const data = await parseBody(output.body, context);
2197
2158
  let contents = {};
2198
- contents = de_ListVehiclesInFleetResponse(data, context);
2159
+ contents = (0, smithy_client_1._json)(data);
2199
2160
  const response = {
2200
2161
  $metadata: deserializeMetadata(output),
2201
2162
  ...contents,
2202
2163
  };
2203
- return Promise.resolve(response);
2164
+ return response;
2204
2165
  };
2205
2166
  exports.de_ListVehiclesInFleetCommand = de_ListVehiclesInFleetCommand;
2206
2167
  const de_ListVehiclesInFleetCommandError = async (output, context) => {
@@ -2227,10 +2188,9 @@ const de_ListVehiclesInFleetCommandError = async (output, context) => {
2227
2188
  throw await de_ValidationExceptionRes(parsedOutput, context);
2228
2189
  default:
2229
2190
  const parsedBody = parsedOutput.body;
2230
- (0, smithy_client_1.throwDefaultError)({
2191
+ return throwDefaultError({
2231
2192
  output,
2232
2193
  parsedBody,
2233
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2234
2194
  errorCode,
2235
2195
  });
2236
2196
  }
@@ -2241,12 +2201,12 @@ const de_PutLoggingOptionsCommand = async (output, context) => {
2241
2201
  }
2242
2202
  const data = await parseBody(output.body, context);
2243
2203
  let contents = {};
2244
- contents = de_PutLoggingOptionsResponse(data, context);
2204
+ contents = (0, smithy_client_1._json)(data);
2245
2205
  const response = {
2246
2206
  $metadata: deserializeMetadata(output),
2247
2207
  ...contents,
2248
2208
  };
2249
- return Promise.resolve(response);
2209
+ return response;
2250
2210
  };
2251
2211
  exports.de_PutLoggingOptionsCommand = de_PutLoggingOptionsCommand;
2252
2212
  const de_PutLoggingOptionsCommandError = async (output, context) => {
@@ -2276,10 +2236,9 @@ const de_PutLoggingOptionsCommandError = async (output, context) => {
2276
2236
  throw await de_ValidationExceptionRes(parsedOutput, context);
2277
2237
  default:
2278
2238
  const parsedBody = parsedOutput.body;
2279
- (0, smithy_client_1.throwDefaultError)({
2239
+ return throwDefaultError({
2280
2240
  output,
2281
2241
  parsedBody,
2282
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2283
2242
  errorCode,
2284
2243
  });
2285
2244
  }
@@ -2295,7 +2254,7 @@ const de_RegisterAccountCommand = async (output, context) => {
2295
2254
  $metadata: deserializeMetadata(output),
2296
2255
  ...contents,
2297
2256
  };
2298
- return Promise.resolve(response);
2257
+ return response;
2299
2258
  };
2300
2259
  exports.de_RegisterAccountCommand = de_RegisterAccountCommand;
2301
2260
  const de_RegisterAccountCommandError = async (output, context) => {
@@ -2325,10 +2284,9 @@ const de_RegisterAccountCommandError = async (output, context) => {
2325
2284
  throw await de_ValidationExceptionRes(parsedOutput, context);
2326
2285
  default:
2327
2286
  const parsedBody = parsedOutput.body;
2328
- (0, smithy_client_1.throwDefaultError)({
2287
+ return throwDefaultError({
2329
2288
  output,
2330
2289
  parsedBody,
2331
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2332
2290
  errorCode,
2333
2291
  });
2334
2292
  }
@@ -2339,12 +2297,12 @@ const de_TagResourceCommand = async (output, context) => {
2339
2297
  }
2340
2298
  const data = await parseBody(output.body, context);
2341
2299
  let contents = {};
2342
- contents = de_TagResourceResponse(data, context);
2300
+ contents = (0, smithy_client_1._json)(data);
2343
2301
  const response = {
2344
2302
  $metadata: deserializeMetadata(output),
2345
2303
  ...contents,
2346
2304
  };
2347
- return Promise.resolve(response);
2305
+ return response;
2348
2306
  };
2349
2307
  exports.de_TagResourceCommand = de_TagResourceCommand;
2350
2308
  const de_TagResourceCommandError = async (output, context) => {
@@ -2371,10 +2329,9 @@ const de_TagResourceCommandError = async (output, context) => {
2371
2329
  throw await de_ValidationExceptionRes(parsedOutput, context);
2372
2330
  default:
2373
2331
  const parsedBody = parsedOutput.body;
2374
- (0, smithy_client_1.throwDefaultError)({
2332
+ return throwDefaultError({
2375
2333
  output,
2376
2334
  parsedBody,
2377
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2378
2335
  errorCode,
2379
2336
  });
2380
2337
  }
@@ -2385,12 +2342,12 @@ const de_UntagResourceCommand = async (output, context) => {
2385
2342
  }
2386
2343
  const data = await parseBody(output.body, context);
2387
2344
  let contents = {};
2388
- contents = de_UntagResourceResponse(data, context);
2345
+ contents = (0, smithy_client_1._json)(data);
2389
2346
  const response = {
2390
2347
  $metadata: deserializeMetadata(output),
2391
2348
  ...contents,
2392
2349
  };
2393
- return Promise.resolve(response);
2350
+ return response;
2394
2351
  };
2395
2352
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2396
2353
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2417,10 +2374,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2417
2374
  throw await de_ValidationExceptionRes(parsedOutput, context);
2418
2375
  default:
2419
2376
  const parsedBody = parsedOutput.body;
2420
- (0, smithy_client_1.throwDefaultError)({
2377
+ return throwDefaultError({
2421
2378
  output,
2422
2379
  parsedBody,
2423
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2424
2380
  errorCode,
2425
2381
  });
2426
2382
  }
@@ -2431,12 +2387,12 @@ const de_UpdateCampaignCommand = async (output, context) => {
2431
2387
  }
2432
2388
  const data = await parseBody(output.body, context);
2433
2389
  let contents = {};
2434
- contents = de_UpdateCampaignResponse(data, context);
2390
+ contents = (0, smithy_client_1._json)(data);
2435
2391
  const response = {
2436
2392
  $metadata: deserializeMetadata(output),
2437
2393
  ...contents,
2438
2394
  };
2439
- return Promise.resolve(response);
2395
+ return response;
2440
2396
  };
2441
2397
  exports.de_UpdateCampaignCommand = de_UpdateCampaignCommand;
2442
2398
  const de_UpdateCampaignCommandError = async (output, context) => {
@@ -2466,10 +2422,9 @@ const de_UpdateCampaignCommandError = async (output, context) => {
2466
2422
  throw await de_ValidationExceptionRes(parsedOutput, context);
2467
2423
  default:
2468
2424
  const parsedBody = parsedOutput.body;
2469
- (0, smithy_client_1.throwDefaultError)({
2425
+ return throwDefaultError({
2470
2426
  output,
2471
2427
  parsedBody,
2472
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2473
2428
  errorCode,
2474
2429
  });
2475
2430
  }
@@ -2480,12 +2435,12 @@ const de_UpdateDecoderManifestCommand = async (output, context) => {
2480
2435
  }
2481
2436
  const data = await parseBody(output.body, context);
2482
2437
  let contents = {};
2483
- contents = de_UpdateDecoderManifestResponse(data, context);
2438
+ contents = (0, smithy_client_1._json)(data);
2484
2439
  const response = {
2485
2440
  $metadata: deserializeMetadata(output),
2486
2441
  ...contents,
2487
2442
  };
2488
- return Promise.resolve(response);
2443
+ return response;
2489
2444
  };
2490
2445
  exports.de_UpdateDecoderManifestCommand = de_UpdateDecoderManifestCommand;
2491
2446
  const de_UpdateDecoderManifestCommandError = async (output, context) => {
@@ -2521,10 +2476,9 @@ const de_UpdateDecoderManifestCommandError = async (output, context) => {
2521
2476
  throw await de_ValidationExceptionRes(parsedOutput, context);
2522
2477
  default:
2523
2478
  const parsedBody = parsedOutput.body;
2524
- (0, smithy_client_1.throwDefaultError)({
2479
+ return throwDefaultError({
2525
2480
  output,
2526
2481
  parsedBody,
2527
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2528
2482
  errorCode,
2529
2483
  });
2530
2484
  }
@@ -2535,12 +2489,12 @@ const de_UpdateFleetCommand = async (output, context) => {
2535
2489
  }
2536
2490
  const data = await parseBody(output.body, context);
2537
2491
  let contents = {};
2538
- contents = de_UpdateFleetResponse(data, context);
2492
+ contents = (0, smithy_client_1._json)(data);
2539
2493
  const response = {
2540
2494
  $metadata: deserializeMetadata(output),
2541
2495
  ...contents,
2542
2496
  };
2543
- return Promise.resolve(response);
2497
+ return response;
2544
2498
  };
2545
2499
  exports.de_UpdateFleetCommand = de_UpdateFleetCommand;
2546
2500
  const de_UpdateFleetCommandError = async (output, context) => {
@@ -2570,10 +2524,9 @@ const de_UpdateFleetCommandError = async (output, context) => {
2570
2524
  throw await de_ValidationExceptionRes(parsedOutput, context);
2571
2525
  default:
2572
2526
  const parsedBody = parsedOutput.body;
2573
- (0, smithy_client_1.throwDefaultError)({
2527
+ return throwDefaultError({
2574
2528
  output,
2575
2529
  parsedBody,
2576
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2577
2530
  errorCode,
2578
2531
  });
2579
2532
  }
@@ -2584,12 +2537,12 @@ const de_UpdateModelManifestCommand = async (output, context) => {
2584
2537
  }
2585
2538
  const data = await parseBody(output.body, context);
2586
2539
  let contents = {};
2587
- contents = de_UpdateModelManifestResponse(data, context);
2540
+ contents = (0, smithy_client_1._json)(data);
2588
2541
  const response = {
2589
2542
  $metadata: deserializeMetadata(output),
2590
2543
  ...contents,
2591
2544
  };
2592
- return Promise.resolve(response);
2545
+ return response;
2593
2546
  };
2594
2547
  exports.de_UpdateModelManifestCommand = de_UpdateModelManifestCommand;
2595
2548
  const de_UpdateModelManifestCommandError = async (output, context) => {
@@ -2622,10 +2575,9 @@ const de_UpdateModelManifestCommandError = async (output, context) => {
2622
2575
  throw await de_ValidationExceptionRes(parsedOutput, context);
2623
2576
  default:
2624
2577
  const parsedBody = parsedOutput.body;
2625
- (0, smithy_client_1.throwDefaultError)({
2578
+ return throwDefaultError({
2626
2579
  output,
2627
2580
  parsedBody,
2628
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2629
2581
  errorCode,
2630
2582
  });
2631
2583
  }
@@ -2636,12 +2588,12 @@ const de_UpdateSignalCatalogCommand = async (output, context) => {
2636
2588
  }
2637
2589
  const data = await parseBody(output.body, context);
2638
2590
  let contents = {};
2639
- contents = de_UpdateSignalCatalogResponse(data, context);
2591
+ contents = (0, smithy_client_1._json)(data);
2640
2592
  const response = {
2641
2593
  $metadata: deserializeMetadata(output),
2642
2594
  ...contents,
2643
2595
  };
2644
- return Promise.resolve(response);
2596
+ return response;
2645
2597
  };
2646
2598
  exports.de_UpdateSignalCatalogCommand = de_UpdateSignalCatalogCommand;
2647
2599
  const de_UpdateSignalCatalogCommandError = async (output, context) => {
@@ -2680,10 +2632,9 @@ const de_UpdateSignalCatalogCommandError = async (output, context) => {
2680
2632
  throw await de_ValidationExceptionRes(parsedOutput, context);
2681
2633
  default:
2682
2634
  const parsedBody = parsedOutput.body;
2683
- (0, smithy_client_1.throwDefaultError)({
2635
+ return throwDefaultError({
2684
2636
  output,
2685
2637
  parsedBody,
2686
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2687
2638
  errorCode,
2688
2639
  });
2689
2640
  }
@@ -2694,12 +2645,12 @@ const de_UpdateVehicleCommand = async (output, context) => {
2694
2645
  }
2695
2646
  const data = await parseBody(output.body, context);
2696
2647
  let contents = {};
2697
- contents = de_UpdateVehicleResponse(data, context);
2648
+ contents = (0, smithy_client_1._json)(data);
2698
2649
  const response = {
2699
2650
  $metadata: deserializeMetadata(output),
2700
2651
  ...contents,
2701
2652
  };
2702
- return Promise.resolve(response);
2653
+ return response;
2703
2654
  };
2704
2655
  exports.de_UpdateVehicleCommand = de_UpdateVehicleCommand;
2705
2656
  const de_UpdateVehicleCommandError = async (output, context) => {
@@ -2729,17 +2680,16 @@ const de_UpdateVehicleCommandError = async (output, context) => {
2729
2680
  throw await de_ValidationExceptionRes(parsedOutput, context);
2730
2681
  default:
2731
2682
  const parsedBody = parsedOutput.body;
2732
- (0, smithy_client_1.throwDefaultError)({
2683
+ return throwDefaultError({
2733
2684
  output,
2734
2685
  parsedBody,
2735
- exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2736
2686
  errorCode,
2737
2687
  });
2738
2688
  }
2739
2689
  };
2740
2690
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2741
2691
  const body = parsedOutput.body;
2742
- const deserialized = de_AccessDeniedException(body, context);
2692
+ const deserialized = (0, smithy_client_1._json)(body);
2743
2693
  const exception = new models_0_1.AccessDeniedException({
2744
2694
  $metadata: deserializeMetadata(parsedOutput),
2745
2695
  ...deserialized,
@@ -2748,7 +2698,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2748
2698
  };
2749
2699
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2750
2700
  const body = parsedOutput.body;
2751
- const deserialized = de_ConflictException(body, context);
2701
+ const deserialized = (0, smithy_client_1._json)(body);
2752
2702
  const exception = new models_0_1.ConflictException({
2753
2703
  $metadata: deserializeMetadata(parsedOutput),
2754
2704
  ...deserialized,
@@ -2757,7 +2707,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2757
2707
  };
2758
2708
  const de_DecoderManifestValidationExceptionRes = async (parsedOutput, context) => {
2759
2709
  const body = parsedOutput.body;
2760
- const deserialized = de_DecoderManifestValidationException(body, context);
2710
+ const deserialized = (0, smithy_client_1._json)(body);
2761
2711
  const exception = new models_0_1.DecoderManifestValidationException({
2762
2712
  $metadata: deserializeMetadata(parsedOutput),
2763
2713
  ...deserialized,
@@ -2766,7 +2716,7 @@ const de_DecoderManifestValidationExceptionRes = async (parsedOutput, context) =
2766
2716
  };
2767
2717
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2768
2718
  const body = parsedOutput.body;
2769
- const deserialized = de_InternalServerException(body, context);
2719
+ const deserialized = (0, smithy_client_1._json)(body);
2770
2720
  const exception = new models_0_1.InternalServerException({
2771
2721
  $metadata: deserializeMetadata(parsedOutput),
2772
2722
  ...deserialized,
@@ -2784,7 +2734,7 @@ const de_InvalidNodeExceptionRes = async (parsedOutput, context) => {
2784
2734
  };
2785
2735
  const de_InvalidSignalsExceptionRes = async (parsedOutput, context) => {
2786
2736
  const body = parsedOutput.body;
2787
- const deserialized = de_InvalidSignalsException(body, context);
2737
+ const deserialized = (0, smithy_client_1._json)(body);
2788
2738
  const exception = new models_0_1.InvalidSignalsException({
2789
2739
  $metadata: deserializeMetadata(parsedOutput),
2790
2740
  ...deserialized,
@@ -2793,7 +2743,7 @@ const de_InvalidSignalsExceptionRes = async (parsedOutput, context) => {
2793
2743
  };
2794
2744
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2795
2745
  const body = parsedOutput.body;
2796
- const deserialized = de_LimitExceededException(body, context);
2746
+ const deserialized = (0, smithy_client_1._json)(body);
2797
2747
  const exception = new models_0_1.LimitExceededException({
2798
2748
  $metadata: deserializeMetadata(parsedOutput),
2799
2749
  ...deserialized,
@@ -2802,7 +2752,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2802
2752
  };
2803
2753
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2804
2754
  const body = parsedOutput.body;
2805
- const deserialized = de_ResourceNotFoundException(body, context);
2755
+ const deserialized = (0, smithy_client_1._json)(body);
2806
2756
  const exception = new models_0_1.ResourceNotFoundException({
2807
2757
  $metadata: deserializeMetadata(parsedOutput),
2808
2758
  ...deserialized,
@@ -2811,7 +2761,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2811
2761
  };
2812
2762
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2813
2763
  const body = parsedOutput.body;
2814
- const deserialized = de_ThrottlingException(body, context);
2764
+ const deserialized = (0, smithy_client_1._json)(body);
2815
2765
  const exception = new models_0_1.ThrottlingException({
2816
2766
  $metadata: deserializeMetadata(parsedOutput),
2817
2767
  ...deserialized,
@@ -2820,7 +2770,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2820
2770
  };
2821
2771
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
2822
2772
  const body = parsedOutput.body;
2823
- const deserialized = de_ValidationException(body, context);
2773
+ const deserialized = (0, smithy_client_1._json)(body);
2824
2774
  const exception = new models_0_1.ValidationException({
2825
2775
  $metadata: deserializeMetadata(parsedOutput),
2826
2776
  ...deserialized,
@@ -2828,429 +2778,92 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
2828
2778
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2829
2779
  };
2830
2780
  const se_Actuator = (input, context) => {
2831
- return {
2832
- ...(input.allowedValues != null && { allowedValues: se_listOfStrings(input.allowedValues, context) }),
2833
- ...(input.assignedValue != null && { assignedValue: input.assignedValue }),
2834
- ...(input.dataType != null && { dataType: input.dataType }),
2835
- ...(input.description != null && { description: input.description }),
2836
- ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
2837
- ...(input.max != null && { max: (0, smithy_client_1.serializeFloat)(input.max) }),
2838
- ...(input.min != null && { min: (0, smithy_client_1.serializeFloat)(input.min) }),
2839
- ...(input.unit != null && { unit: input.unit }),
2840
- };
2841
- };
2842
- const se_AssociateVehicleFleetRequest = (input, context) => {
2843
- return {
2844
- ...(input.fleetId != null && { fleetId: input.fleetId }),
2845
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
2846
- };
2781
+ return (0, smithy_client_1.take)(input, {
2782
+ allowedValues: smithy_client_1._json,
2783
+ assignedValue: [],
2784
+ dataType: [],
2785
+ description: [],
2786
+ fullyQualifiedName: [],
2787
+ max: smithy_client_1.serializeFloat,
2788
+ min: smithy_client_1.serializeFloat,
2789
+ unit: [],
2790
+ });
2847
2791
  };
2848
2792
  const se_Attribute = (input, context) => {
2849
- return {
2850
- ...(input.allowedValues != null && { allowedValues: se_listOfStrings(input.allowedValues, context) }),
2851
- ...(input.assignedValue != null && { assignedValue: input.assignedValue }),
2852
- ...(input.dataType != null && { dataType: input.dataType }),
2853
- ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
2854
- ...(input.description != null && { description: input.description }),
2855
- ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
2856
- ...(input.max != null && { max: (0, smithy_client_1.serializeFloat)(input.max) }),
2857
- ...(input.min != null && { min: (0, smithy_client_1.serializeFloat)(input.min) }),
2858
- ...(input.unit != null && { unit: input.unit }),
2859
- };
2860
- };
2861
- const se_attributesMap = (input, context) => {
2862
- return Object.entries(input).reduce((acc, [key, value]) => {
2863
- if (value === null) {
2864
- return acc;
2865
- }
2866
- acc[key] = value;
2867
- return acc;
2868
- }, {});
2869
- };
2870
- const se_BatchCreateVehicleRequest = (input, context) => {
2871
- return {
2872
- ...(input.vehicles != null && { vehicles: se_createVehicleRequestItems(input.vehicles, context) }),
2873
- };
2874
- };
2875
- const se_BatchUpdateVehicleRequest = (input, context) => {
2876
- return {
2877
- ...(input.vehicles != null && { vehicles: se_updateVehicleRequestItems(input.vehicles, context) }),
2878
- };
2879
- };
2880
- const se_Branch = (input, context) => {
2881
- return {
2882
- ...(input.description != null && { description: input.description }),
2883
- ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
2884
- };
2793
+ return (0, smithy_client_1.take)(input, {
2794
+ allowedValues: smithy_client_1._json,
2795
+ assignedValue: [],
2796
+ dataType: [],
2797
+ defaultValue: [],
2798
+ description: [],
2799
+ fullyQualifiedName: [],
2800
+ max: smithy_client_1.serializeFloat,
2801
+ min: smithy_client_1.serializeFloat,
2802
+ unit: [],
2803
+ });
2885
2804
  };
2886
2805
  const se_CanDbcDefinition = (input, context) => {
2887
- return {
2888
- ...(input.canDbcFiles != null && { canDbcFiles: se_NetworkFilesList(input.canDbcFiles, context) }),
2889
- ...(input.networkInterface != null && { networkInterface: input.networkInterface }),
2890
- ...(input.signalsMap != null && { signalsMap: se_ModelSignalsMap(input.signalsMap, context) }),
2891
- };
2892
- };
2893
- const se_CanInterface = (input, context) => {
2894
- return {
2895
- ...(input.name != null && { name: input.name }),
2896
- ...(input.protocolName != null && { protocolName: input.protocolName }),
2897
- ...(input.protocolVersion != null && { protocolVersion: input.protocolVersion }),
2898
- };
2806
+ return (0, smithy_client_1.take)(input, {
2807
+ canDbcFiles: (_) => se_NetworkFilesList(_, context),
2808
+ networkInterface: [],
2809
+ signalsMap: smithy_client_1._json,
2810
+ });
2899
2811
  };
2900
2812
  const se_CanSignal = (input, context) => {
2901
- return {
2902
- ...(input.factor != null && { factor: (0, smithy_client_1.serializeFloat)(input.factor) }),
2903
- ...(input.isBigEndian != null && { isBigEndian: input.isBigEndian }),
2904
- ...(input.isSigned != null && { isSigned: input.isSigned }),
2905
- ...(input.length != null && { length: input.length }),
2906
- ...(input.messageId != null && { messageId: input.messageId }),
2907
- ...(input.name != null && { name: input.name }),
2908
- ...(input.offset != null && { offset: (0, smithy_client_1.serializeFloat)(input.offset) }),
2909
- ...(input.startBit != null && { startBit: input.startBit }),
2910
- };
2911
- };
2912
- const se_CloudWatchLogDeliveryOptions = (input, context) => {
2913
- return {
2914
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2915
- ...(input.logType != null && { logType: input.logType }),
2916
- };
2917
- };
2918
- const se_CollectionScheme = (input, context) => {
2919
- return models_0_1.CollectionScheme.visit(input, {
2920
- conditionBasedCollectionScheme: (value) => ({
2921
- conditionBasedCollectionScheme: se_ConditionBasedCollectionScheme(value, context),
2922
- }),
2923
- timeBasedCollectionScheme: (value) => ({ timeBasedCollectionScheme: se_TimeBasedCollectionScheme(value, context) }),
2924
- _: (name, value) => ({ name: value }),
2813
+ return (0, smithy_client_1.take)(input, {
2814
+ factor: smithy_client_1.serializeFloat,
2815
+ isBigEndian: [],
2816
+ isSigned: [],
2817
+ length: [],
2818
+ messageId: [],
2819
+ name: [],
2820
+ offset: smithy_client_1.serializeFloat,
2821
+ startBit: [],
2925
2822
  });
2926
2823
  };
2927
- const se_ConditionBasedCollectionScheme = (input, context) => {
2928
- return {
2929
- ...(input.conditionLanguageVersion != null && { conditionLanguageVersion: input.conditionLanguageVersion }),
2930
- ...(input.expression != null && { expression: input.expression }),
2931
- ...(input.minimumTriggerIntervalMs != null && { minimumTriggerIntervalMs: input.minimumTriggerIntervalMs }),
2932
- ...(input.triggerMode != null && { triggerMode: input.triggerMode }),
2933
- };
2934
- };
2935
2824
  const se_CreateCampaignRequest = (input, context) => {
2936
- return {
2937
- ...(input.collectionScheme != null && { collectionScheme: se_CollectionScheme(input.collectionScheme, context) }),
2938
- ...(input.compression != null && { compression: input.compression }),
2939
- ...(input.dataExtraDimensions != null && {
2940
- dataExtraDimensions: se_DataExtraDimensionNodePathList(input.dataExtraDimensions, context),
2941
- }),
2942
- ...(input.description != null && { description: input.description }),
2943
- ...(input.diagnosticsMode != null && { diagnosticsMode: input.diagnosticsMode }),
2944
- ...(input.expiryTime != null && { expiryTime: Math.round(input.expiryTime.getTime() / 1000) }),
2945
- ...(input.name != null && { name: input.name }),
2946
- ...(input.postTriggerCollectionDuration != null && {
2947
- postTriggerCollectionDuration: input.postTriggerCollectionDuration,
2948
- }),
2949
- ...(input.priority != null && { priority: input.priority }),
2950
- ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
2951
- ...(input.signalsToCollect != null && {
2952
- signalsToCollect: se_SignalInformationList(input.signalsToCollect, context),
2953
- }),
2954
- ...(input.spoolingMode != null && { spoolingMode: input.spoolingMode }),
2955
- ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
2956
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2957
- ...(input.targetArn != null && { targetArn: input.targetArn }),
2958
- };
2959
- };
2960
- const se_CreateDecoderManifestRequest = (input, context) => {
2961
- return {
2962
- ...(input.description != null && { description: input.description }),
2963
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
2964
- ...(input.name != null && { name: input.name }),
2965
- ...(input.networkInterfaces != null && {
2966
- networkInterfaces: se_NetworkInterfaces(input.networkInterfaces, context),
2967
- }),
2968
- ...(input.signalDecoders != null && { signalDecoders: se_SignalDecoders(input.signalDecoders, context) }),
2969
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2970
- };
2971
- };
2972
- const se_CreateFleetRequest = (input, context) => {
2973
- return {
2974
- ...(input.description != null && { description: input.description }),
2975
- ...(input.fleetId != null && { fleetId: input.fleetId }),
2976
- ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
2977
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2978
- };
2979
- };
2980
- const se_CreateModelManifestRequest = (input, context) => {
2981
- return {
2982
- ...(input.description != null && { description: input.description }),
2983
- ...(input.name != null && { name: input.name }),
2984
- ...(input.nodes != null && { nodes: se_listOfStrings(input.nodes, context) }),
2985
- ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
2986
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2987
- };
2988
- };
2989
- const se_CreateSignalCatalogRequest = (input, context) => {
2990
- return {
2991
- ...(input.description != null && { description: input.description }),
2992
- ...(input.name != null && { name: input.name }),
2993
- ...(input.nodes != null && { nodes: se_Nodes(input.nodes, context) }),
2994
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2995
- };
2996
- };
2997
- const se_CreateVehicleRequest = (input, context) => {
2998
- return {
2999
- ...(input.associationBehavior != null && { associationBehavior: input.associationBehavior }),
3000
- ...(input.attributes != null && { attributes: se_attributesMap(input.attributes, context) }),
3001
- ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3002
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3003
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
3004
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3005
- };
3006
- };
3007
- const se_CreateVehicleRequestItem = (input, context) => {
3008
- return {
3009
- ...(input.associationBehavior != null && { associationBehavior: input.associationBehavior }),
3010
- ...(input.attributes != null && { attributes: se_attributesMap(input.attributes, context) }),
3011
- ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3012
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3013
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
3014
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3015
- };
3016
- };
3017
- const se_createVehicleRequestItems = (input, context) => {
3018
- return input
3019
- .filter((e) => e != null)
3020
- .map((entry) => {
3021
- return se_CreateVehicleRequestItem(entry, context);
3022
- });
3023
- };
3024
- const se_DataExtraDimensionNodePathList = (input, context) => {
3025
- return input
3026
- .filter((e) => e != null)
3027
- .map((entry) => {
3028
- return entry;
2825
+ return (0, smithy_client_1.take)(input, {
2826
+ collectionScheme: smithy_client_1._json,
2827
+ compression: [],
2828
+ dataExtraDimensions: smithy_client_1._json,
2829
+ description: [],
2830
+ diagnosticsMode: [],
2831
+ expiryTime: (_) => Math.round(_.getTime() / 1000),
2832
+ name: [],
2833
+ postTriggerCollectionDuration: [],
2834
+ priority: [],
2835
+ signalCatalogArn: [],
2836
+ signalsToCollect: smithy_client_1._json,
2837
+ spoolingMode: [],
2838
+ startTime: (_) => Math.round(_.getTime() / 1000),
2839
+ tags: smithy_client_1._json,
2840
+ targetArn: [],
3029
2841
  });
3030
2842
  };
3031
- const se_DeleteCampaignRequest = (input, context) => {
3032
- return {
3033
- ...(input.name != null && { name: input.name }),
3034
- };
3035
- };
3036
- const se_DeleteDecoderManifestRequest = (input, context) => {
3037
- return {
3038
- ...(input.name != null && { name: input.name }),
3039
- };
3040
- };
3041
- const se_DeleteFleetRequest = (input, context) => {
3042
- return {
3043
- ...(input.fleetId != null && { fleetId: input.fleetId }),
3044
- };
3045
- };
3046
- const se_DeleteModelManifestRequest = (input, context) => {
3047
- return {
3048
- ...(input.name != null && { name: input.name }),
3049
- };
3050
- };
3051
- const se_DeleteSignalCatalogRequest = (input, context) => {
3052
- return {
3053
- ...(input.name != null && { name: input.name }),
3054
- };
3055
- };
3056
- const se_DeleteVehicleRequest = (input, context) => {
3057
- return {
3058
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3059
- };
3060
- };
3061
- const se_DisassociateVehicleFleetRequest = (input, context) => {
3062
- return {
3063
- ...(input.fleetId != null && { fleetId: input.fleetId }),
3064
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3065
- };
3066
- };
3067
- const se_FormattedVss = (input, context) => {
3068
- return models_0_1.FormattedVss.visit(input, {
3069
- vssJson: (value) => ({ vssJson: value }),
3070
- _: (name, value) => ({ name: value }),
2843
+ const se_CreateDecoderManifestRequest = (input, context) => {
2844
+ return (0, smithy_client_1.take)(input, {
2845
+ description: [],
2846
+ modelManifestArn: [],
2847
+ name: [],
2848
+ networkInterfaces: smithy_client_1._json,
2849
+ signalDecoders: (_) => se_SignalDecoders(_, context),
2850
+ tags: smithy_client_1._json,
3071
2851
  });
3072
2852
  };
3073
- const se_Fqns = (input, context) => {
3074
- return input
3075
- .filter((e) => e != null)
3076
- .map((entry) => {
3077
- return entry;
2853
+ const se_CreateSignalCatalogRequest = (input, context) => {
2854
+ return (0, smithy_client_1.take)(input, {
2855
+ description: [],
2856
+ name: [],
2857
+ nodes: (_) => se_Nodes(_, context),
2858
+ tags: smithy_client_1._json,
3078
2859
  });
3079
2860
  };
3080
- const se_GetCampaignRequest = (input, context) => {
3081
- return {
3082
- ...(input.name != null && { name: input.name }),
3083
- };
3084
- };
3085
- const se_GetDecoderManifestRequest = (input, context) => {
3086
- return {
3087
- ...(input.name != null && { name: input.name }),
3088
- };
3089
- };
3090
- const se_GetFleetRequest = (input, context) => {
3091
- return {
3092
- ...(input.fleetId != null && { fleetId: input.fleetId }),
3093
- };
3094
- };
3095
- const se_GetLoggingOptionsRequest = (input, context) => {
3096
- return {};
3097
- };
3098
- const se_GetModelManifestRequest = (input, context) => {
3099
- return {
3100
- ...(input.name != null && { name: input.name }),
3101
- };
3102
- };
3103
- const se_GetRegisterAccountStatusRequest = (input, context) => {
3104
- return {};
3105
- };
3106
- const se_GetSignalCatalogRequest = (input, context) => {
3107
- return {
3108
- ...(input.name != null && { name: input.name }),
3109
- };
3110
- };
3111
- const se_GetVehicleRequest = (input, context) => {
3112
- return {
3113
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3114
- };
3115
- };
3116
- const se_GetVehicleStatusRequest = (input, context) => {
3117
- return {
3118
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3119
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3120
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3121
- };
3122
- };
3123
- const se_IamResources = (input, context) => {
3124
- return {
3125
- ...(input.roleArn != null && { roleArn: input.roleArn }),
3126
- };
3127
- };
3128
2861
  const se_ImportDecoderManifestRequest = (input, context) => {
3129
- return {
3130
- ...(input.name != null && { name: input.name }),
3131
- ...(input.networkFileDefinitions != null && {
3132
- networkFileDefinitions: se_NetworkFileDefinitions(input.networkFileDefinitions, context),
3133
- }),
3134
- };
3135
- };
3136
- const se_ImportSignalCatalogRequest = (input, context) => {
3137
- return {
3138
- ...(input.description != null && { description: input.description }),
3139
- ...(input.name != null && { name: input.name }),
3140
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
3141
- ...(input.vss != null && { vss: se_FormattedVss(input.vss, context) }),
3142
- };
3143
- };
3144
- const se_InterfaceIds = (input, context) => {
3145
- return input
3146
- .filter((e) => e != null)
3147
- .map((entry) => {
3148
- return entry;
2862
+ return (0, smithy_client_1.take)(input, {
2863
+ name: [],
2864
+ networkFileDefinitions: (_) => se_NetworkFileDefinitions(_, context),
3149
2865
  });
3150
2866
  };
3151
- const se_ListCampaignsRequest = (input, context) => {
3152
- return {
3153
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3154
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3155
- ...(input.status != null && { status: input.status }),
3156
- };
3157
- };
3158
- const se_ListDecoderManifestNetworkInterfacesRequest = (input, context) => {
3159
- return {
3160
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3161
- ...(input.name != null && { name: input.name }),
3162
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3163
- };
3164
- };
3165
- const se_ListDecoderManifestSignalsRequest = (input, context) => {
3166
- return {
3167
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3168
- ...(input.name != null && { name: input.name }),
3169
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3170
- };
3171
- };
3172
- const se_ListDecoderManifestsRequest = (input, context) => {
3173
- return {
3174
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3175
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3176
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3177
- };
3178
- };
3179
- const se_ListFleetsForVehicleRequest = (input, context) => {
3180
- return {
3181
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3182
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3183
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3184
- };
3185
- };
3186
- const se_ListFleetsRequest = (input, context) => {
3187
- return {
3188
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3189
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3190
- };
3191
- };
3192
- const se_ListModelManifestNodesRequest = (input, context) => {
3193
- return {
3194
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3195
- ...(input.name != null && { name: input.name }),
3196
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3197
- };
3198
- };
3199
- const se_ListModelManifestsRequest = (input, context) => {
3200
- return {
3201
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3202
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3203
- ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
3204
- };
3205
- };
3206
- const se_listOfStrings = (input, context) => {
3207
- return input
3208
- .filter((e) => e != null)
3209
- .map((entry) => {
3210
- return entry;
3211
- });
3212
- };
3213
- const se_ListSignalCatalogNodesRequest = (input, context) => {
3214
- return {
3215
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3216
- ...(input.name != null && { name: input.name }),
3217
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3218
- };
3219
- };
3220
- const se_ListSignalCatalogsRequest = (input, context) => {
3221
- return {
3222
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3223
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3224
- };
3225
- };
3226
- const se_ListTagsForResourceRequest = (input, context) => {
3227
- return {
3228
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3229
- };
3230
- };
3231
- const se_ListVehiclesInFleetRequest = (input, context) => {
3232
- return {
3233
- ...(input.fleetId != null && { fleetId: input.fleetId }),
3234
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3235
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3236
- };
3237
- };
3238
- const se_ListVehiclesRequest = (input, context) => {
3239
- return {
3240
- ...(input.maxResults != null && { maxResults: input.maxResults }),
3241
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3242
- ...(input.nextToken != null && { nextToken: input.nextToken }),
3243
- };
3244
- };
3245
- const se_ModelSignalsMap = (input, context) => {
3246
- return Object.entries(input).reduce((acc, [key, value]) => {
3247
- if (value === null) {
3248
- return acc;
3249
- }
3250
- acc[key] = value;
3251
- return acc;
3252
- }, {});
3253
- };
3254
2867
  const se_NetworkFileDefinition = (input, context) => {
3255
2868
  return models_0_1.NetworkFileDefinition.visit(input, {
3256
2869
  canDbc: (value) => ({ canDbc: se_CanDbcDefinition(value, context) }),
@@ -3271,37 +2884,15 @@ const se_NetworkFilesList = (input, context) => {
3271
2884
  return context.base64Encoder(entry);
3272
2885
  });
3273
2886
  };
3274
- const se_NetworkInterface = (input, context) => {
3275
- return {
3276
- ...(input.canInterface != null && { canInterface: se_CanInterface(input.canInterface, context) }),
3277
- ...(input.interfaceId != null && { interfaceId: input.interfaceId }),
3278
- ...(input.obdInterface != null && { obdInterface: se_ObdInterface(input.obdInterface, context) }),
3279
- ...(input.type != null && { type: input.type }),
3280
- };
3281
- };
3282
- const se_NetworkInterfaces = (input, context) => {
3283
- return input
3284
- .filter((e) => e != null)
3285
- .map((entry) => {
3286
- return se_NetworkInterface(entry, context);
3287
- });
3288
- };
3289
2887
  const se_Node = (input, context) => {
3290
2888
  return models_0_1.Node.visit(input, {
3291
2889
  actuator: (value) => ({ actuator: se_Actuator(value, context) }),
3292
2890
  attribute: (value) => ({ attribute: se_Attribute(value, context) }),
3293
- branch: (value) => ({ branch: se_Branch(value, context) }),
2891
+ branch: (value) => ({ branch: (0, smithy_client_1._json)(value) }),
3294
2892
  sensor: (value) => ({ sensor: se_Sensor(value, context) }),
3295
2893
  _: (name, value) => ({ name: value }),
3296
2894
  });
3297
2895
  };
3298
- const se_NodePaths = (input, context) => {
3299
- return input
3300
- .filter((e) => e != null)
3301
- .map((entry) => {
3302
- return entry;
3303
- });
3304
- };
3305
2896
  const se_Nodes = (input, context) => {
3306
2897
  return input
3307
2898
  .filter((e) => e != null)
@@ -3309,64 +2900,38 @@ const se_Nodes = (input, context) => {
3309
2900
  return se_Node(entry, context);
3310
2901
  });
3311
2902
  };
3312
- const se_ObdInterface = (input, context) => {
3313
- return {
3314
- ...(input.dtcRequestIntervalSeconds != null && { dtcRequestIntervalSeconds: input.dtcRequestIntervalSeconds }),
3315
- ...(input.hasTransmissionEcu != null && { hasTransmissionEcu: input.hasTransmissionEcu }),
3316
- ...(input.name != null && { name: input.name }),
3317
- ...(input.obdStandard != null && { obdStandard: input.obdStandard }),
3318
- ...(input.pidRequestIntervalSeconds != null && { pidRequestIntervalSeconds: input.pidRequestIntervalSeconds }),
3319
- ...(input.requestMessageId != null && { requestMessageId: input.requestMessageId }),
3320
- ...(input.useExtendedIds != null && { useExtendedIds: input.useExtendedIds }),
3321
- };
3322
- };
3323
2903
  const se_ObdSignal = (input, context) => {
3324
- return {
3325
- ...(input.bitMaskLength != null && { bitMaskLength: input.bitMaskLength }),
3326
- ...(input.bitRightShift != null && { bitRightShift: input.bitRightShift }),
3327
- ...(input.byteLength != null && { byteLength: input.byteLength }),
3328
- ...(input.offset != null && { offset: (0, smithy_client_1.serializeFloat)(input.offset) }),
3329
- ...(input.pid != null && { pid: input.pid }),
3330
- ...(input.pidResponseLength != null && { pidResponseLength: input.pidResponseLength }),
3331
- ...(input.scaling != null && { scaling: (0, smithy_client_1.serializeFloat)(input.scaling) }),
3332
- ...(input.serviceMode != null && { serviceMode: input.serviceMode }),
3333
- ...(input.startByte != null && { startByte: input.startByte }),
3334
- };
3335
- };
3336
- const se_PutLoggingOptionsRequest = (input, context) => {
3337
- return {
3338
- ...(input.cloudWatchLogDelivery != null && {
3339
- cloudWatchLogDelivery: se_CloudWatchLogDeliveryOptions(input.cloudWatchLogDelivery, context),
3340
- }),
3341
- };
3342
- };
3343
- const se_RegisterAccountRequest = (input, context) => {
3344
- return {
3345
- ...(input.iamResources != null && { iamResources: se_IamResources(input.iamResources, context) }),
3346
- ...(input.timestreamResources != null && {
3347
- timestreamResources: se_TimestreamResources(input.timestreamResources, context),
3348
- }),
3349
- };
2904
+ return (0, smithy_client_1.take)(input, {
2905
+ bitMaskLength: [],
2906
+ bitRightShift: [],
2907
+ byteLength: [],
2908
+ offset: smithy_client_1.serializeFloat,
2909
+ pid: [],
2910
+ pidResponseLength: [],
2911
+ scaling: smithy_client_1.serializeFloat,
2912
+ serviceMode: [],
2913
+ startByte: [],
2914
+ });
3350
2915
  };
3351
2916
  const se_Sensor = (input, context) => {
3352
- return {
3353
- ...(input.allowedValues != null && { allowedValues: se_listOfStrings(input.allowedValues, context) }),
3354
- ...(input.dataType != null && { dataType: input.dataType }),
3355
- ...(input.description != null && { description: input.description }),
3356
- ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
3357
- ...(input.max != null && { max: (0, smithy_client_1.serializeFloat)(input.max) }),
3358
- ...(input.min != null && { min: (0, smithy_client_1.serializeFloat)(input.min) }),
3359
- ...(input.unit != null && { unit: input.unit }),
3360
- };
2917
+ return (0, smithy_client_1.take)(input, {
2918
+ allowedValues: smithy_client_1._json,
2919
+ dataType: [],
2920
+ description: [],
2921
+ fullyQualifiedName: [],
2922
+ max: smithy_client_1.serializeFloat,
2923
+ min: smithy_client_1.serializeFloat,
2924
+ unit: [],
2925
+ });
3361
2926
  };
3362
2927
  const se_SignalDecoder = (input, context) => {
3363
- return {
3364
- ...(input.canSignal != null && { canSignal: se_CanSignal(input.canSignal, context) }),
3365
- ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
3366
- ...(input.interfaceId != null && { interfaceId: input.interfaceId }),
3367
- ...(input.obdSignal != null && { obdSignal: se_ObdSignal(input.obdSignal, context) }),
3368
- ...(input.type != null && { type: input.type }),
3369
- };
2928
+ return (0, smithy_client_1.take)(input, {
2929
+ canSignal: (_) => se_CanSignal(_, context),
2930
+ fullyQualifiedName: [],
2931
+ interfaceId: [],
2932
+ obdSignal: (_) => se_ObdSignal(_, context),
2933
+ type: [],
2934
+ });
3370
2935
  };
3371
2936
  const se_SignalDecoders = (input, context) => {
3372
2937
  return input
@@ -3375,848 +2940,286 @@ const se_SignalDecoders = (input, context) => {
3375
2940
  return se_SignalDecoder(entry, context);
3376
2941
  });
3377
2942
  };
3378
- const se_SignalInformation = (input, context) => {
3379
- return {
3380
- ...(input.maxSampleCount != null && { maxSampleCount: input.maxSampleCount }),
3381
- ...(input.minimumSamplingIntervalMs != null && { minimumSamplingIntervalMs: input.minimumSamplingIntervalMs }),
3382
- ...(input.name != null && { name: input.name }),
3383
- };
3384
- };
3385
- const se_SignalInformationList = (input, context) => {
3386
- return input
3387
- .filter((e) => e != null)
3388
- .map((entry) => {
3389
- return se_SignalInformation(entry, context);
3390
- });
3391
- };
3392
- const se_Tag = (input, context) => {
3393
- return {
3394
- ...(input.Key != null && { Key: input.Key }),
3395
- ...(input.Value != null && { Value: input.Value }),
3396
- };
3397
- };
3398
- const se_TagKeyList = (input, context) => {
3399
- return input
3400
- .filter((e) => e != null)
3401
- .map((entry) => {
3402
- return entry;
3403
- });
3404
- };
3405
- const se_TagList = (input, context) => {
3406
- return input
3407
- .filter((e) => e != null)
3408
- .map((entry) => {
3409
- return se_Tag(entry, context);
3410
- });
3411
- };
3412
- const se_TagResourceRequest = (input, context) => {
3413
- return {
3414
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3415
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3416
- };
3417
- };
3418
- const se_TimeBasedCollectionScheme = (input, context) => {
3419
- return {
3420
- ...(input.periodMs != null && { periodMs: input.periodMs }),
3421
- };
3422
- };
3423
- const se_TimestreamResources = (input, context) => {
3424
- return {
3425
- ...(input.timestreamDatabaseName != null && { timestreamDatabaseName: input.timestreamDatabaseName }),
3426
- ...(input.timestreamTableName != null && { timestreamTableName: input.timestreamTableName }),
3427
- };
3428
- };
3429
- const se_UntagResourceRequest = (input, context) => {
3430
- return {
3431
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3432
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3433
- };
3434
- };
3435
- const se_UpdateCampaignRequest = (input, context) => {
3436
- return {
3437
- ...(input.action != null && { action: input.action }),
3438
- ...(input.dataExtraDimensions != null && {
3439
- dataExtraDimensions: se_DataExtraDimensionNodePathList(input.dataExtraDimensions, context),
3440
- }),
3441
- ...(input.description != null && { description: input.description }),
3442
- ...(input.name != null && { name: input.name }),
3443
- };
3444
- };
3445
2943
  const se_UpdateDecoderManifestRequest = (input, context) => {
3446
- return {
3447
- ...(input.description != null && { description: input.description }),
3448
- ...(input.name != null && { name: input.name }),
3449
- ...(input.networkInterfacesToAdd != null && {
3450
- networkInterfacesToAdd: se_NetworkInterfaces(input.networkInterfacesToAdd, context),
3451
- }),
3452
- ...(input.networkInterfacesToRemove != null && {
3453
- networkInterfacesToRemove: se_InterfaceIds(input.networkInterfacesToRemove, context),
3454
- }),
3455
- ...(input.networkInterfacesToUpdate != null && {
3456
- networkInterfacesToUpdate: se_NetworkInterfaces(input.networkInterfacesToUpdate, context),
3457
- }),
3458
- ...(input.signalDecodersToAdd != null && {
3459
- signalDecodersToAdd: se_SignalDecoders(input.signalDecodersToAdd, context),
3460
- }),
3461
- ...(input.signalDecodersToRemove != null && {
3462
- signalDecodersToRemove: se_Fqns(input.signalDecodersToRemove, context),
3463
- }),
3464
- ...(input.signalDecodersToUpdate != null && {
3465
- signalDecodersToUpdate: se_SignalDecoders(input.signalDecodersToUpdate, context),
3466
- }),
3467
- ...(input.status != null && { status: input.status }),
3468
- };
3469
- };
3470
- const se_UpdateFleetRequest = (input, context) => {
3471
- return {
3472
- ...(input.description != null && { description: input.description }),
3473
- ...(input.fleetId != null && { fleetId: input.fleetId }),
3474
- };
3475
- };
3476
- const se_UpdateModelManifestRequest = (input, context) => {
3477
- return {
3478
- ...(input.description != null && { description: input.description }),
3479
- ...(input.name != null && { name: input.name }),
3480
- ...(input.nodesToAdd != null && { nodesToAdd: se_NodePaths(input.nodesToAdd, context) }),
3481
- ...(input.nodesToRemove != null && { nodesToRemove: se_NodePaths(input.nodesToRemove, context) }),
3482
- ...(input.status != null && { status: input.status }),
3483
- };
3484
- };
3485
- const se_UpdateSignalCatalogRequest = (input, context) => {
3486
- return {
3487
- ...(input.description != null && { description: input.description }),
3488
- ...(input.name != null && { name: input.name }),
3489
- ...(input.nodesToAdd != null && { nodesToAdd: se_Nodes(input.nodesToAdd, context) }),
3490
- ...(input.nodesToRemove != null && { nodesToRemove: se_NodePaths(input.nodesToRemove, context) }),
3491
- ...(input.nodesToUpdate != null && { nodesToUpdate: se_Nodes(input.nodesToUpdate, context) }),
3492
- };
3493
- };
3494
- const se_UpdateVehicleRequest = (input, context) => {
3495
- return {
3496
- ...(input.attributeUpdateMode != null && { attributeUpdateMode: input.attributeUpdateMode }),
3497
- ...(input.attributes != null && { attributes: se_attributesMap(input.attributes, context) }),
3498
- ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3499
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3500
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3501
- };
3502
- };
3503
- const se_UpdateVehicleRequestItem = (input, context) => {
3504
- return {
3505
- ...(input.attributeUpdateMode != null && { attributeUpdateMode: input.attributeUpdateMode }),
3506
- ...(input.attributes != null && { attributes: se_attributesMap(input.attributes, context) }),
3507
- ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3508
- ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3509
- ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3510
- };
3511
- };
3512
- const se_updateVehicleRequestItems = (input, context) => {
3513
- return input
3514
- .filter((e) => e != null)
3515
- .map((entry) => {
3516
- return se_UpdateVehicleRequestItem(entry, context);
3517
- });
3518
- };
3519
- const de_AccessDeniedException = (output, context) => {
3520
- return {
3521
- message: (0, smithy_client_1.expectString)(output.message),
3522
- };
3523
- };
3524
- const de_Actuator = (output, context) => {
3525
- return {
3526
- allowedValues: output.allowedValues != null ? de_listOfStrings(output.allowedValues, context) : undefined,
3527
- assignedValue: (0, smithy_client_1.expectString)(output.assignedValue),
3528
- dataType: (0, smithy_client_1.expectString)(output.dataType),
3529
- description: (0, smithy_client_1.expectString)(output.description),
3530
- fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
3531
- max: (0, smithy_client_1.limitedParseDouble)(output.max),
3532
- min: (0, smithy_client_1.limitedParseDouble)(output.min),
3533
- unit: (0, smithy_client_1.expectString)(output.unit),
3534
- };
3535
- };
3536
- const de_AssociateVehicleFleetResponse = (output, context) => {
3537
- return {};
3538
- };
3539
- const de_Attribute = (output, context) => {
3540
- return {
3541
- allowedValues: output.allowedValues != null ? de_listOfStrings(output.allowedValues, context) : undefined,
3542
- assignedValue: (0, smithy_client_1.expectString)(output.assignedValue),
3543
- dataType: (0, smithy_client_1.expectString)(output.dataType),
3544
- defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
3545
- description: (0, smithy_client_1.expectString)(output.description),
3546
- fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
3547
- max: (0, smithy_client_1.limitedParseDouble)(output.max),
3548
- min: (0, smithy_client_1.limitedParseDouble)(output.min),
3549
- unit: (0, smithy_client_1.expectString)(output.unit),
3550
- };
3551
- };
3552
- const de_attributesMap = (output, context) => {
3553
- return Object.entries(output).reduce((acc, [key, value]) => {
3554
- if (value === null) {
3555
- return acc;
3556
- }
3557
- acc[key] = (0, smithy_client_1.expectString)(value);
3558
- return acc;
3559
- }, {});
3560
- };
3561
- const de_BatchCreateVehicleResponse = (output, context) => {
3562
- return {
3563
- errors: output.errors != null ? de_createVehicleErrors(output.errors, context) : undefined,
3564
- vehicles: output.vehicles != null ? de_createVehicleResponses(output.vehicles, context) : undefined,
3565
- };
3566
- };
3567
- const de_BatchUpdateVehicleResponse = (output, context) => {
3568
- return {
3569
- errors: output.errors != null ? de_updateVehicleErrors(output.errors, context) : undefined,
3570
- vehicles: output.vehicles != null ? de_updateVehicleResponseItems(output.vehicles, context) : undefined,
3571
- };
3572
- };
3573
- const de_Branch = (output, context) => {
3574
- return {
3575
- description: (0, smithy_client_1.expectString)(output.description),
3576
- fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
3577
- };
3578
- };
3579
- const de_campaignSummaries = (output, context) => {
3580
- const retVal = (output || [])
3581
- .filter((e) => e != null)
3582
- .map((entry) => {
3583
- if (entry === null) {
3584
- return null;
3585
- }
3586
- return de_CampaignSummary(entry, context);
3587
- });
3588
- return retVal;
3589
- };
3590
- const de_CampaignSummary = (output, context) => {
3591
- return {
3592
- arn: (0, smithy_client_1.expectString)(output.arn),
3593
- creationTime: output.creationTime != null
3594
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3595
- : undefined,
3596
- description: (0, smithy_client_1.expectString)(output.description),
3597
- lastModificationTime: output.lastModificationTime != null
3598
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3599
- : undefined,
3600
- name: (0, smithy_client_1.expectString)(output.name),
3601
- signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
3602
- status: (0, smithy_client_1.expectString)(output.status),
3603
- targetArn: (0, smithy_client_1.expectString)(output.targetArn),
3604
- };
3605
- };
3606
- const de_CanInterface = (output, context) => {
3607
- return {
3608
- name: (0, smithy_client_1.expectString)(output.name),
3609
- protocolName: (0, smithy_client_1.expectString)(output.protocolName),
3610
- protocolVersion: (0, smithy_client_1.expectString)(output.protocolVersion),
3611
- };
3612
- };
3613
- const de_CanSignal = (output, context) => {
3614
- return {
3615
- factor: (0, smithy_client_1.limitedParseDouble)(output.factor),
3616
- isBigEndian: (0, smithy_client_1.expectBoolean)(output.isBigEndian),
3617
- isSigned: (0, smithy_client_1.expectBoolean)(output.isSigned),
3618
- length: (0, smithy_client_1.expectInt32)(output.length),
3619
- messageId: (0, smithy_client_1.expectInt32)(output.messageId),
3620
- name: (0, smithy_client_1.expectString)(output.name),
3621
- offset: (0, smithy_client_1.limitedParseDouble)(output.offset),
3622
- startBit: (0, smithy_client_1.expectInt32)(output.startBit),
3623
- };
3624
- };
3625
- const de_CloudWatchLogDeliveryOptions = (output, context) => {
3626
- return {
3627
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
3628
- logType: (0, smithy_client_1.expectString)(output.logType),
3629
- };
3630
- };
3631
- const de_CollectionScheme = (output, context) => {
3632
- if (output.conditionBasedCollectionScheme != null) {
3633
- return {
3634
- conditionBasedCollectionScheme: de_ConditionBasedCollectionScheme(output.conditionBasedCollectionScheme, context),
3635
- };
3636
- }
3637
- if (output.timeBasedCollectionScheme != null) {
3638
- return {
3639
- timeBasedCollectionScheme: de_TimeBasedCollectionScheme(output.timeBasedCollectionScheme, context),
3640
- };
3641
- }
3642
- return { $unknown: Object.entries(output)[0] };
3643
- };
3644
- const de_ConditionBasedCollectionScheme = (output, context) => {
3645
- return {
3646
- conditionLanguageVersion: (0, smithy_client_1.expectInt32)(output.conditionLanguageVersion),
3647
- expression: (0, smithy_client_1.expectString)(output.expression),
3648
- minimumTriggerIntervalMs: (0, smithy_client_1.expectLong)(output.minimumTriggerIntervalMs),
3649
- triggerMode: (0, smithy_client_1.expectString)(output.triggerMode),
3650
- };
3651
- };
3652
- const de_ConflictException = (output, context) => {
3653
- return {
3654
- message: (0, smithy_client_1.expectString)(output.message),
3655
- resource: (0, smithy_client_1.expectString)(output.resource),
3656
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3657
- };
3658
- };
3659
- const de_CreateCampaignResponse = (output, context) => {
3660
- return {
3661
- arn: (0, smithy_client_1.expectString)(output.arn),
3662
- name: (0, smithy_client_1.expectString)(output.name),
3663
- };
3664
- };
3665
- const de_CreateDecoderManifestResponse = (output, context) => {
3666
- return {
3667
- arn: (0, smithy_client_1.expectString)(output.arn),
3668
- name: (0, smithy_client_1.expectString)(output.name),
3669
- };
3670
- };
3671
- const de_CreateFleetResponse = (output, context) => {
3672
- return {
3673
- arn: (0, smithy_client_1.expectString)(output.arn),
3674
- id: (0, smithy_client_1.expectString)(output.id),
3675
- };
3676
- };
3677
- const de_CreateModelManifestResponse = (output, context) => {
3678
- return {
3679
- arn: (0, smithy_client_1.expectString)(output.arn),
3680
- name: (0, smithy_client_1.expectString)(output.name),
3681
- };
3682
- };
3683
- const de_CreateSignalCatalogResponse = (output, context) => {
3684
- return {
3685
- arn: (0, smithy_client_1.expectString)(output.arn),
3686
- name: (0, smithy_client_1.expectString)(output.name),
3687
- };
3688
- };
3689
- const de_CreateVehicleError = (output, context) => {
3690
- return {
3691
- code: (0, smithy_client_1.expectString)(output.code),
3692
- message: (0, smithy_client_1.expectString)(output.message),
3693
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3694
- };
3695
- };
3696
- const de_createVehicleErrors = (output, context) => {
3697
- const retVal = (output || [])
3698
- .filter((e) => e != null)
3699
- .map((entry) => {
3700
- if (entry === null) {
3701
- return null;
3702
- }
3703
- return de_CreateVehicleError(entry, context);
3704
- });
3705
- return retVal;
3706
- };
3707
- const de_CreateVehicleResponse = (output, context) => {
3708
- return {
3709
- arn: (0, smithy_client_1.expectString)(output.arn),
3710
- thingArn: (0, smithy_client_1.expectString)(output.thingArn),
3711
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3712
- };
3713
- };
3714
- const de_CreateVehicleResponseItem = (output, context) => {
3715
- return {
3716
- arn: (0, smithy_client_1.expectString)(output.arn),
3717
- thingArn: (0, smithy_client_1.expectString)(output.thingArn),
3718
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3719
- };
3720
- };
3721
- const de_createVehicleResponses = (output, context) => {
3722
- const retVal = (output || [])
3723
- .filter((e) => e != null)
3724
- .map((entry) => {
3725
- if (entry === null) {
3726
- return null;
3727
- }
3728
- return de_CreateVehicleResponseItem(entry, context);
3729
- });
3730
- return retVal;
3731
- };
3732
- const de_DataExtraDimensionNodePathList = (output, context) => {
3733
- const retVal = (output || [])
3734
- .filter((e) => e != null)
3735
- .map((entry) => {
3736
- if (entry === null) {
3737
- return null;
3738
- }
3739
- return (0, smithy_client_1.expectString)(entry);
3740
- });
3741
- return retVal;
3742
- };
3743
- const de_decoderManifestSummaries = (output, context) => {
3744
- const retVal = (output || [])
3745
- .filter((e) => e != null)
3746
- .map((entry) => {
3747
- if (entry === null) {
3748
- return null;
3749
- }
3750
- return de_DecoderManifestSummary(entry, context);
3751
- });
3752
- return retVal;
3753
- };
3754
- const de_DecoderManifestSummary = (output, context) => {
3755
- return {
3756
- arn: (0, smithy_client_1.expectString)(output.arn),
3757
- creationTime: output.creationTime != null
3758
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3759
- : undefined,
3760
- description: (0, smithy_client_1.expectString)(output.description),
3761
- lastModificationTime: output.lastModificationTime != null
3762
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3763
- : undefined,
3764
- modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
3765
- name: (0, smithy_client_1.expectString)(output.name),
3766
- status: (0, smithy_client_1.expectString)(output.status),
3767
- };
3768
- };
3769
- const de_DecoderManifestValidationException = (output, context) => {
3770
- return {
3771
- invalidNetworkInterfaces: output.invalidNetworkInterfaces != null
3772
- ? de_InvalidNetworkInterfaces(output.invalidNetworkInterfaces, context)
3773
- : undefined,
3774
- invalidSignals: output.invalidSignals != null ? de_InvalidSignalDecoders(output.invalidSignals, context) : undefined,
3775
- message: (0, smithy_client_1.expectString)(output.message),
3776
- };
3777
- };
3778
- const de_DeleteCampaignResponse = (output, context) => {
3779
- return {
3780
- arn: (0, smithy_client_1.expectString)(output.arn),
3781
- name: (0, smithy_client_1.expectString)(output.name),
3782
- };
3783
- };
3784
- const de_DeleteDecoderManifestResponse = (output, context) => {
3785
- return {
3786
- arn: (0, smithy_client_1.expectString)(output.arn),
3787
- name: (0, smithy_client_1.expectString)(output.name),
3788
- };
3789
- };
3790
- const de_DeleteFleetResponse = (output, context) => {
3791
- return {
3792
- arn: (0, smithy_client_1.expectString)(output.arn),
3793
- id: (0, smithy_client_1.expectString)(output.id),
3794
- };
3795
- };
3796
- const de_DeleteModelManifestResponse = (output, context) => {
3797
- return {
3798
- arn: (0, smithy_client_1.expectString)(output.arn),
3799
- name: (0, smithy_client_1.expectString)(output.name),
3800
- };
3801
- };
3802
- const de_DeleteSignalCatalogResponse = (output, context) => {
3803
- return {
3804
- arn: (0, smithy_client_1.expectString)(output.arn),
3805
- name: (0, smithy_client_1.expectString)(output.name),
3806
- };
3807
- };
3808
- const de_DeleteVehicleResponse = (output, context) => {
3809
- return {
3810
- arn: (0, smithy_client_1.expectString)(output.arn),
3811
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3812
- };
3813
- };
3814
- const de_DisassociateVehicleFleetResponse = (output, context) => {
3815
- return {};
3816
- };
3817
- const de_fleets = (output, context) => {
3818
- const retVal = (output || [])
3819
- .filter((e) => e != null)
3820
- .map((entry) => {
3821
- if (entry === null) {
3822
- return null;
3823
- }
3824
- return (0, smithy_client_1.expectString)(entry);
2944
+ return (0, smithy_client_1.take)(input, {
2945
+ description: [],
2946
+ name: [],
2947
+ networkInterfacesToAdd: smithy_client_1._json,
2948
+ networkInterfacesToRemove: smithy_client_1._json,
2949
+ networkInterfacesToUpdate: smithy_client_1._json,
2950
+ signalDecodersToAdd: (_) => se_SignalDecoders(_, context),
2951
+ signalDecodersToRemove: smithy_client_1._json,
2952
+ signalDecodersToUpdate: (_) => se_SignalDecoders(_, context),
2953
+ status: [],
3825
2954
  });
3826
- return retVal;
3827
- };
3828
- const de_fleetSummaries = (output, context) => {
3829
- const retVal = (output || [])
3830
- .filter((e) => e != null)
3831
- .map((entry) => {
3832
- if (entry === null) {
3833
- return null;
3834
- }
3835
- return de_FleetSummary(entry, context);
3836
- });
3837
- return retVal;
3838
- };
3839
- const de_FleetSummary = (output, context) => {
3840
- return {
3841
- arn: (0, smithy_client_1.expectString)(output.arn),
3842
- creationTime: output.creationTime != null
3843
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3844
- : undefined,
3845
- description: (0, smithy_client_1.expectString)(output.description),
3846
- id: (0, smithy_client_1.expectString)(output.id),
3847
- lastModificationTime: output.lastModificationTime != null
3848
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3849
- : undefined,
3850
- signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
3851
- };
3852
- };
3853
- const de_GetCampaignResponse = (output, context) => {
3854
- return {
3855
- arn: (0, smithy_client_1.expectString)(output.arn),
3856
- collectionScheme: output.collectionScheme != null
3857
- ? de_CollectionScheme((0, smithy_client_1.expectUnion)(output.collectionScheme), context)
3858
- : undefined,
3859
- compression: (0, smithy_client_1.expectString)(output.compression),
3860
- creationTime: output.creationTime != null
3861
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3862
- : undefined,
3863
- dataExtraDimensions: output.dataExtraDimensions != null
3864
- ? de_DataExtraDimensionNodePathList(output.dataExtraDimensions, context)
3865
- : undefined,
3866
- description: (0, smithy_client_1.expectString)(output.description),
3867
- diagnosticsMode: (0, smithy_client_1.expectString)(output.diagnosticsMode),
3868
- expiryTime: output.expiryTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiryTime))) : undefined,
3869
- lastModificationTime: output.lastModificationTime != null
3870
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3871
- : undefined,
3872
- name: (0, smithy_client_1.expectString)(output.name),
3873
- postTriggerCollectionDuration: (0, smithy_client_1.expectLong)(output.postTriggerCollectionDuration),
3874
- priority: (0, smithy_client_1.expectInt32)(output.priority),
3875
- signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
3876
- signalsToCollect: output.signalsToCollect != null ? de_SignalInformationList(output.signalsToCollect, context) : undefined,
3877
- spoolingMode: (0, smithy_client_1.expectString)(output.spoolingMode),
3878
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3879
- status: (0, smithy_client_1.expectString)(output.status),
3880
- targetArn: (0, smithy_client_1.expectString)(output.targetArn),
3881
- };
3882
- };
3883
- const de_GetDecoderManifestResponse = (output, context) => {
3884
- return {
3885
- arn: (0, smithy_client_1.expectString)(output.arn),
3886
- creationTime: output.creationTime != null
3887
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3888
- : undefined,
3889
- description: (0, smithy_client_1.expectString)(output.description),
3890
- lastModificationTime: output.lastModificationTime != null
3891
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3892
- : undefined,
3893
- modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
3894
- name: (0, smithy_client_1.expectString)(output.name),
3895
- status: (0, smithy_client_1.expectString)(output.status),
3896
- };
3897
2955
  };
3898
- const de_GetFleetResponse = (output, context) => {
3899
- return {
3900
- arn: (0, smithy_client_1.expectString)(output.arn),
3901
- creationTime: output.creationTime != null
3902
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3903
- : undefined,
3904
- description: (0, smithy_client_1.expectString)(output.description),
3905
- id: (0, smithy_client_1.expectString)(output.id),
3906
- lastModificationTime: output.lastModificationTime != null
3907
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3908
- : undefined,
3909
- signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
3910
- };
3911
- };
3912
- const de_GetLoggingOptionsResponse = (output, context) => {
3913
- return {
3914
- cloudWatchLogDelivery: output.cloudWatchLogDelivery != null
3915
- ? de_CloudWatchLogDeliveryOptions(output.cloudWatchLogDelivery, context)
3916
- : undefined,
3917
- };
3918
- };
3919
- const de_GetModelManifestResponse = (output, context) => {
3920
- return {
3921
- arn: (0, smithy_client_1.expectString)(output.arn),
3922
- creationTime: output.creationTime != null
3923
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3924
- : undefined,
3925
- description: (0, smithy_client_1.expectString)(output.description),
3926
- lastModificationTime: output.lastModificationTime != null
3927
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3928
- : undefined,
3929
- name: (0, smithy_client_1.expectString)(output.name),
3930
- signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
3931
- status: (0, smithy_client_1.expectString)(output.status),
3932
- };
3933
- };
3934
- const de_GetRegisterAccountStatusResponse = (output, context) => {
3935
- return {
3936
- accountStatus: (0, smithy_client_1.expectString)(output.accountStatus),
3937
- creationTime: output.creationTime != null
3938
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3939
- : undefined,
3940
- customerAccountId: (0, smithy_client_1.expectString)(output.customerAccountId),
3941
- iamRegistrationResponse: output.iamRegistrationResponse != null
3942
- ? de_IamRegistrationResponse(output.iamRegistrationResponse, context)
3943
- : undefined,
3944
- lastModificationTime: output.lastModificationTime != null
3945
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3946
- : undefined,
3947
- timestreamRegistrationResponse: output.timestreamRegistrationResponse != null
3948
- ? de_TimestreamRegistrationResponse(output.timestreamRegistrationResponse, context)
3949
- : undefined,
3950
- };
3951
- };
3952
- const de_GetSignalCatalogResponse = (output, context) => {
3953
- return {
3954
- arn: (0, smithy_client_1.expectString)(output.arn),
3955
- creationTime: output.creationTime != null
3956
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3957
- : undefined,
3958
- description: (0, smithy_client_1.expectString)(output.description),
3959
- lastModificationTime: output.lastModificationTime != null
3960
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3961
- : undefined,
3962
- name: (0, smithy_client_1.expectString)(output.name),
3963
- nodeCounts: output.nodeCounts != null ? de_NodeCounts(output.nodeCounts, context) : undefined,
3964
- };
3965
- };
3966
- const de_GetVehicleResponse = (output, context) => {
3967
- return {
3968
- arn: (0, smithy_client_1.expectString)(output.arn),
3969
- attributes: output.attributes != null ? de_attributesMap(output.attributes, context) : undefined,
3970
- creationTime: output.creationTime != null
3971
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3972
- : undefined,
3973
- decoderManifestArn: (0, smithy_client_1.expectString)(output.decoderManifestArn),
3974
- lastModificationTime: output.lastModificationTime != null
3975
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3976
- : undefined,
3977
- modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
3978
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3979
- };
3980
- };
3981
- const de_GetVehicleStatusResponse = (output, context) => {
3982
- return {
3983
- campaigns: output.campaigns != null ? de_VehicleStatusList(output.campaigns, context) : undefined,
3984
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3985
- };
3986
- };
3987
- const de_IamRegistrationResponse = (output, context) => {
3988
- return {
3989
- errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
3990
- registrationStatus: (0, smithy_client_1.expectString)(output.registrationStatus),
3991
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3992
- };
3993
- };
3994
- const de_IamResources = (output, context) => {
3995
- return {
3996
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3997
- };
3998
- };
3999
- const de_ImportDecoderManifestResponse = (output, context) => {
4000
- return {
4001
- arn: (0, smithy_client_1.expectString)(output.arn),
4002
- name: (0, smithy_client_1.expectString)(output.name),
4003
- };
4004
- };
4005
- const de_ImportSignalCatalogResponse = (output, context) => {
4006
- return {
4007
- arn: (0, smithy_client_1.expectString)(output.arn),
4008
- name: (0, smithy_client_1.expectString)(output.name),
4009
- };
2956
+ const se_UpdateSignalCatalogRequest = (input, context) => {
2957
+ return (0, smithy_client_1.take)(input, {
2958
+ description: [],
2959
+ name: [],
2960
+ nodesToAdd: (_) => se_Nodes(_, context),
2961
+ nodesToRemove: smithy_client_1._json,
2962
+ nodesToUpdate: (_) => se_Nodes(_, context),
2963
+ });
4010
2964
  };
4011
- const de_InternalServerException = (output, context) => {
4012
- return {
4013
- message: (0, smithy_client_1.expectString)(output.message),
4014
- retryAfterSeconds: (0, smithy_client_1.expectInt32)(output.retryAfterSeconds),
4015
- };
2965
+ const de_Actuator = (output, context) => {
2966
+ return (0, smithy_client_1.take)(output, {
2967
+ allowedValues: smithy_client_1._json,
2968
+ assignedValue: smithy_client_1.expectString,
2969
+ dataType: smithy_client_1.expectString,
2970
+ description: smithy_client_1.expectString,
2971
+ fullyQualifiedName: smithy_client_1.expectString,
2972
+ max: smithy_client_1.limitedParseDouble,
2973
+ min: smithy_client_1.limitedParseDouble,
2974
+ unit: smithy_client_1.expectString,
2975
+ });
4016
2976
  };
4017
- const de_InvalidNetworkInterface = (output, context) => {
4018
- return {
4019
- interfaceId: (0, smithy_client_1.expectString)(output.interfaceId),
4020
- reason: (0, smithy_client_1.expectString)(output.reason),
4021
- };
2977
+ const de_Attribute = (output, context) => {
2978
+ return (0, smithy_client_1.take)(output, {
2979
+ allowedValues: smithy_client_1._json,
2980
+ assignedValue: smithy_client_1.expectString,
2981
+ dataType: smithy_client_1.expectString,
2982
+ defaultValue: smithy_client_1.expectString,
2983
+ description: smithy_client_1.expectString,
2984
+ fullyQualifiedName: smithy_client_1.expectString,
2985
+ max: smithy_client_1.limitedParseDouble,
2986
+ min: smithy_client_1.limitedParseDouble,
2987
+ unit: smithy_client_1.expectString,
2988
+ });
4022
2989
  };
4023
- const de_InvalidNetworkInterfaces = (output, context) => {
2990
+ const de_campaignSummaries = (output, context) => {
4024
2991
  const retVal = (output || [])
4025
2992
  .filter((e) => e != null)
4026
2993
  .map((entry) => {
4027
- if (entry === null) {
4028
- return null;
4029
- }
4030
- return de_InvalidNetworkInterface(entry, context);
2994
+ return de_CampaignSummary(entry, context);
4031
2995
  });
4032
2996
  return retVal;
4033
2997
  };
4034
- const de_InvalidNodeException = (output, context) => {
4035
- return {
4036
- invalidNodes: output.invalidNodes != null ? de_Nodes(output.invalidNodes, context) : undefined,
4037
- message: (0, smithy_client_1.expectString)(output.message),
4038
- reason: (0, smithy_client_1.expectString)(output.reason),
4039
- };
4040
- };
4041
- const de_InvalidSignal = (output, context) => {
4042
- return {
4043
- name: (0, smithy_client_1.expectString)(output.name),
4044
- reason: (0, smithy_client_1.expectString)(output.reason),
4045
- };
2998
+ const de_CampaignSummary = (output, context) => {
2999
+ return (0, smithy_client_1.take)(output, {
3000
+ arn: smithy_client_1.expectString,
3001
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3002
+ description: smithy_client_1.expectString,
3003
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3004
+ name: smithy_client_1.expectString,
3005
+ signalCatalogArn: smithy_client_1.expectString,
3006
+ status: smithy_client_1.expectString,
3007
+ targetArn: smithy_client_1.expectString,
3008
+ });
4046
3009
  };
4047
- const de_InvalidSignalDecoder = (output, context) => {
4048
- return {
4049
- name: (0, smithy_client_1.expectString)(output.name),
4050
- reason: (0, smithy_client_1.expectString)(output.reason),
4051
- };
3010
+ const de_CanSignal = (output, context) => {
3011
+ return (0, smithy_client_1.take)(output, {
3012
+ factor: smithy_client_1.limitedParseDouble,
3013
+ isBigEndian: smithy_client_1.expectBoolean,
3014
+ isSigned: smithy_client_1.expectBoolean,
3015
+ length: smithy_client_1.expectInt32,
3016
+ messageId: smithy_client_1.expectInt32,
3017
+ name: smithy_client_1.expectString,
3018
+ offset: smithy_client_1.limitedParseDouble,
3019
+ startBit: smithy_client_1.expectInt32,
3020
+ });
4052
3021
  };
4053
- const de_InvalidSignalDecoders = (output, context) => {
3022
+ const de_decoderManifestSummaries = (output, context) => {
4054
3023
  const retVal = (output || [])
4055
3024
  .filter((e) => e != null)
4056
3025
  .map((entry) => {
4057
- if (entry === null) {
4058
- return null;
4059
- }
4060
- return de_InvalidSignalDecoder(entry, context);
3026
+ return de_DecoderManifestSummary(entry, context);
4061
3027
  });
4062
3028
  return retVal;
4063
3029
  };
4064
- const de_InvalidSignals = (output, context) => {
3030
+ const de_DecoderManifestSummary = (output, context) => {
3031
+ return (0, smithy_client_1.take)(output, {
3032
+ arn: smithy_client_1.expectString,
3033
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3034
+ description: smithy_client_1.expectString,
3035
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3036
+ modelManifestArn: smithy_client_1.expectString,
3037
+ name: smithy_client_1.expectString,
3038
+ status: smithy_client_1.expectString,
3039
+ });
3040
+ };
3041
+ const de_fleetSummaries = (output, context) => {
4065
3042
  const retVal = (output || [])
4066
3043
  .filter((e) => e != null)
4067
3044
  .map((entry) => {
4068
- if (entry === null) {
4069
- return null;
4070
- }
4071
- return de_InvalidSignal(entry, context);
3045
+ return de_FleetSummary(entry, context);
4072
3046
  });
4073
3047
  return retVal;
4074
3048
  };
4075
- const de_InvalidSignalsException = (output, context) => {
4076
- return {
4077
- invalidSignals: output.invalidSignals != null ? de_InvalidSignals(output.invalidSignals, context) : undefined,
4078
- message: (0, smithy_client_1.expectString)(output.message),
4079
- };
3049
+ const de_FleetSummary = (output, context) => {
3050
+ return (0, smithy_client_1.take)(output, {
3051
+ arn: smithy_client_1.expectString,
3052
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3053
+ description: smithy_client_1.expectString,
3054
+ id: smithy_client_1.expectString,
3055
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3056
+ signalCatalogArn: smithy_client_1.expectString,
3057
+ });
4080
3058
  };
4081
- const de_LimitExceededException = (output, context) => {
4082
- return {
4083
- message: (0, smithy_client_1.expectString)(output.message),
4084
- resourceId: (0, smithy_client_1.expectString)(output.resourceId),
4085
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
4086
- };
3059
+ const de_GetCampaignResponse = (output, context) => {
3060
+ return (0, smithy_client_1.take)(output, {
3061
+ arn: smithy_client_1.expectString,
3062
+ collectionScheme: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3063
+ compression: smithy_client_1.expectString,
3064
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3065
+ dataExtraDimensions: smithy_client_1._json,
3066
+ description: smithy_client_1.expectString,
3067
+ diagnosticsMode: smithy_client_1.expectString,
3068
+ expiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3069
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3070
+ name: smithy_client_1.expectString,
3071
+ postTriggerCollectionDuration: smithy_client_1.expectLong,
3072
+ priority: smithy_client_1.expectInt32,
3073
+ signalCatalogArn: smithy_client_1.expectString,
3074
+ signalsToCollect: smithy_client_1._json,
3075
+ spoolingMode: smithy_client_1.expectString,
3076
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3077
+ status: smithy_client_1.expectString,
3078
+ targetArn: smithy_client_1.expectString,
3079
+ });
4087
3080
  };
4088
- const de_ListCampaignsResponse = (output, context) => {
4089
- return {
4090
- campaignSummaries: output.campaignSummaries != null ? de_campaignSummaries(output.campaignSummaries, context) : undefined,
4091
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4092
- };
3081
+ const de_GetDecoderManifestResponse = (output, context) => {
3082
+ return (0, smithy_client_1.take)(output, {
3083
+ arn: smithy_client_1.expectString,
3084
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3085
+ description: smithy_client_1.expectString,
3086
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3087
+ modelManifestArn: smithy_client_1.expectString,
3088
+ name: smithy_client_1.expectString,
3089
+ status: smithy_client_1.expectString,
3090
+ });
4093
3091
  };
4094
- const de_ListDecoderManifestNetworkInterfacesResponse = (output, context) => {
4095
- return {
4096
- networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaces(output.networkInterfaces, context) : undefined,
4097
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4098
- };
3092
+ const de_GetFleetResponse = (output, context) => {
3093
+ return (0, smithy_client_1.take)(output, {
3094
+ arn: smithy_client_1.expectString,
3095
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3096
+ description: smithy_client_1.expectString,
3097
+ id: smithy_client_1.expectString,
3098
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3099
+ signalCatalogArn: smithy_client_1.expectString,
3100
+ });
3101
+ };
3102
+ const de_GetModelManifestResponse = (output, context) => {
3103
+ return (0, smithy_client_1.take)(output, {
3104
+ arn: smithy_client_1.expectString,
3105
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3106
+ description: smithy_client_1.expectString,
3107
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3108
+ name: smithy_client_1.expectString,
3109
+ signalCatalogArn: smithy_client_1.expectString,
3110
+ status: smithy_client_1.expectString,
3111
+ });
3112
+ };
3113
+ const de_GetRegisterAccountStatusResponse = (output, context) => {
3114
+ return (0, smithy_client_1.take)(output, {
3115
+ accountStatus: smithy_client_1.expectString,
3116
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3117
+ customerAccountId: smithy_client_1.expectString,
3118
+ iamRegistrationResponse: smithy_client_1._json,
3119
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3120
+ timestreamRegistrationResponse: smithy_client_1._json,
3121
+ });
3122
+ };
3123
+ const de_GetSignalCatalogResponse = (output, context) => {
3124
+ return (0, smithy_client_1.take)(output, {
3125
+ arn: smithy_client_1.expectString,
3126
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3127
+ description: smithy_client_1.expectString,
3128
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3129
+ name: smithy_client_1.expectString,
3130
+ nodeCounts: smithy_client_1._json,
3131
+ });
3132
+ };
3133
+ const de_GetVehicleResponse = (output, context) => {
3134
+ return (0, smithy_client_1.take)(output, {
3135
+ arn: smithy_client_1.expectString,
3136
+ attributes: smithy_client_1._json,
3137
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3138
+ decoderManifestArn: smithy_client_1.expectString,
3139
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3140
+ modelManifestArn: smithy_client_1.expectString,
3141
+ vehicleName: smithy_client_1.expectString,
3142
+ });
3143
+ };
3144
+ const de_InvalidNodeException = (output, context) => {
3145
+ return (0, smithy_client_1.take)(output, {
3146
+ invalidNodes: (_) => de_Nodes(_, context),
3147
+ message: smithy_client_1.expectString,
3148
+ reason: smithy_client_1.expectString,
3149
+ });
3150
+ };
3151
+ const de_ListCampaignsResponse = (output, context) => {
3152
+ return (0, smithy_client_1.take)(output, {
3153
+ campaignSummaries: (_) => de_campaignSummaries(_, context),
3154
+ nextToken: smithy_client_1.expectString,
3155
+ });
4099
3156
  };
4100
3157
  const de_ListDecoderManifestSignalsResponse = (output, context) => {
4101
- return {
4102
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4103
- signalDecoders: output.signalDecoders != null ? de_SignalDecoders(output.signalDecoders, context) : undefined,
4104
- };
3158
+ return (0, smithy_client_1.take)(output, {
3159
+ nextToken: smithy_client_1.expectString,
3160
+ signalDecoders: (_) => de_SignalDecoders(_, context),
3161
+ });
4105
3162
  };
4106
3163
  const de_ListDecoderManifestsResponse = (output, context) => {
4107
- return {
4108
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4109
- summaries: output.summaries != null ? de_decoderManifestSummaries(output.summaries, context) : undefined,
4110
- };
4111
- };
4112
- const de_ListFleetsForVehicleResponse = (output, context) => {
4113
- return {
4114
- fleets: output.fleets != null ? de_fleets(output.fleets, context) : undefined,
4115
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4116
- };
3164
+ return (0, smithy_client_1.take)(output, {
3165
+ nextToken: smithy_client_1.expectString,
3166
+ summaries: (_) => de_decoderManifestSummaries(_, context),
3167
+ });
4117
3168
  };
4118
3169
  const de_ListFleetsResponse = (output, context) => {
4119
- return {
4120
- fleetSummaries: output.fleetSummaries != null ? de_fleetSummaries(output.fleetSummaries, context) : undefined,
4121
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4122
- };
3170
+ return (0, smithy_client_1.take)(output, {
3171
+ fleetSummaries: (_) => de_fleetSummaries(_, context),
3172
+ nextToken: smithy_client_1.expectString,
3173
+ });
4123
3174
  };
4124
3175
  const de_ListModelManifestNodesResponse = (output, context) => {
4125
- return {
4126
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4127
- nodes: output.nodes != null ? de_Nodes(output.nodes, context) : undefined,
4128
- };
3176
+ return (0, smithy_client_1.take)(output, {
3177
+ nextToken: smithy_client_1.expectString,
3178
+ nodes: (_) => de_Nodes(_, context),
3179
+ });
4129
3180
  };
4130
3181
  const de_ListModelManifestsResponse = (output, context) => {
4131
- return {
4132
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4133
- summaries: output.summaries != null ? de_modelManifestSummaries(output.summaries, context) : undefined,
4134
- };
4135
- };
4136
- const de_listOfStrings = (output, context) => {
4137
- const retVal = (output || [])
4138
- .filter((e) => e != null)
4139
- .map((entry) => {
4140
- if (entry === null) {
4141
- return null;
4142
- }
4143
- return (0, smithy_client_1.expectString)(entry);
3182
+ return (0, smithy_client_1.take)(output, {
3183
+ nextToken: smithy_client_1.expectString,
3184
+ summaries: (_) => de_modelManifestSummaries(_, context),
4144
3185
  });
4145
- return retVal;
4146
3186
  };
4147
3187
  const de_ListSignalCatalogNodesResponse = (output, context) => {
4148
- return {
4149
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4150
- nodes: output.nodes != null ? de_Nodes(output.nodes, context) : undefined,
4151
- };
3188
+ return (0, smithy_client_1.take)(output, {
3189
+ nextToken: smithy_client_1.expectString,
3190
+ nodes: (_) => de_Nodes(_, context),
3191
+ });
4152
3192
  };
4153
3193
  const de_ListSignalCatalogsResponse = (output, context) => {
4154
- return {
4155
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4156
- summaries: output.summaries != null ? de_signalCatalogSummaries(output.summaries, context) : undefined,
4157
- };
4158
- };
4159
- const de_ListTagsForResourceResponse = (output, context) => {
4160
- return {
4161
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4162
- };
4163
- };
4164
- const de_ListVehiclesInFleetResponse = (output, context) => {
4165
- return {
4166
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4167
- vehicles: output.vehicles != null ? de_vehicles(output.vehicles, context) : undefined,
4168
- };
3194
+ return (0, smithy_client_1.take)(output, {
3195
+ nextToken: smithy_client_1.expectString,
3196
+ summaries: (_) => de_signalCatalogSummaries(_, context),
3197
+ });
4169
3198
  };
4170
3199
  const de_ListVehiclesResponse = (output, context) => {
4171
- return {
4172
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4173
- vehicleSummaries: output.vehicleSummaries != null ? de_vehicleSummaries(output.vehicleSummaries, context) : undefined,
4174
- };
3200
+ return (0, smithy_client_1.take)(output, {
3201
+ nextToken: smithy_client_1.expectString,
3202
+ vehicleSummaries: (_) => de_vehicleSummaries(_, context),
3203
+ });
4175
3204
  };
4176
3205
  const de_modelManifestSummaries = (output, context) => {
4177
3206
  const retVal = (output || [])
4178
3207
  .filter((e) => e != null)
4179
3208
  .map((entry) => {
4180
- if (entry === null) {
4181
- return null;
4182
- }
4183
3209
  return de_ModelManifestSummary(entry, context);
4184
3210
  });
4185
3211
  return retVal;
4186
3212
  };
4187
3213
  const de_ModelManifestSummary = (output, context) => {
4188
- return {
4189
- arn: (0, smithy_client_1.expectString)(output.arn),
4190
- creationTime: output.creationTime != null
4191
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4192
- : undefined,
4193
- description: (0, smithy_client_1.expectString)(output.description),
4194
- lastModificationTime: output.lastModificationTime != null
4195
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4196
- : undefined,
4197
- name: (0, smithy_client_1.expectString)(output.name),
4198
- signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
4199
- status: (0, smithy_client_1.expectString)(output.status),
4200
- };
4201
- };
4202
- const de_NetworkInterface = (output, context) => {
4203
- return {
4204
- canInterface: output.canInterface != null ? de_CanInterface(output.canInterface, context) : undefined,
4205
- interfaceId: (0, smithy_client_1.expectString)(output.interfaceId),
4206
- obdInterface: output.obdInterface != null ? de_ObdInterface(output.obdInterface, context) : undefined,
4207
- type: (0, smithy_client_1.expectString)(output.type),
4208
- };
4209
- };
4210
- const de_NetworkInterfaces = (output, context) => {
4211
- const retVal = (output || [])
4212
- .filter((e) => e != null)
4213
- .map((entry) => {
4214
- if (entry === null) {
4215
- return null;
4216
- }
4217
- return de_NetworkInterface(entry, context);
3214
+ return (0, smithy_client_1.take)(output, {
3215
+ arn: smithy_client_1.expectString,
3216
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3217
+ description: smithy_client_1.expectString,
3218
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3219
+ name: smithy_client_1.expectString,
3220
+ signalCatalogArn: smithy_client_1.expectString,
3221
+ status: smithy_client_1.expectString,
4218
3222
  });
4219
- return retVal;
4220
3223
  };
4221
3224
  const de_Node = (output, context) => {
4222
3225
  if (output.actuator != null) {
@@ -4231,7 +3234,7 @@ const de_Node = (output, context) => {
4231
3234
  }
4232
3235
  if (output.branch != null) {
4233
3236
  return {
4234
- branch: de_Branch(output.branch, context),
3237
+ branch: (0, smithy_client_1._json)(output.branch),
4235
3238
  };
4236
3239
  }
4237
3240
  if (output.sensor != null) {
@@ -4241,346 +3244,97 @@ const de_Node = (output, context) => {
4241
3244
  }
4242
3245
  return { $unknown: Object.entries(output)[0] };
4243
3246
  };
4244
- const de_NodeCounts = (output, context) => {
4245
- return {
4246
- totalActuators: (0, smithy_client_1.expectInt32)(output.totalActuators),
4247
- totalAttributes: (0, smithy_client_1.expectInt32)(output.totalAttributes),
4248
- totalBranches: (0, smithy_client_1.expectInt32)(output.totalBranches),
4249
- totalNodes: (0, smithy_client_1.expectInt32)(output.totalNodes),
4250
- totalSensors: (0, smithy_client_1.expectInt32)(output.totalSensors),
4251
- };
4252
- };
4253
3247
  const de_Nodes = (output, context) => {
4254
3248
  const retVal = (output || [])
4255
3249
  .filter((e) => e != null)
4256
3250
  .map((entry) => {
4257
- if (entry === null) {
4258
- return null;
4259
- }
4260
3251
  return de_Node((0, smithy_client_1.expectUnion)(entry), context);
4261
3252
  });
4262
3253
  return retVal;
4263
3254
  };
4264
- const de_ObdInterface = (output, context) => {
4265
- return {
4266
- dtcRequestIntervalSeconds: (0, smithy_client_1.expectInt32)(output.dtcRequestIntervalSeconds),
4267
- hasTransmissionEcu: (0, smithy_client_1.expectBoolean)(output.hasTransmissionEcu),
4268
- name: (0, smithy_client_1.expectString)(output.name),
4269
- obdStandard: (0, smithy_client_1.expectString)(output.obdStandard),
4270
- pidRequestIntervalSeconds: (0, smithy_client_1.expectInt32)(output.pidRequestIntervalSeconds),
4271
- requestMessageId: (0, smithy_client_1.expectInt32)(output.requestMessageId),
4272
- useExtendedIds: (0, smithy_client_1.expectBoolean)(output.useExtendedIds),
4273
- };
4274
- };
4275
3255
  const de_ObdSignal = (output, context) => {
4276
- return {
4277
- bitMaskLength: (0, smithy_client_1.expectInt32)(output.bitMaskLength),
4278
- bitRightShift: (0, smithy_client_1.expectInt32)(output.bitRightShift),
4279
- byteLength: (0, smithy_client_1.expectInt32)(output.byteLength),
4280
- offset: (0, smithy_client_1.limitedParseDouble)(output.offset),
4281
- pid: (0, smithy_client_1.expectInt32)(output.pid),
4282
- pidResponseLength: (0, smithy_client_1.expectInt32)(output.pidResponseLength),
4283
- scaling: (0, smithy_client_1.limitedParseDouble)(output.scaling),
4284
- serviceMode: (0, smithy_client_1.expectInt32)(output.serviceMode),
4285
- startByte: (0, smithy_client_1.expectInt32)(output.startByte),
4286
- };
4287
- };
4288
- const de_PutLoggingOptionsResponse = (output, context) => {
4289
- return {};
3256
+ return (0, smithy_client_1.take)(output, {
3257
+ bitMaskLength: smithy_client_1.expectInt32,
3258
+ bitRightShift: smithy_client_1.expectInt32,
3259
+ byteLength: smithy_client_1.expectInt32,
3260
+ offset: smithy_client_1.limitedParseDouble,
3261
+ pid: smithy_client_1.expectInt32,
3262
+ pidResponseLength: smithy_client_1.expectInt32,
3263
+ scaling: smithy_client_1.limitedParseDouble,
3264
+ serviceMode: smithy_client_1.expectInt32,
3265
+ startByte: smithy_client_1.expectInt32,
3266
+ });
4290
3267
  };
4291
3268
  const de_RegisterAccountResponse = (output, context) => {
4292
- return {
4293
- creationTime: output.creationTime != null
4294
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4295
- : undefined,
4296
- iamResources: output.iamResources != null ? de_IamResources(output.iamResources, context) : undefined,
4297
- lastModificationTime: output.lastModificationTime != null
4298
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4299
- : undefined,
4300
- registerAccountStatus: (0, smithy_client_1.expectString)(output.registerAccountStatus),
4301
- timestreamResources: output.timestreamResources != null ? de_TimestreamResources(output.timestreamResources, context) : undefined,
4302
- };
4303
- };
4304
- const de_ResourceNotFoundException = (output, context) => {
4305
- return {
4306
- message: (0, smithy_client_1.expectString)(output.message),
4307
- resourceId: (0, smithy_client_1.expectString)(output.resourceId),
4308
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
4309
- };
3269
+ return (0, smithy_client_1.take)(output, {
3270
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3271
+ iamResources: smithy_client_1._json,
3272
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3273
+ registerAccountStatus: smithy_client_1.expectString,
3274
+ timestreamResources: smithy_client_1._json,
3275
+ });
4310
3276
  };
4311
3277
  const de_Sensor = (output, context) => {
4312
- return {
4313
- allowedValues: output.allowedValues != null ? de_listOfStrings(output.allowedValues, context) : undefined,
4314
- dataType: (0, smithy_client_1.expectString)(output.dataType),
4315
- description: (0, smithy_client_1.expectString)(output.description),
4316
- fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
4317
- max: (0, smithy_client_1.limitedParseDouble)(output.max),
4318
- min: (0, smithy_client_1.limitedParseDouble)(output.min),
4319
- unit: (0, smithy_client_1.expectString)(output.unit),
4320
- };
3278
+ return (0, smithy_client_1.take)(output, {
3279
+ allowedValues: smithy_client_1._json,
3280
+ dataType: smithy_client_1.expectString,
3281
+ description: smithy_client_1.expectString,
3282
+ fullyQualifiedName: smithy_client_1.expectString,
3283
+ max: smithy_client_1.limitedParseDouble,
3284
+ min: smithy_client_1.limitedParseDouble,
3285
+ unit: smithy_client_1.expectString,
3286
+ });
4321
3287
  };
4322
3288
  const de_signalCatalogSummaries = (output, context) => {
4323
3289
  const retVal = (output || [])
4324
3290
  .filter((e) => e != null)
4325
3291
  .map((entry) => {
4326
- if (entry === null) {
4327
- return null;
4328
- }
4329
3292
  return de_SignalCatalogSummary(entry, context);
4330
3293
  });
4331
3294
  return retVal;
4332
3295
  };
4333
3296
  const de_SignalCatalogSummary = (output, context) => {
4334
- return {
4335
- arn: (0, smithy_client_1.expectString)(output.arn),
4336
- creationTime: output.creationTime != null
4337
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4338
- : undefined,
4339
- lastModificationTime: output.lastModificationTime != null
4340
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4341
- : undefined,
4342
- name: (0, smithy_client_1.expectString)(output.name),
4343
- };
3297
+ return (0, smithy_client_1.take)(output, {
3298
+ arn: smithy_client_1.expectString,
3299
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3300
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3301
+ name: smithy_client_1.expectString,
3302
+ });
4344
3303
  };
4345
3304
  const de_SignalDecoder = (output, context) => {
4346
- return {
4347
- canSignal: output.canSignal != null ? de_CanSignal(output.canSignal, context) : undefined,
4348
- fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
4349
- interfaceId: (0, smithy_client_1.expectString)(output.interfaceId),
4350
- obdSignal: output.obdSignal != null ? de_ObdSignal(output.obdSignal, context) : undefined,
4351
- type: (0, smithy_client_1.expectString)(output.type),
4352
- };
3305
+ return (0, smithy_client_1.take)(output, {
3306
+ canSignal: (_) => de_CanSignal(_, context),
3307
+ fullyQualifiedName: smithy_client_1.expectString,
3308
+ interfaceId: smithy_client_1.expectString,
3309
+ obdSignal: (_) => de_ObdSignal(_, context),
3310
+ type: smithy_client_1.expectString,
3311
+ });
4353
3312
  };
4354
3313
  const de_SignalDecoders = (output, context) => {
4355
3314
  const retVal = (output || [])
4356
3315
  .filter((e) => e != null)
4357
3316
  .map((entry) => {
4358
- if (entry === null) {
4359
- return null;
4360
- }
4361
3317
  return de_SignalDecoder(entry, context);
4362
3318
  });
4363
3319
  return retVal;
4364
3320
  };
4365
- const de_SignalInformation = (output, context) => {
4366
- return {
4367
- maxSampleCount: (0, smithy_client_1.expectLong)(output.maxSampleCount),
4368
- minimumSamplingIntervalMs: (0, smithy_client_1.expectLong)(output.minimumSamplingIntervalMs),
4369
- name: (0, smithy_client_1.expectString)(output.name),
4370
- };
4371
- };
4372
- const de_SignalInformationList = (output, context) => {
4373
- const retVal = (output || [])
4374
- .filter((e) => e != null)
4375
- .map((entry) => {
4376
- if (entry === null) {
4377
- return null;
4378
- }
4379
- return de_SignalInformation(entry, context);
4380
- });
4381
- return retVal;
4382
- };
4383
- const de_Tag = (output, context) => {
4384
- return {
4385
- Key: (0, smithy_client_1.expectString)(output.Key),
4386
- Value: (0, smithy_client_1.expectString)(output.Value),
4387
- };
4388
- };
4389
- const de_TagList = (output, context) => {
4390
- const retVal = (output || [])
4391
- .filter((e) => e != null)
4392
- .map((entry) => {
4393
- if (entry === null) {
4394
- return null;
4395
- }
4396
- return de_Tag(entry, context);
4397
- });
4398
- return retVal;
4399
- };
4400
- const de_TagResourceResponse = (output, context) => {
4401
- return {};
4402
- };
4403
- const de_ThrottlingException = (output, context) => {
4404
- return {
4405
- message: (0, smithy_client_1.expectString)(output.message),
4406
- quotaCode: (0, smithy_client_1.expectString)(output.quotaCode),
4407
- retryAfterSeconds: (0, smithy_client_1.expectInt32)(output.retryAfterSeconds),
4408
- serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
4409
- };
4410
- };
4411
- const de_TimeBasedCollectionScheme = (output, context) => {
4412
- return {
4413
- periodMs: (0, smithy_client_1.expectLong)(output.periodMs),
4414
- };
4415
- };
4416
- const de_TimestreamRegistrationResponse = (output, context) => {
4417
- return {
4418
- errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
4419
- registrationStatus: (0, smithy_client_1.expectString)(output.registrationStatus),
4420
- timestreamDatabaseArn: (0, smithy_client_1.expectString)(output.timestreamDatabaseArn),
4421
- timestreamDatabaseName: (0, smithy_client_1.expectString)(output.timestreamDatabaseName),
4422
- timestreamTableArn: (0, smithy_client_1.expectString)(output.timestreamTableArn),
4423
- timestreamTableName: (0, smithy_client_1.expectString)(output.timestreamTableName),
4424
- };
4425
- };
4426
- const de_TimestreamResources = (output, context) => {
4427
- return {
4428
- timestreamDatabaseName: (0, smithy_client_1.expectString)(output.timestreamDatabaseName),
4429
- timestreamTableName: (0, smithy_client_1.expectString)(output.timestreamTableName),
4430
- };
4431
- };
4432
- const de_UntagResourceResponse = (output, context) => {
4433
- return {};
4434
- };
4435
- const de_UpdateCampaignResponse = (output, context) => {
4436
- return {
4437
- arn: (0, smithy_client_1.expectString)(output.arn),
4438
- name: (0, smithy_client_1.expectString)(output.name),
4439
- status: (0, smithy_client_1.expectString)(output.status),
4440
- };
4441
- };
4442
- const de_UpdateDecoderManifestResponse = (output, context) => {
4443
- return {
4444
- arn: (0, smithy_client_1.expectString)(output.arn),
4445
- name: (0, smithy_client_1.expectString)(output.name),
4446
- };
4447
- };
4448
- const de_UpdateFleetResponse = (output, context) => {
4449
- return {
4450
- arn: (0, smithy_client_1.expectString)(output.arn),
4451
- id: (0, smithy_client_1.expectString)(output.id),
4452
- };
4453
- };
4454
- const de_UpdateModelManifestResponse = (output, context) => {
4455
- return {
4456
- arn: (0, smithy_client_1.expectString)(output.arn),
4457
- name: (0, smithy_client_1.expectString)(output.name),
4458
- };
4459
- };
4460
- const de_UpdateSignalCatalogResponse = (output, context) => {
4461
- return {
4462
- arn: (0, smithy_client_1.expectString)(output.arn),
4463
- name: (0, smithy_client_1.expectString)(output.name),
4464
- };
4465
- };
4466
- const de_UpdateVehicleError = (output, context) => {
4467
- return {
4468
- code: (0, smithy_client_1.expectInt32)(output.code),
4469
- message: (0, smithy_client_1.expectString)(output.message),
4470
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4471
- };
4472
- };
4473
- const de_updateVehicleErrors = (output, context) => {
4474
- const retVal = (output || [])
4475
- .filter((e) => e != null)
4476
- .map((entry) => {
4477
- if (entry === null) {
4478
- return null;
4479
- }
4480
- return de_UpdateVehicleError(entry, context);
4481
- });
4482
- return retVal;
4483
- };
4484
- const de_UpdateVehicleResponse = (output, context) => {
4485
- return {
4486
- arn: (0, smithy_client_1.expectString)(output.arn),
4487
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4488
- };
4489
- };
4490
- const de_UpdateVehicleResponseItem = (output, context) => {
4491
- return {
4492
- arn: (0, smithy_client_1.expectString)(output.arn),
4493
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4494
- };
4495
- };
4496
- const de_updateVehicleResponseItems = (output, context) => {
4497
- const retVal = (output || [])
4498
- .filter((e) => e != null)
4499
- .map((entry) => {
4500
- if (entry === null) {
4501
- return null;
4502
- }
4503
- return de_UpdateVehicleResponseItem(entry, context);
4504
- });
4505
- return retVal;
4506
- };
4507
- const de_ValidationException = (output, context) => {
4508
- return {
4509
- fieldList: output.fieldList != null ? de_ValidationExceptionFieldList(output.fieldList, context) : undefined,
4510
- message: (0, smithy_client_1.expectString)(output.message),
4511
- reason: (0, smithy_client_1.expectString)(output.reason),
4512
- };
4513
- };
4514
- const de_ValidationExceptionField = (output, context) => {
4515
- return {
4516
- message: (0, smithy_client_1.expectString)(output.message),
4517
- name: (0, smithy_client_1.expectString)(output.name),
4518
- };
4519
- };
4520
- const de_ValidationExceptionFieldList = (output, context) => {
4521
- const retVal = (output || [])
4522
- .filter((e) => e != null)
4523
- .map((entry) => {
4524
- if (entry === null) {
4525
- return null;
4526
- }
4527
- return de_ValidationExceptionField(entry, context);
4528
- });
4529
- return retVal;
4530
- };
4531
- const de_vehicles = (output, context) => {
4532
- const retVal = (output || [])
4533
- .filter((e) => e != null)
4534
- .map((entry) => {
4535
- if (entry === null) {
4536
- return null;
4537
- }
4538
- return (0, smithy_client_1.expectString)(entry);
4539
- });
4540
- return retVal;
4541
- };
4542
- const de_VehicleStatus = (output, context) => {
4543
- return {
4544
- campaignName: (0, smithy_client_1.expectString)(output.campaignName),
4545
- status: (0, smithy_client_1.expectString)(output.status),
4546
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4547
- };
4548
- };
4549
- const de_VehicleStatusList = (output, context) => {
4550
- const retVal = (output || [])
4551
- .filter((e) => e != null)
4552
- .map((entry) => {
4553
- if (entry === null) {
4554
- return null;
4555
- }
4556
- return de_VehicleStatus(entry, context);
4557
- });
4558
- return retVal;
4559
- };
4560
3321
  const de_vehicleSummaries = (output, context) => {
4561
3322
  const retVal = (output || [])
4562
3323
  .filter((e) => e != null)
4563
3324
  .map((entry) => {
4564
- if (entry === null) {
4565
- return null;
4566
- }
4567
3325
  return de_VehicleSummary(entry, context);
4568
3326
  });
4569
3327
  return retVal;
4570
3328
  };
4571
3329
  const de_VehicleSummary = (output, context) => {
4572
- return {
4573
- arn: (0, smithy_client_1.expectString)(output.arn),
4574
- creationTime: output.creationTime != null
4575
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4576
- : undefined,
4577
- decoderManifestArn: (0, smithy_client_1.expectString)(output.decoderManifestArn),
4578
- lastModificationTime: output.lastModificationTime != null
4579
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4580
- : undefined,
4581
- modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
4582
- vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4583
- };
3330
+ return (0, smithy_client_1.take)(output, {
3331
+ arn: smithy_client_1.expectString,
3332
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3333
+ decoderManifestArn: smithy_client_1.expectString,
3334
+ lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3335
+ modelManifestArn: smithy_client_1.expectString,
3336
+ vehicleName: smithy_client_1.expectString,
3337
+ });
4584
3338
  };
4585
3339
  const deserializeMetadata = (output) => ({
4586
3340
  httpStatusCode: output.statusCode,
@@ -4595,6 +3349,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4595
3349
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4596
3350
  };
4597
3351
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3352
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTFleetWiseServiceException_1.IoTFleetWiseServiceException);
4598
3353
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4599
3354
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4600
3355
  const contents = {