@aws-sdk/client-iotfleetwise 3.927.0 → 3.928.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.
Files changed (81) hide show
  1. package/dist-cjs/index.js +2589 -2539
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/IoTFleetWiseClient.js +2 -0
  4. package/dist-es/commands/AssociateVehicleFleetCommand.js +3 -9
  5. package/dist-es/commands/BatchCreateVehicleCommand.js +3 -9
  6. package/dist-es/commands/BatchUpdateVehicleCommand.js +3 -9
  7. package/dist-es/commands/CreateCampaignCommand.js +3 -10
  8. package/dist-es/commands/CreateDecoderManifestCommand.js +3 -9
  9. package/dist-es/commands/CreateFleetCommand.js +3 -9
  10. package/dist-es/commands/CreateModelManifestCommand.js +3 -9
  11. package/dist-es/commands/CreateSignalCatalogCommand.js +3 -9
  12. package/dist-es/commands/CreateStateTemplateCommand.js +3 -9
  13. package/dist-es/commands/CreateVehicleCommand.js +3 -9
  14. package/dist-es/commands/DeleteCampaignCommand.js +3 -9
  15. package/dist-es/commands/DeleteDecoderManifestCommand.js +3 -9
  16. package/dist-es/commands/DeleteFleetCommand.js +3 -9
  17. package/dist-es/commands/DeleteModelManifestCommand.js +3 -9
  18. package/dist-es/commands/DeleteSignalCatalogCommand.js +3 -9
  19. package/dist-es/commands/DeleteStateTemplateCommand.js +3 -9
  20. package/dist-es/commands/DeleteVehicleCommand.js +3 -9
  21. package/dist-es/commands/DisassociateVehicleFleetCommand.js +3 -9
  22. package/dist-es/commands/GetCampaignCommand.js +3 -10
  23. package/dist-es/commands/GetDecoderManifestCommand.js +3 -9
  24. package/dist-es/commands/GetEncryptionConfigurationCommand.js +3 -9
  25. package/dist-es/commands/GetFleetCommand.js +3 -9
  26. package/dist-es/commands/GetLoggingOptionsCommand.js +3 -9
  27. package/dist-es/commands/GetModelManifestCommand.js +3 -9
  28. package/dist-es/commands/GetRegisterAccountStatusCommand.js +3 -9
  29. package/dist-es/commands/GetSignalCatalogCommand.js +3 -9
  30. package/dist-es/commands/GetStateTemplateCommand.js +3 -9
  31. package/dist-es/commands/GetVehicleCommand.js +3 -9
  32. package/dist-es/commands/GetVehicleStatusCommand.js +3 -9
  33. package/dist-es/commands/ImportDecoderManifestCommand.js +3 -9
  34. package/dist-es/commands/ImportSignalCatalogCommand.js +3 -9
  35. package/dist-es/commands/ListCampaignsCommand.js +3 -9
  36. package/dist-es/commands/ListDecoderManifestNetworkInterfacesCommand.js +3 -9
  37. package/dist-es/commands/ListDecoderManifestSignalsCommand.js +3 -9
  38. package/dist-es/commands/ListDecoderManifestsCommand.js +3 -9
  39. package/dist-es/commands/ListFleetsCommand.js +3 -9
  40. package/dist-es/commands/ListFleetsForVehicleCommand.js +3 -9
  41. package/dist-es/commands/ListModelManifestNodesCommand.js +3 -9
  42. package/dist-es/commands/ListModelManifestsCommand.js +3 -9
  43. package/dist-es/commands/ListSignalCatalogNodesCommand.js +3 -9
  44. package/dist-es/commands/ListSignalCatalogsCommand.js +3 -9
  45. package/dist-es/commands/ListStateTemplatesCommand.js +3 -9
  46. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  47. package/dist-es/commands/ListVehiclesCommand.js +3 -9
  48. package/dist-es/commands/ListVehiclesInFleetCommand.js +3 -9
  49. package/dist-es/commands/PutEncryptionConfigurationCommand.js +3 -9
  50. package/dist-es/commands/PutLoggingOptionsCommand.js +3 -9
  51. package/dist-es/commands/RegisterAccountCommand.js +3 -9
  52. package/dist-es/commands/TagResourceCommand.js +3 -9
  53. package/dist-es/commands/UntagResourceCommand.js +3 -9
  54. package/dist-es/commands/UpdateCampaignCommand.js +3 -10
  55. package/dist-es/commands/UpdateDecoderManifestCommand.js +3 -9
  56. package/dist-es/commands/UpdateFleetCommand.js +3 -9
  57. package/dist-es/commands/UpdateModelManifestCommand.js +3 -9
  58. package/dist-es/commands/UpdateSignalCatalogCommand.js +3 -9
  59. package/dist-es/commands/UpdateStateTemplateCommand.js +3 -9
  60. package/dist-es/commands/UpdateVehicleCommand.js +3 -9
  61. package/dist-es/models/models_0.js +0 -71
  62. package/dist-es/runtimeConfig.shared.js +7 -0
  63. package/dist-es/schemas/schemas_0.js +2460 -0
  64. package/dist-types/IoTFleetWiseClient.d.ts +10 -1
  65. package/dist-types/models/models_0.d.ts +0 -44
  66. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  67. package/dist-types/runtimeConfig.d.ts +1 -0
  68. package/dist-types/runtimeConfig.native.d.ts +1 -0
  69. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  70. package/dist-types/schemas/schemas_0.d.ts +307 -0
  71. package/dist-types/ts3.4/IoTFleetWiseClient.d.ts +4 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +0 -33
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  76. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  77. package/dist-types/ts3.4/schemas/schemas_0.d.ts +313 -0
  78. package/package.json +5 -5
  79. package/dist-es/protocols/Aws_json1_0.js +0 -2033
  80. package/dist-types/protocols/Aws_json1_0.d.ts +0 -515
  81. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -689
@@ -1,2033 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { IoTFleetWiseServiceException as __BaseException } from "../models/IoTFleetWiseServiceException";
5
- import { AccessDeniedException, ConflictException, DecoderManifestValidationException, InternalServerException, InvalidNodeException, InvalidSignalsException, LimitExceededException, NetworkFileDefinition, Node, PrimitiveMessageDefinition, ResourceNotFoundException, StructuredMessage, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const se_AssociateVehicleFleetCommand = async (input, context) => {
7
- const headers = sharedHeaders("AssociateVehicleFleet");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_BatchCreateVehicleCommand = async (input, context) => {
13
- const headers = sharedHeaders("BatchCreateVehicle");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_BatchUpdateVehicleCommand = async (input, context) => {
19
- const headers = sharedHeaders("BatchUpdateVehicle");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_CreateCampaignCommand = async (input, context) => {
25
- const headers = sharedHeaders("CreateCampaign");
26
- let body;
27
- body = JSON.stringify(se_CreateCampaignRequest(input, context));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CreateDecoderManifestCommand = async (input, context) => {
31
- const headers = sharedHeaders("CreateDecoderManifest");
32
- let body;
33
- body = JSON.stringify(se_CreateDecoderManifestRequest(input, context));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_CreateFleetCommand = async (input, context) => {
37
- const headers = sharedHeaders("CreateFleet");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_CreateModelManifestCommand = async (input, context) => {
43
- const headers = sharedHeaders("CreateModelManifest");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CreateSignalCatalogCommand = async (input, context) => {
49
- const headers = sharedHeaders("CreateSignalCatalog");
50
- let body;
51
- body = JSON.stringify(se_CreateSignalCatalogRequest(input, context));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateStateTemplateCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateStateTemplate");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_CreateVehicleCommand = async (input, context) => {
61
- const headers = sharedHeaders("CreateVehicle");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_DeleteCampaignCommand = async (input, context) => {
67
- const headers = sharedHeaders("DeleteCampaign");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_DeleteDecoderManifestCommand = async (input, context) => {
73
- const headers = sharedHeaders("DeleteDecoderManifest");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_DeleteFleetCommand = async (input, context) => {
79
- const headers = sharedHeaders("DeleteFleet");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_DeleteModelManifestCommand = async (input, context) => {
85
- const headers = sharedHeaders("DeleteModelManifest");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_DeleteSignalCatalogCommand = async (input, context) => {
91
- const headers = sharedHeaders("DeleteSignalCatalog");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DeleteStateTemplateCommand = async (input, context) => {
97
- const headers = sharedHeaders("DeleteStateTemplate");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_DeleteVehicleCommand = async (input, context) => {
103
- const headers = sharedHeaders("DeleteVehicle");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_DisassociateVehicleFleetCommand = async (input, context) => {
109
- const headers = sharedHeaders("DisassociateVehicleFleet");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_GetCampaignCommand = async (input, context) => {
115
- const headers = sharedHeaders("GetCampaign");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_GetDecoderManifestCommand = async (input, context) => {
121
- const headers = sharedHeaders("GetDecoderManifest");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_GetEncryptionConfigurationCommand = async (input, context) => {
127
- const headers = sharedHeaders("GetEncryptionConfiguration");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_GetFleetCommand = async (input, context) => {
133
- const headers = sharedHeaders("GetFleet");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_GetLoggingOptionsCommand = async (input, context) => {
139
- const headers = sharedHeaders("GetLoggingOptions");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_GetModelManifestCommand = async (input, context) => {
145
- const headers = sharedHeaders("GetModelManifest");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_GetRegisterAccountStatusCommand = async (input, context) => {
151
- const headers = sharedHeaders("GetRegisterAccountStatus");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_GetSignalCatalogCommand = async (input, context) => {
157
- const headers = sharedHeaders("GetSignalCatalog");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_GetStateTemplateCommand = async (input, context) => {
163
- const headers = sharedHeaders("GetStateTemplate");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_GetVehicleCommand = async (input, context) => {
169
- const headers = sharedHeaders("GetVehicle");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_GetVehicleStatusCommand = async (input, context) => {
175
- const headers = sharedHeaders("GetVehicleStatus");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_ImportDecoderManifestCommand = async (input, context) => {
181
- const headers = sharedHeaders("ImportDecoderManifest");
182
- let body;
183
- body = JSON.stringify(se_ImportDecoderManifestRequest(input, context));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_ImportSignalCatalogCommand = async (input, context) => {
187
- const headers = sharedHeaders("ImportSignalCatalog");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_ListCampaignsCommand = async (input, context) => {
193
- const headers = sharedHeaders("ListCampaigns");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_ListDecoderManifestNetworkInterfacesCommand = async (input, context) => {
199
- const headers = sharedHeaders("ListDecoderManifestNetworkInterfaces");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_ListDecoderManifestsCommand = async (input, context) => {
205
- const headers = sharedHeaders("ListDecoderManifests");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_ListDecoderManifestSignalsCommand = async (input, context) => {
211
- const headers = sharedHeaders("ListDecoderManifestSignals");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_ListFleetsCommand = async (input, context) => {
217
- const headers = sharedHeaders("ListFleets");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_ListFleetsForVehicleCommand = async (input, context) => {
223
- const headers = sharedHeaders("ListFleetsForVehicle");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_ListModelManifestNodesCommand = async (input, context) => {
229
- const headers = sharedHeaders("ListModelManifestNodes");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_ListModelManifestsCommand = async (input, context) => {
235
- const headers = sharedHeaders("ListModelManifests");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_ListSignalCatalogNodesCommand = async (input, context) => {
241
- const headers = sharedHeaders("ListSignalCatalogNodes");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_ListSignalCatalogsCommand = async (input, context) => {
247
- const headers = sharedHeaders("ListSignalCatalogs");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_ListStateTemplatesCommand = async (input, context) => {
253
- const headers = sharedHeaders("ListStateTemplates");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_ListTagsForResourceCommand = async (input, context) => {
259
- const headers = sharedHeaders("ListTagsForResource");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_ListVehiclesCommand = async (input, context) => {
265
- const headers = sharedHeaders("ListVehicles");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_ListVehiclesInFleetCommand = async (input, context) => {
271
- const headers = sharedHeaders("ListVehiclesInFleet");
272
- let body;
273
- body = JSON.stringify(_json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_PutEncryptionConfigurationCommand = async (input, context) => {
277
- const headers = sharedHeaders("PutEncryptionConfiguration");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_PutLoggingOptionsCommand = async (input, context) => {
283
- const headers = sharedHeaders("PutLoggingOptions");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_RegisterAccountCommand = async (input, context) => {
289
- const headers = sharedHeaders("RegisterAccount");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_TagResourceCommand = async (input, context) => {
295
- const headers = sharedHeaders("TagResource");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_UntagResourceCommand = async (input, context) => {
301
- const headers = sharedHeaders("UntagResource");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_UpdateCampaignCommand = async (input, context) => {
307
- const headers = sharedHeaders("UpdateCampaign");
308
- let body;
309
- body = JSON.stringify(_json(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_UpdateDecoderManifestCommand = async (input, context) => {
313
- const headers = sharedHeaders("UpdateDecoderManifest");
314
- let body;
315
- body = JSON.stringify(se_UpdateDecoderManifestRequest(input, context));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_UpdateFleetCommand = async (input, context) => {
319
- const headers = sharedHeaders("UpdateFleet");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_UpdateModelManifestCommand = async (input, context) => {
325
- const headers = sharedHeaders("UpdateModelManifest");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_UpdateSignalCatalogCommand = async (input, context) => {
331
- const headers = sharedHeaders("UpdateSignalCatalog");
332
- let body;
333
- body = JSON.stringify(se_UpdateSignalCatalogRequest(input, context));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_UpdateStateTemplateCommand = async (input, context) => {
337
- const headers = sharedHeaders("UpdateStateTemplate");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_UpdateVehicleCommand = async (input, context) => {
343
- const headers = sharedHeaders("UpdateVehicle");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const de_AssociateVehicleFleetCommand = async (output, context) => {
349
- if (output.statusCode >= 300) {
350
- return de_CommandError(output, context);
351
- }
352
- const data = await parseBody(output.body, context);
353
- let contents = {};
354
- contents = _json(data);
355
- const response = {
356
- $metadata: deserializeMetadata(output),
357
- ...contents,
358
- };
359
- return response;
360
- };
361
- export const de_BatchCreateVehicleCommand = async (output, context) => {
362
- if (output.statusCode >= 300) {
363
- return de_CommandError(output, context);
364
- }
365
- const data = await parseBody(output.body, context);
366
- let contents = {};
367
- contents = _json(data);
368
- const response = {
369
- $metadata: deserializeMetadata(output),
370
- ...contents,
371
- };
372
- return response;
373
- };
374
- export const de_BatchUpdateVehicleCommand = async (output, context) => {
375
- if (output.statusCode >= 300) {
376
- return de_CommandError(output, context);
377
- }
378
- const data = await parseBody(output.body, context);
379
- let contents = {};
380
- contents = _json(data);
381
- const response = {
382
- $metadata: deserializeMetadata(output),
383
- ...contents,
384
- };
385
- return response;
386
- };
387
- export const de_CreateCampaignCommand = async (output, context) => {
388
- if (output.statusCode >= 300) {
389
- return de_CommandError(output, context);
390
- }
391
- const data = await parseBody(output.body, context);
392
- let contents = {};
393
- contents = _json(data);
394
- const response = {
395
- $metadata: deserializeMetadata(output),
396
- ...contents,
397
- };
398
- return response;
399
- };
400
- export const de_CreateDecoderManifestCommand = async (output, context) => {
401
- if (output.statusCode >= 300) {
402
- return de_CommandError(output, context);
403
- }
404
- const data = await parseBody(output.body, context);
405
- let contents = {};
406
- contents = _json(data);
407
- const response = {
408
- $metadata: deserializeMetadata(output),
409
- ...contents,
410
- };
411
- return response;
412
- };
413
- export const de_CreateFleetCommand = async (output, context) => {
414
- if (output.statusCode >= 300) {
415
- return de_CommandError(output, context);
416
- }
417
- const data = await parseBody(output.body, context);
418
- let contents = {};
419
- contents = _json(data);
420
- const response = {
421
- $metadata: deserializeMetadata(output),
422
- ...contents,
423
- };
424
- return response;
425
- };
426
- export const de_CreateModelManifestCommand = async (output, context) => {
427
- if (output.statusCode >= 300) {
428
- return de_CommandError(output, context);
429
- }
430
- const data = await parseBody(output.body, context);
431
- let contents = {};
432
- contents = _json(data);
433
- const response = {
434
- $metadata: deserializeMetadata(output),
435
- ...contents,
436
- };
437
- return response;
438
- };
439
- export const de_CreateSignalCatalogCommand = async (output, context) => {
440
- if (output.statusCode >= 300) {
441
- return de_CommandError(output, context);
442
- }
443
- const data = await parseBody(output.body, context);
444
- let contents = {};
445
- contents = _json(data);
446
- const response = {
447
- $metadata: deserializeMetadata(output),
448
- ...contents,
449
- };
450
- return response;
451
- };
452
- export const de_CreateStateTemplateCommand = async (output, context) => {
453
- if (output.statusCode >= 300) {
454
- return de_CommandError(output, context);
455
- }
456
- const data = await parseBody(output.body, context);
457
- let contents = {};
458
- contents = _json(data);
459
- const response = {
460
- $metadata: deserializeMetadata(output),
461
- ...contents,
462
- };
463
- return response;
464
- };
465
- export const de_CreateVehicleCommand = async (output, context) => {
466
- if (output.statusCode >= 300) {
467
- return de_CommandError(output, context);
468
- }
469
- const data = await parseBody(output.body, context);
470
- let contents = {};
471
- contents = _json(data);
472
- const response = {
473
- $metadata: deserializeMetadata(output),
474
- ...contents,
475
- };
476
- return response;
477
- };
478
- export const de_DeleteCampaignCommand = async (output, context) => {
479
- if (output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const data = await parseBody(output.body, context);
483
- let contents = {};
484
- contents = _json(data);
485
- const response = {
486
- $metadata: deserializeMetadata(output),
487
- ...contents,
488
- };
489
- return response;
490
- };
491
- export const de_DeleteDecoderManifestCommand = async (output, context) => {
492
- if (output.statusCode >= 300) {
493
- return de_CommandError(output, context);
494
- }
495
- const data = await parseBody(output.body, context);
496
- let contents = {};
497
- contents = _json(data);
498
- const response = {
499
- $metadata: deserializeMetadata(output),
500
- ...contents,
501
- };
502
- return response;
503
- };
504
- export const de_DeleteFleetCommand = async (output, context) => {
505
- if (output.statusCode >= 300) {
506
- return de_CommandError(output, context);
507
- }
508
- const data = await parseBody(output.body, context);
509
- let contents = {};
510
- contents = _json(data);
511
- const response = {
512
- $metadata: deserializeMetadata(output),
513
- ...contents,
514
- };
515
- return response;
516
- };
517
- export const de_DeleteModelManifestCommand = async (output, context) => {
518
- if (output.statusCode >= 300) {
519
- return de_CommandError(output, context);
520
- }
521
- const data = await parseBody(output.body, context);
522
- let contents = {};
523
- contents = _json(data);
524
- const response = {
525
- $metadata: deserializeMetadata(output),
526
- ...contents,
527
- };
528
- return response;
529
- };
530
- export const de_DeleteSignalCatalogCommand = async (output, context) => {
531
- if (output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const data = await parseBody(output.body, context);
535
- let contents = {};
536
- contents = _json(data);
537
- const response = {
538
- $metadata: deserializeMetadata(output),
539
- ...contents,
540
- };
541
- return response;
542
- };
543
- export const de_DeleteStateTemplateCommand = async (output, context) => {
544
- if (output.statusCode >= 300) {
545
- return de_CommandError(output, context);
546
- }
547
- const data = await parseBody(output.body, context);
548
- let contents = {};
549
- contents = _json(data);
550
- const response = {
551
- $metadata: deserializeMetadata(output),
552
- ...contents,
553
- };
554
- return response;
555
- };
556
- export const de_DeleteVehicleCommand = async (output, context) => {
557
- if (output.statusCode >= 300) {
558
- return de_CommandError(output, context);
559
- }
560
- const data = await parseBody(output.body, context);
561
- let contents = {};
562
- contents = _json(data);
563
- const response = {
564
- $metadata: deserializeMetadata(output),
565
- ...contents,
566
- };
567
- return response;
568
- };
569
- export const de_DisassociateVehicleFleetCommand = async (output, context) => {
570
- if (output.statusCode >= 300) {
571
- return de_CommandError(output, context);
572
- }
573
- const data = await parseBody(output.body, context);
574
- let contents = {};
575
- contents = _json(data);
576
- const response = {
577
- $metadata: deserializeMetadata(output),
578
- ...contents,
579
- };
580
- return response;
581
- };
582
- export const de_GetCampaignCommand = async (output, context) => {
583
- if (output.statusCode >= 300) {
584
- return de_CommandError(output, context);
585
- }
586
- const data = await parseBody(output.body, context);
587
- let contents = {};
588
- contents = de_GetCampaignResponse(data, context);
589
- const response = {
590
- $metadata: deserializeMetadata(output),
591
- ...contents,
592
- };
593
- return response;
594
- };
595
- export const de_GetDecoderManifestCommand = async (output, context) => {
596
- if (output.statusCode >= 300) {
597
- return de_CommandError(output, context);
598
- }
599
- const data = await parseBody(output.body, context);
600
- let contents = {};
601
- contents = de_GetDecoderManifestResponse(data, context);
602
- const response = {
603
- $metadata: deserializeMetadata(output),
604
- ...contents,
605
- };
606
- return response;
607
- };
608
- export const de_GetEncryptionConfigurationCommand = async (output, context) => {
609
- if (output.statusCode >= 300) {
610
- return de_CommandError(output, context);
611
- }
612
- const data = await parseBody(output.body, context);
613
- let contents = {};
614
- contents = de_GetEncryptionConfigurationResponse(data, context);
615
- const response = {
616
- $metadata: deserializeMetadata(output),
617
- ...contents,
618
- };
619
- return response;
620
- };
621
- export const de_GetFleetCommand = async (output, context) => {
622
- if (output.statusCode >= 300) {
623
- return de_CommandError(output, context);
624
- }
625
- const data = await parseBody(output.body, context);
626
- let contents = {};
627
- contents = de_GetFleetResponse(data, context);
628
- const response = {
629
- $metadata: deserializeMetadata(output),
630
- ...contents,
631
- };
632
- return response;
633
- };
634
- export const de_GetLoggingOptionsCommand = async (output, context) => {
635
- if (output.statusCode >= 300) {
636
- return de_CommandError(output, context);
637
- }
638
- const data = await parseBody(output.body, context);
639
- let contents = {};
640
- contents = _json(data);
641
- const response = {
642
- $metadata: deserializeMetadata(output),
643
- ...contents,
644
- };
645
- return response;
646
- };
647
- export const de_GetModelManifestCommand = async (output, context) => {
648
- if (output.statusCode >= 300) {
649
- return de_CommandError(output, context);
650
- }
651
- const data = await parseBody(output.body, context);
652
- let contents = {};
653
- contents = de_GetModelManifestResponse(data, context);
654
- const response = {
655
- $metadata: deserializeMetadata(output),
656
- ...contents,
657
- };
658
- return response;
659
- };
660
- export const de_GetRegisterAccountStatusCommand = async (output, context) => {
661
- if (output.statusCode >= 300) {
662
- return de_CommandError(output, context);
663
- }
664
- const data = await parseBody(output.body, context);
665
- let contents = {};
666
- contents = de_GetRegisterAccountStatusResponse(data, context);
667
- const response = {
668
- $metadata: deserializeMetadata(output),
669
- ...contents,
670
- };
671
- return response;
672
- };
673
- export const de_GetSignalCatalogCommand = async (output, context) => {
674
- if (output.statusCode >= 300) {
675
- return de_CommandError(output, context);
676
- }
677
- const data = await parseBody(output.body, context);
678
- let contents = {};
679
- contents = de_GetSignalCatalogResponse(data, context);
680
- const response = {
681
- $metadata: deserializeMetadata(output),
682
- ...contents,
683
- };
684
- return response;
685
- };
686
- export const de_GetStateTemplateCommand = async (output, context) => {
687
- if (output.statusCode >= 300) {
688
- return de_CommandError(output, context);
689
- }
690
- const data = await parseBody(output.body, context);
691
- let contents = {};
692
- contents = de_GetStateTemplateResponse(data, context);
693
- const response = {
694
- $metadata: deserializeMetadata(output),
695
- ...contents,
696
- };
697
- return response;
698
- };
699
- export const de_GetVehicleCommand = async (output, context) => {
700
- if (output.statusCode >= 300) {
701
- return de_CommandError(output, context);
702
- }
703
- const data = await parseBody(output.body, context);
704
- let contents = {};
705
- contents = de_GetVehicleResponse(data, context);
706
- const response = {
707
- $metadata: deserializeMetadata(output),
708
- ...contents,
709
- };
710
- return response;
711
- };
712
- export const de_GetVehicleStatusCommand = async (output, context) => {
713
- if (output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const data = await parseBody(output.body, context);
717
- let contents = {};
718
- contents = _json(data);
719
- const response = {
720
- $metadata: deserializeMetadata(output),
721
- ...contents,
722
- };
723
- return response;
724
- };
725
- export const de_ImportDecoderManifestCommand = async (output, context) => {
726
- if (output.statusCode >= 300) {
727
- return de_CommandError(output, context);
728
- }
729
- const data = await parseBody(output.body, context);
730
- let contents = {};
731
- contents = _json(data);
732
- const response = {
733
- $metadata: deserializeMetadata(output),
734
- ...contents,
735
- };
736
- return response;
737
- };
738
- export const de_ImportSignalCatalogCommand = async (output, context) => {
739
- if (output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const data = await parseBody(output.body, context);
743
- let contents = {};
744
- contents = _json(data);
745
- const response = {
746
- $metadata: deserializeMetadata(output),
747
- ...contents,
748
- };
749
- return response;
750
- };
751
- export const de_ListCampaignsCommand = async (output, context) => {
752
- if (output.statusCode >= 300) {
753
- return de_CommandError(output, context);
754
- }
755
- const data = await parseBody(output.body, context);
756
- let contents = {};
757
- contents = de_ListCampaignsResponse(data, context);
758
- const response = {
759
- $metadata: deserializeMetadata(output),
760
- ...contents,
761
- };
762
- return response;
763
- };
764
- export const de_ListDecoderManifestNetworkInterfacesCommand = async (output, context) => {
765
- if (output.statusCode >= 300) {
766
- return de_CommandError(output, context);
767
- }
768
- const data = await parseBody(output.body, context);
769
- let contents = {};
770
- contents = _json(data);
771
- const response = {
772
- $metadata: deserializeMetadata(output),
773
- ...contents,
774
- };
775
- return response;
776
- };
777
- export const de_ListDecoderManifestsCommand = async (output, context) => {
778
- if (output.statusCode >= 300) {
779
- return de_CommandError(output, context);
780
- }
781
- const data = await parseBody(output.body, context);
782
- let contents = {};
783
- contents = de_ListDecoderManifestsResponse(data, context);
784
- const response = {
785
- $metadata: deserializeMetadata(output),
786
- ...contents,
787
- };
788
- return response;
789
- };
790
- export const de_ListDecoderManifestSignalsCommand = async (output, context) => {
791
- if (output.statusCode >= 300) {
792
- return de_CommandError(output, context);
793
- }
794
- const data = await parseBody(output.body, context);
795
- let contents = {};
796
- contents = de_ListDecoderManifestSignalsResponse(data, context);
797
- const response = {
798
- $metadata: deserializeMetadata(output),
799
- ...contents,
800
- };
801
- return response;
802
- };
803
- export const de_ListFleetsCommand = async (output, context) => {
804
- if (output.statusCode >= 300) {
805
- return de_CommandError(output, context);
806
- }
807
- const data = await parseBody(output.body, context);
808
- let contents = {};
809
- contents = de_ListFleetsResponse(data, context);
810
- const response = {
811
- $metadata: deserializeMetadata(output),
812
- ...contents,
813
- };
814
- return response;
815
- };
816
- export const de_ListFleetsForVehicleCommand = async (output, context) => {
817
- if (output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const data = await parseBody(output.body, context);
821
- let contents = {};
822
- contents = _json(data);
823
- const response = {
824
- $metadata: deserializeMetadata(output),
825
- ...contents,
826
- };
827
- return response;
828
- };
829
- export const de_ListModelManifestNodesCommand = async (output, context) => {
830
- if (output.statusCode >= 300) {
831
- return de_CommandError(output, context);
832
- }
833
- const data = await parseBody(output.body, context);
834
- let contents = {};
835
- contents = de_ListModelManifestNodesResponse(data, context);
836
- const response = {
837
- $metadata: deserializeMetadata(output),
838
- ...contents,
839
- };
840
- return response;
841
- };
842
- export const de_ListModelManifestsCommand = async (output, context) => {
843
- if (output.statusCode >= 300) {
844
- return de_CommandError(output, context);
845
- }
846
- const data = await parseBody(output.body, context);
847
- let contents = {};
848
- contents = de_ListModelManifestsResponse(data, context);
849
- const response = {
850
- $metadata: deserializeMetadata(output),
851
- ...contents,
852
- };
853
- return response;
854
- };
855
- export const de_ListSignalCatalogNodesCommand = async (output, context) => {
856
- if (output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const data = await parseBody(output.body, context);
860
- let contents = {};
861
- contents = de_ListSignalCatalogNodesResponse(data, context);
862
- const response = {
863
- $metadata: deserializeMetadata(output),
864
- ...contents,
865
- };
866
- return response;
867
- };
868
- export const de_ListSignalCatalogsCommand = async (output, context) => {
869
- if (output.statusCode >= 300) {
870
- return de_CommandError(output, context);
871
- }
872
- const data = await parseBody(output.body, context);
873
- let contents = {};
874
- contents = de_ListSignalCatalogsResponse(data, context);
875
- const response = {
876
- $metadata: deserializeMetadata(output),
877
- ...contents,
878
- };
879
- return response;
880
- };
881
- export const de_ListStateTemplatesCommand = async (output, context) => {
882
- if (output.statusCode >= 300) {
883
- return de_CommandError(output, context);
884
- }
885
- const data = await parseBody(output.body, context);
886
- let contents = {};
887
- contents = de_ListStateTemplatesResponse(data, context);
888
- const response = {
889
- $metadata: deserializeMetadata(output),
890
- ...contents,
891
- };
892
- return response;
893
- };
894
- export const de_ListTagsForResourceCommand = async (output, context) => {
895
- if (output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const data = await parseBody(output.body, context);
899
- let contents = {};
900
- contents = _json(data);
901
- const response = {
902
- $metadata: deserializeMetadata(output),
903
- ...contents,
904
- };
905
- return response;
906
- };
907
- export const de_ListVehiclesCommand = async (output, context) => {
908
- if (output.statusCode >= 300) {
909
- return de_CommandError(output, context);
910
- }
911
- const data = await parseBody(output.body, context);
912
- let contents = {};
913
- contents = de_ListVehiclesResponse(data, context);
914
- const response = {
915
- $metadata: deserializeMetadata(output),
916
- ...contents,
917
- };
918
- return response;
919
- };
920
- export const de_ListVehiclesInFleetCommand = async (output, context) => {
921
- if (output.statusCode >= 300) {
922
- return de_CommandError(output, context);
923
- }
924
- const data = await parseBody(output.body, context);
925
- let contents = {};
926
- contents = _json(data);
927
- const response = {
928
- $metadata: deserializeMetadata(output),
929
- ...contents,
930
- };
931
- return response;
932
- };
933
- export const de_PutEncryptionConfigurationCommand = async (output, context) => {
934
- if (output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- const data = await parseBody(output.body, context);
938
- let contents = {};
939
- contents = _json(data);
940
- const response = {
941
- $metadata: deserializeMetadata(output),
942
- ...contents,
943
- };
944
- return response;
945
- };
946
- export const de_PutLoggingOptionsCommand = async (output, context) => {
947
- if (output.statusCode >= 300) {
948
- return de_CommandError(output, context);
949
- }
950
- const data = await parseBody(output.body, context);
951
- let contents = {};
952
- contents = _json(data);
953
- const response = {
954
- $metadata: deserializeMetadata(output),
955
- ...contents,
956
- };
957
- return response;
958
- };
959
- export const de_RegisterAccountCommand = async (output, context) => {
960
- if (output.statusCode >= 300) {
961
- return de_CommandError(output, context);
962
- }
963
- const data = await parseBody(output.body, context);
964
- let contents = {};
965
- contents = de_RegisterAccountResponse(data, context);
966
- const response = {
967
- $metadata: deserializeMetadata(output),
968
- ...contents,
969
- };
970
- return response;
971
- };
972
- export const de_TagResourceCommand = async (output, context) => {
973
- if (output.statusCode >= 300) {
974
- return de_CommandError(output, context);
975
- }
976
- const data = await parseBody(output.body, context);
977
- let contents = {};
978
- contents = _json(data);
979
- const response = {
980
- $metadata: deserializeMetadata(output),
981
- ...contents,
982
- };
983
- return response;
984
- };
985
- export const de_UntagResourceCommand = async (output, context) => {
986
- if (output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const data = await parseBody(output.body, context);
990
- let contents = {};
991
- contents = _json(data);
992
- const response = {
993
- $metadata: deserializeMetadata(output),
994
- ...contents,
995
- };
996
- return response;
997
- };
998
- export const de_UpdateCampaignCommand = async (output, context) => {
999
- if (output.statusCode >= 300) {
1000
- return de_CommandError(output, context);
1001
- }
1002
- const data = await parseBody(output.body, context);
1003
- let contents = {};
1004
- contents = _json(data);
1005
- const response = {
1006
- $metadata: deserializeMetadata(output),
1007
- ...contents,
1008
- };
1009
- return response;
1010
- };
1011
- export const de_UpdateDecoderManifestCommand = async (output, context) => {
1012
- if (output.statusCode >= 300) {
1013
- return de_CommandError(output, context);
1014
- }
1015
- const data = await parseBody(output.body, context);
1016
- let contents = {};
1017
- contents = _json(data);
1018
- const response = {
1019
- $metadata: deserializeMetadata(output),
1020
- ...contents,
1021
- };
1022
- return response;
1023
- };
1024
- export const de_UpdateFleetCommand = async (output, context) => {
1025
- if (output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const data = await parseBody(output.body, context);
1029
- let contents = {};
1030
- contents = _json(data);
1031
- const response = {
1032
- $metadata: deserializeMetadata(output),
1033
- ...contents,
1034
- };
1035
- return response;
1036
- };
1037
- export const de_UpdateModelManifestCommand = async (output, context) => {
1038
- if (output.statusCode >= 300) {
1039
- return de_CommandError(output, context);
1040
- }
1041
- const data = await parseBody(output.body, context);
1042
- let contents = {};
1043
- contents = _json(data);
1044
- const response = {
1045
- $metadata: deserializeMetadata(output),
1046
- ...contents,
1047
- };
1048
- return response;
1049
- };
1050
- export const de_UpdateSignalCatalogCommand = async (output, context) => {
1051
- if (output.statusCode >= 300) {
1052
- return de_CommandError(output, context);
1053
- }
1054
- const data = await parseBody(output.body, context);
1055
- let contents = {};
1056
- contents = _json(data);
1057
- const response = {
1058
- $metadata: deserializeMetadata(output),
1059
- ...contents,
1060
- };
1061
- return response;
1062
- };
1063
- export const de_UpdateStateTemplateCommand = async (output, context) => {
1064
- if (output.statusCode >= 300) {
1065
- return de_CommandError(output, context);
1066
- }
1067
- const data = await parseBody(output.body, context);
1068
- let contents = {};
1069
- contents = _json(data);
1070
- const response = {
1071
- $metadata: deserializeMetadata(output),
1072
- ...contents,
1073
- };
1074
- return response;
1075
- };
1076
- export const de_UpdateVehicleCommand = async (output, context) => {
1077
- if (output.statusCode >= 300) {
1078
- return de_CommandError(output, context);
1079
- }
1080
- const data = await parseBody(output.body, context);
1081
- let contents = {};
1082
- contents = _json(data);
1083
- const response = {
1084
- $metadata: deserializeMetadata(output),
1085
- ...contents,
1086
- };
1087
- return response;
1088
- };
1089
- const de_CommandError = async (output, context) => {
1090
- const parsedOutput = {
1091
- ...output,
1092
- body: await parseErrorBody(output.body, context),
1093
- };
1094
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1095
- switch (errorCode) {
1096
- case "AccessDeniedException":
1097
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1098
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1099
- case "InternalServerException":
1100
- case "com.amazonaws.iotfleetwise#InternalServerException":
1101
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1102
- case "LimitExceededException":
1103
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1104
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1105
- case "ResourceNotFoundException":
1106
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1107
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1108
- case "ThrottlingException":
1109
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1110
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1111
- case "ValidationException":
1112
- case "com.amazonaws.iotfleetwise#ValidationException":
1113
- throw await de_ValidationExceptionRes(parsedOutput, context);
1114
- case "ConflictException":
1115
- case "com.amazonaws.iotfleetwise#ConflictException":
1116
- throw await de_ConflictExceptionRes(parsedOutput, context);
1117
- case "DecoderManifestValidationException":
1118
- case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
1119
- throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
1120
- case "InvalidSignalsException":
1121
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
1122
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
1123
- case "InvalidNodeException":
1124
- case "com.amazonaws.iotfleetwise#InvalidNodeException":
1125
- throw await de_InvalidNodeExceptionRes(parsedOutput, context);
1126
- default:
1127
- const parsedBody = parsedOutput.body;
1128
- return throwDefaultError({
1129
- output,
1130
- parsedBody,
1131
- errorCode,
1132
- });
1133
- }
1134
- };
1135
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1136
- const body = parsedOutput.body;
1137
- const deserialized = _json(body);
1138
- const exception = new AccessDeniedException({
1139
- $metadata: deserializeMetadata(parsedOutput),
1140
- ...deserialized,
1141
- });
1142
- return __decorateServiceException(exception, body);
1143
- };
1144
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1145
- const body = parsedOutput.body;
1146
- const deserialized = _json(body);
1147
- const exception = new ConflictException({
1148
- $metadata: deserializeMetadata(parsedOutput),
1149
- ...deserialized,
1150
- });
1151
- return __decorateServiceException(exception, body);
1152
- };
1153
- const de_DecoderManifestValidationExceptionRes = async (parsedOutput, context) => {
1154
- const body = parsedOutput.body;
1155
- const deserialized = _json(body);
1156
- const exception = new DecoderManifestValidationException({
1157
- $metadata: deserializeMetadata(parsedOutput),
1158
- ...deserialized,
1159
- });
1160
- return __decorateServiceException(exception, body);
1161
- };
1162
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1163
- const body = parsedOutput.body;
1164
- const deserialized = _json(body);
1165
- const exception = new InternalServerException({
1166
- $metadata: deserializeMetadata(parsedOutput),
1167
- ...deserialized,
1168
- });
1169
- return __decorateServiceException(exception, body);
1170
- };
1171
- const de_InvalidNodeExceptionRes = async (parsedOutput, context) => {
1172
- const body = parsedOutput.body;
1173
- const deserialized = de_InvalidNodeException(body, context);
1174
- const exception = new InvalidNodeException({
1175
- $metadata: deserializeMetadata(parsedOutput),
1176
- ...deserialized,
1177
- });
1178
- return __decorateServiceException(exception, body);
1179
- };
1180
- const de_InvalidSignalsExceptionRes = async (parsedOutput, context) => {
1181
- const body = parsedOutput.body;
1182
- const deserialized = _json(body);
1183
- const exception = new InvalidSignalsException({
1184
- $metadata: deserializeMetadata(parsedOutput),
1185
- ...deserialized,
1186
- });
1187
- return __decorateServiceException(exception, body);
1188
- };
1189
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1190
- const body = parsedOutput.body;
1191
- const deserialized = _json(body);
1192
- const exception = new LimitExceededException({
1193
- $metadata: deserializeMetadata(parsedOutput),
1194
- ...deserialized,
1195
- });
1196
- return __decorateServiceException(exception, body);
1197
- };
1198
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1199
- const body = parsedOutput.body;
1200
- const deserialized = _json(body);
1201
- const exception = new ResourceNotFoundException({
1202
- $metadata: deserializeMetadata(parsedOutput),
1203
- ...deserialized,
1204
- });
1205
- return __decorateServiceException(exception, body);
1206
- };
1207
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1208
- const body = parsedOutput.body;
1209
- const deserialized = _json(body);
1210
- const exception = new ThrottlingException({
1211
- $metadata: deserializeMetadata(parsedOutput),
1212
- ...deserialized,
1213
- });
1214
- return __decorateServiceException(exception, body);
1215
- };
1216
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1217
- const body = parsedOutput.body;
1218
- const deserialized = _json(body);
1219
- const exception = new ValidationException({
1220
- $metadata: deserializeMetadata(parsedOutput),
1221
- ...deserialized,
1222
- });
1223
- return __decorateServiceException(exception, body);
1224
- };
1225
- const se_Actuator = (input, context) => {
1226
- return take(input, {
1227
- allowedValues: _json,
1228
- assignedValue: [],
1229
- comment: [],
1230
- dataType: [],
1231
- deprecationMessage: [],
1232
- description: [],
1233
- fullyQualifiedName: [],
1234
- max: __serializeFloat,
1235
- min: __serializeFloat,
1236
- structFullyQualifiedName: [],
1237
- unit: [],
1238
- });
1239
- };
1240
- const se_Attribute = (input, context) => {
1241
- return take(input, {
1242
- allowedValues: _json,
1243
- assignedValue: [],
1244
- comment: [],
1245
- dataType: [],
1246
- defaultValue: [],
1247
- deprecationMessage: [],
1248
- description: [],
1249
- fullyQualifiedName: [],
1250
- max: __serializeFloat,
1251
- min: __serializeFloat,
1252
- unit: [],
1253
- });
1254
- };
1255
- const se_CanDbcDefinition = (input, context) => {
1256
- return take(input, {
1257
- canDbcFiles: (_) => se_NetworkFilesList(_, context),
1258
- networkInterface: [],
1259
- signalsMap: _json,
1260
- });
1261
- };
1262
- const se_CanSignal = (input, context) => {
1263
- return take(input, {
1264
- factor: __serializeFloat,
1265
- isBigEndian: [],
1266
- isSigned: [],
1267
- length: [],
1268
- messageId: [],
1269
- name: [],
1270
- offset: __serializeFloat,
1271
- signalValueType: [],
1272
- startBit: [],
1273
- });
1274
- };
1275
- const se_CreateCampaignRequest = (input, context) => {
1276
- return take(input, {
1277
- collectionScheme: _json,
1278
- compression: [],
1279
- dataDestinationConfigs: _json,
1280
- dataExtraDimensions: _json,
1281
- dataPartitions: _json,
1282
- description: [],
1283
- diagnosticsMode: [],
1284
- expiryTime: (_) => _.getTime() / 1_000,
1285
- name: [],
1286
- postTriggerCollectionDuration: [],
1287
- priority: [],
1288
- signalCatalogArn: [],
1289
- signalsToCollect: _json,
1290
- signalsToFetch: _json,
1291
- spoolingMode: [],
1292
- startTime: (_) => _.getTime() / 1_000,
1293
- tags: _json,
1294
- targetArn: [],
1295
- });
1296
- };
1297
- const se_CreateDecoderManifestRequest = (input, context) => {
1298
- return take(input, {
1299
- defaultForUnmappedSignals: [],
1300
- description: [],
1301
- modelManifestArn: [],
1302
- name: [],
1303
- networkInterfaces: _json,
1304
- signalDecoders: (_) => se_SignalDecoders(_, context),
1305
- tags: _json,
1306
- });
1307
- };
1308
- const se_CreateSignalCatalogRequest = (input, context) => {
1309
- return take(input, {
1310
- description: [],
1311
- name: [],
1312
- nodes: (_) => se_Nodes(_, context),
1313
- tags: _json,
1314
- });
1315
- };
1316
- const se_ImportDecoderManifestRequest = (input, context) => {
1317
- return take(input, {
1318
- name: [],
1319
- networkFileDefinitions: (_) => se_NetworkFileDefinitions(_, context),
1320
- });
1321
- };
1322
- const se_MessageSignal = (input, context) => {
1323
- return take(input, {
1324
- structuredMessage: (_) => se_StructuredMessage(_, context),
1325
- topicName: [],
1326
- });
1327
- };
1328
- const se_NetworkFileDefinition = (input, context) => {
1329
- return NetworkFileDefinition.visit(input, {
1330
- canDbc: (value) => ({ canDbc: se_CanDbcDefinition(value, context) }),
1331
- _: (name, value) => ({ [name]: value }),
1332
- });
1333
- };
1334
- const se_NetworkFileDefinitions = (input, context) => {
1335
- return input
1336
- .filter((e) => e != null)
1337
- .map((entry) => {
1338
- return se_NetworkFileDefinition(entry, context);
1339
- });
1340
- };
1341
- const se_NetworkFilesList = (input, context) => {
1342
- return input
1343
- .filter((e) => e != null)
1344
- .map((entry) => {
1345
- return context.base64Encoder(entry);
1346
- });
1347
- };
1348
- const se_Node = (input, context) => {
1349
- return Node.visit(input, {
1350
- actuator: (value) => ({ actuator: se_Actuator(value, context) }),
1351
- attribute: (value) => ({ attribute: se_Attribute(value, context) }),
1352
- branch: (value) => ({ branch: _json(value) }),
1353
- property: (value) => ({ property: _json(value) }),
1354
- sensor: (value) => ({ sensor: se_Sensor(value, context) }),
1355
- struct: (value) => ({ struct: _json(value) }),
1356
- _: (name, value) => ({ [name]: value }),
1357
- });
1358
- };
1359
- const se_Nodes = (input, context) => {
1360
- return input
1361
- .filter((e) => e != null)
1362
- .map((entry) => {
1363
- return se_Node(entry, context);
1364
- });
1365
- };
1366
- const se_ObdSignal = (input, context) => {
1367
- return take(input, {
1368
- bitMaskLength: [],
1369
- bitRightShift: [],
1370
- byteLength: [],
1371
- isSigned: [],
1372
- offset: __serializeFloat,
1373
- pid: [],
1374
- pidResponseLength: [],
1375
- scaling: __serializeFloat,
1376
- serviceMode: [],
1377
- signalValueType: [],
1378
- startByte: [],
1379
- });
1380
- };
1381
- const se_PrimitiveMessageDefinition = (input, context) => {
1382
- return PrimitiveMessageDefinition.visit(input, {
1383
- ros2PrimitiveMessageDefinition: (value) => ({
1384
- ros2PrimitiveMessageDefinition: se_ROS2PrimitiveMessageDefinition(value, context),
1385
- }),
1386
- _: (name, value) => ({ [name]: value }),
1387
- });
1388
- };
1389
- const se_ROS2PrimitiveMessageDefinition = (input, context) => {
1390
- return take(input, {
1391
- offset: __serializeFloat,
1392
- primitiveType: [],
1393
- scaling: __serializeFloat,
1394
- upperBound: [],
1395
- });
1396
- };
1397
- const se_Sensor = (input, context) => {
1398
- return take(input, {
1399
- allowedValues: _json,
1400
- comment: [],
1401
- dataType: [],
1402
- deprecationMessage: [],
1403
- description: [],
1404
- fullyQualifiedName: [],
1405
- max: __serializeFloat,
1406
- min: __serializeFloat,
1407
- structFullyQualifiedName: [],
1408
- unit: [],
1409
- });
1410
- };
1411
- const se_SignalDecoder = (input, context) => {
1412
- return take(input, {
1413
- canSignal: (_) => se_CanSignal(_, context),
1414
- customDecodingSignal: _json,
1415
- fullyQualifiedName: [],
1416
- interfaceId: [],
1417
- messageSignal: (_) => se_MessageSignal(_, context),
1418
- obdSignal: (_) => se_ObdSignal(_, context),
1419
- type: [],
1420
- });
1421
- };
1422
- const se_SignalDecoders = (input, context) => {
1423
- return input
1424
- .filter((e) => e != null)
1425
- .map((entry) => {
1426
- return se_SignalDecoder(entry, context);
1427
- });
1428
- };
1429
- const se_StructuredMessage = (input, context) => {
1430
- return StructuredMessage.visit(input, {
1431
- primitiveMessageDefinition: (value) => ({
1432
- primitiveMessageDefinition: se_PrimitiveMessageDefinition(value, context),
1433
- }),
1434
- structuredMessageDefinition: (value) => ({
1435
- structuredMessageDefinition: se_StructuredMessageDefinition(value, context),
1436
- }),
1437
- structuredMessageListDefinition: (value) => ({
1438
- structuredMessageListDefinition: se_StructuredMessageListDefinition(value, context),
1439
- }),
1440
- _: (name, value) => ({ [name]: value }),
1441
- });
1442
- };
1443
- const se_StructuredMessageDefinition = (input, context) => {
1444
- return input
1445
- .filter((e) => e != null)
1446
- .map((entry) => {
1447
- return se_StructuredMessageFieldNameAndDataTypePair(entry, context);
1448
- });
1449
- };
1450
- const se_StructuredMessageFieldNameAndDataTypePair = (input, context) => {
1451
- return take(input, {
1452
- dataType: (_) => se_StructuredMessage(_, context),
1453
- fieldName: [],
1454
- });
1455
- };
1456
- const se_StructuredMessageListDefinition = (input, context) => {
1457
- return take(input, {
1458
- capacity: [],
1459
- listType: [],
1460
- memberType: (_) => se_StructuredMessage(_, context),
1461
- name: [],
1462
- });
1463
- };
1464
- const se_UpdateDecoderManifestRequest = (input, context) => {
1465
- return take(input, {
1466
- defaultForUnmappedSignals: [],
1467
- description: [],
1468
- name: [],
1469
- networkInterfacesToAdd: _json,
1470
- networkInterfacesToRemove: _json,
1471
- networkInterfacesToUpdate: _json,
1472
- signalDecodersToAdd: (_) => se_SignalDecoders(_, context),
1473
- signalDecodersToRemove: _json,
1474
- signalDecodersToUpdate: (_) => se_SignalDecoders(_, context),
1475
- status: [],
1476
- });
1477
- };
1478
- const se_UpdateSignalCatalogRequest = (input, context) => {
1479
- return take(input, {
1480
- description: [],
1481
- name: [],
1482
- nodesToAdd: (_) => se_Nodes(_, context),
1483
- nodesToRemove: _json,
1484
- nodesToUpdate: (_) => se_Nodes(_, context),
1485
- });
1486
- };
1487
- const de_Actuator = (output, context) => {
1488
- return take(output, {
1489
- allowedValues: _json,
1490
- assignedValue: __expectString,
1491
- comment: __expectString,
1492
- dataType: __expectString,
1493
- deprecationMessage: __expectString,
1494
- description: __expectString,
1495
- fullyQualifiedName: __expectString,
1496
- max: __limitedParseDouble,
1497
- min: __limitedParseDouble,
1498
- structFullyQualifiedName: __expectString,
1499
- unit: __expectString,
1500
- });
1501
- };
1502
- const de_Attribute = (output, context) => {
1503
- return take(output, {
1504
- allowedValues: _json,
1505
- assignedValue: __expectString,
1506
- comment: __expectString,
1507
- dataType: __expectString,
1508
- defaultValue: __expectString,
1509
- deprecationMessage: __expectString,
1510
- description: __expectString,
1511
- fullyQualifiedName: __expectString,
1512
- max: __limitedParseDouble,
1513
- min: __limitedParseDouble,
1514
- unit: __expectString,
1515
- });
1516
- };
1517
- const de_campaignSummaries = (output, context) => {
1518
- const retVal = (output || [])
1519
- .filter((e) => e != null)
1520
- .map((entry) => {
1521
- return de_CampaignSummary(entry, context);
1522
- });
1523
- return retVal;
1524
- };
1525
- const de_CampaignSummary = (output, context) => {
1526
- return take(output, {
1527
- arn: __expectString,
1528
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1529
- description: __expectString,
1530
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1531
- name: __expectString,
1532
- signalCatalogArn: __expectString,
1533
- status: __expectString,
1534
- targetArn: __expectString,
1535
- });
1536
- };
1537
- const de_CanSignal = (output, context) => {
1538
- return take(output, {
1539
- factor: __limitedParseDouble,
1540
- isBigEndian: __expectBoolean,
1541
- isSigned: __expectBoolean,
1542
- length: __expectInt32,
1543
- messageId: __expectInt32,
1544
- name: __expectString,
1545
- offset: __limitedParseDouble,
1546
- signalValueType: __expectString,
1547
- startBit: __expectInt32,
1548
- });
1549
- };
1550
- const de_decoderManifestSummaries = (output, context) => {
1551
- const retVal = (output || [])
1552
- .filter((e) => e != null)
1553
- .map((entry) => {
1554
- return de_DecoderManifestSummary(entry, context);
1555
- });
1556
- return retVal;
1557
- };
1558
- const de_DecoderManifestSummary = (output, context) => {
1559
- return take(output, {
1560
- arn: __expectString,
1561
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1562
- description: __expectString,
1563
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1564
- message: __expectString,
1565
- modelManifestArn: __expectString,
1566
- name: __expectString,
1567
- status: __expectString,
1568
- });
1569
- };
1570
- const de_fleetSummaries = (output, context) => {
1571
- const retVal = (output || [])
1572
- .filter((e) => e != null)
1573
- .map((entry) => {
1574
- return de_FleetSummary(entry, context);
1575
- });
1576
- return retVal;
1577
- };
1578
- const de_FleetSummary = (output, context) => {
1579
- return take(output, {
1580
- arn: __expectString,
1581
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1582
- description: __expectString,
1583
- id: __expectString,
1584
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1585
- signalCatalogArn: __expectString,
1586
- });
1587
- };
1588
- const de_GetCampaignResponse = (output, context) => {
1589
- return take(output, {
1590
- arn: __expectString,
1591
- collectionScheme: (_) => _json(__expectUnion(_)),
1592
- compression: __expectString,
1593
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1594
- dataDestinationConfigs: _json,
1595
- dataExtraDimensions: _json,
1596
- dataPartitions: _json,
1597
- description: __expectString,
1598
- diagnosticsMode: __expectString,
1599
- expiryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1600
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1601
- name: __expectString,
1602
- postTriggerCollectionDuration: __expectLong,
1603
- priority: __expectInt32,
1604
- signalCatalogArn: __expectString,
1605
- signalsToCollect: _json,
1606
- signalsToFetch: _json,
1607
- spoolingMode: __expectString,
1608
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1609
- status: __expectString,
1610
- targetArn: __expectString,
1611
- });
1612
- };
1613
- const de_GetDecoderManifestResponse = (output, context) => {
1614
- return take(output, {
1615
- arn: __expectString,
1616
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1617
- description: __expectString,
1618
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1619
- message: __expectString,
1620
- modelManifestArn: __expectString,
1621
- name: __expectString,
1622
- status: __expectString,
1623
- });
1624
- };
1625
- const de_GetEncryptionConfigurationResponse = (output, context) => {
1626
- return take(output, {
1627
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1628
- encryptionStatus: __expectString,
1629
- encryptionType: __expectString,
1630
- errorMessage: __expectString,
1631
- kmsKeyId: __expectString,
1632
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1633
- });
1634
- };
1635
- const de_GetFleetResponse = (output, context) => {
1636
- return take(output, {
1637
- arn: __expectString,
1638
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1639
- description: __expectString,
1640
- id: __expectString,
1641
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1642
- signalCatalogArn: __expectString,
1643
- });
1644
- };
1645
- const de_GetModelManifestResponse = (output, context) => {
1646
- return take(output, {
1647
- arn: __expectString,
1648
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1649
- description: __expectString,
1650
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1651
- name: __expectString,
1652
- signalCatalogArn: __expectString,
1653
- status: __expectString,
1654
- });
1655
- };
1656
- const de_GetRegisterAccountStatusResponse = (output, context) => {
1657
- return take(output, {
1658
- accountStatus: __expectString,
1659
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1660
- customerAccountId: __expectString,
1661
- iamRegistrationResponse: _json,
1662
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1663
- timestreamRegistrationResponse: _json,
1664
- });
1665
- };
1666
- const de_GetSignalCatalogResponse = (output, context) => {
1667
- return take(output, {
1668
- arn: __expectString,
1669
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1670
- description: __expectString,
1671
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1672
- name: __expectString,
1673
- nodeCounts: _json,
1674
- });
1675
- };
1676
- const de_GetStateTemplateResponse = (output, context) => {
1677
- return take(output, {
1678
- arn: __expectString,
1679
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1680
- dataExtraDimensions: _json,
1681
- description: __expectString,
1682
- id: __expectString,
1683
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1684
- metadataExtraDimensions: _json,
1685
- name: __expectString,
1686
- signalCatalogArn: __expectString,
1687
- stateTemplateProperties: _json,
1688
- });
1689
- };
1690
- const de_GetVehicleResponse = (output, context) => {
1691
- return take(output, {
1692
- arn: __expectString,
1693
- attributes: _json,
1694
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1695
- decoderManifestArn: __expectString,
1696
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1697
- modelManifestArn: __expectString,
1698
- stateTemplates: _json,
1699
- vehicleName: __expectString,
1700
- });
1701
- };
1702
- const de_InvalidNodeException = (output, context) => {
1703
- return take(output, {
1704
- invalidNodes: (_) => de_Nodes(_, context),
1705
- message: __expectString,
1706
- reason: __expectString,
1707
- });
1708
- };
1709
- const de_ListCampaignsResponse = (output, context) => {
1710
- return take(output, {
1711
- campaignSummaries: (_) => de_campaignSummaries(_, context),
1712
- nextToken: __expectString,
1713
- });
1714
- };
1715
- const de_ListDecoderManifestSignalsResponse = (output, context) => {
1716
- return take(output, {
1717
- nextToken: __expectString,
1718
- signalDecoders: (_) => de_SignalDecoders(_, context),
1719
- });
1720
- };
1721
- const de_ListDecoderManifestsResponse = (output, context) => {
1722
- return take(output, {
1723
- nextToken: __expectString,
1724
- summaries: (_) => de_decoderManifestSummaries(_, context),
1725
- });
1726
- };
1727
- const de_ListFleetsResponse = (output, context) => {
1728
- return take(output, {
1729
- fleetSummaries: (_) => de_fleetSummaries(_, context),
1730
- nextToken: __expectString,
1731
- });
1732
- };
1733
- const de_ListModelManifestNodesResponse = (output, context) => {
1734
- return take(output, {
1735
- nextToken: __expectString,
1736
- nodes: (_) => de_Nodes(_, context),
1737
- });
1738
- };
1739
- const de_ListModelManifestsResponse = (output, context) => {
1740
- return take(output, {
1741
- nextToken: __expectString,
1742
- summaries: (_) => de_modelManifestSummaries(_, context),
1743
- });
1744
- };
1745
- const de_ListSignalCatalogNodesResponse = (output, context) => {
1746
- return take(output, {
1747
- nextToken: __expectString,
1748
- nodes: (_) => de_Nodes(_, context),
1749
- });
1750
- };
1751
- const de_ListSignalCatalogsResponse = (output, context) => {
1752
- return take(output, {
1753
- nextToken: __expectString,
1754
- summaries: (_) => de_signalCatalogSummaries(_, context),
1755
- });
1756
- };
1757
- const de_ListStateTemplatesResponse = (output, context) => {
1758
- return take(output, {
1759
- nextToken: __expectString,
1760
- summaries: (_) => de_StateTemplateSummaries(_, context),
1761
- });
1762
- };
1763
- const de_ListVehiclesResponse = (output, context) => {
1764
- return take(output, {
1765
- nextToken: __expectString,
1766
- vehicleSummaries: (_) => de_vehicleSummaries(_, context),
1767
- });
1768
- };
1769
- const de_MessageSignal = (output, context) => {
1770
- return take(output, {
1771
- structuredMessage: (_) => de_StructuredMessage(__expectUnion(_), context),
1772
- topicName: __expectString,
1773
- });
1774
- };
1775
- const de_modelManifestSummaries = (output, context) => {
1776
- const retVal = (output || [])
1777
- .filter((e) => e != null)
1778
- .map((entry) => {
1779
- return de_ModelManifestSummary(entry, context);
1780
- });
1781
- return retVal;
1782
- };
1783
- const de_ModelManifestSummary = (output, context) => {
1784
- return take(output, {
1785
- arn: __expectString,
1786
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1787
- description: __expectString,
1788
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1789
- name: __expectString,
1790
- signalCatalogArn: __expectString,
1791
- status: __expectString,
1792
- });
1793
- };
1794
- const de_Node = (output, context) => {
1795
- if (output.actuator != null) {
1796
- return {
1797
- actuator: de_Actuator(output.actuator, context),
1798
- };
1799
- }
1800
- if (output.attribute != null) {
1801
- return {
1802
- attribute: de_Attribute(output.attribute, context),
1803
- };
1804
- }
1805
- if (output.branch != null) {
1806
- return {
1807
- branch: _json(output.branch),
1808
- };
1809
- }
1810
- if (output.property != null) {
1811
- return {
1812
- property: _json(output.property),
1813
- };
1814
- }
1815
- if (output.sensor != null) {
1816
- return {
1817
- sensor: de_Sensor(output.sensor, context),
1818
- };
1819
- }
1820
- if (output.struct != null) {
1821
- return {
1822
- struct: _json(output.struct),
1823
- };
1824
- }
1825
- return { $unknown: Object.entries(output)[0] };
1826
- };
1827
- const de_Nodes = (output, context) => {
1828
- const retVal = (output || [])
1829
- .filter((e) => e != null)
1830
- .map((entry) => {
1831
- return de_Node(__expectUnion(entry), context);
1832
- });
1833
- return retVal;
1834
- };
1835
- const de_ObdSignal = (output, context) => {
1836
- return take(output, {
1837
- bitMaskLength: __expectInt32,
1838
- bitRightShift: __expectInt32,
1839
- byteLength: __expectInt32,
1840
- isSigned: __expectBoolean,
1841
- offset: __limitedParseDouble,
1842
- pid: __expectInt32,
1843
- pidResponseLength: __expectInt32,
1844
- scaling: __limitedParseDouble,
1845
- serviceMode: __expectInt32,
1846
- signalValueType: __expectString,
1847
- startByte: __expectInt32,
1848
- });
1849
- };
1850
- const de_PrimitiveMessageDefinition = (output, context) => {
1851
- if (output.ros2PrimitiveMessageDefinition != null) {
1852
- return {
1853
- ros2PrimitiveMessageDefinition: de_ROS2PrimitiveMessageDefinition(output.ros2PrimitiveMessageDefinition, context),
1854
- };
1855
- }
1856
- return { $unknown: Object.entries(output)[0] };
1857
- };
1858
- const de_RegisterAccountResponse = (output, context) => {
1859
- return take(output, {
1860
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1861
- iamResources: _json,
1862
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1863
- registerAccountStatus: __expectString,
1864
- timestreamResources: _json,
1865
- });
1866
- };
1867
- const de_ROS2PrimitiveMessageDefinition = (output, context) => {
1868
- return take(output, {
1869
- offset: __limitedParseDouble,
1870
- primitiveType: __expectString,
1871
- scaling: __limitedParseDouble,
1872
- upperBound: __expectLong,
1873
- });
1874
- };
1875
- const de_Sensor = (output, context) => {
1876
- return take(output, {
1877
- allowedValues: _json,
1878
- comment: __expectString,
1879
- dataType: __expectString,
1880
- deprecationMessage: __expectString,
1881
- description: __expectString,
1882
- fullyQualifiedName: __expectString,
1883
- max: __limitedParseDouble,
1884
- min: __limitedParseDouble,
1885
- structFullyQualifiedName: __expectString,
1886
- unit: __expectString,
1887
- });
1888
- };
1889
- const de_signalCatalogSummaries = (output, context) => {
1890
- const retVal = (output || [])
1891
- .filter((e) => e != null)
1892
- .map((entry) => {
1893
- return de_SignalCatalogSummary(entry, context);
1894
- });
1895
- return retVal;
1896
- };
1897
- const de_SignalCatalogSummary = (output, context) => {
1898
- return take(output, {
1899
- arn: __expectString,
1900
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1901
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1902
- name: __expectString,
1903
- });
1904
- };
1905
- const de_SignalDecoder = (output, context) => {
1906
- return take(output, {
1907
- canSignal: (_) => de_CanSignal(_, context),
1908
- customDecodingSignal: _json,
1909
- fullyQualifiedName: __expectString,
1910
- interfaceId: __expectString,
1911
- messageSignal: (_) => de_MessageSignal(_, context),
1912
- obdSignal: (_) => de_ObdSignal(_, context),
1913
- type: __expectString,
1914
- });
1915
- };
1916
- const de_SignalDecoders = (output, context) => {
1917
- const retVal = (output || [])
1918
- .filter((e) => e != null)
1919
- .map((entry) => {
1920
- return de_SignalDecoder(entry, context);
1921
- });
1922
- return retVal;
1923
- };
1924
- const de_StateTemplateSummaries = (output, context) => {
1925
- const retVal = (output || [])
1926
- .filter((e) => e != null)
1927
- .map((entry) => {
1928
- return de_StateTemplateSummary(entry, context);
1929
- });
1930
- return retVal;
1931
- };
1932
- const de_StateTemplateSummary = (output, context) => {
1933
- return take(output, {
1934
- arn: __expectString,
1935
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1936
- description: __expectString,
1937
- id: __expectString,
1938
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1939
- name: __expectString,
1940
- signalCatalogArn: __expectString,
1941
- });
1942
- };
1943
- const de_StructuredMessage = (output, context) => {
1944
- if (output.primitiveMessageDefinition != null) {
1945
- return {
1946
- primitiveMessageDefinition: de_PrimitiveMessageDefinition(__expectUnion(output.primitiveMessageDefinition), context),
1947
- };
1948
- }
1949
- if (output.structuredMessageDefinition != null) {
1950
- return {
1951
- structuredMessageDefinition: de_StructuredMessageDefinition(output.structuredMessageDefinition, context),
1952
- };
1953
- }
1954
- if (output.structuredMessageListDefinition != null) {
1955
- return {
1956
- structuredMessageListDefinition: de_StructuredMessageListDefinition(output.structuredMessageListDefinition, context),
1957
- };
1958
- }
1959
- return { $unknown: Object.entries(output)[0] };
1960
- };
1961
- const de_StructuredMessageDefinition = (output, context) => {
1962
- const retVal = (output || [])
1963
- .filter((e) => e != null)
1964
- .map((entry) => {
1965
- return de_StructuredMessageFieldNameAndDataTypePair(entry, context);
1966
- });
1967
- return retVal;
1968
- };
1969
- const de_StructuredMessageFieldNameAndDataTypePair = (output, context) => {
1970
- return take(output, {
1971
- dataType: (_) => de_StructuredMessage(__expectUnion(_), context),
1972
- fieldName: __expectString,
1973
- });
1974
- };
1975
- const de_StructuredMessageListDefinition = (output, context) => {
1976
- return take(output, {
1977
- capacity: __expectInt32,
1978
- listType: __expectString,
1979
- memberType: (_) => de_StructuredMessage(__expectUnion(_), context),
1980
- name: __expectString,
1981
- });
1982
- };
1983
- const de_vehicleSummaries = (output, context) => {
1984
- const retVal = (output || [])
1985
- .filter((e) => e != null)
1986
- .map((entry) => {
1987
- return de_VehicleSummary(entry, context);
1988
- });
1989
- return retVal;
1990
- };
1991
- const de_VehicleSummary = (output, context) => {
1992
- return take(output, {
1993
- arn: __expectString,
1994
- attributes: _json,
1995
- creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1996
- decoderManifestArn: __expectString,
1997
- lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1998
- modelManifestArn: __expectString,
1999
- vehicleName: __expectString,
2000
- });
2001
- };
2002
- const deserializeMetadata = (output) => ({
2003
- httpStatusCode: output.statusCode,
2004
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2005
- extendedRequestId: output.headers["x-amz-id-2"],
2006
- cfId: output.headers["x-amz-cf-id"],
2007
- });
2008
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2009
- const throwDefaultError = withBaseException(__BaseException);
2010
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2011
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2012
- const contents = {
2013
- protocol,
2014
- hostname,
2015
- port,
2016
- method: "POST",
2017
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2018
- headers,
2019
- };
2020
- if (resolvedHostname !== undefined) {
2021
- contents.hostname = resolvedHostname;
2022
- }
2023
- if (body !== undefined) {
2024
- contents.body = body;
2025
- }
2026
- return new __HttpRequest(contents);
2027
- };
2028
- function sharedHeaders(operation) {
2029
- return {
2030
- "content-type": "application/x-amz-json-1.0",
2031
- "x-amz-target": `IoTAutobahnControlPlane.${operation}`,
2032
- };
2033
- }