@aws-sdk/client-iotdeviceadvisor 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateSuiteDefinitionCommand.js +2 -2
- package/dist-cjs/commands/DeleteSuiteDefinitionCommand.js +2 -2
- package/dist-cjs/commands/GetEndpointCommand.js +2 -2
- package/dist-cjs/commands/GetSuiteDefinitionCommand.js +2 -2
- package/dist-cjs/commands/GetSuiteRunCommand.js +2 -2
- package/dist-cjs/commands/GetSuiteRunReportCommand.js +2 -2
- package/dist-cjs/commands/ListSuiteDefinitionsCommand.js +2 -2
- package/dist-cjs/commands/ListSuiteRunsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartSuiteRunCommand.js +2 -2
- package/dist-cjs/commands/StopSuiteRunCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateSuiteDefinitionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +180 -190
- package/dist-es/commands/CreateSuiteDefinitionCommand.js +3 -3
- package/dist-es/commands/DeleteSuiteDefinitionCommand.js +3 -3
- package/dist-es/commands/GetEndpointCommand.js +3 -3
- package/dist-es/commands/GetSuiteDefinitionCommand.js +3 -3
- package/dist-es/commands/GetSuiteRunCommand.js +3 -3
- package/dist-es/commands/GetSuiteRunReportCommand.js +3 -3
- package/dist-es/commands/ListSuiteDefinitionsCommand.js +3 -3
- package/dist-es/commands/ListSuiteRunsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartSuiteRunCommand.js +3 -3
- package/dist-es/commands/StopSuiteRunCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateSuiteDefinitionCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +151 -161
- package/dist-types/protocols/Aws_restJson1.d.ts +112 -28
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +28 -28
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateSuiteDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopSuiteRunCommand = exports.de_StartSuiteRunCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSuiteRunsCommand = exports.de_ListSuiteDefinitionsCommand = exports.de_GetSuiteRunReportCommand = exports.de_GetSuiteRunCommand = exports.de_GetSuiteDefinitionCommand = exports.de_GetEndpointCommand = exports.de_DeleteSuiteDefinitionCommand = exports.de_CreateSuiteDefinitionCommand = exports.se_UpdateSuiteDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopSuiteRunCommand = exports.se_StartSuiteRunCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSuiteRunsCommand = exports.se_ListSuiteDefinitionsCommand = exports.se_GetSuiteRunReportCommand = exports.se_GetSuiteRunCommand = exports.se_GetSuiteDefinitionCommand = exports.se_GetEndpointCommand = exports.se_DeleteSuiteDefinitionCommand = exports.se_CreateSuiteDefinitionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const IotDeviceAdvisorServiceException_1 = require("../models/IotDeviceAdvisorServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateSuiteDefinitionCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -14,9 +14,9 @@ const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input, context
|
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
16
|
...(input.suiteDefinitionConfiguration != null && {
|
|
17
|
-
suiteDefinitionConfiguration:
|
|
17
|
+
suiteDefinitionConfiguration: se_SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
18
18
|
}),
|
|
19
|
-
...(input.tags != null && { tags:
|
|
19
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -28,8 +28,8 @@ const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input, context
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
31
|
+
exports.se_CreateSuiteDefinitionCommand = se_CreateSuiteDefinitionCommand;
|
|
32
|
+
const se_DeleteSuiteDefinitionCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {};
|
|
35
35
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
|
|
@@ -45,8 +45,8 @@ const serializeAws_restJson1DeleteSuiteDefinitionCommand = async (input, context
|
|
|
45
45
|
body,
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_DeleteSuiteDefinitionCommand = se_DeleteSuiteDefinitionCommand;
|
|
49
|
+
const se_GetEndpointCommand = async (input, context) => {
|
|
50
50
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
51
|
const headers = {};
|
|
52
52
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
|
|
@@ -66,8 +66,8 @@ const serializeAws_restJson1GetEndpointCommand = async (input, context) => {
|
|
|
66
66
|
body,
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
exports.
|
|
70
|
-
const
|
|
69
|
+
exports.se_GetEndpointCommand = se_GetEndpointCommand;
|
|
70
|
+
const se_GetSuiteDefinitionCommand = async (input, context) => {
|
|
71
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
72
72
|
const headers = {};
|
|
73
73
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
|
|
@@ -87,8 +87,8 @@ const serializeAws_restJson1GetSuiteDefinitionCommand = async (input, context) =
|
|
|
87
87
|
body,
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
exports.
|
|
91
|
-
const
|
|
90
|
+
exports.se_GetSuiteDefinitionCommand = se_GetSuiteDefinitionCommand;
|
|
91
|
+
const se_GetSuiteRunCommand = async (input, context) => {
|
|
92
92
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
93
|
const headers = {};
|
|
94
94
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -106,8 +106,8 @@ const serializeAws_restJson1GetSuiteRunCommand = async (input, context) => {
|
|
|
106
106
|
body,
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
exports.
|
|
110
|
-
const
|
|
109
|
+
exports.se_GetSuiteRunCommand = se_GetSuiteRunCommand;
|
|
110
|
+
const se_GetSuiteRunReportCommand = async (input, context) => {
|
|
111
111
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
112
|
const headers = {};
|
|
113
113
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -125,8 +125,8 @@ const serializeAws_restJson1GetSuiteRunReportCommand = async (input, context) =>
|
|
|
125
125
|
body,
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_GetSuiteRunReportCommand = se_GetSuiteRunReportCommand;
|
|
129
|
+
const se_ListSuiteDefinitionsCommand = async (input, context) => {
|
|
130
130
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
131
131
|
const headers = {};
|
|
132
132
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
|
|
@@ -146,8 +146,8 @@ const serializeAws_restJson1ListSuiteDefinitionsCommand = async (input, context)
|
|
|
146
146
|
body,
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
-
exports.
|
|
150
|
-
const
|
|
149
|
+
exports.se_ListSuiteDefinitionsCommand = se_ListSuiteDefinitionsCommand;
|
|
150
|
+
const se_ListSuiteRunsCommand = async (input, context) => {
|
|
151
151
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
152
|
const headers = {};
|
|
153
153
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns";
|
|
@@ -169,8 +169,8 @@ const serializeAws_restJson1ListSuiteRunsCommand = async (input, context) => {
|
|
|
169
169
|
body,
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
exports.
|
|
173
|
-
const
|
|
172
|
+
exports.se_ListSuiteRunsCommand = se_ListSuiteRunsCommand;
|
|
173
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
174
174
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
175
175
|
const headers = {};
|
|
176
176
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -186,8 +186,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
186
186
|
body,
|
|
187
187
|
});
|
|
188
188
|
};
|
|
189
|
-
exports.
|
|
190
|
-
const
|
|
189
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
190
|
+
const se_StartSuiteRunCommand = async (input, context) => {
|
|
191
191
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
192
192
|
const headers = {
|
|
193
193
|
"content-type": "application/json",
|
|
@@ -199,9 +199,9 @@ const serializeAws_restJson1StartSuiteRunCommand = async (input, context) => {
|
|
|
199
199
|
body = JSON.stringify({
|
|
200
200
|
...(input.suiteDefinitionVersion != null && { suiteDefinitionVersion: input.suiteDefinitionVersion }),
|
|
201
201
|
...(input.suiteRunConfiguration != null && {
|
|
202
|
-
suiteRunConfiguration:
|
|
202
|
+
suiteRunConfiguration: se_SuiteRunConfiguration(input.suiteRunConfiguration, context),
|
|
203
203
|
}),
|
|
204
|
-
...(input.tags != null && { tags:
|
|
204
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
205
205
|
});
|
|
206
206
|
return new protocol_http_1.HttpRequest({
|
|
207
207
|
protocol,
|
|
@@ -213,8 +213,8 @@ const serializeAws_restJson1StartSuiteRunCommand = async (input, context) => {
|
|
|
213
213
|
body,
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
exports.
|
|
217
|
-
const
|
|
216
|
+
exports.se_StartSuiteRunCommand = se_StartSuiteRunCommand;
|
|
217
|
+
const se_StopSuiteRunCommand = async (input, context) => {
|
|
218
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
219
219
|
const headers = {};
|
|
220
220
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -232,8 +232,8 @@ const serializeAws_restJson1StopSuiteRunCommand = async (input, context) => {
|
|
|
232
232
|
body,
|
|
233
233
|
});
|
|
234
234
|
};
|
|
235
|
-
exports.
|
|
236
|
-
const
|
|
235
|
+
exports.se_StopSuiteRunCommand = se_StopSuiteRunCommand;
|
|
236
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
237
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
238
|
const headers = {
|
|
239
239
|
"content-type": "application/json",
|
|
@@ -242,7 +242,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
242
242
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
243
243
|
let body;
|
|
244
244
|
body = JSON.stringify({
|
|
245
|
-
...(input.tags != null && { tags:
|
|
245
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
246
246
|
});
|
|
247
247
|
return new protocol_http_1.HttpRequest({
|
|
248
248
|
protocol,
|
|
@@ -254,8 +254,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
254
254
|
body,
|
|
255
255
|
});
|
|
256
256
|
};
|
|
257
|
-
exports.
|
|
258
|
-
const
|
|
257
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
258
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
259
259
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
260
260
|
const headers = {};
|
|
261
261
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -278,8 +278,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
278
278
|
body,
|
|
279
279
|
});
|
|
280
280
|
};
|
|
281
|
-
exports.
|
|
282
|
-
const
|
|
281
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
282
|
+
const se_UpdateSuiteDefinitionCommand = async (input, context) => {
|
|
283
283
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
284
284
|
const headers = {
|
|
285
285
|
"content-type": "application/json",
|
|
@@ -289,7 +289,7 @@ const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input, context
|
|
|
289
289
|
let body;
|
|
290
290
|
body = JSON.stringify({
|
|
291
291
|
...(input.suiteDefinitionConfiguration != null && {
|
|
292
|
-
suiteDefinitionConfiguration:
|
|
292
|
+
suiteDefinitionConfiguration: se_SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
293
293
|
}),
|
|
294
294
|
});
|
|
295
295
|
return new protocol_http_1.HttpRequest({
|
|
@@ -302,10 +302,10 @@ const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input, context
|
|
|
302
302
|
body,
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
|
-
exports.
|
|
306
|
-
const
|
|
305
|
+
exports.se_UpdateSuiteDefinitionCommand = se_UpdateSuiteDefinitionCommand;
|
|
306
|
+
const de_CreateSuiteDefinitionCommand = async (output, context) => {
|
|
307
307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
308
|
-
return
|
|
308
|
+
return de_CreateSuiteDefinitionCommandError(output, context);
|
|
309
309
|
}
|
|
310
310
|
const contents = map({
|
|
311
311
|
$metadata: deserializeMetadata(output),
|
|
@@ -325,8 +325,8 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommand = async (output, cont
|
|
|
325
325
|
}
|
|
326
326
|
return contents;
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.de_CreateSuiteDefinitionCommand = de_CreateSuiteDefinitionCommand;
|
|
329
|
+
const de_CreateSuiteDefinitionCommandError = async (output, context) => {
|
|
330
330
|
const parsedOutput = {
|
|
331
331
|
...output,
|
|
332
332
|
body: await parseErrorBody(output.body, context),
|
|
@@ -335,10 +335,10 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output,
|
|
|
335
335
|
switch (errorCode) {
|
|
336
336
|
case "InternalServerException":
|
|
337
337
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
338
|
-
throw await
|
|
338
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
339
339
|
case "ValidationException":
|
|
340
340
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
341
|
-
throw await
|
|
341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
342
|
default:
|
|
343
343
|
const parsedBody = parsedOutput.body;
|
|
344
344
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -349,9 +349,9 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output,
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
const
|
|
352
|
+
const de_DeleteSuiteDefinitionCommand = async (output, context) => {
|
|
353
353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
354
|
-
return
|
|
354
|
+
return de_DeleteSuiteDefinitionCommandError(output, context);
|
|
355
355
|
}
|
|
356
356
|
const contents = map({
|
|
357
357
|
$metadata: deserializeMetadata(output),
|
|
@@ -359,8 +359,8 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommand = async (output, cont
|
|
|
359
359
|
await collectBody(output.body, context);
|
|
360
360
|
return contents;
|
|
361
361
|
};
|
|
362
|
-
exports.
|
|
363
|
-
const
|
|
362
|
+
exports.de_DeleteSuiteDefinitionCommand = de_DeleteSuiteDefinitionCommand;
|
|
363
|
+
const de_DeleteSuiteDefinitionCommandError = async (output, context) => {
|
|
364
364
|
const parsedOutput = {
|
|
365
365
|
...output,
|
|
366
366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -369,10 +369,10 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
|
|
|
369
369
|
switch (errorCode) {
|
|
370
370
|
case "InternalServerException":
|
|
371
371
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
372
|
-
throw await
|
|
372
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
373
373
|
case "ValidationException":
|
|
374
374
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
375
|
-
throw await
|
|
375
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
376
376
|
default:
|
|
377
377
|
const parsedBody = parsedOutput.body;
|
|
378
378
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -383,9 +383,9 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
|
-
const
|
|
386
|
+
const de_GetEndpointCommand = async (output, context) => {
|
|
387
387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
-
return
|
|
388
|
+
return de_GetEndpointCommandError(output, context);
|
|
389
389
|
}
|
|
390
390
|
const contents = map({
|
|
391
391
|
$metadata: deserializeMetadata(output),
|
|
@@ -396,8 +396,8 @@ const deserializeAws_restJson1GetEndpointCommand = async (output, context) => {
|
|
|
396
396
|
}
|
|
397
397
|
return contents;
|
|
398
398
|
};
|
|
399
|
-
exports.
|
|
400
|
-
const
|
|
399
|
+
exports.de_GetEndpointCommand = de_GetEndpointCommand;
|
|
400
|
+
const de_GetEndpointCommandError = async (output, context) => {
|
|
401
401
|
const parsedOutput = {
|
|
402
402
|
...output,
|
|
403
403
|
body: await parseErrorBody(output.body, context),
|
|
@@ -406,13 +406,13 @@ const deserializeAws_restJson1GetEndpointCommandError = async (output, context)
|
|
|
406
406
|
switch (errorCode) {
|
|
407
407
|
case "InternalServerException":
|
|
408
408
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
410
410
|
case "ResourceNotFoundException":
|
|
411
411
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
412
|
-
throw await
|
|
412
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
413
413
|
case "ValidationException":
|
|
414
414
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
415
|
-
throw await
|
|
415
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
416
416
|
default:
|
|
417
417
|
const parsedBody = parsedOutput.body;
|
|
418
418
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -423,9 +423,9 @@ const deserializeAws_restJson1GetEndpointCommandError = async (output, context)
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
|
-
const
|
|
426
|
+
const de_GetSuiteDefinitionCommand = async (output, context) => {
|
|
427
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
-
return
|
|
428
|
+
return de_GetSuiteDefinitionCommandError(output, context);
|
|
429
429
|
}
|
|
430
430
|
const contents = map({
|
|
431
431
|
$metadata: deserializeMetadata(output),
|
|
@@ -444,7 +444,7 @@ const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output, context
|
|
|
444
444
|
contents.suiteDefinitionArn = (0, smithy_client_1.expectString)(data.suiteDefinitionArn);
|
|
445
445
|
}
|
|
446
446
|
if (data.suiteDefinitionConfiguration != null) {
|
|
447
|
-
contents.suiteDefinitionConfiguration =
|
|
447
|
+
contents.suiteDefinitionConfiguration = de_SuiteDefinitionConfiguration(data.suiteDefinitionConfiguration, context);
|
|
448
448
|
}
|
|
449
449
|
if (data.suiteDefinitionId != null) {
|
|
450
450
|
contents.suiteDefinitionId = (0, smithy_client_1.expectString)(data.suiteDefinitionId);
|
|
@@ -453,12 +453,12 @@ const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output, context
|
|
|
453
453
|
contents.suiteDefinitionVersion = (0, smithy_client_1.expectString)(data.suiteDefinitionVersion);
|
|
454
454
|
}
|
|
455
455
|
if (data.tags != null) {
|
|
456
|
-
contents.tags =
|
|
456
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
457
457
|
}
|
|
458
458
|
return contents;
|
|
459
459
|
};
|
|
460
|
-
exports.
|
|
461
|
-
const
|
|
460
|
+
exports.de_GetSuiteDefinitionCommand = de_GetSuiteDefinitionCommand;
|
|
461
|
+
const de_GetSuiteDefinitionCommandError = async (output, context) => {
|
|
462
462
|
const parsedOutput = {
|
|
463
463
|
...output,
|
|
464
464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -467,13 +467,13 @@ const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, co
|
|
|
467
467
|
switch (errorCode) {
|
|
468
468
|
case "InternalServerException":
|
|
469
469
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
470
|
-
throw await
|
|
470
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
471
471
|
case "ResourceNotFoundException":
|
|
472
472
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
473
|
-
throw await
|
|
473
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
474
474
|
case "ValidationException":
|
|
475
475
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
476
|
-
throw await
|
|
476
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
477
477
|
default:
|
|
478
478
|
const parsedBody = parsedOutput.body;
|
|
479
479
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -484,9 +484,9 @@ const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, co
|
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
|
-
const
|
|
487
|
+
const de_GetSuiteRunCommand = async (output, context) => {
|
|
488
488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
489
|
-
return
|
|
489
|
+
return de_GetSuiteRunCommandError(output, context);
|
|
490
490
|
}
|
|
491
491
|
const contents = map({
|
|
492
492
|
$metadata: deserializeMetadata(output),
|
|
@@ -514,21 +514,21 @@ const deserializeAws_restJson1GetSuiteRunCommand = async (output, context) => {
|
|
|
514
514
|
contents.suiteRunArn = (0, smithy_client_1.expectString)(data.suiteRunArn);
|
|
515
515
|
}
|
|
516
516
|
if (data.suiteRunConfiguration != null) {
|
|
517
|
-
contents.suiteRunConfiguration =
|
|
517
|
+
contents.suiteRunConfiguration = de_SuiteRunConfiguration(data.suiteRunConfiguration, context);
|
|
518
518
|
}
|
|
519
519
|
if (data.suiteRunId != null) {
|
|
520
520
|
contents.suiteRunId = (0, smithy_client_1.expectString)(data.suiteRunId);
|
|
521
521
|
}
|
|
522
522
|
if (data.tags != null) {
|
|
523
|
-
contents.tags =
|
|
523
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
524
524
|
}
|
|
525
525
|
if (data.testResult != null) {
|
|
526
|
-
contents.testResult =
|
|
526
|
+
contents.testResult = de_TestResult(data.testResult, context);
|
|
527
527
|
}
|
|
528
528
|
return contents;
|
|
529
529
|
};
|
|
530
|
-
exports.
|
|
531
|
-
const
|
|
530
|
+
exports.de_GetSuiteRunCommand = de_GetSuiteRunCommand;
|
|
531
|
+
const de_GetSuiteRunCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -537,13 +537,13 @@ const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context)
|
|
|
537
537
|
switch (errorCode) {
|
|
538
538
|
case "InternalServerException":
|
|
539
539
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
540
|
-
throw await
|
|
540
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
541
541
|
case "ResourceNotFoundException":
|
|
542
542
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
543
|
-
throw await
|
|
543
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
544
544
|
case "ValidationException":
|
|
545
545
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
546
|
-
throw await
|
|
546
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
547
|
default:
|
|
548
548
|
const parsedBody = parsedOutput.body;
|
|
549
549
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -554,9 +554,9 @@ const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context)
|
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
|
-
const
|
|
557
|
+
const de_GetSuiteRunReportCommand = async (output, context) => {
|
|
558
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return
|
|
559
|
+
return de_GetSuiteRunReportCommandError(output, context);
|
|
560
560
|
}
|
|
561
561
|
const contents = map({
|
|
562
562
|
$metadata: deserializeMetadata(output),
|
|
@@ -567,8 +567,8 @@ const deserializeAws_restJson1GetSuiteRunReportCommand = async (output, context)
|
|
|
567
567
|
}
|
|
568
568
|
return contents;
|
|
569
569
|
};
|
|
570
|
-
exports.
|
|
571
|
-
const
|
|
570
|
+
exports.de_GetSuiteRunReportCommand = de_GetSuiteRunReportCommand;
|
|
571
|
+
const de_GetSuiteRunReportCommandError = async (output, context) => {
|
|
572
572
|
const parsedOutput = {
|
|
573
573
|
...output,
|
|
574
574
|
body: await parseErrorBody(output.body, context),
|
|
@@ -577,13 +577,13 @@ const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, con
|
|
|
577
577
|
switch (errorCode) {
|
|
578
578
|
case "InternalServerException":
|
|
579
579
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
580
|
-
throw await
|
|
580
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
581
581
|
case "ResourceNotFoundException":
|
|
582
582
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
584
|
case "ValidationException":
|
|
585
585
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
587
587
|
default:
|
|
588
588
|
const parsedBody = parsedOutput.body;
|
|
589
589
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -594,9 +594,9 @@ const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, con
|
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
|
-
const
|
|
597
|
+
const de_ListSuiteDefinitionsCommand = async (output, context) => {
|
|
598
598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
599
|
-
return
|
|
599
|
+
return de_ListSuiteDefinitionsCommandError(output, context);
|
|
600
600
|
}
|
|
601
601
|
const contents = map({
|
|
602
602
|
$metadata: deserializeMetadata(output),
|
|
@@ -606,12 +606,12 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommand = async (output, conte
|
|
|
606
606
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
607
607
|
}
|
|
608
608
|
if (data.suiteDefinitionInformationList != null) {
|
|
609
|
-
contents.suiteDefinitionInformationList =
|
|
609
|
+
contents.suiteDefinitionInformationList = de_SuiteDefinitionInformationList(data.suiteDefinitionInformationList, context);
|
|
610
610
|
}
|
|
611
611
|
return contents;
|
|
612
612
|
};
|
|
613
|
-
exports.
|
|
614
|
-
const
|
|
613
|
+
exports.de_ListSuiteDefinitionsCommand = de_ListSuiteDefinitionsCommand;
|
|
614
|
+
const de_ListSuiteDefinitionsCommandError = async (output, context) => {
|
|
615
615
|
const parsedOutput = {
|
|
616
616
|
...output,
|
|
617
617
|
body: await parseErrorBody(output.body, context),
|
|
@@ -620,10 +620,10 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output,
|
|
|
620
620
|
switch (errorCode) {
|
|
621
621
|
case "InternalServerException":
|
|
622
622
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
623
|
-
throw await
|
|
623
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
624
|
case "ValidationException":
|
|
625
625
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
626
|
-
throw await
|
|
626
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
627
627
|
default:
|
|
628
628
|
const parsedBody = parsedOutput.body;
|
|
629
629
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -634,9 +634,9 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output,
|
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
|
-
const
|
|
637
|
+
const de_ListSuiteRunsCommand = async (output, context) => {
|
|
638
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
-
return
|
|
639
|
+
return de_ListSuiteRunsCommandError(output, context);
|
|
640
640
|
}
|
|
641
641
|
const contents = map({
|
|
642
642
|
$metadata: deserializeMetadata(output),
|
|
@@ -646,12 +646,12 @@ const deserializeAws_restJson1ListSuiteRunsCommand = async (output, context) =>
|
|
|
646
646
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
647
647
|
}
|
|
648
648
|
if (data.suiteRunsList != null) {
|
|
649
|
-
contents.suiteRunsList =
|
|
649
|
+
contents.suiteRunsList = de_SuiteRunsList(data.suiteRunsList, context);
|
|
650
650
|
}
|
|
651
651
|
return contents;
|
|
652
652
|
};
|
|
653
|
-
exports.
|
|
654
|
-
const
|
|
653
|
+
exports.de_ListSuiteRunsCommand = de_ListSuiteRunsCommand;
|
|
654
|
+
const de_ListSuiteRunsCommandError = async (output, context) => {
|
|
655
655
|
const parsedOutput = {
|
|
656
656
|
...output,
|
|
657
657
|
body: await parseErrorBody(output.body, context),
|
|
@@ -660,10 +660,10 @@ const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context
|
|
|
660
660
|
switch (errorCode) {
|
|
661
661
|
case "InternalServerException":
|
|
662
662
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
663
|
-
throw await
|
|
663
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
664
664
|
case "ValidationException":
|
|
665
665
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
666
|
-
throw await
|
|
666
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
667
|
default:
|
|
668
668
|
const parsedBody = parsedOutput.body;
|
|
669
669
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -674,21 +674,21 @@ const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context
|
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
|
-
const
|
|
677
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
678
678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
|
-
return
|
|
679
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
680
680
|
}
|
|
681
681
|
const contents = map({
|
|
682
682
|
$metadata: deserializeMetadata(output),
|
|
683
683
|
});
|
|
684
684
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
685
685
|
if (data.tags != null) {
|
|
686
|
-
contents.tags =
|
|
686
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
687
687
|
}
|
|
688
688
|
return contents;
|
|
689
689
|
};
|
|
690
|
-
exports.
|
|
691
|
-
const
|
|
690
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
691
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
692
692
|
const parsedOutput = {
|
|
693
693
|
...output,
|
|
694
694
|
body: await parseErrorBody(output.body, context),
|
|
@@ -697,13 +697,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
697
697
|
switch (errorCode) {
|
|
698
698
|
case "InternalServerException":
|
|
699
699
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
700
|
-
throw await
|
|
700
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
701
701
|
case "ResourceNotFoundException":
|
|
702
702
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
703
|
-
throw await
|
|
703
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
704
704
|
case "ValidationException":
|
|
705
705
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
706
|
-
throw await
|
|
706
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
707
|
default:
|
|
708
708
|
const parsedBody = parsedOutput.body;
|
|
709
709
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -714,9 +714,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
const
|
|
717
|
+
const de_StartSuiteRunCommand = async (output, context) => {
|
|
718
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
-
return
|
|
719
|
+
return de_StartSuiteRunCommandError(output, context);
|
|
720
720
|
}
|
|
721
721
|
const contents = map({
|
|
722
722
|
$metadata: deserializeMetadata(output),
|
|
@@ -736,8 +736,8 @@ const deserializeAws_restJson1StartSuiteRunCommand = async (output, context) =>
|
|
|
736
736
|
}
|
|
737
737
|
return contents;
|
|
738
738
|
};
|
|
739
|
-
exports.
|
|
740
|
-
const
|
|
739
|
+
exports.de_StartSuiteRunCommand = de_StartSuiteRunCommand;
|
|
740
|
+
const de_StartSuiteRunCommandError = async (output, context) => {
|
|
741
741
|
const parsedOutput = {
|
|
742
742
|
...output,
|
|
743
743
|
body: await parseErrorBody(output.body, context),
|
|
@@ -746,13 +746,13 @@ const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context
|
|
|
746
746
|
switch (errorCode) {
|
|
747
747
|
case "ConflictException":
|
|
748
748
|
case "com.amazonaws.iotdeviceadvisor#ConflictException":
|
|
749
|
-
throw await
|
|
749
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
750
750
|
case "InternalServerException":
|
|
751
751
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
752
|
-
throw await
|
|
752
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
753
753
|
case "ValidationException":
|
|
754
754
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
755
|
-
throw await
|
|
755
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
756
756
|
default:
|
|
757
757
|
const parsedBody = parsedOutput.body;
|
|
758
758
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -763,9 +763,9 @@ const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context
|
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
|
-
const
|
|
766
|
+
const de_StopSuiteRunCommand = async (output, context) => {
|
|
767
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
-
return
|
|
768
|
+
return de_StopSuiteRunCommandError(output, context);
|
|
769
769
|
}
|
|
770
770
|
const contents = map({
|
|
771
771
|
$metadata: deserializeMetadata(output),
|
|
@@ -773,8 +773,8 @@ const deserializeAws_restJson1StopSuiteRunCommand = async (output, context) => {
|
|
|
773
773
|
await collectBody(output.body, context);
|
|
774
774
|
return contents;
|
|
775
775
|
};
|
|
776
|
-
exports.
|
|
777
|
-
const
|
|
776
|
+
exports.de_StopSuiteRunCommand = de_StopSuiteRunCommand;
|
|
777
|
+
const de_StopSuiteRunCommandError = async (output, context) => {
|
|
778
778
|
const parsedOutput = {
|
|
779
779
|
...output,
|
|
780
780
|
body: await parseErrorBody(output.body, context),
|
|
@@ -783,13 +783,13 @@ const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context)
|
|
|
783
783
|
switch (errorCode) {
|
|
784
784
|
case "InternalServerException":
|
|
785
785
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
786
|
-
throw await
|
|
786
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
787
787
|
case "ResourceNotFoundException":
|
|
788
788
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
789
|
-
throw await
|
|
789
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
790
790
|
case "ValidationException":
|
|
791
791
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
792
|
-
throw await
|
|
792
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
793
793
|
default:
|
|
794
794
|
const parsedBody = parsedOutput.body;
|
|
795
795
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -800,9 +800,9 @@ const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context)
|
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
const
|
|
803
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
804
804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return
|
|
805
|
+
return de_TagResourceCommandError(output, context);
|
|
806
806
|
}
|
|
807
807
|
const contents = map({
|
|
808
808
|
$metadata: deserializeMetadata(output),
|
|
@@ -810,8 +810,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
810
810
|
await collectBody(output.body, context);
|
|
811
811
|
return contents;
|
|
812
812
|
};
|
|
813
|
-
exports.
|
|
814
|
-
const
|
|
813
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
814
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
815
815
|
const parsedOutput = {
|
|
816
816
|
...output,
|
|
817
817
|
body: await parseErrorBody(output.body, context),
|
|
@@ -820,13 +820,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
820
820
|
switch (errorCode) {
|
|
821
821
|
case "InternalServerException":
|
|
822
822
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
823
|
-
throw await
|
|
823
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
824
824
|
case "ResourceNotFoundException":
|
|
825
825
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
826
|
-
throw await
|
|
826
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
827
827
|
case "ValidationException":
|
|
828
828
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
829
|
-
throw await
|
|
829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
830
|
default:
|
|
831
831
|
const parsedBody = parsedOutput.body;
|
|
832
832
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -837,9 +837,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
837
837
|
});
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
|
-
const
|
|
840
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
841
841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
842
|
+
return de_UntagResourceCommandError(output, context);
|
|
843
843
|
}
|
|
844
844
|
const contents = map({
|
|
845
845
|
$metadata: deserializeMetadata(output),
|
|
@@ -847,8 +847,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
847
847
|
await collectBody(output.body, context);
|
|
848
848
|
return contents;
|
|
849
849
|
};
|
|
850
|
-
exports.
|
|
851
|
-
const
|
|
850
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
851
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
852
852
|
const parsedOutput = {
|
|
853
853
|
...output,
|
|
854
854
|
body: await parseErrorBody(output.body, context),
|
|
@@ -857,13 +857,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
857
857
|
switch (errorCode) {
|
|
858
858
|
case "InternalServerException":
|
|
859
859
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
860
|
-
throw await
|
|
860
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
861
861
|
case "ResourceNotFoundException":
|
|
862
862
|
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
863
|
-
throw await
|
|
863
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
864
864
|
case "ValidationException":
|
|
865
865
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
866
|
-
throw await
|
|
866
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
867
867
|
default:
|
|
868
868
|
const parsedBody = parsedOutput.body;
|
|
869
869
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -874,9 +874,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
|
-
const
|
|
877
|
+
const de_UpdateSuiteDefinitionCommand = async (output, context) => {
|
|
878
878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
|
-
return
|
|
879
|
+
return de_UpdateSuiteDefinitionCommandError(output, context);
|
|
880
880
|
}
|
|
881
881
|
const contents = map({
|
|
882
882
|
$metadata: deserializeMetadata(output),
|
|
@@ -902,8 +902,8 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommand = async (output, cont
|
|
|
902
902
|
}
|
|
903
903
|
return contents;
|
|
904
904
|
};
|
|
905
|
-
exports.
|
|
906
|
-
const
|
|
905
|
+
exports.de_UpdateSuiteDefinitionCommand = de_UpdateSuiteDefinitionCommand;
|
|
906
|
+
const de_UpdateSuiteDefinitionCommandError = async (output, context) => {
|
|
907
907
|
const parsedOutput = {
|
|
908
908
|
...output,
|
|
909
909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -912,10 +912,10 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output,
|
|
|
912
912
|
switch (errorCode) {
|
|
913
913
|
case "InternalServerException":
|
|
914
914
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
915
|
-
throw await
|
|
915
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
916
916
|
case "ValidationException":
|
|
917
917
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
918
|
-
throw await
|
|
918
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
919
|
default:
|
|
920
920
|
const parsedBody = parsedOutput.body;
|
|
921
921
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -927,7 +927,7 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output,
|
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
const map = smithy_client_1.map;
|
|
930
|
-
const
|
|
930
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
931
931
|
const contents = map({});
|
|
932
932
|
const data = parsedOutput.body;
|
|
933
933
|
if (data.message != null) {
|
|
@@ -939,7 +939,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
939
939
|
});
|
|
940
940
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
941
941
|
};
|
|
942
|
-
const
|
|
942
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
943
943
|
const contents = map({});
|
|
944
944
|
const data = parsedOutput.body;
|
|
945
945
|
if (data.message != null) {
|
|
@@ -951,7 +951,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
951
951
|
});
|
|
952
952
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
953
953
|
};
|
|
954
|
-
const
|
|
954
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
955
955
|
const contents = map({});
|
|
956
956
|
const data = parsedOutput.body;
|
|
957
957
|
if (data.message != null) {
|
|
@@ -963,7 +963,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
963
963
|
});
|
|
964
964
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
965
965
|
};
|
|
966
|
-
const
|
|
966
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
967
967
|
const contents = map({});
|
|
968
968
|
const data = parsedOutput.body;
|
|
969
969
|
if (data.message != null) {
|
|
@@ -975,30 +975,30 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
975
975
|
});
|
|
976
976
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
977
977
|
};
|
|
978
|
-
const
|
|
978
|
+
const se_DeviceUnderTest = (input, context) => {
|
|
979
979
|
return {
|
|
980
980
|
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
981
981
|
...(input.thingArn != null && { thingArn: input.thingArn }),
|
|
982
982
|
};
|
|
983
983
|
};
|
|
984
|
-
const
|
|
984
|
+
const se_DeviceUnderTestList = (input, context) => {
|
|
985
985
|
return input
|
|
986
986
|
.filter((e) => e != null)
|
|
987
987
|
.map((entry) => {
|
|
988
|
-
return
|
|
988
|
+
return se_DeviceUnderTest(entry, context);
|
|
989
989
|
});
|
|
990
990
|
};
|
|
991
|
-
const
|
|
991
|
+
const se_SelectedTestList = (input, context) => {
|
|
992
992
|
return input
|
|
993
993
|
.filter((e) => e != null)
|
|
994
994
|
.map((entry) => {
|
|
995
995
|
return entry;
|
|
996
996
|
});
|
|
997
997
|
};
|
|
998
|
-
const
|
|
998
|
+
const se_SuiteDefinitionConfiguration = (input, context) => {
|
|
999
999
|
return {
|
|
1000
1000
|
...(input.devicePermissionRoleArn != null && { devicePermissionRoleArn: input.devicePermissionRoleArn }),
|
|
1001
|
-
...(input.devices != null && { devices:
|
|
1001
|
+
...(input.devices != null && { devices: se_DeviceUnderTestList(input.devices, context) }),
|
|
1002
1002
|
...(input.intendedForQualification != null && { intendedForQualification: input.intendedForQualification }),
|
|
1003
1003
|
...(input.isLongDurationTest != null && { isLongDurationTest: input.isLongDurationTest }),
|
|
1004
1004
|
...(input.protocol != null && { protocol: input.protocol }),
|
|
@@ -1006,18 +1006,14 @@ const serializeAws_restJson1SuiteDefinitionConfiguration = (input, context) => {
|
|
|
1006
1006
|
...(input.suiteDefinitionName != null && { suiteDefinitionName: input.suiteDefinitionName }),
|
|
1007
1007
|
};
|
|
1008
1008
|
};
|
|
1009
|
-
const
|
|
1009
|
+
const se_SuiteRunConfiguration = (input, context) => {
|
|
1010
1010
|
return {
|
|
1011
1011
|
...(input.parallelRun != null && { parallelRun: input.parallelRun }),
|
|
1012
|
-
...(input.primaryDevice != null && {
|
|
1013
|
-
|
|
1014
|
-
}),
|
|
1015
|
-
...(input.selectedTestList != null && {
|
|
1016
|
-
selectedTestList: serializeAws_restJson1SelectedTestList(input.selectedTestList, context),
|
|
1017
|
-
}),
|
|
1012
|
+
...(input.primaryDevice != null && { primaryDevice: se_DeviceUnderTest(input.primaryDevice, context) }),
|
|
1013
|
+
...(input.selectedTestList != null && { selectedTestList: se_SelectedTestList(input.selectedTestList, context) }),
|
|
1018
1014
|
};
|
|
1019
1015
|
};
|
|
1020
|
-
const
|
|
1016
|
+
const se_TagMap = (input, context) => {
|
|
1021
1017
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1022
1018
|
if (value === null) {
|
|
1023
1019
|
return acc;
|
|
@@ -1026,42 +1022,42 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1026
1022
|
return acc;
|
|
1027
1023
|
}, {});
|
|
1028
1024
|
};
|
|
1029
|
-
const
|
|
1025
|
+
const de_DeviceUnderTest = (output, context) => {
|
|
1030
1026
|
return {
|
|
1031
1027
|
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
1032
1028
|
thingArn: (0, smithy_client_1.expectString)(output.thingArn),
|
|
1033
1029
|
};
|
|
1034
1030
|
};
|
|
1035
|
-
const
|
|
1031
|
+
const de_DeviceUnderTestList = (output, context) => {
|
|
1036
1032
|
const retVal = (output || [])
|
|
1037
1033
|
.filter((e) => e != null)
|
|
1038
1034
|
.map((entry) => {
|
|
1039
1035
|
if (entry === null) {
|
|
1040
1036
|
return null;
|
|
1041
1037
|
}
|
|
1042
|
-
return
|
|
1038
|
+
return de_DeviceUnderTest(entry, context);
|
|
1043
1039
|
});
|
|
1044
1040
|
return retVal;
|
|
1045
1041
|
};
|
|
1046
|
-
const
|
|
1042
|
+
const de_GroupResult = (output, context) => {
|
|
1047
1043
|
return {
|
|
1048
1044
|
groupId: (0, smithy_client_1.expectString)(output.groupId),
|
|
1049
1045
|
groupName: (0, smithy_client_1.expectString)(output.groupName),
|
|
1050
|
-
tests: output.tests != null ?
|
|
1046
|
+
tests: output.tests != null ? de_TestCaseRuns(output.tests, context) : undefined,
|
|
1051
1047
|
};
|
|
1052
1048
|
};
|
|
1053
|
-
const
|
|
1049
|
+
const de_GroupResultList = (output, context) => {
|
|
1054
1050
|
const retVal = (output || [])
|
|
1055
1051
|
.filter((e) => e != null)
|
|
1056
1052
|
.map((entry) => {
|
|
1057
1053
|
if (entry === null) {
|
|
1058
1054
|
return null;
|
|
1059
1055
|
}
|
|
1060
|
-
return
|
|
1056
|
+
return de_GroupResult(entry, context);
|
|
1061
1057
|
});
|
|
1062
1058
|
return retVal;
|
|
1063
1059
|
};
|
|
1064
|
-
const
|
|
1060
|
+
const de_SelectedTestList = (output, context) => {
|
|
1065
1061
|
const retVal = (output || [])
|
|
1066
1062
|
.filter((e) => e != null)
|
|
1067
1063
|
.map((entry) => {
|
|
@@ -1072,10 +1068,10 @@ const deserializeAws_restJson1SelectedTestList = (output, context) => {
|
|
|
1072
1068
|
});
|
|
1073
1069
|
return retVal;
|
|
1074
1070
|
};
|
|
1075
|
-
const
|
|
1071
|
+
const de_SuiteDefinitionConfiguration = (output, context) => {
|
|
1076
1072
|
return {
|
|
1077
1073
|
devicePermissionRoleArn: (0, smithy_client_1.expectString)(output.devicePermissionRoleArn),
|
|
1078
|
-
devices: output.devices != null ?
|
|
1074
|
+
devices: output.devices != null ? de_DeviceUnderTestList(output.devices, context) : undefined,
|
|
1079
1075
|
intendedForQualification: (0, smithy_client_1.expectBoolean)(output.intendedForQualification),
|
|
1080
1076
|
isLongDurationTest: (0, smithy_client_1.expectBoolean)(output.isLongDurationTest),
|
|
1081
1077
|
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
@@ -1083,12 +1079,10 @@ const deserializeAws_restJson1SuiteDefinitionConfiguration = (output, context) =
|
|
|
1083
1079
|
suiteDefinitionName: (0, smithy_client_1.expectString)(output.suiteDefinitionName),
|
|
1084
1080
|
};
|
|
1085
1081
|
};
|
|
1086
|
-
const
|
|
1082
|
+
const de_SuiteDefinitionInformation = (output, context) => {
|
|
1087
1083
|
return {
|
|
1088
1084
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1089
|
-
defaultDevices: output.defaultDevices != null
|
|
1090
|
-
? deserializeAws_restJson1DeviceUnderTestList(output.defaultDevices, context)
|
|
1091
|
-
: undefined,
|
|
1085
|
+
defaultDevices: output.defaultDevices != null ? de_DeviceUnderTestList(output.defaultDevices, context) : undefined,
|
|
1092
1086
|
intendedForQualification: (0, smithy_client_1.expectBoolean)(output.intendedForQualification),
|
|
1093
1087
|
isLongDurationTest: (0, smithy_client_1.expectBoolean)(output.isLongDurationTest),
|
|
1094
1088
|
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
@@ -1096,27 +1090,25 @@ const deserializeAws_restJson1SuiteDefinitionInformation = (output, context) =>
|
|
|
1096
1090
|
suiteDefinitionName: (0, smithy_client_1.expectString)(output.suiteDefinitionName),
|
|
1097
1091
|
};
|
|
1098
1092
|
};
|
|
1099
|
-
const
|
|
1093
|
+
const de_SuiteDefinitionInformationList = (output, context) => {
|
|
1100
1094
|
const retVal = (output || [])
|
|
1101
1095
|
.filter((e) => e != null)
|
|
1102
1096
|
.map((entry) => {
|
|
1103
1097
|
if (entry === null) {
|
|
1104
1098
|
return null;
|
|
1105
1099
|
}
|
|
1106
|
-
return
|
|
1100
|
+
return de_SuiteDefinitionInformation(entry, context);
|
|
1107
1101
|
});
|
|
1108
1102
|
return retVal;
|
|
1109
1103
|
};
|
|
1110
|
-
const
|
|
1104
|
+
const de_SuiteRunConfiguration = (output, context) => {
|
|
1111
1105
|
return {
|
|
1112
1106
|
parallelRun: (0, smithy_client_1.expectBoolean)(output.parallelRun),
|
|
1113
|
-
primaryDevice: output.primaryDevice != null ?
|
|
1114
|
-
selectedTestList: output.selectedTestList != null
|
|
1115
|
-
? deserializeAws_restJson1SelectedTestList(output.selectedTestList, context)
|
|
1116
|
-
: undefined,
|
|
1107
|
+
primaryDevice: output.primaryDevice != null ? de_DeviceUnderTest(output.primaryDevice, context) : undefined,
|
|
1108
|
+
selectedTestList: output.selectedTestList != null ? de_SelectedTestList(output.selectedTestList, context) : undefined,
|
|
1117
1109
|
};
|
|
1118
1110
|
};
|
|
1119
|
-
const
|
|
1111
|
+
const de_SuiteRunInformation = (output, context) => {
|
|
1120
1112
|
return {
|
|
1121
1113
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1122
1114
|
endAt: output.endAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endAt))) : undefined,
|
|
@@ -1130,18 +1122,18 @@ const deserializeAws_restJson1SuiteRunInformation = (output, context) => {
|
|
|
1130
1122
|
suiteRunId: (0, smithy_client_1.expectString)(output.suiteRunId),
|
|
1131
1123
|
};
|
|
1132
1124
|
};
|
|
1133
|
-
const
|
|
1125
|
+
const de_SuiteRunsList = (output, context) => {
|
|
1134
1126
|
const retVal = (output || [])
|
|
1135
1127
|
.filter((e) => e != null)
|
|
1136
1128
|
.map((entry) => {
|
|
1137
1129
|
if (entry === null) {
|
|
1138
1130
|
return null;
|
|
1139
1131
|
}
|
|
1140
|
-
return
|
|
1132
|
+
return de_SuiteRunInformation(entry, context);
|
|
1141
1133
|
});
|
|
1142
1134
|
return retVal;
|
|
1143
1135
|
};
|
|
1144
|
-
const
|
|
1136
|
+
const de_TagMap = (output, context) => {
|
|
1145
1137
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1146
1138
|
if (value === null) {
|
|
1147
1139
|
return acc;
|
|
@@ -1150,7 +1142,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1150
1142
|
return acc;
|
|
1151
1143
|
}, {});
|
|
1152
1144
|
};
|
|
1153
|
-
const
|
|
1145
|
+
const de_TestCaseRun = (output, context) => {
|
|
1154
1146
|
return {
|
|
1155
1147
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
1156
1148
|
failure: (0, smithy_client_1.expectString)(output.failure),
|
|
@@ -1160,24 +1152,22 @@ const deserializeAws_restJson1TestCaseRun = (output, context) => {
|
|
|
1160
1152
|
testCaseDefinitionId: (0, smithy_client_1.expectString)(output.testCaseDefinitionId),
|
|
1161
1153
|
testCaseDefinitionName: (0, smithy_client_1.expectString)(output.testCaseDefinitionName),
|
|
1162
1154
|
testCaseRunId: (0, smithy_client_1.expectString)(output.testCaseRunId),
|
|
1163
|
-
testScenarios: output.testScenarios != null
|
|
1164
|
-
? deserializeAws_restJson1TestCaseScenariosList(output.testScenarios, context)
|
|
1165
|
-
: undefined,
|
|
1155
|
+
testScenarios: output.testScenarios != null ? de_TestCaseScenariosList(output.testScenarios, context) : undefined,
|
|
1166
1156
|
warnings: (0, smithy_client_1.expectString)(output.warnings),
|
|
1167
1157
|
};
|
|
1168
1158
|
};
|
|
1169
|
-
const
|
|
1159
|
+
const de_TestCaseRuns = (output, context) => {
|
|
1170
1160
|
const retVal = (output || [])
|
|
1171
1161
|
.filter((e) => e != null)
|
|
1172
1162
|
.map((entry) => {
|
|
1173
1163
|
if (entry === null) {
|
|
1174
1164
|
return null;
|
|
1175
1165
|
}
|
|
1176
|
-
return
|
|
1166
|
+
return de_TestCaseRun(entry, context);
|
|
1177
1167
|
});
|
|
1178
1168
|
return retVal;
|
|
1179
1169
|
};
|
|
1180
|
-
const
|
|
1170
|
+
const de_TestCaseScenario = (output, context) => {
|
|
1181
1171
|
return {
|
|
1182
1172
|
failure: (0, smithy_client_1.expectString)(output.failure),
|
|
1183
1173
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -1186,20 +1176,20 @@ const deserializeAws_restJson1TestCaseScenario = (output, context) => {
|
|
|
1186
1176
|
testCaseScenarioType: (0, smithy_client_1.expectString)(output.testCaseScenarioType),
|
|
1187
1177
|
};
|
|
1188
1178
|
};
|
|
1189
|
-
const
|
|
1179
|
+
const de_TestCaseScenariosList = (output, context) => {
|
|
1190
1180
|
const retVal = (output || [])
|
|
1191
1181
|
.filter((e) => e != null)
|
|
1192
1182
|
.map((entry) => {
|
|
1193
1183
|
if (entry === null) {
|
|
1194
1184
|
return null;
|
|
1195
1185
|
}
|
|
1196
|
-
return
|
|
1186
|
+
return de_TestCaseScenario(entry, context);
|
|
1197
1187
|
});
|
|
1198
1188
|
return retVal;
|
|
1199
1189
|
};
|
|
1200
|
-
const
|
|
1190
|
+
const de_TestResult = (output, context) => {
|
|
1201
1191
|
return {
|
|
1202
|
-
groups: output.groups != null ?
|
|
1192
|
+
groups: output.groups != null ? de_GroupResultList(output.groups, context) : undefined,
|
|
1203
1193
|
};
|
|
1204
1194
|
};
|
|
1205
1195
|
const deserializeMetadata = (output) => ({
|