@aws-sdk/client-greengrass 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +645 -659
- package/dist-es/protocols/Aws_restJson1.js +586 -600
- package/package.json +26 -26
|
@@ -26,7 +26,7 @@ const serializeAws_restJson1AssociateRoleToGroupCommand = async (input, context)
|
|
|
26
26
|
}
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.RoleArn
|
|
29
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
30
30
|
});
|
|
31
31
|
return new protocol_http_1.HttpRequest({
|
|
32
32
|
protocol,
|
|
@@ -47,7 +47,7 @@ const serializeAws_restJson1AssociateServiceRoleToAccountCommand = async (input,
|
|
|
47
47
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
|
|
48
48
|
let body;
|
|
49
49
|
body = JSON.stringify({
|
|
50
|
-
...(input.RoleArn
|
|
50
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
51
51
|
});
|
|
52
52
|
return new protocol_http_1.HttpRequest({
|
|
53
53
|
protocol,
|
|
@@ -69,12 +69,11 @@ const serializeAws_restJson1CreateConnectorDefinitionCommand = async (input, con
|
|
|
69
69
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/connectors";
|
|
70
70
|
let body;
|
|
71
71
|
body = JSON.stringify({
|
|
72
|
-
...(input.InitialVersion
|
|
73
|
-
input.InitialVersion !== null && {
|
|
72
|
+
...(input.InitialVersion != null && {
|
|
74
73
|
InitialVersion: serializeAws_restJson1ConnectorDefinitionVersion(input.InitialVersion, context),
|
|
75
74
|
}),
|
|
76
|
-
...(input.Name
|
|
77
|
-
...(input.tags
|
|
75
|
+
...(input.Name != null && { Name: input.Name }),
|
|
76
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
78
77
|
});
|
|
79
78
|
return new protocol_http_1.HttpRequest({
|
|
80
79
|
protocol,
|
|
@@ -107,8 +106,7 @@ const serializeAws_restJson1CreateConnectorDefinitionVersionCommand = async (inp
|
|
|
107
106
|
}
|
|
108
107
|
let body;
|
|
109
108
|
body = JSON.stringify({
|
|
110
|
-
...(input.Connectors
|
|
111
|
-
input.Connectors !== null && { Connectors: serializeAws_restJson1__listOfConnector(input.Connectors, context) }),
|
|
109
|
+
...(input.Connectors != null && { Connectors: serializeAws_restJson1__listOfConnector(input.Connectors, context) }),
|
|
112
110
|
});
|
|
113
111
|
return new protocol_http_1.HttpRequest({
|
|
114
112
|
protocol,
|
|
@@ -130,12 +128,11 @@ const serializeAws_restJson1CreateCoreDefinitionCommand = async (input, context)
|
|
|
130
128
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/cores";
|
|
131
129
|
let body;
|
|
132
130
|
body = JSON.stringify({
|
|
133
|
-
...(input.InitialVersion
|
|
134
|
-
input.InitialVersion !== null && {
|
|
131
|
+
...(input.InitialVersion != null && {
|
|
135
132
|
InitialVersion: serializeAws_restJson1CoreDefinitionVersion(input.InitialVersion, context),
|
|
136
133
|
}),
|
|
137
|
-
...(input.Name
|
|
138
|
-
...(input.tags
|
|
134
|
+
...(input.Name != null && { Name: input.Name }),
|
|
135
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
139
136
|
});
|
|
140
137
|
return new protocol_http_1.HttpRequest({
|
|
141
138
|
protocol,
|
|
@@ -168,8 +165,7 @@ const serializeAws_restJson1CreateCoreDefinitionVersionCommand = async (input, c
|
|
|
168
165
|
}
|
|
169
166
|
let body;
|
|
170
167
|
body = JSON.stringify({
|
|
171
|
-
...(input.Cores
|
|
172
|
-
input.Cores !== null && { Cores: serializeAws_restJson1__listOfCore(input.Cores, context) }),
|
|
168
|
+
...(input.Cores != null && { Cores: serializeAws_restJson1__listOfCore(input.Cores, context) }),
|
|
173
169
|
});
|
|
174
170
|
return new protocol_http_1.HttpRequest({
|
|
175
171
|
protocol,
|
|
@@ -201,11 +197,9 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
201
197
|
}
|
|
202
198
|
let body;
|
|
203
199
|
body = JSON.stringify({
|
|
204
|
-
...(input.DeploymentId
|
|
205
|
-
...(input.DeploymentType
|
|
206
|
-
|
|
207
|
-
...(input.GroupVersionId !== undefined &&
|
|
208
|
-
input.GroupVersionId !== null && { GroupVersionId: input.GroupVersionId }),
|
|
200
|
+
...(input.DeploymentId != null && { DeploymentId: input.DeploymentId }),
|
|
201
|
+
...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
|
|
202
|
+
...(input.GroupVersionId != null && { GroupVersionId: input.GroupVersionId }),
|
|
209
203
|
});
|
|
210
204
|
return new protocol_http_1.HttpRequest({
|
|
211
205
|
protocol,
|
|
@@ -227,12 +221,11 @@ const serializeAws_restJson1CreateDeviceDefinitionCommand = async (input, contex
|
|
|
227
221
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/devices";
|
|
228
222
|
let body;
|
|
229
223
|
body = JSON.stringify({
|
|
230
|
-
...(input.InitialVersion
|
|
231
|
-
input.InitialVersion !== null && {
|
|
224
|
+
...(input.InitialVersion != null && {
|
|
232
225
|
InitialVersion: serializeAws_restJson1DeviceDefinitionVersion(input.InitialVersion, context),
|
|
233
226
|
}),
|
|
234
|
-
...(input.Name
|
|
235
|
-
...(input.tags
|
|
227
|
+
...(input.Name != null && { Name: input.Name }),
|
|
228
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
236
229
|
});
|
|
237
230
|
return new protocol_http_1.HttpRequest({
|
|
238
231
|
protocol,
|
|
@@ -265,8 +258,7 @@ const serializeAws_restJson1CreateDeviceDefinitionVersionCommand = async (input,
|
|
|
265
258
|
}
|
|
266
259
|
let body;
|
|
267
260
|
body = JSON.stringify({
|
|
268
|
-
...(input.Devices
|
|
269
|
-
input.Devices !== null && { Devices: serializeAws_restJson1__listOfDevice(input.Devices, context) }),
|
|
261
|
+
...(input.Devices != null && { Devices: serializeAws_restJson1__listOfDevice(input.Devices, context) }),
|
|
270
262
|
});
|
|
271
263
|
return new protocol_http_1.HttpRequest({
|
|
272
264
|
protocol,
|
|
@@ -288,12 +280,11 @@ const serializeAws_restJson1CreateFunctionDefinitionCommand = async (input, cont
|
|
|
288
280
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/functions";
|
|
289
281
|
let body;
|
|
290
282
|
body = JSON.stringify({
|
|
291
|
-
...(input.InitialVersion
|
|
292
|
-
input.InitialVersion !== null && {
|
|
283
|
+
...(input.InitialVersion != null && {
|
|
293
284
|
InitialVersion: serializeAws_restJson1FunctionDefinitionVersion(input.InitialVersion, context),
|
|
294
285
|
}),
|
|
295
|
-
...(input.Name
|
|
296
|
-
...(input.tags
|
|
286
|
+
...(input.Name != null && { Name: input.Name }),
|
|
287
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
297
288
|
});
|
|
298
289
|
return new protocol_http_1.HttpRequest({
|
|
299
290
|
protocol,
|
|
@@ -326,12 +317,10 @@ const serializeAws_restJson1CreateFunctionDefinitionVersionCommand = async (inpu
|
|
|
326
317
|
}
|
|
327
318
|
let body;
|
|
328
319
|
body = JSON.stringify({
|
|
329
|
-
...(input.DefaultConfig
|
|
330
|
-
input.DefaultConfig !== null && {
|
|
320
|
+
...(input.DefaultConfig != null && {
|
|
331
321
|
DefaultConfig: serializeAws_restJson1FunctionDefaultConfig(input.DefaultConfig, context),
|
|
332
322
|
}),
|
|
333
|
-
...(input.Functions
|
|
334
|
-
input.Functions !== null && { Functions: serializeAws_restJson1__listOfFunction(input.Functions, context) }),
|
|
323
|
+
...(input.Functions != null && { Functions: serializeAws_restJson1__listOfFunction(input.Functions, context) }),
|
|
335
324
|
});
|
|
336
325
|
return new protocol_http_1.HttpRequest({
|
|
337
326
|
protocol,
|
|
@@ -353,12 +342,11 @@ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
|
|
|
353
342
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups";
|
|
354
343
|
let body;
|
|
355
344
|
body = JSON.stringify({
|
|
356
|
-
...(input.InitialVersion
|
|
357
|
-
input.InitialVersion !== null && {
|
|
345
|
+
...(input.InitialVersion != null && {
|
|
358
346
|
InitialVersion: serializeAws_restJson1GroupVersion(input.InitialVersion, context),
|
|
359
347
|
}),
|
|
360
|
-
...(input.Name
|
|
361
|
-
...(input.tags
|
|
348
|
+
...(input.Name != null && { Name: input.Name }),
|
|
349
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
362
350
|
});
|
|
363
351
|
return new protocol_http_1.HttpRequest({
|
|
364
352
|
protocol,
|
|
@@ -419,26 +407,19 @@ const serializeAws_restJson1CreateGroupVersionCommand = async (input, context) =
|
|
|
419
407
|
}
|
|
420
408
|
let body;
|
|
421
409
|
body = JSON.stringify({
|
|
422
|
-
...(input.ConnectorDefinitionVersionArn
|
|
423
|
-
input.ConnectorDefinitionVersionArn !== null && {
|
|
410
|
+
...(input.ConnectorDefinitionVersionArn != null && {
|
|
424
411
|
ConnectorDefinitionVersionArn: input.ConnectorDefinitionVersionArn,
|
|
425
412
|
}),
|
|
426
|
-
...(input.CoreDefinitionVersionArn
|
|
427
|
-
|
|
428
|
-
...(input.
|
|
429
|
-
input.DeviceDefinitionVersionArn !== null && { DeviceDefinitionVersionArn: input.DeviceDefinitionVersionArn }),
|
|
430
|
-
...(input.FunctionDefinitionVersionArn !== undefined &&
|
|
431
|
-
input.FunctionDefinitionVersionArn !== null && {
|
|
413
|
+
...(input.CoreDefinitionVersionArn != null && { CoreDefinitionVersionArn: input.CoreDefinitionVersionArn }),
|
|
414
|
+
...(input.DeviceDefinitionVersionArn != null && { DeviceDefinitionVersionArn: input.DeviceDefinitionVersionArn }),
|
|
415
|
+
...(input.FunctionDefinitionVersionArn != null && {
|
|
432
416
|
FunctionDefinitionVersionArn: input.FunctionDefinitionVersionArn,
|
|
433
417
|
}),
|
|
434
|
-
...(input.LoggerDefinitionVersionArn
|
|
435
|
-
|
|
436
|
-
...(input.ResourceDefinitionVersionArn !== undefined &&
|
|
437
|
-
input.ResourceDefinitionVersionArn !== null && {
|
|
418
|
+
...(input.LoggerDefinitionVersionArn != null && { LoggerDefinitionVersionArn: input.LoggerDefinitionVersionArn }),
|
|
419
|
+
...(input.ResourceDefinitionVersionArn != null && {
|
|
438
420
|
ResourceDefinitionVersionArn: input.ResourceDefinitionVersionArn,
|
|
439
421
|
}),
|
|
440
|
-
...(input.SubscriptionDefinitionVersionArn
|
|
441
|
-
input.SubscriptionDefinitionVersionArn !== null && {
|
|
422
|
+
...(input.SubscriptionDefinitionVersionArn != null && {
|
|
442
423
|
SubscriptionDefinitionVersionArn: input.SubscriptionDefinitionVersionArn,
|
|
443
424
|
}),
|
|
444
425
|
});
|
|
@@ -462,12 +443,11 @@ const serializeAws_restJson1CreateLoggerDefinitionCommand = async (input, contex
|
|
|
462
443
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/loggers";
|
|
463
444
|
let body;
|
|
464
445
|
body = JSON.stringify({
|
|
465
|
-
...(input.InitialVersion
|
|
466
|
-
input.InitialVersion !== null && {
|
|
446
|
+
...(input.InitialVersion != null && {
|
|
467
447
|
InitialVersion: serializeAws_restJson1LoggerDefinitionVersion(input.InitialVersion, context),
|
|
468
448
|
}),
|
|
469
|
-
...(input.Name
|
|
470
|
-
...(input.tags
|
|
449
|
+
...(input.Name != null && { Name: input.Name }),
|
|
450
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
471
451
|
});
|
|
472
452
|
return new protocol_http_1.HttpRequest({
|
|
473
453
|
protocol,
|
|
@@ -500,8 +480,7 @@ const serializeAws_restJson1CreateLoggerDefinitionVersionCommand = async (input,
|
|
|
500
480
|
}
|
|
501
481
|
let body;
|
|
502
482
|
body = JSON.stringify({
|
|
503
|
-
...(input.Loggers
|
|
504
|
-
input.Loggers !== null && { Loggers: serializeAws_restJson1__listOfLogger(input.Loggers, context) }),
|
|
483
|
+
...(input.Loggers != null && { Loggers: serializeAws_restJson1__listOfLogger(input.Loggers, context) }),
|
|
505
484
|
});
|
|
506
485
|
return new protocol_http_1.HttpRequest({
|
|
507
486
|
protocol,
|
|
@@ -523,12 +502,11 @@ const serializeAws_restJson1CreateResourceDefinitionCommand = async (input, cont
|
|
|
523
502
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/resources";
|
|
524
503
|
let body;
|
|
525
504
|
body = JSON.stringify({
|
|
526
|
-
...(input.InitialVersion
|
|
527
|
-
input.InitialVersion !== null && {
|
|
505
|
+
...(input.InitialVersion != null && {
|
|
528
506
|
InitialVersion: serializeAws_restJson1ResourceDefinitionVersion(input.InitialVersion, context),
|
|
529
507
|
}),
|
|
530
|
-
...(input.Name
|
|
531
|
-
...(input.tags
|
|
508
|
+
...(input.Name != null && { Name: input.Name }),
|
|
509
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
532
510
|
});
|
|
533
511
|
return new protocol_http_1.HttpRequest({
|
|
534
512
|
protocol,
|
|
@@ -561,8 +539,7 @@ const serializeAws_restJson1CreateResourceDefinitionVersionCommand = async (inpu
|
|
|
561
539
|
}
|
|
562
540
|
let body;
|
|
563
541
|
body = JSON.stringify({
|
|
564
|
-
...(input.Resources
|
|
565
|
-
input.Resources !== null && { Resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
|
|
542
|
+
...(input.Resources != null && { Resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
|
|
566
543
|
});
|
|
567
544
|
return new protocol_http_1.HttpRequest({
|
|
568
545
|
protocol,
|
|
@@ -584,20 +561,14 @@ const serializeAws_restJson1CreateSoftwareUpdateJobCommand = async (input, conte
|
|
|
584
561
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/updates";
|
|
585
562
|
let body;
|
|
586
563
|
body = JSON.stringify({
|
|
587
|
-
...(input.S3UrlSignerRole
|
|
588
|
-
|
|
589
|
-
...(input.
|
|
590
|
-
|
|
591
|
-
...(input.UpdateAgentLogLevel !== undefined &&
|
|
592
|
-
input.UpdateAgentLogLevel !== null && { UpdateAgentLogLevel: input.UpdateAgentLogLevel }),
|
|
593
|
-
...(input.UpdateTargets !== undefined &&
|
|
594
|
-
input.UpdateTargets !== null && {
|
|
564
|
+
...(input.S3UrlSignerRole != null && { S3UrlSignerRole: input.S3UrlSignerRole }),
|
|
565
|
+
...(input.SoftwareToUpdate != null && { SoftwareToUpdate: input.SoftwareToUpdate }),
|
|
566
|
+
...(input.UpdateAgentLogLevel != null && { UpdateAgentLogLevel: input.UpdateAgentLogLevel }),
|
|
567
|
+
...(input.UpdateTargets != null && {
|
|
595
568
|
UpdateTargets: serializeAws_restJson1UpdateTargets(input.UpdateTargets, context),
|
|
596
569
|
}),
|
|
597
|
-
...(input.UpdateTargetsArchitecture
|
|
598
|
-
|
|
599
|
-
...(input.UpdateTargetsOperatingSystem !== undefined &&
|
|
600
|
-
input.UpdateTargetsOperatingSystem !== null && {
|
|
570
|
+
...(input.UpdateTargetsArchitecture != null && { UpdateTargetsArchitecture: input.UpdateTargetsArchitecture }),
|
|
571
|
+
...(input.UpdateTargetsOperatingSystem != null && {
|
|
601
572
|
UpdateTargetsOperatingSystem: input.UpdateTargetsOperatingSystem,
|
|
602
573
|
}),
|
|
603
574
|
});
|
|
@@ -621,12 +592,11 @@ const serializeAws_restJson1CreateSubscriptionDefinitionCommand = async (input,
|
|
|
621
592
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/subscriptions";
|
|
622
593
|
let body;
|
|
623
594
|
body = JSON.stringify({
|
|
624
|
-
...(input.InitialVersion
|
|
625
|
-
input.InitialVersion !== null && {
|
|
595
|
+
...(input.InitialVersion != null && {
|
|
626
596
|
InitialVersion: serializeAws_restJson1SubscriptionDefinitionVersion(input.InitialVersion, context),
|
|
627
597
|
}),
|
|
628
|
-
...(input.Name
|
|
629
|
-
...(input.tags
|
|
598
|
+
...(input.Name != null && { Name: input.Name }),
|
|
599
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
630
600
|
});
|
|
631
601
|
return new protocol_http_1.HttpRequest({
|
|
632
602
|
protocol,
|
|
@@ -659,8 +629,7 @@ const serializeAws_restJson1CreateSubscriptionDefinitionVersionCommand = async (
|
|
|
659
629
|
}
|
|
660
630
|
let body;
|
|
661
631
|
body = JSON.stringify({
|
|
662
|
-
...(input.Subscriptions
|
|
663
|
-
input.Subscriptions !== null && {
|
|
632
|
+
...(input.Subscriptions != null && {
|
|
664
633
|
Subscriptions: serializeAws_restJson1__listOfSubscription(input.Subscriptions, context),
|
|
665
634
|
}),
|
|
666
635
|
});
|
|
@@ -2273,7 +2242,7 @@ const serializeAws_restJson1ResetDeploymentsCommand = async (input, context) =>
|
|
|
2273
2242
|
}
|
|
2274
2243
|
let body;
|
|
2275
2244
|
body = JSON.stringify({
|
|
2276
|
-
...(input.Force
|
|
2245
|
+
...(input.Force != null && { Force: input.Force }),
|
|
2277
2246
|
});
|
|
2278
2247
|
return new protocol_http_1.HttpRequest({
|
|
2279
2248
|
protocol,
|
|
@@ -2295,10 +2264,9 @@ const serializeAws_restJson1StartBulkDeploymentCommand = async (input, context)
|
|
|
2295
2264
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/bulk/deployments";
|
|
2296
2265
|
let body;
|
|
2297
2266
|
body = JSON.stringify({
|
|
2298
|
-
...(input.ExecutionRoleArn
|
|
2299
|
-
|
|
2300
|
-
...(input.
|
|
2301
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
2267
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
2268
|
+
...(input.InputFileUri != null && { InputFileUri: input.InputFileUri }),
|
|
2269
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
2302
2270
|
});
|
|
2303
2271
|
return new protocol_http_1.HttpRequest({
|
|
2304
2272
|
protocol,
|
|
@@ -2356,7 +2324,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
2356
2324
|
}
|
|
2357
2325
|
let body;
|
|
2358
2326
|
body = JSON.stringify({
|
|
2359
|
-
...(input.tags
|
|
2327
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
2360
2328
|
});
|
|
2361
2329
|
return new protocol_http_1.HttpRequest({
|
|
2362
2330
|
protocol,
|
|
@@ -2418,8 +2386,7 @@ const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input, contex
|
|
|
2418
2386
|
}
|
|
2419
2387
|
let body;
|
|
2420
2388
|
body = JSON.stringify({
|
|
2421
|
-
...(input.ConnectivityInfo
|
|
2422
|
-
input.ConnectivityInfo !== null && {
|
|
2389
|
+
...(input.ConnectivityInfo != null && {
|
|
2423
2390
|
ConnectivityInfo: serializeAws_restJson1__listOfConnectivityInfo(input.ConnectivityInfo, context),
|
|
2424
2391
|
}),
|
|
2425
2392
|
});
|
|
@@ -2453,7 +2420,7 @@ const serializeAws_restJson1UpdateConnectorDefinitionCommand = async (input, con
|
|
|
2453
2420
|
}
|
|
2454
2421
|
let body;
|
|
2455
2422
|
body = JSON.stringify({
|
|
2456
|
-
...(input.Name
|
|
2423
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2457
2424
|
});
|
|
2458
2425
|
return new protocol_http_1.HttpRequest({
|
|
2459
2426
|
protocol,
|
|
@@ -2485,7 +2452,7 @@ const serializeAws_restJson1UpdateCoreDefinitionCommand = async (input, context)
|
|
|
2485
2452
|
}
|
|
2486
2453
|
let body;
|
|
2487
2454
|
body = JSON.stringify({
|
|
2488
|
-
...(input.Name
|
|
2455
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2489
2456
|
});
|
|
2490
2457
|
return new protocol_http_1.HttpRequest({
|
|
2491
2458
|
protocol,
|
|
@@ -2517,7 +2484,7 @@ const serializeAws_restJson1UpdateDeviceDefinitionCommand = async (input, contex
|
|
|
2517
2484
|
}
|
|
2518
2485
|
let body;
|
|
2519
2486
|
body = JSON.stringify({
|
|
2520
|
-
...(input.Name
|
|
2487
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2521
2488
|
});
|
|
2522
2489
|
return new protocol_http_1.HttpRequest({
|
|
2523
2490
|
protocol,
|
|
@@ -2549,7 +2516,7 @@ const serializeAws_restJson1UpdateFunctionDefinitionCommand = async (input, cont
|
|
|
2549
2516
|
}
|
|
2550
2517
|
let body;
|
|
2551
2518
|
body = JSON.stringify({
|
|
2552
|
-
...(input.Name
|
|
2519
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2553
2520
|
});
|
|
2554
2521
|
return new protocol_http_1.HttpRequest({
|
|
2555
2522
|
protocol,
|
|
@@ -2580,7 +2547,7 @@ const serializeAws_restJson1UpdateGroupCommand = async (input, context) => {
|
|
|
2580
2547
|
}
|
|
2581
2548
|
let body;
|
|
2582
2549
|
body = JSON.stringify({
|
|
2583
|
-
...(input.Name
|
|
2550
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2584
2551
|
});
|
|
2585
2552
|
return new protocol_http_1.HttpRequest({
|
|
2586
2553
|
protocol,
|
|
@@ -2612,8 +2579,7 @@ const serializeAws_restJson1UpdateGroupCertificateConfigurationCommand = async (
|
|
|
2612
2579
|
}
|
|
2613
2580
|
let body;
|
|
2614
2581
|
body = JSON.stringify({
|
|
2615
|
-
...(input.CertificateExpiryInMilliseconds
|
|
2616
|
-
input.CertificateExpiryInMilliseconds !== null && {
|
|
2582
|
+
...(input.CertificateExpiryInMilliseconds != null && {
|
|
2617
2583
|
CertificateExpiryInMilliseconds: input.CertificateExpiryInMilliseconds,
|
|
2618
2584
|
}),
|
|
2619
2585
|
});
|
|
@@ -2647,7 +2613,7 @@ const serializeAws_restJson1UpdateLoggerDefinitionCommand = async (input, contex
|
|
|
2647
2613
|
}
|
|
2648
2614
|
let body;
|
|
2649
2615
|
body = JSON.stringify({
|
|
2650
|
-
...(input.Name
|
|
2616
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2651
2617
|
});
|
|
2652
2618
|
return new protocol_http_1.HttpRequest({
|
|
2653
2619
|
protocol,
|
|
@@ -2679,7 +2645,7 @@ const serializeAws_restJson1UpdateResourceDefinitionCommand = async (input, cont
|
|
|
2679
2645
|
}
|
|
2680
2646
|
let body;
|
|
2681
2647
|
body = JSON.stringify({
|
|
2682
|
-
...(input.Name
|
|
2648
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2683
2649
|
});
|
|
2684
2650
|
return new protocol_http_1.HttpRequest({
|
|
2685
2651
|
protocol,
|
|
@@ -2711,7 +2677,7 @@ const serializeAws_restJson1UpdateSubscriptionDefinitionCommand = async (input,
|
|
|
2711
2677
|
}
|
|
2712
2678
|
let body;
|
|
2713
2679
|
body = JSON.stringify({
|
|
2714
|
-
...(input.Name
|
|
2680
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2715
2681
|
});
|
|
2716
2682
|
return new protocol_http_1.HttpRequest({
|
|
2717
2683
|
protocol,
|
|
@@ -2743,8 +2709,7 @@ const serializeAws_restJson1UpdateThingRuntimeConfigurationCommand = async (inpu
|
|
|
2743
2709
|
}
|
|
2744
2710
|
let body;
|
|
2745
2711
|
body = JSON.stringify({
|
|
2746
|
-
...(input.TelemetryConfiguration
|
|
2747
|
-
input.TelemetryConfiguration !== null && {
|
|
2712
|
+
...(input.TelemetryConfiguration != null && {
|
|
2748
2713
|
TelemetryConfiguration: serializeAws_restJson1TelemetryConfigurationUpdate(input.TelemetryConfiguration, context),
|
|
2749
2714
|
}),
|
|
2750
2715
|
});
|
|
@@ -2780,8 +2745,7 @@ const deserializeAws_restJson1AssociateRoleToGroupCommandError = async (output,
|
|
|
2780
2745
|
body: await parseBody(output.body, context),
|
|
2781
2746
|
};
|
|
2782
2747
|
let response;
|
|
2783
|
-
|
|
2784
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2785
2749
|
switch (errorCode) {
|
|
2786
2750
|
case "BadRequestException":
|
|
2787
2751
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -2791,10 +2755,12 @@ const deserializeAws_restJson1AssociateRoleToGroupCommandError = async (output,
|
|
|
2791
2755
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2792
2756
|
default:
|
|
2793
2757
|
const parsedBody = parsedOutput.body;
|
|
2758
|
+
const $metadata = deserializeMetadata(output);
|
|
2759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2794
2760
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
2795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2796
2762
|
$fault: "client",
|
|
2797
|
-
$metadata
|
|
2763
|
+
$metadata,
|
|
2798
2764
|
});
|
|
2799
2765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2800
2766
|
}
|
|
@@ -2820,8 +2786,7 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async
|
|
|
2820
2786
|
body: await parseBody(output.body, context),
|
|
2821
2787
|
};
|
|
2822
2788
|
let response;
|
|
2823
|
-
|
|
2824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2825
2790
|
switch (errorCode) {
|
|
2826
2791
|
case "BadRequestException":
|
|
2827
2792
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -2831,10 +2796,12 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async
|
|
|
2831
2796
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2832
2797
|
default:
|
|
2833
2798
|
const parsedBody = parsedOutput.body;
|
|
2799
|
+
const $metadata = deserializeMetadata(output);
|
|
2800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2834
2801
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
2835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2836
2803
|
$fault: "client",
|
|
2837
|
-
$metadata
|
|
2804
|
+
$metadata,
|
|
2838
2805
|
});
|
|
2839
2806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2807
|
}
|
|
@@ -2884,18 +2851,19 @@ const deserializeAws_restJson1CreateConnectorDefinitionCommandError = async (out
|
|
|
2884
2851
|
body: await parseBody(output.body, context),
|
|
2885
2852
|
};
|
|
2886
2853
|
let response;
|
|
2887
|
-
|
|
2888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
2855
|
switch (errorCode) {
|
|
2890
2856
|
case "BadRequestException":
|
|
2891
2857
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
2892
2858
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2893
2859
|
default:
|
|
2894
2860
|
const parsedBody = parsedOutput.body;
|
|
2861
|
+
const $metadata = deserializeMetadata(output);
|
|
2862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2895
2863
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
2896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2897
2865
|
$fault: "client",
|
|
2898
|
-
$metadata
|
|
2866
|
+
$metadata,
|
|
2899
2867
|
});
|
|
2900
2868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2901
2869
|
}
|
|
@@ -2933,18 +2901,19 @@ const deserializeAws_restJson1CreateConnectorDefinitionVersionCommandError = asy
|
|
|
2933
2901
|
body: await parseBody(output.body, context),
|
|
2934
2902
|
};
|
|
2935
2903
|
let response;
|
|
2936
|
-
|
|
2937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2938
2905
|
switch (errorCode) {
|
|
2939
2906
|
case "BadRequestException":
|
|
2940
2907
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
2941
2908
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2942
2909
|
default:
|
|
2943
2910
|
const parsedBody = parsedOutput.body;
|
|
2911
|
+
const $metadata = deserializeMetadata(output);
|
|
2912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2944
2913
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
2945
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2946
2915
|
$fault: "client",
|
|
2947
|
-
$metadata
|
|
2916
|
+
$metadata,
|
|
2948
2917
|
});
|
|
2949
2918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2950
2919
|
}
|
|
@@ -2994,18 +2963,19 @@ const deserializeAws_restJson1CreateCoreDefinitionCommandError = async (output,
|
|
|
2994
2963
|
body: await parseBody(output.body, context),
|
|
2995
2964
|
};
|
|
2996
2965
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
2967
|
switch (errorCode) {
|
|
3000
2968
|
case "BadRequestException":
|
|
3001
2969
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3002
2970
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3003
2971
|
default:
|
|
3004
2972
|
const parsedBody = parsedOutput.body;
|
|
2973
|
+
const $metadata = deserializeMetadata(output);
|
|
2974
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3005
2975
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2976
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3007
2977
|
$fault: "client",
|
|
3008
|
-
$metadata
|
|
2978
|
+
$metadata,
|
|
3009
2979
|
});
|
|
3010
2980
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3011
2981
|
}
|
|
@@ -3043,18 +3013,19 @@ const deserializeAws_restJson1CreateCoreDefinitionVersionCommandError = async (o
|
|
|
3043
3013
|
body: await parseBody(output.body, context),
|
|
3044
3014
|
};
|
|
3045
3015
|
let response;
|
|
3046
|
-
|
|
3047
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3048
3017
|
switch (errorCode) {
|
|
3049
3018
|
case "BadRequestException":
|
|
3050
3019
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3051
3020
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3052
3021
|
default:
|
|
3053
3022
|
const parsedBody = parsedOutput.body;
|
|
3023
|
+
const $metadata = deserializeMetadata(output);
|
|
3024
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3054
3025
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3026
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3056
3027
|
$fault: "client",
|
|
3057
|
-
$metadata
|
|
3028
|
+
$metadata,
|
|
3058
3029
|
});
|
|
3059
3030
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3060
3031
|
}
|
|
@@ -3084,18 +3055,19 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
3084
3055
|
body: await parseBody(output.body, context),
|
|
3085
3056
|
};
|
|
3086
3057
|
let response;
|
|
3087
|
-
|
|
3088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
3059
|
switch (errorCode) {
|
|
3090
3060
|
case "BadRequestException":
|
|
3091
3061
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3092
3062
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3093
3063
|
default:
|
|
3094
3064
|
const parsedBody = parsedOutput.body;
|
|
3065
|
+
const $metadata = deserializeMetadata(output);
|
|
3066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3095
3067
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3096
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3097
3069
|
$fault: "client",
|
|
3098
|
-
$metadata
|
|
3070
|
+
$metadata,
|
|
3099
3071
|
});
|
|
3100
3072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3101
3073
|
}
|
|
@@ -3145,18 +3117,19 @@ const deserializeAws_restJson1CreateDeviceDefinitionCommandError = async (output
|
|
|
3145
3117
|
body: await parseBody(output.body, context),
|
|
3146
3118
|
};
|
|
3147
3119
|
let response;
|
|
3148
|
-
|
|
3149
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3150
3121
|
switch (errorCode) {
|
|
3151
3122
|
case "BadRequestException":
|
|
3152
3123
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3153
3124
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3154
3125
|
default:
|
|
3155
3126
|
const parsedBody = parsedOutput.body;
|
|
3127
|
+
const $metadata = deserializeMetadata(output);
|
|
3128
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3156
3129
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3130
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3158
3131
|
$fault: "client",
|
|
3159
|
-
$metadata
|
|
3132
|
+
$metadata,
|
|
3160
3133
|
});
|
|
3161
3134
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3162
3135
|
}
|
|
@@ -3194,18 +3167,19 @@ const deserializeAws_restJson1CreateDeviceDefinitionVersionCommandError = async
|
|
|
3194
3167
|
body: await parseBody(output.body, context),
|
|
3195
3168
|
};
|
|
3196
3169
|
let response;
|
|
3197
|
-
|
|
3198
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3170
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3199
3171
|
switch (errorCode) {
|
|
3200
3172
|
case "BadRequestException":
|
|
3201
3173
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3202
3174
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3203
3175
|
default:
|
|
3204
3176
|
const parsedBody = parsedOutput.body;
|
|
3177
|
+
const $metadata = deserializeMetadata(output);
|
|
3178
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3205
3179
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3180
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3207
3181
|
$fault: "client",
|
|
3208
|
-
$metadata
|
|
3182
|
+
$metadata,
|
|
3209
3183
|
});
|
|
3210
3184
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3211
3185
|
}
|
|
@@ -3255,18 +3229,19 @@ const deserializeAws_restJson1CreateFunctionDefinitionCommandError = async (outp
|
|
|
3255
3229
|
body: await parseBody(output.body, context),
|
|
3256
3230
|
};
|
|
3257
3231
|
let response;
|
|
3258
|
-
|
|
3259
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3232
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3260
3233
|
switch (errorCode) {
|
|
3261
3234
|
case "BadRequestException":
|
|
3262
3235
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3263
3236
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3264
3237
|
default:
|
|
3265
3238
|
const parsedBody = parsedOutput.body;
|
|
3239
|
+
const $metadata = deserializeMetadata(output);
|
|
3240
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3266
3241
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3268
3243
|
$fault: "client",
|
|
3269
|
-
$metadata
|
|
3244
|
+
$metadata,
|
|
3270
3245
|
});
|
|
3271
3246
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3272
3247
|
}
|
|
@@ -3304,18 +3279,19 @@ const deserializeAws_restJson1CreateFunctionDefinitionVersionCommandError = asyn
|
|
|
3304
3279
|
body: await parseBody(output.body, context),
|
|
3305
3280
|
};
|
|
3306
3281
|
let response;
|
|
3307
|
-
|
|
3308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3282
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3309
3283
|
switch (errorCode) {
|
|
3310
3284
|
case "BadRequestException":
|
|
3311
3285
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3312
3286
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3313
3287
|
default:
|
|
3314
3288
|
const parsedBody = parsedOutput.body;
|
|
3289
|
+
const $metadata = deserializeMetadata(output);
|
|
3290
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3315
3291
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3292
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3317
3293
|
$fault: "client",
|
|
3318
|
-
$metadata
|
|
3294
|
+
$metadata,
|
|
3319
3295
|
});
|
|
3320
3296
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3321
3297
|
}
|
|
@@ -3365,18 +3341,19 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
3365
3341
|
body: await parseBody(output.body, context),
|
|
3366
3342
|
};
|
|
3367
3343
|
let response;
|
|
3368
|
-
|
|
3369
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
3345
|
switch (errorCode) {
|
|
3371
3346
|
case "BadRequestException":
|
|
3372
3347
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3373
3348
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3374
3349
|
default:
|
|
3375
3350
|
const parsedBody = parsedOutput.body;
|
|
3351
|
+
const $metadata = deserializeMetadata(output);
|
|
3352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3376
3353
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3377
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3378
3355
|
$fault: "client",
|
|
3379
|
-
$metadata
|
|
3356
|
+
$metadata,
|
|
3380
3357
|
});
|
|
3381
3358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3382
3359
|
}
|
|
@@ -3402,8 +3379,7 @@ const deserializeAws_restJson1CreateGroupCertificateAuthorityCommandError = asyn
|
|
|
3402
3379
|
body: await parseBody(output.body, context),
|
|
3403
3380
|
};
|
|
3404
3381
|
let response;
|
|
3405
|
-
|
|
3406
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3407
3383
|
switch (errorCode) {
|
|
3408
3384
|
case "BadRequestException":
|
|
3409
3385
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -3413,10 +3389,12 @@ const deserializeAws_restJson1CreateGroupCertificateAuthorityCommandError = asyn
|
|
|
3413
3389
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3414
3390
|
default:
|
|
3415
3391
|
const parsedBody = parsedOutput.body;
|
|
3392
|
+
const $metadata = deserializeMetadata(output);
|
|
3393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3416
3394
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3418
3396
|
$fault: "client",
|
|
3419
|
-
$metadata
|
|
3397
|
+
$metadata,
|
|
3420
3398
|
});
|
|
3421
3399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3422
3400
|
}
|
|
@@ -3454,18 +3432,19 @@ const deserializeAws_restJson1CreateGroupVersionCommandError = async (output, co
|
|
|
3454
3432
|
body: await parseBody(output.body, context),
|
|
3455
3433
|
};
|
|
3456
3434
|
let response;
|
|
3457
|
-
|
|
3458
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3435
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3459
3436
|
switch (errorCode) {
|
|
3460
3437
|
case "BadRequestException":
|
|
3461
3438
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3462
3439
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3463
3440
|
default:
|
|
3464
3441
|
const parsedBody = parsedOutput.body;
|
|
3442
|
+
const $metadata = deserializeMetadata(output);
|
|
3443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3465
3444
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3467
3446
|
$fault: "client",
|
|
3468
|
-
$metadata
|
|
3447
|
+
$metadata,
|
|
3469
3448
|
});
|
|
3470
3449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3471
3450
|
}
|
|
@@ -3515,18 +3494,19 @@ const deserializeAws_restJson1CreateLoggerDefinitionCommandError = async (output
|
|
|
3515
3494
|
body: await parseBody(output.body, context),
|
|
3516
3495
|
};
|
|
3517
3496
|
let response;
|
|
3518
|
-
|
|
3519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3520
3498
|
switch (errorCode) {
|
|
3521
3499
|
case "BadRequestException":
|
|
3522
3500
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3523
3501
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3524
3502
|
default:
|
|
3525
3503
|
const parsedBody = parsedOutput.body;
|
|
3504
|
+
const $metadata = deserializeMetadata(output);
|
|
3505
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3526
3506
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3527
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3507
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3528
3508
|
$fault: "client",
|
|
3529
|
-
$metadata
|
|
3509
|
+
$metadata,
|
|
3530
3510
|
});
|
|
3531
3511
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3532
3512
|
}
|
|
@@ -3564,18 +3544,19 @@ const deserializeAws_restJson1CreateLoggerDefinitionVersionCommandError = async
|
|
|
3564
3544
|
body: await parseBody(output.body, context),
|
|
3565
3545
|
};
|
|
3566
3546
|
let response;
|
|
3567
|
-
|
|
3568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3569
3548
|
switch (errorCode) {
|
|
3570
3549
|
case "BadRequestException":
|
|
3571
3550
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3572
3551
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3573
3552
|
default:
|
|
3574
3553
|
const parsedBody = parsedOutput.body;
|
|
3554
|
+
const $metadata = deserializeMetadata(output);
|
|
3555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3575
3556
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3576
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3577
3558
|
$fault: "client",
|
|
3578
|
-
$metadata
|
|
3559
|
+
$metadata,
|
|
3579
3560
|
});
|
|
3580
3561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3581
3562
|
}
|
|
@@ -3625,18 +3606,19 @@ const deserializeAws_restJson1CreateResourceDefinitionCommandError = async (outp
|
|
|
3625
3606
|
body: await parseBody(output.body, context),
|
|
3626
3607
|
};
|
|
3627
3608
|
let response;
|
|
3628
|
-
|
|
3629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3630
3610
|
switch (errorCode) {
|
|
3631
3611
|
case "BadRequestException":
|
|
3632
3612
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3633
3613
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3634
3614
|
default:
|
|
3635
3615
|
const parsedBody = parsedOutput.body;
|
|
3616
|
+
const $metadata = deserializeMetadata(output);
|
|
3617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3636
3618
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3638
3620
|
$fault: "client",
|
|
3639
|
-
$metadata
|
|
3621
|
+
$metadata,
|
|
3640
3622
|
});
|
|
3641
3623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3642
3624
|
}
|
|
@@ -3674,18 +3656,19 @@ const deserializeAws_restJson1CreateResourceDefinitionVersionCommandError = asyn
|
|
|
3674
3656
|
body: await parseBody(output.body, context),
|
|
3675
3657
|
};
|
|
3676
3658
|
let response;
|
|
3677
|
-
|
|
3678
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3659
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3679
3660
|
switch (errorCode) {
|
|
3680
3661
|
case "BadRequestException":
|
|
3681
3662
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3682
3663
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3683
3664
|
default:
|
|
3684
3665
|
const parsedBody = parsedOutput.body;
|
|
3666
|
+
const $metadata = deserializeMetadata(output);
|
|
3667
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3685
3668
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3686
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3669
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3687
3670
|
$fault: "client",
|
|
3688
|
-
$metadata
|
|
3671
|
+
$metadata,
|
|
3689
3672
|
});
|
|
3690
3673
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3691
3674
|
}
|
|
@@ -3719,8 +3702,7 @@ const deserializeAws_restJson1CreateSoftwareUpdateJobCommandError = async (outpu
|
|
|
3719
3702
|
body: await parseBody(output.body, context),
|
|
3720
3703
|
};
|
|
3721
3704
|
let response;
|
|
3722
|
-
|
|
3723
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3724
3706
|
switch (errorCode) {
|
|
3725
3707
|
case "BadRequestException":
|
|
3726
3708
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -3730,10 +3712,12 @@ const deserializeAws_restJson1CreateSoftwareUpdateJobCommandError = async (outpu
|
|
|
3730
3712
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3731
3713
|
default:
|
|
3732
3714
|
const parsedBody = parsedOutput.body;
|
|
3715
|
+
const $metadata = deserializeMetadata(output);
|
|
3716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3733
3717
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3735
3719
|
$fault: "client",
|
|
3736
|
-
$metadata
|
|
3720
|
+
$metadata,
|
|
3737
3721
|
});
|
|
3738
3722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3739
3723
|
}
|
|
@@ -3783,18 +3767,19 @@ const deserializeAws_restJson1CreateSubscriptionDefinitionCommandError = async (
|
|
|
3783
3767
|
body: await parseBody(output.body, context),
|
|
3784
3768
|
};
|
|
3785
3769
|
let response;
|
|
3786
|
-
|
|
3787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3770
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
3771
|
switch (errorCode) {
|
|
3789
3772
|
case "BadRequestException":
|
|
3790
3773
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3791
3774
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3792
3775
|
default:
|
|
3793
3776
|
const parsedBody = parsedOutput.body;
|
|
3777
|
+
const $metadata = deserializeMetadata(output);
|
|
3778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3794
3779
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3796
3781
|
$fault: "client",
|
|
3797
|
-
$metadata
|
|
3782
|
+
$metadata,
|
|
3798
3783
|
});
|
|
3799
3784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3800
3785
|
}
|
|
@@ -3832,18 +3817,19 @@ const deserializeAws_restJson1CreateSubscriptionDefinitionVersionCommandError =
|
|
|
3832
3817
|
body: await parseBody(output.body, context),
|
|
3833
3818
|
};
|
|
3834
3819
|
let response;
|
|
3835
|
-
|
|
3836
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
3821
|
switch (errorCode) {
|
|
3838
3822
|
case "BadRequestException":
|
|
3839
3823
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3840
3824
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3841
3825
|
default:
|
|
3842
3826
|
const parsedBody = parsedOutput.body;
|
|
3827
|
+
const $metadata = deserializeMetadata(output);
|
|
3828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3843
3829
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3830
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3845
3831
|
$fault: "client",
|
|
3846
|
-
$metadata
|
|
3832
|
+
$metadata,
|
|
3847
3833
|
});
|
|
3848
3834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3849
3835
|
}
|
|
@@ -3865,18 +3851,19 @@ const deserializeAws_restJson1DeleteConnectorDefinitionCommandError = async (out
|
|
|
3865
3851
|
body: await parseBody(output.body, context),
|
|
3866
3852
|
};
|
|
3867
3853
|
let response;
|
|
3868
|
-
|
|
3869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3870
3855
|
switch (errorCode) {
|
|
3871
3856
|
case "BadRequestException":
|
|
3872
3857
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3873
3858
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3874
3859
|
default:
|
|
3875
3860
|
const parsedBody = parsedOutput.body;
|
|
3861
|
+
const $metadata = deserializeMetadata(output);
|
|
3862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3876
3863
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3878
3865
|
$fault: "client",
|
|
3879
|
-
$metadata
|
|
3866
|
+
$metadata,
|
|
3880
3867
|
});
|
|
3881
3868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3882
3869
|
}
|
|
@@ -3898,18 +3885,19 @@ const deserializeAws_restJson1DeleteCoreDefinitionCommandError = async (output,
|
|
|
3898
3885
|
body: await parseBody(output.body, context),
|
|
3899
3886
|
};
|
|
3900
3887
|
let response;
|
|
3901
|
-
|
|
3902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3903
3889
|
switch (errorCode) {
|
|
3904
3890
|
case "BadRequestException":
|
|
3905
3891
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3906
3892
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3907
3893
|
default:
|
|
3908
3894
|
const parsedBody = parsedOutput.body;
|
|
3895
|
+
const $metadata = deserializeMetadata(output);
|
|
3896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3909
3897
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3911
3899
|
$fault: "client",
|
|
3912
|
-
$metadata
|
|
3900
|
+
$metadata,
|
|
3913
3901
|
});
|
|
3914
3902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3915
3903
|
}
|
|
@@ -3931,18 +3919,19 @@ const deserializeAws_restJson1DeleteDeviceDefinitionCommandError = async (output
|
|
|
3931
3919
|
body: await parseBody(output.body, context),
|
|
3932
3920
|
};
|
|
3933
3921
|
let response;
|
|
3934
|
-
|
|
3935
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3936
3923
|
switch (errorCode) {
|
|
3937
3924
|
case "BadRequestException":
|
|
3938
3925
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3939
3926
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3940
3927
|
default:
|
|
3941
3928
|
const parsedBody = parsedOutput.body;
|
|
3929
|
+
const $metadata = deserializeMetadata(output);
|
|
3930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3942
3931
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3943
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3944
3933
|
$fault: "client",
|
|
3945
|
-
$metadata
|
|
3934
|
+
$metadata,
|
|
3946
3935
|
});
|
|
3947
3936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3948
3937
|
}
|
|
@@ -3964,18 +3953,19 @@ const deserializeAws_restJson1DeleteFunctionDefinitionCommandError = async (outp
|
|
|
3964
3953
|
body: await parseBody(output.body, context),
|
|
3965
3954
|
};
|
|
3966
3955
|
let response;
|
|
3967
|
-
|
|
3968
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3969
3957
|
switch (errorCode) {
|
|
3970
3958
|
case "BadRequestException":
|
|
3971
3959
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
3972
3960
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3973
3961
|
default:
|
|
3974
3962
|
const parsedBody = parsedOutput.body;
|
|
3963
|
+
const $metadata = deserializeMetadata(output);
|
|
3964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3975
3965
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
3976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3977
3967
|
$fault: "client",
|
|
3978
|
-
$metadata
|
|
3968
|
+
$metadata,
|
|
3979
3969
|
});
|
|
3980
3970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3981
3971
|
}
|
|
@@ -3997,18 +3987,19 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
3997
3987
|
body: await parseBody(output.body, context),
|
|
3998
3988
|
};
|
|
3999
3989
|
let response;
|
|
4000
|
-
|
|
4001
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3990
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4002
3991
|
switch (errorCode) {
|
|
4003
3992
|
case "BadRequestException":
|
|
4004
3993
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4005
3994
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4006
3995
|
default:
|
|
4007
3996
|
const parsedBody = parsedOutput.body;
|
|
3997
|
+
const $metadata = deserializeMetadata(output);
|
|
3998
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4008
3999
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4000
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4010
4001
|
$fault: "client",
|
|
4011
|
-
$metadata
|
|
4002
|
+
$metadata,
|
|
4012
4003
|
});
|
|
4013
4004
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4014
4005
|
}
|
|
@@ -4030,18 +4021,19 @@ const deserializeAws_restJson1DeleteLoggerDefinitionCommandError = async (output
|
|
|
4030
4021
|
body: await parseBody(output.body, context),
|
|
4031
4022
|
};
|
|
4032
4023
|
let response;
|
|
4033
|
-
|
|
4034
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4024
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4035
4025
|
switch (errorCode) {
|
|
4036
4026
|
case "BadRequestException":
|
|
4037
4027
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4038
4028
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4039
4029
|
default:
|
|
4040
4030
|
const parsedBody = parsedOutput.body;
|
|
4031
|
+
const $metadata = deserializeMetadata(output);
|
|
4032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4041
4033
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4042
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4043
4035
|
$fault: "client",
|
|
4044
|
-
$metadata
|
|
4036
|
+
$metadata,
|
|
4045
4037
|
});
|
|
4046
4038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4047
4039
|
}
|
|
@@ -4063,18 +4055,19 @@ const deserializeAws_restJson1DeleteResourceDefinitionCommandError = async (outp
|
|
|
4063
4055
|
body: await parseBody(output.body, context),
|
|
4064
4056
|
};
|
|
4065
4057
|
let response;
|
|
4066
|
-
|
|
4067
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4068
4059
|
switch (errorCode) {
|
|
4069
4060
|
case "BadRequestException":
|
|
4070
4061
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4071
4062
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4072
4063
|
default:
|
|
4073
4064
|
const parsedBody = parsedOutput.body;
|
|
4065
|
+
const $metadata = deserializeMetadata(output);
|
|
4066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4074
4067
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4076
4069
|
$fault: "client",
|
|
4077
|
-
$metadata
|
|
4070
|
+
$metadata,
|
|
4078
4071
|
});
|
|
4079
4072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4080
4073
|
}
|
|
@@ -4096,18 +4089,19 @@ const deserializeAws_restJson1DeleteSubscriptionDefinitionCommandError = async (
|
|
|
4096
4089
|
body: await parseBody(output.body, context),
|
|
4097
4090
|
};
|
|
4098
4091
|
let response;
|
|
4099
|
-
|
|
4100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4101
4093
|
switch (errorCode) {
|
|
4102
4094
|
case "BadRequestException":
|
|
4103
4095
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4104
4096
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4105
4097
|
default:
|
|
4106
4098
|
const parsedBody = parsedOutput.body;
|
|
4099
|
+
const $metadata = deserializeMetadata(output);
|
|
4100
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4107
4101
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4102
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4109
4103
|
$fault: "client",
|
|
4110
|
-
$metadata
|
|
4104
|
+
$metadata,
|
|
4111
4105
|
});
|
|
4112
4106
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4113
4107
|
}
|
|
@@ -4133,8 +4127,7 @@ const deserializeAws_restJson1DisassociateRoleFromGroupCommandError = async (out
|
|
|
4133
4127
|
body: await parseBody(output.body, context),
|
|
4134
4128
|
};
|
|
4135
4129
|
let response;
|
|
4136
|
-
|
|
4137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4138
4131
|
switch (errorCode) {
|
|
4139
4132
|
case "BadRequestException":
|
|
4140
4133
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -4144,10 +4137,12 @@ const deserializeAws_restJson1DisassociateRoleFromGroupCommandError = async (out
|
|
|
4144
4137
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4145
4138
|
default:
|
|
4146
4139
|
const parsedBody = parsedOutput.body;
|
|
4140
|
+
const $metadata = deserializeMetadata(output);
|
|
4141
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4147
4142
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4143
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4149
4144
|
$fault: "client",
|
|
4150
|
-
$metadata
|
|
4145
|
+
$metadata,
|
|
4151
4146
|
});
|
|
4152
4147
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4153
4148
|
}
|
|
@@ -4173,18 +4168,19 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = a
|
|
|
4173
4168
|
body: await parseBody(output.body, context),
|
|
4174
4169
|
};
|
|
4175
4170
|
let response;
|
|
4176
|
-
|
|
4177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4171
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4178
4172
|
switch (errorCode) {
|
|
4179
4173
|
case "InternalServerErrorException":
|
|
4180
4174
|
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
4181
4175
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4182
4176
|
default:
|
|
4183
4177
|
const parsedBody = parsedOutput.body;
|
|
4178
|
+
const $metadata = deserializeMetadata(output);
|
|
4179
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4184
4180
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4181
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4186
4182
|
$fault: "client",
|
|
4187
|
-
$metadata
|
|
4183
|
+
$metadata,
|
|
4188
4184
|
});
|
|
4189
4185
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4190
4186
|
}
|
|
@@ -4214,8 +4210,7 @@ const deserializeAws_restJson1GetAssociatedRoleCommandError = async (output, con
|
|
|
4214
4210
|
body: await parseBody(output.body, context),
|
|
4215
4211
|
};
|
|
4216
4212
|
let response;
|
|
4217
|
-
|
|
4218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4213
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4219
4214
|
switch (errorCode) {
|
|
4220
4215
|
case "BadRequestException":
|
|
4221
4216
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -4225,10 +4220,12 @@ const deserializeAws_restJson1GetAssociatedRoleCommandError = async (output, con
|
|
|
4225
4220
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4226
4221
|
default:
|
|
4227
4222
|
const parsedBody = parsedOutput.body;
|
|
4223
|
+
const $metadata = deserializeMetadata(output);
|
|
4224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4228
4225
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4230
4227
|
$fault: "client",
|
|
4231
|
-
$metadata
|
|
4228
|
+
$metadata,
|
|
4232
4229
|
});
|
|
4233
4230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4234
4231
|
}
|
|
@@ -4274,18 +4271,19 @@ const deserializeAws_restJson1GetBulkDeploymentStatusCommandError = async (outpu
|
|
|
4274
4271
|
body: await parseBody(output.body, context),
|
|
4275
4272
|
};
|
|
4276
4273
|
let response;
|
|
4277
|
-
|
|
4278
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4279
4275
|
switch (errorCode) {
|
|
4280
4276
|
case "BadRequestException":
|
|
4281
4277
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4282
4278
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4283
4279
|
default:
|
|
4284
4280
|
const parsedBody = parsedOutput.body;
|
|
4281
|
+
const $metadata = deserializeMetadata(output);
|
|
4282
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4285
4283
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4286
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4284
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4287
4285
|
$fault: "client",
|
|
4288
|
-
$metadata
|
|
4286
|
+
$metadata,
|
|
4289
4287
|
});
|
|
4290
4288
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4291
4289
|
}
|
|
@@ -4315,8 +4313,7 @@ const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, c
|
|
|
4315
4313
|
body: await parseBody(output.body, context),
|
|
4316
4314
|
};
|
|
4317
4315
|
let response;
|
|
4318
|
-
|
|
4319
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4320
4317
|
switch (errorCode) {
|
|
4321
4318
|
case "BadRequestException":
|
|
4322
4319
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -4326,10 +4323,12 @@ const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, c
|
|
|
4326
4323
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4327
4324
|
default:
|
|
4328
4325
|
const parsedBody = parsedOutput.body;
|
|
4326
|
+
const $metadata = deserializeMetadata(output);
|
|
4327
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4329
4328
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4329
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4331
4330
|
$fault: "client",
|
|
4332
|
-
$metadata
|
|
4331
|
+
$metadata,
|
|
4333
4332
|
});
|
|
4334
4333
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4335
4334
|
}
|
|
@@ -4383,18 +4382,19 @@ const deserializeAws_restJson1GetConnectorDefinitionCommandError = async (output
|
|
|
4383
4382
|
body: await parseBody(output.body, context),
|
|
4384
4383
|
};
|
|
4385
4384
|
let response;
|
|
4386
|
-
|
|
4387
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4385
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4388
4386
|
switch (errorCode) {
|
|
4389
4387
|
case "BadRequestException":
|
|
4390
4388
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4391
4389
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4392
4390
|
default:
|
|
4393
4391
|
const parsedBody = parsedOutput.body;
|
|
4392
|
+
const $metadata = deserializeMetadata(output);
|
|
4393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4394
4394
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4395
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4396
4396
|
$fault: "client",
|
|
4397
|
-
$metadata
|
|
4397
|
+
$metadata,
|
|
4398
4398
|
});
|
|
4399
4399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4400
4400
|
}
|
|
@@ -4440,18 +4440,19 @@ const deserializeAws_restJson1GetConnectorDefinitionVersionCommandError = async
|
|
|
4440
4440
|
body: await parseBody(output.body, context),
|
|
4441
4441
|
};
|
|
4442
4442
|
let response;
|
|
4443
|
-
|
|
4444
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4443
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4445
4444
|
switch (errorCode) {
|
|
4446
4445
|
case "BadRequestException":
|
|
4447
4446
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4448
4447
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4449
4448
|
default:
|
|
4450
4449
|
const parsedBody = parsedOutput.body;
|
|
4450
|
+
const $metadata = deserializeMetadata(output);
|
|
4451
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4451
4452
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4453
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4453
4454
|
$fault: "client",
|
|
4454
|
-
$metadata
|
|
4455
|
+
$metadata,
|
|
4455
4456
|
});
|
|
4456
4457
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4457
4458
|
}
|
|
@@ -4505,18 +4506,19 @@ const deserializeAws_restJson1GetCoreDefinitionCommandError = async (output, con
|
|
|
4505
4506
|
body: await parseBody(output.body, context),
|
|
4506
4507
|
};
|
|
4507
4508
|
let response;
|
|
4508
|
-
|
|
4509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4510
4510
|
switch (errorCode) {
|
|
4511
4511
|
case "BadRequestException":
|
|
4512
4512
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4513
4513
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4514
4514
|
default:
|
|
4515
4515
|
const parsedBody = parsedOutput.body;
|
|
4516
|
+
const $metadata = deserializeMetadata(output);
|
|
4517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4516
4518
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4518
4520
|
$fault: "client",
|
|
4519
|
-
$metadata
|
|
4521
|
+
$metadata,
|
|
4520
4522
|
});
|
|
4521
4523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4522
4524
|
}
|
|
@@ -4562,18 +4564,19 @@ const deserializeAws_restJson1GetCoreDefinitionVersionCommandError = async (outp
|
|
|
4562
4564
|
body: await parseBody(output.body, context),
|
|
4563
4565
|
};
|
|
4564
4566
|
let response;
|
|
4565
|
-
|
|
4566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4567
4568
|
switch (errorCode) {
|
|
4568
4569
|
case "BadRequestException":
|
|
4569
4570
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4570
4571
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4571
4572
|
default:
|
|
4572
4573
|
const parsedBody = parsedOutput.body;
|
|
4574
|
+
const $metadata = deserializeMetadata(output);
|
|
4575
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4573
4576
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4574
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4577
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4575
4578
|
$fault: "client",
|
|
4576
|
-
$metadata
|
|
4579
|
+
$metadata,
|
|
4577
4580
|
});
|
|
4578
4581
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4579
4582
|
}
|
|
@@ -4615,18 +4618,19 @@ const deserializeAws_restJson1GetDeploymentStatusCommandError = async (output, c
|
|
|
4615
4618
|
body: await parseBody(output.body, context),
|
|
4616
4619
|
};
|
|
4617
4620
|
let response;
|
|
4618
|
-
|
|
4619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4620
4622
|
switch (errorCode) {
|
|
4621
4623
|
case "BadRequestException":
|
|
4622
4624
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4623
4625
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4624
4626
|
default:
|
|
4625
4627
|
const parsedBody = parsedOutput.body;
|
|
4628
|
+
const $metadata = deserializeMetadata(output);
|
|
4629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4626
4630
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4627
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4628
4632
|
$fault: "client",
|
|
4629
|
-
$metadata
|
|
4633
|
+
$metadata,
|
|
4630
4634
|
});
|
|
4631
4635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4632
4636
|
}
|
|
@@ -4680,18 +4684,19 @@ const deserializeAws_restJson1GetDeviceDefinitionCommandError = async (output, c
|
|
|
4680
4684
|
body: await parseBody(output.body, context),
|
|
4681
4685
|
};
|
|
4682
4686
|
let response;
|
|
4683
|
-
|
|
4684
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4685
4688
|
switch (errorCode) {
|
|
4686
4689
|
case "BadRequestException":
|
|
4687
4690
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4688
4691
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4689
4692
|
default:
|
|
4690
4693
|
const parsedBody = parsedOutput.body;
|
|
4694
|
+
const $metadata = deserializeMetadata(output);
|
|
4695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4691
4696
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4692
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4693
4698
|
$fault: "client",
|
|
4694
|
-
$metadata
|
|
4699
|
+
$metadata,
|
|
4695
4700
|
});
|
|
4696
4701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4697
4702
|
}
|
|
@@ -4737,18 +4742,19 @@ const deserializeAws_restJson1GetDeviceDefinitionVersionCommandError = async (ou
|
|
|
4737
4742
|
body: await parseBody(output.body, context),
|
|
4738
4743
|
};
|
|
4739
4744
|
let response;
|
|
4740
|
-
|
|
4741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4742
4746
|
switch (errorCode) {
|
|
4743
4747
|
case "BadRequestException":
|
|
4744
4748
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4745
4749
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4746
4750
|
default:
|
|
4747
4751
|
const parsedBody = parsedOutput.body;
|
|
4752
|
+
const $metadata = deserializeMetadata(output);
|
|
4753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4748
4754
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4749
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4750
4756
|
$fault: "client",
|
|
4751
|
-
$metadata
|
|
4757
|
+
$metadata,
|
|
4752
4758
|
});
|
|
4753
4759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4754
4760
|
}
|
|
@@ -4802,18 +4808,19 @@ const deserializeAws_restJson1GetFunctionDefinitionCommandError = async (output,
|
|
|
4802
4808
|
body: await parseBody(output.body, context),
|
|
4803
4809
|
};
|
|
4804
4810
|
let response;
|
|
4805
|
-
|
|
4806
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4807
4812
|
switch (errorCode) {
|
|
4808
4813
|
case "BadRequestException":
|
|
4809
4814
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4810
4815
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4811
4816
|
default:
|
|
4812
4817
|
const parsedBody = parsedOutput.body;
|
|
4818
|
+
const $metadata = deserializeMetadata(output);
|
|
4819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4813
4820
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4814
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4815
4822
|
$fault: "client",
|
|
4816
|
-
$metadata
|
|
4823
|
+
$metadata,
|
|
4817
4824
|
});
|
|
4818
4825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4819
4826
|
}
|
|
@@ -4859,18 +4866,19 @@ const deserializeAws_restJson1GetFunctionDefinitionVersionCommandError = async (
|
|
|
4859
4866
|
body: await parseBody(output.body, context),
|
|
4860
4867
|
};
|
|
4861
4868
|
let response;
|
|
4862
|
-
|
|
4863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4864
4870
|
switch (errorCode) {
|
|
4865
4871
|
case "BadRequestException":
|
|
4866
4872
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4867
4873
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4868
4874
|
default:
|
|
4869
4875
|
const parsedBody = parsedOutput.body;
|
|
4876
|
+
const $metadata = deserializeMetadata(output);
|
|
4877
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4870
4878
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4871
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4879
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4872
4880
|
$fault: "client",
|
|
4873
|
-
$metadata
|
|
4881
|
+
$metadata,
|
|
4874
4882
|
});
|
|
4875
4883
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4876
4884
|
}
|
|
@@ -4924,18 +4932,19 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
4924
4932
|
body: await parseBody(output.body, context),
|
|
4925
4933
|
};
|
|
4926
4934
|
let response;
|
|
4927
|
-
|
|
4928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4935
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4929
4936
|
switch (errorCode) {
|
|
4930
4937
|
case "BadRequestException":
|
|
4931
4938
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
4932
4939
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4933
4940
|
default:
|
|
4934
4941
|
const parsedBody = parsedOutput.body;
|
|
4942
|
+
const $metadata = deserializeMetadata(output);
|
|
4943
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4935
4944
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4945
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4937
4946
|
$fault: "client",
|
|
4938
|
-
$metadata
|
|
4947
|
+
$metadata,
|
|
4939
4948
|
});
|
|
4940
4949
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4941
4950
|
}
|
|
@@ -4969,8 +4978,7 @@ const deserializeAws_restJson1GetGroupCertificateAuthorityCommandError = async (
|
|
|
4969
4978
|
body: await parseBody(output.body, context),
|
|
4970
4979
|
};
|
|
4971
4980
|
let response;
|
|
4972
|
-
|
|
4973
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4974
4982
|
switch (errorCode) {
|
|
4975
4983
|
case "BadRequestException":
|
|
4976
4984
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -4980,10 +4988,12 @@ const deserializeAws_restJson1GetGroupCertificateAuthorityCommandError = async (
|
|
|
4980
4988
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4981
4989
|
default:
|
|
4982
4990
|
const parsedBody = parsedOutput.body;
|
|
4991
|
+
const $metadata = deserializeMetadata(output);
|
|
4992
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4983
4993
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
4984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4985
4995
|
$fault: "client",
|
|
4986
|
-
$metadata
|
|
4996
|
+
$metadata,
|
|
4987
4997
|
});
|
|
4988
4998
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4989
4999
|
}
|
|
@@ -5018,8 +5028,7 @@ const deserializeAws_restJson1GetGroupCertificateConfigurationCommandError = asy
|
|
|
5018
5028
|
body: await parseBody(output.body, context),
|
|
5019
5029
|
};
|
|
5020
5030
|
let response;
|
|
5021
|
-
|
|
5022
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5023
5032
|
switch (errorCode) {
|
|
5024
5033
|
case "BadRequestException":
|
|
5025
5034
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -5029,10 +5038,12 @@ const deserializeAws_restJson1GetGroupCertificateConfigurationCommandError = asy
|
|
|
5029
5038
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
5030
5039
|
default:
|
|
5031
5040
|
const parsedBody = parsedOutput.body;
|
|
5041
|
+
const $metadata = deserializeMetadata(output);
|
|
5042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5032
5043
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5033
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5034
5045
|
$fault: "client",
|
|
5035
|
-
$metadata
|
|
5046
|
+
$metadata,
|
|
5036
5047
|
});
|
|
5037
5048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5038
5049
|
}
|
|
@@ -5074,18 +5085,19 @@ const deserializeAws_restJson1GetGroupVersionCommandError = async (output, conte
|
|
|
5074
5085
|
body: await parseBody(output.body, context),
|
|
5075
5086
|
};
|
|
5076
5087
|
let response;
|
|
5077
|
-
|
|
5078
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5079
5089
|
switch (errorCode) {
|
|
5080
5090
|
case "BadRequestException":
|
|
5081
5091
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5082
5092
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5083
5093
|
default:
|
|
5084
5094
|
const parsedBody = parsedOutput.body;
|
|
5095
|
+
const $metadata = deserializeMetadata(output);
|
|
5096
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5085
5097
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5098
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5087
5099
|
$fault: "client",
|
|
5088
|
-
$metadata
|
|
5100
|
+
$metadata,
|
|
5089
5101
|
});
|
|
5090
5102
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5091
5103
|
}
|
|
@@ -5139,18 +5151,19 @@ const deserializeAws_restJson1GetLoggerDefinitionCommandError = async (output, c
|
|
|
5139
5151
|
body: await parseBody(output.body, context),
|
|
5140
5152
|
};
|
|
5141
5153
|
let response;
|
|
5142
|
-
|
|
5143
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5154
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5144
5155
|
switch (errorCode) {
|
|
5145
5156
|
case "BadRequestException":
|
|
5146
5157
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5147
5158
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5148
5159
|
default:
|
|
5149
5160
|
const parsedBody = parsedOutput.body;
|
|
5161
|
+
const $metadata = deserializeMetadata(output);
|
|
5162
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5150
5163
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5151
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5164
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5152
5165
|
$fault: "client",
|
|
5153
|
-
$metadata
|
|
5166
|
+
$metadata,
|
|
5154
5167
|
});
|
|
5155
5168
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5156
5169
|
}
|
|
@@ -5192,18 +5205,19 @@ const deserializeAws_restJson1GetLoggerDefinitionVersionCommandError = async (ou
|
|
|
5192
5205
|
body: await parseBody(output.body, context),
|
|
5193
5206
|
};
|
|
5194
5207
|
let response;
|
|
5195
|
-
|
|
5196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5197
5209
|
switch (errorCode) {
|
|
5198
5210
|
case "BadRequestException":
|
|
5199
5211
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5200
5212
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5201
5213
|
default:
|
|
5202
5214
|
const parsedBody = parsedOutput.body;
|
|
5215
|
+
const $metadata = deserializeMetadata(output);
|
|
5216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5203
5217
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5205
5219
|
$fault: "client",
|
|
5206
|
-
$metadata
|
|
5220
|
+
$metadata,
|
|
5207
5221
|
});
|
|
5208
5222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5209
5223
|
}
|
|
@@ -5257,18 +5271,19 @@ const deserializeAws_restJson1GetResourceDefinitionCommandError = async (output,
|
|
|
5257
5271
|
body: await parseBody(output.body, context),
|
|
5258
5272
|
};
|
|
5259
5273
|
let response;
|
|
5260
|
-
|
|
5261
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5262
5275
|
switch (errorCode) {
|
|
5263
5276
|
case "BadRequestException":
|
|
5264
5277
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5265
5278
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5266
5279
|
default:
|
|
5267
5280
|
const parsedBody = parsedOutput.body;
|
|
5281
|
+
const $metadata = deserializeMetadata(output);
|
|
5282
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5268
5283
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5284
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5270
5285
|
$fault: "client",
|
|
5271
|
-
$metadata
|
|
5286
|
+
$metadata,
|
|
5272
5287
|
});
|
|
5273
5288
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5274
5289
|
}
|
|
@@ -5310,18 +5325,19 @@ const deserializeAws_restJson1GetResourceDefinitionVersionCommandError = async (
|
|
|
5310
5325
|
body: await parseBody(output.body, context),
|
|
5311
5326
|
};
|
|
5312
5327
|
let response;
|
|
5313
|
-
|
|
5314
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5315
5329
|
switch (errorCode) {
|
|
5316
5330
|
case "BadRequestException":
|
|
5317
5331
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5318
5332
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5319
5333
|
default:
|
|
5320
5334
|
const parsedBody = parsedOutput.body;
|
|
5335
|
+
const $metadata = deserializeMetadata(output);
|
|
5336
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5321
5337
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5322
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5338
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5323
5339
|
$fault: "client",
|
|
5324
|
-
$metadata
|
|
5340
|
+
$metadata,
|
|
5325
5341
|
});
|
|
5326
5342
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5327
5343
|
}
|
|
@@ -5351,18 +5367,19 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (outp
|
|
|
5351
5367
|
body: await parseBody(output.body, context),
|
|
5352
5368
|
};
|
|
5353
5369
|
let response;
|
|
5354
|
-
|
|
5355
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5370
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5356
5371
|
switch (errorCode) {
|
|
5357
5372
|
case "InternalServerErrorException":
|
|
5358
5373
|
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
5359
5374
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
5360
5375
|
default:
|
|
5361
5376
|
const parsedBody = parsedOutput.body;
|
|
5377
|
+
const $metadata = deserializeMetadata(output);
|
|
5378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5362
5379
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5364
5381
|
$fault: "client",
|
|
5365
|
-
$metadata
|
|
5382
|
+
$metadata,
|
|
5366
5383
|
});
|
|
5367
5384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5368
5385
|
}
|
|
@@ -5416,18 +5433,19 @@ const deserializeAws_restJson1GetSubscriptionDefinitionCommandError = async (out
|
|
|
5416
5433
|
body: await parseBody(output.body, context),
|
|
5417
5434
|
};
|
|
5418
5435
|
let response;
|
|
5419
|
-
|
|
5420
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5436
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5421
5437
|
switch (errorCode) {
|
|
5422
5438
|
case "BadRequestException":
|
|
5423
5439
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5424
5440
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5425
5441
|
default:
|
|
5426
5442
|
const parsedBody = parsedOutput.body;
|
|
5443
|
+
const $metadata = deserializeMetadata(output);
|
|
5444
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5427
5445
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5446
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5429
5447
|
$fault: "client",
|
|
5430
|
-
$metadata
|
|
5448
|
+
$metadata,
|
|
5431
5449
|
});
|
|
5432
5450
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5433
5451
|
}
|
|
@@ -5473,18 +5491,19 @@ const deserializeAws_restJson1GetSubscriptionDefinitionVersionCommandError = asy
|
|
|
5473
5491
|
body: await parseBody(output.body, context),
|
|
5474
5492
|
};
|
|
5475
5493
|
let response;
|
|
5476
|
-
|
|
5477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5478
5495
|
switch (errorCode) {
|
|
5479
5496
|
case "BadRequestException":
|
|
5480
5497
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5481
5498
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5482
5499
|
default:
|
|
5483
5500
|
const parsedBody = parsedOutput.body;
|
|
5501
|
+
const $metadata = deserializeMetadata(output);
|
|
5502
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5484
5503
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5485
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5504
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5486
5505
|
$fault: "client",
|
|
5487
|
-
$metadata
|
|
5506
|
+
$metadata,
|
|
5488
5507
|
});
|
|
5489
5508
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5490
5509
|
}
|
|
@@ -5510,8 +5529,7 @@ const deserializeAws_restJson1GetThingRuntimeConfigurationCommandError = async (
|
|
|
5510
5529
|
body: await parseBody(output.body, context),
|
|
5511
5530
|
};
|
|
5512
5531
|
let response;
|
|
5513
|
-
|
|
5514
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5515
5533
|
switch (errorCode) {
|
|
5516
5534
|
case "BadRequestException":
|
|
5517
5535
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -5521,10 +5539,12 @@ const deserializeAws_restJson1GetThingRuntimeConfigurationCommandError = async (
|
|
|
5521
5539
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
5522
5540
|
default:
|
|
5523
5541
|
const parsedBody = parsedOutput.body;
|
|
5542
|
+
const $metadata = deserializeMetadata(output);
|
|
5543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5524
5544
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5525
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5526
5546
|
$fault: "client",
|
|
5527
|
-
$metadata
|
|
5547
|
+
$metadata,
|
|
5528
5548
|
});
|
|
5529
5549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5530
5550
|
}
|
|
@@ -5554,18 +5574,19 @@ const deserializeAws_restJson1ListBulkDeploymentDetailedReportsCommandError = as
|
|
|
5554
5574
|
body: await parseBody(output.body, context),
|
|
5555
5575
|
};
|
|
5556
5576
|
let response;
|
|
5557
|
-
|
|
5558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5577
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5559
5578
|
switch (errorCode) {
|
|
5560
5579
|
case "BadRequestException":
|
|
5561
5580
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5562
5581
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5563
5582
|
default:
|
|
5564
5583
|
const parsedBody = parsedOutput.body;
|
|
5584
|
+
const $metadata = deserializeMetadata(output);
|
|
5585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5565
5586
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5566
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5567
5588
|
$fault: "client",
|
|
5568
|
-
$metadata
|
|
5589
|
+
$metadata,
|
|
5569
5590
|
});
|
|
5570
5591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5571
5592
|
}
|
|
@@ -5595,18 +5616,19 @@ const deserializeAws_restJson1ListBulkDeploymentsCommandError = async (output, c
|
|
|
5595
5616
|
body: await parseBody(output.body, context),
|
|
5596
5617
|
};
|
|
5597
5618
|
let response;
|
|
5598
|
-
|
|
5599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5619
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5600
5620
|
switch (errorCode) {
|
|
5601
5621
|
case "BadRequestException":
|
|
5602
5622
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5603
5623
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5604
5624
|
default:
|
|
5605
5625
|
const parsedBody = parsedOutput.body;
|
|
5626
|
+
const $metadata = deserializeMetadata(output);
|
|
5627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5606
5628
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5607
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5608
5630
|
$fault: "client",
|
|
5609
|
-
$metadata
|
|
5631
|
+
$metadata,
|
|
5610
5632
|
});
|
|
5611
5633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5612
5634
|
}
|
|
@@ -5636,15 +5658,16 @@ const deserializeAws_restJson1ListConnectorDefinitionsCommandError = async (outp
|
|
|
5636
5658
|
body: await parseBody(output.body, context),
|
|
5637
5659
|
};
|
|
5638
5660
|
let response;
|
|
5639
|
-
|
|
5640
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5661
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5641
5662
|
switch (errorCode) {
|
|
5642
5663
|
default:
|
|
5643
5664
|
const parsedBody = parsedOutput.body;
|
|
5665
|
+
const $metadata = deserializeMetadata(output);
|
|
5666
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5644
5667
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5668
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5646
5669
|
$fault: "client",
|
|
5647
|
-
$metadata
|
|
5670
|
+
$metadata,
|
|
5648
5671
|
});
|
|
5649
5672
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5650
5673
|
}
|
|
@@ -5674,18 +5697,19 @@ const deserializeAws_restJson1ListConnectorDefinitionVersionsCommandError = asyn
|
|
|
5674
5697
|
body: await parseBody(output.body, context),
|
|
5675
5698
|
};
|
|
5676
5699
|
let response;
|
|
5677
|
-
|
|
5678
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5679
5701
|
switch (errorCode) {
|
|
5680
5702
|
case "BadRequestException":
|
|
5681
5703
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5682
5704
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5683
5705
|
default:
|
|
5684
5706
|
const parsedBody = parsedOutput.body;
|
|
5707
|
+
const $metadata = deserializeMetadata(output);
|
|
5708
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5685
5709
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5686
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5710
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5687
5711
|
$fault: "client",
|
|
5688
|
-
$metadata
|
|
5712
|
+
$metadata,
|
|
5689
5713
|
});
|
|
5690
5714
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5691
5715
|
}
|
|
@@ -5715,15 +5739,16 @@ const deserializeAws_restJson1ListCoreDefinitionsCommandError = async (output, c
|
|
|
5715
5739
|
body: await parseBody(output.body, context),
|
|
5716
5740
|
};
|
|
5717
5741
|
let response;
|
|
5718
|
-
|
|
5719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5720
5743
|
switch (errorCode) {
|
|
5721
5744
|
default:
|
|
5722
5745
|
const parsedBody = parsedOutput.body;
|
|
5746
|
+
const $metadata = deserializeMetadata(output);
|
|
5747
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5723
5748
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5724
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5749
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5725
5750
|
$fault: "client",
|
|
5726
|
-
$metadata
|
|
5751
|
+
$metadata,
|
|
5727
5752
|
});
|
|
5728
5753
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5729
5754
|
}
|
|
@@ -5753,18 +5778,19 @@ const deserializeAws_restJson1ListCoreDefinitionVersionsCommandError = async (ou
|
|
|
5753
5778
|
body: await parseBody(output.body, context),
|
|
5754
5779
|
};
|
|
5755
5780
|
let response;
|
|
5756
|
-
|
|
5757
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5758
5782
|
switch (errorCode) {
|
|
5759
5783
|
case "BadRequestException":
|
|
5760
5784
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5761
5785
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5762
5786
|
default:
|
|
5763
5787
|
const parsedBody = parsedOutput.body;
|
|
5788
|
+
const $metadata = deserializeMetadata(output);
|
|
5789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5764
5790
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5766
5792
|
$fault: "client",
|
|
5767
|
-
$metadata
|
|
5793
|
+
$metadata,
|
|
5768
5794
|
});
|
|
5769
5795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5770
5796
|
}
|
|
@@ -5794,18 +5820,19 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
5794
5820
|
body: await parseBody(output.body, context),
|
|
5795
5821
|
};
|
|
5796
5822
|
let response;
|
|
5797
|
-
|
|
5798
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5799
5824
|
switch (errorCode) {
|
|
5800
5825
|
case "BadRequestException":
|
|
5801
5826
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5802
5827
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5803
5828
|
default:
|
|
5804
5829
|
const parsedBody = parsedOutput.body;
|
|
5830
|
+
const $metadata = deserializeMetadata(output);
|
|
5831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5805
5832
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5807
5834
|
$fault: "client",
|
|
5808
|
-
$metadata
|
|
5835
|
+
$metadata,
|
|
5809
5836
|
});
|
|
5810
5837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5811
5838
|
}
|
|
@@ -5835,15 +5862,16 @@ const deserializeAws_restJson1ListDeviceDefinitionsCommandError = async (output,
|
|
|
5835
5862
|
body: await parseBody(output.body, context),
|
|
5836
5863
|
};
|
|
5837
5864
|
let response;
|
|
5838
|
-
|
|
5839
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5840
5866
|
switch (errorCode) {
|
|
5841
5867
|
default:
|
|
5842
5868
|
const parsedBody = parsedOutput.body;
|
|
5869
|
+
const $metadata = deserializeMetadata(output);
|
|
5870
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5843
5871
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5872
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5845
5873
|
$fault: "client",
|
|
5846
|
-
$metadata
|
|
5874
|
+
$metadata,
|
|
5847
5875
|
});
|
|
5848
5876
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5849
5877
|
}
|
|
@@ -5873,18 +5901,19 @@ const deserializeAws_restJson1ListDeviceDefinitionVersionsCommandError = async (
|
|
|
5873
5901
|
body: await parseBody(output.body, context),
|
|
5874
5902
|
};
|
|
5875
5903
|
let response;
|
|
5876
|
-
|
|
5877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5878
5905
|
switch (errorCode) {
|
|
5879
5906
|
case "BadRequestException":
|
|
5880
5907
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5881
5908
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5882
5909
|
default:
|
|
5883
5910
|
const parsedBody = parsedOutput.body;
|
|
5911
|
+
const $metadata = deserializeMetadata(output);
|
|
5912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5884
5913
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5885
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5886
5915
|
$fault: "client",
|
|
5887
|
-
$metadata
|
|
5916
|
+
$metadata,
|
|
5888
5917
|
});
|
|
5889
5918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5890
5919
|
}
|
|
@@ -5914,15 +5943,16 @@ const deserializeAws_restJson1ListFunctionDefinitionsCommandError = async (outpu
|
|
|
5914
5943
|
body: await parseBody(output.body, context),
|
|
5915
5944
|
};
|
|
5916
5945
|
let response;
|
|
5917
|
-
|
|
5918
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5919
5947
|
switch (errorCode) {
|
|
5920
5948
|
default:
|
|
5921
5949
|
const parsedBody = parsedOutput.body;
|
|
5950
|
+
const $metadata = deserializeMetadata(output);
|
|
5951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5922
5952
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5923
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5924
5954
|
$fault: "client",
|
|
5925
|
-
$metadata
|
|
5955
|
+
$metadata,
|
|
5926
5956
|
});
|
|
5927
5957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5928
5958
|
}
|
|
@@ -5952,18 +5982,19 @@ const deserializeAws_restJson1ListFunctionDefinitionVersionsCommandError = async
|
|
|
5952
5982
|
body: await parseBody(output.body, context),
|
|
5953
5983
|
};
|
|
5954
5984
|
let response;
|
|
5955
|
-
|
|
5956
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5957
5986
|
switch (errorCode) {
|
|
5958
5987
|
case "BadRequestException":
|
|
5959
5988
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
5960
5989
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5961
5990
|
default:
|
|
5962
5991
|
const parsedBody = parsedOutput.body;
|
|
5992
|
+
const $metadata = deserializeMetadata(output);
|
|
5993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5963
5994
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
5964
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5965
5996
|
$fault: "client",
|
|
5966
|
-
$metadata
|
|
5997
|
+
$metadata,
|
|
5967
5998
|
});
|
|
5968
5999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5969
6000
|
}
|
|
@@ -5989,8 +6020,7 @@ const deserializeAws_restJson1ListGroupCertificateAuthoritiesCommandError = asyn
|
|
|
5989
6020
|
body: await parseBody(output.body, context),
|
|
5990
6021
|
};
|
|
5991
6022
|
let response;
|
|
5992
|
-
|
|
5993
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5994
6024
|
switch (errorCode) {
|
|
5995
6025
|
case "BadRequestException":
|
|
5996
6026
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -6000,10 +6030,12 @@ const deserializeAws_restJson1ListGroupCertificateAuthoritiesCommandError = asyn
|
|
|
6000
6030
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
6001
6031
|
default:
|
|
6002
6032
|
const parsedBody = parsedOutput.body;
|
|
6033
|
+
const $metadata = deserializeMetadata(output);
|
|
6034
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6003
6035
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6004
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6005
6037
|
$fault: "client",
|
|
6006
|
-
$metadata
|
|
6038
|
+
$metadata,
|
|
6007
6039
|
});
|
|
6008
6040
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6009
6041
|
}
|
|
@@ -6033,15 +6065,16 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
|
|
|
6033
6065
|
body: await parseBody(output.body, context),
|
|
6034
6066
|
};
|
|
6035
6067
|
let response;
|
|
6036
|
-
|
|
6037
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6038
6069
|
switch (errorCode) {
|
|
6039
6070
|
default:
|
|
6040
6071
|
const parsedBody = parsedOutput.body;
|
|
6072
|
+
const $metadata = deserializeMetadata(output);
|
|
6073
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6041
6074
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6042
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6075
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6043
6076
|
$fault: "client",
|
|
6044
|
-
$metadata
|
|
6077
|
+
$metadata,
|
|
6045
6078
|
});
|
|
6046
6079
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6047
6080
|
}
|
|
@@ -6071,18 +6104,19 @@ const deserializeAws_restJson1ListGroupVersionsCommandError = async (output, con
|
|
|
6071
6104
|
body: await parseBody(output.body, context),
|
|
6072
6105
|
};
|
|
6073
6106
|
let response;
|
|
6074
|
-
|
|
6075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6076
6108
|
switch (errorCode) {
|
|
6077
6109
|
case "BadRequestException":
|
|
6078
6110
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6079
6111
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6080
6112
|
default:
|
|
6081
6113
|
const parsedBody = parsedOutput.body;
|
|
6114
|
+
const $metadata = deserializeMetadata(output);
|
|
6115
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6082
6116
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6117
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6084
6118
|
$fault: "client",
|
|
6085
|
-
$metadata
|
|
6119
|
+
$metadata,
|
|
6086
6120
|
});
|
|
6087
6121
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6088
6122
|
}
|
|
@@ -6112,15 +6146,16 @@ const deserializeAws_restJson1ListLoggerDefinitionsCommandError = async (output,
|
|
|
6112
6146
|
body: await parseBody(output.body, context),
|
|
6113
6147
|
};
|
|
6114
6148
|
let response;
|
|
6115
|
-
|
|
6116
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6149
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6117
6150
|
switch (errorCode) {
|
|
6118
6151
|
default:
|
|
6119
6152
|
const parsedBody = parsedOutput.body;
|
|
6153
|
+
const $metadata = deserializeMetadata(output);
|
|
6154
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6120
6155
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6156
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6122
6157
|
$fault: "client",
|
|
6123
|
-
$metadata
|
|
6158
|
+
$metadata,
|
|
6124
6159
|
});
|
|
6125
6160
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6126
6161
|
}
|
|
@@ -6150,18 +6185,19 @@ const deserializeAws_restJson1ListLoggerDefinitionVersionsCommandError = async (
|
|
|
6150
6185
|
body: await parseBody(output.body, context),
|
|
6151
6186
|
};
|
|
6152
6187
|
let response;
|
|
6153
|
-
|
|
6154
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6155
6189
|
switch (errorCode) {
|
|
6156
6190
|
case "BadRequestException":
|
|
6157
6191
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6158
6192
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6159
6193
|
default:
|
|
6160
6194
|
const parsedBody = parsedOutput.body;
|
|
6195
|
+
const $metadata = deserializeMetadata(output);
|
|
6196
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6161
6197
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6162
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6198
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6163
6199
|
$fault: "client",
|
|
6164
|
-
$metadata
|
|
6200
|
+
$metadata,
|
|
6165
6201
|
});
|
|
6166
6202
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6167
6203
|
}
|
|
@@ -6191,15 +6227,16 @@ const deserializeAws_restJson1ListResourceDefinitionsCommandError = async (outpu
|
|
|
6191
6227
|
body: await parseBody(output.body, context),
|
|
6192
6228
|
};
|
|
6193
6229
|
let response;
|
|
6194
|
-
|
|
6195
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6196
6231
|
switch (errorCode) {
|
|
6197
6232
|
default:
|
|
6198
6233
|
const parsedBody = parsedOutput.body;
|
|
6234
|
+
const $metadata = deserializeMetadata(output);
|
|
6235
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6199
6236
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6237
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6201
6238
|
$fault: "client",
|
|
6202
|
-
$metadata
|
|
6239
|
+
$metadata,
|
|
6203
6240
|
});
|
|
6204
6241
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6205
6242
|
}
|
|
@@ -6229,18 +6266,19 @@ const deserializeAws_restJson1ListResourceDefinitionVersionsCommandError = async
|
|
|
6229
6266
|
body: await parseBody(output.body, context),
|
|
6230
6267
|
};
|
|
6231
6268
|
let response;
|
|
6232
|
-
|
|
6233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6234
6270
|
switch (errorCode) {
|
|
6235
6271
|
case "BadRequestException":
|
|
6236
6272
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6237
6273
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6238
6274
|
default:
|
|
6239
6275
|
const parsedBody = parsedOutput.body;
|
|
6276
|
+
const $metadata = deserializeMetadata(output);
|
|
6277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6240
6278
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6242
6280
|
$fault: "client",
|
|
6243
|
-
$metadata
|
|
6281
|
+
$metadata,
|
|
6244
6282
|
});
|
|
6245
6283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6246
6284
|
}
|
|
@@ -6270,15 +6308,16 @@ const deserializeAws_restJson1ListSubscriptionDefinitionsCommandError = async (o
|
|
|
6270
6308
|
body: await parseBody(output.body, context),
|
|
6271
6309
|
};
|
|
6272
6310
|
let response;
|
|
6273
|
-
|
|
6274
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6275
6312
|
switch (errorCode) {
|
|
6276
6313
|
default:
|
|
6277
6314
|
const parsedBody = parsedOutput.body;
|
|
6315
|
+
const $metadata = deserializeMetadata(output);
|
|
6316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6278
6317
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6279
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6280
6319
|
$fault: "client",
|
|
6281
|
-
$metadata
|
|
6320
|
+
$metadata,
|
|
6282
6321
|
});
|
|
6283
6322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6284
6323
|
}
|
|
@@ -6308,18 +6347,19 @@ const deserializeAws_restJson1ListSubscriptionDefinitionVersionsCommandError = a
|
|
|
6308
6347
|
body: await parseBody(output.body, context),
|
|
6309
6348
|
};
|
|
6310
6349
|
let response;
|
|
6311
|
-
|
|
6312
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6313
6351
|
switch (errorCode) {
|
|
6314
6352
|
case "BadRequestException":
|
|
6315
6353
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6316
6354
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6317
6355
|
default:
|
|
6318
6356
|
const parsedBody = parsedOutput.body;
|
|
6357
|
+
const $metadata = deserializeMetadata(output);
|
|
6358
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6319
6359
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6360
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6321
6361
|
$fault: "client",
|
|
6322
|
-
$metadata
|
|
6362
|
+
$metadata,
|
|
6323
6363
|
});
|
|
6324
6364
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6325
6365
|
}
|
|
@@ -6345,18 +6385,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6345
6385
|
body: await parseBody(output.body, context),
|
|
6346
6386
|
};
|
|
6347
6387
|
let response;
|
|
6348
|
-
|
|
6349
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6388
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6350
6389
|
switch (errorCode) {
|
|
6351
6390
|
case "BadRequestException":
|
|
6352
6391
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6353
6392
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6354
6393
|
default:
|
|
6355
6394
|
const parsedBody = parsedOutput.body;
|
|
6395
|
+
const $metadata = deserializeMetadata(output);
|
|
6396
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6356
6397
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6357
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6398
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6358
6399
|
$fault: "client",
|
|
6359
|
-
$metadata
|
|
6400
|
+
$metadata,
|
|
6360
6401
|
});
|
|
6361
6402
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6362
6403
|
}
|
|
@@ -6386,18 +6427,19 @@ const deserializeAws_restJson1ResetDeploymentsCommandError = async (output, cont
|
|
|
6386
6427
|
body: await parseBody(output.body, context),
|
|
6387
6428
|
};
|
|
6388
6429
|
let response;
|
|
6389
|
-
|
|
6390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6430
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6391
6431
|
switch (errorCode) {
|
|
6392
6432
|
case "BadRequestException":
|
|
6393
6433
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6394
6434
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6395
6435
|
default:
|
|
6396
6436
|
const parsedBody = parsedOutput.body;
|
|
6437
|
+
const $metadata = deserializeMetadata(output);
|
|
6438
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6397
6439
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6440
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6399
6441
|
$fault: "client",
|
|
6400
|
-
$metadata
|
|
6442
|
+
$metadata,
|
|
6401
6443
|
});
|
|
6402
6444
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6403
6445
|
}
|
|
@@ -6427,18 +6469,19 @@ const deserializeAws_restJson1StartBulkDeploymentCommandError = async (output, c
|
|
|
6427
6469
|
body: await parseBody(output.body, context),
|
|
6428
6470
|
};
|
|
6429
6471
|
let response;
|
|
6430
|
-
|
|
6431
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6432
6473
|
switch (errorCode) {
|
|
6433
6474
|
case "BadRequestException":
|
|
6434
6475
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6435
6476
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6436
6477
|
default:
|
|
6437
6478
|
const parsedBody = parsedOutput.body;
|
|
6479
|
+
const $metadata = deserializeMetadata(output);
|
|
6480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6438
6481
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6439
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6440
6483
|
$fault: "client",
|
|
6441
|
-
$metadata
|
|
6484
|
+
$metadata,
|
|
6442
6485
|
});
|
|
6443
6486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6444
6487
|
}
|
|
@@ -6460,18 +6503,19 @@ const deserializeAws_restJson1StopBulkDeploymentCommandError = async (output, co
|
|
|
6460
6503
|
body: await parseBody(output.body, context),
|
|
6461
6504
|
};
|
|
6462
6505
|
let response;
|
|
6463
|
-
|
|
6464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6465
6507
|
switch (errorCode) {
|
|
6466
6508
|
case "BadRequestException":
|
|
6467
6509
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6468
6510
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6469
6511
|
default:
|
|
6470
6512
|
const parsedBody = parsedOutput.body;
|
|
6513
|
+
const $metadata = deserializeMetadata(output);
|
|
6514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6471
6515
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6473
6517
|
$fault: "client",
|
|
6474
|
-
$metadata
|
|
6518
|
+
$metadata,
|
|
6475
6519
|
});
|
|
6476
6520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6477
6521
|
}
|
|
@@ -6493,18 +6537,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6493
6537
|
body: await parseBody(output.body, context),
|
|
6494
6538
|
};
|
|
6495
6539
|
let response;
|
|
6496
|
-
|
|
6497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6498
6541
|
switch (errorCode) {
|
|
6499
6542
|
case "BadRequestException":
|
|
6500
6543
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6501
6544
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6502
6545
|
default:
|
|
6503
6546
|
const parsedBody = parsedOutput.body;
|
|
6547
|
+
const $metadata = deserializeMetadata(output);
|
|
6548
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6504
6549
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6505
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6550
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6506
6551
|
$fault: "client",
|
|
6507
|
-
$metadata
|
|
6552
|
+
$metadata,
|
|
6508
6553
|
});
|
|
6509
6554
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6510
6555
|
}
|
|
@@ -6526,18 +6571,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6526
6571
|
body: await parseBody(output.body, context),
|
|
6527
6572
|
};
|
|
6528
6573
|
let response;
|
|
6529
|
-
|
|
6530
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6574
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6531
6575
|
switch (errorCode) {
|
|
6532
6576
|
case "BadRequestException":
|
|
6533
6577
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6534
6578
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6535
6579
|
default:
|
|
6536
6580
|
const parsedBody = parsedOutput.body;
|
|
6581
|
+
const $metadata = deserializeMetadata(output);
|
|
6582
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6537
6583
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6538
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6584
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6539
6585
|
$fault: "client",
|
|
6540
|
-
$metadata
|
|
6586
|
+
$metadata,
|
|
6541
6587
|
});
|
|
6542
6588
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6543
6589
|
}
|
|
@@ -6567,8 +6613,7 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output
|
|
|
6567
6613
|
body: await parseBody(output.body, context),
|
|
6568
6614
|
};
|
|
6569
6615
|
let response;
|
|
6570
|
-
|
|
6571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6572
6617
|
switch (errorCode) {
|
|
6573
6618
|
case "BadRequestException":
|
|
6574
6619
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -6578,10 +6623,12 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output
|
|
|
6578
6623
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
6579
6624
|
default:
|
|
6580
6625
|
const parsedBody = parsedOutput.body;
|
|
6626
|
+
const $metadata = deserializeMetadata(output);
|
|
6627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6581
6628
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6583
6630
|
$fault: "client",
|
|
6584
|
-
$metadata
|
|
6631
|
+
$metadata,
|
|
6585
6632
|
});
|
|
6586
6633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6587
6634
|
}
|
|
@@ -6603,18 +6650,19 @@ const deserializeAws_restJson1UpdateConnectorDefinitionCommandError = async (out
|
|
|
6603
6650
|
body: await parseBody(output.body, context),
|
|
6604
6651
|
};
|
|
6605
6652
|
let response;
|
|
6606
|
-
|
|
6607
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6608
6654
|
switch (errorCode) {
|
|
6609
6655
|
case "BadRequestException":
|
|
6610
6656
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6611
6657
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6612
6658
|
default:
|
|
6613
6659
|
const parsedBody = parsedOutput.body;
|
|
6660
|
+
const $metadata = deserializeMetadata(output);
|
|
6661
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6614
6662
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6663
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6616
6664
|
$fault: "client",
|
|
6617
|
-
$metadata
|
|
6665
|
+
$metadata,
|
|
6618
6666
|
});
|
|
6619
6667
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6620
6668
|
}
|
|
@@ -6636,18 +6684,19 @@ const deserializeAws_restJson1UpdateCoreDefinitionCommandError = async (output,
|
|
|
6636
6684
|
body: await parseBody(output.body, context),
|
|
6637
6685
|
};
|
|
6638
6686
|
let response;
|
|
6639
|
-
|
|
6640
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6641
6688
|
switch (errorCode) {
|
|
6642
6689
|
case "BadRequestException":
|
|
6643
6690
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6644
6691
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6645
6692
|
default:
|
|
6646
6693
|
const parsedBody = parsedOutput.body;
|
|
6694
|
+
const $metadata = deserializeMetadata(output);
|
|
6695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6647
6696
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6649
6698
|
$fault: "client",
|
|
6650
|
-
$metadata
|
|
6699
|
+
$metadata,
|
|
6651
6700
|
});
|
|
6652
6701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6653
6702
|
}
|
|
@@ -6669,18 +6718,19 @@ const deserializeAws_restJson1UpdateDeviceDefinitionCommandError = async (output
|
|
|
6669
6718
|
body: await parseBody(output.body, context),
|
|
6670
6719
|
};
|
|
6671
6720
|
let response;
|
|
6672
|
-
|
|
6673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6674
6722
|
switch (errorCode) {
|
|
6675
6723
|
case "BadRequestException":
|
|
6676
6724
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6677
6725
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6678
6726
|
default:
|
|
6679
6727
|
const parsedBody = parsedOutput.body;
|
|
6728
|
+
const $metadata = deserializeMetadata(output);
|
|
6729
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6680
6730
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6681
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6682
6732
|
$fault: "client",
|
|
6683
|
-
$metadata
|
|
6733
|
+
$metadata,
|
|
6684
6734
|
});
|
|
6685
6735
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6686
6736
|
}
|
|
@@ -6702,18 +6752,19 @@ const deserializeAws_restJson1UpdateFunctionDefinitionCommandError = async (outp
|
|
|
6702
6752
|
body: await parseBody(output.body, context),
|
|
6703
6753
|
};
|
|
6704
6754
|
let response;
|
|
6705
|
-
|
|
6706
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6707
6756
|
switch (errorCode) {
|
|
6708
6757
|
case "BadRequestException":
|
|
6709
6758
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6710
6759
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6711
6760
|
default:
|
|
6712
6761
|
const parsedBody = parsedOutput.body;
|
|
6762
|
+
const $metadata = deserializeMetadata(output);
|
|
6763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6713
6764
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6715
6766
|
$fault: "client",
|
|
6716
|
-
$metadata
|
|
6767
|
+
$metadata,
|
|
6717
6768
|
});
|
|
6718
6769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6719
6770
|
}
|
|
@@ -6735,18 +6786,19 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
6735
6786
|
body: await parseBody(output.body, context),
|
|
6736
6787
|
};
|
|
6737
6788
|
let response;
|
|
6738
|
-
|
|
6739
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6740
6790
|
switch (errorCode) {
|
|
6741
6791
|
case "BadRequestException":
|
|
6742
6792
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6743
6793
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6744
6794
|
default:
|
|
6745
6795
|
const parsedBody = parsedOutput.body;
|
|
6796
|
+
const $metadata = deserializeMetadata(output);
|
|
6797
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6746
6798
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6748
6800
|
$fault: "client",
|
|
6749
|
-
$metadata
|
|
6801
|
+
$metadata,
|
|
6750
6802
|
});
|
|
6751
6803
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6752
6804
|
}
|
|
@@ -6781,8 +6833,7 @@ const deserializeAws_restJson1UpdateGroupCertificateConfigurationCommandError =
|
|
|
6781
6833
|
body: await parseBody(output.body, context),
|
|
6782
6834
|
};
|
|
6783
6835
|
let response;
|
|
6784
|
-
|
|
6785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6786
6837
|
switch (errorCode) {
|
|
6787
6838
|
case "BadRequestException":
|
|
6788
6839
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -6792,10 +6843,12 @@ const deserializeAws_restJson1UpdateGroupCertificateConfigurationCommandError =
|
|
|
6792
6843
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
6793
6844
|
default:
|
|
6794
6845
|
const parsedBody = parsedOutput.body;
|
|
6846
|
+
const $metadata = deserializeMetadata(output);
|
|
6847
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6795
6848
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6849
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6797
6850
|
$fault: "client",
|
|
6798
|
-
$metadata
|
|
6851
|
+
$metadata,
|
|
6799
6852
|
});
|
|
6800
6853
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6801
6854
|
}
|
|
@@ -6817,18 +6870,19 @@ const deserializeAws_restJson1UpdateLoggerDefinitionCommandError = async (output
|
|
|
6817
6870
|
body: await parseBody(output.body, context),
|
|
6818
6871
|
};
|
|
6819
6872
|
let response;
|
|
6820
|
-
|
|
6821
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6822
6874
|
switch (errorCode) {
|
|
6823
6875
|
case "BadRequestException":
|
|
6824
6876
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6825
6877
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6826
6878
|
default:
|
|
6827
6879
|
const parsedBody = parsedOutput.body;
|
|
6880
|
+
const $metadata = deserializeMetadata(output);
|
|
6881
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6828
6882
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6829
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6883
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6830
6884
|
$fault: "client",
|
|
6831
|
-
$metadata
|
|
6885
|
+
$metadata,
|
|
6832
6886
|
});
|
|
6833
6887
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6834
6888
|
}
|
|
@@ -6850,18 +6904,19 @@ const deserializeAws_restJson1UpdateResourceDefinitionCommandError = async (outp
|
|
|
6850
6904
|
body: await parseBody(output.body, context),
|
|
6851
6905
|
};
|
|
6852
6906
|
let response;
|
|
6853
|
-
|
|
6854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6855
6908
|
switch (errorCode) {
|
|
6856
6909
|
case "BadRequestException":
|
|
6857
6910
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6858
6911
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6859
6912
|
default:
|
|
6860
6913
|
const parsedBody = parsedOutput.body;
|
|
6914
|
+
const $metadata = deserializeMetadata(output);
|
|
6915
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6861
6916
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6917
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6863
6918
|
$fault: "client",
|
|
6864
|
-
$metadata
|
|
6919
|
+
$metadata,
|
|
6865
6920
|
});
|
|
6866
6921
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6867
6922
|
}
|
|
@@ -6883,18 +6938,19 @@ const deserializeAws_restJson1UpdateSubscriptionDefinitionCommandError = async (
|
|
|
6883
6938
|
body: await parseBody(output.body, context),
|
|
6884
6939
|
};
|
|
6885
6940
|
let response;
|
|
6886
|
-
|
|
6887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6888
6942
|
switch (errorCode) {
|
|
6889
6943
|
case "BadRequestException":
|
|
6890
6944
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
6891
6945
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6892
6946
|
default:
|
|
6893
6947
|
const parsedBody = parsedOutput.body;
|
|
6948
|
+
const $metadata = deserializeMetadata(output);
|
|
6949
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6894
6950
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6895
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6896
6952
|
$fault: "client",
|
|
6897
|
-
$metadata
|
|
6953
|
+
$metadata,
|
|
6898
6954
|
});
|
|
6899
6955
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6900
6956
|
}
|
|
@@ -6916,8 +6972,7 @@ const deserializeAws_restJson1UpdateThingRuntimeConfigurationCommandError = asyn
|
|
|
6916
6972
|
body: await parseBody(output.body, context),
|
|
6917
6973
|
};
|
|
6918
6974
|
let response;
|
|
6919
|
-
|
|
6920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6921
6976
|
switch (errorCode) {
|
|
6922
6977
|
case "BadRequestException":
|
|
6923
6978
|
case "com.amazonaws.greengrass#BadRequestException":
|
|
@@ -6927,10 +6982,12 @@ const deserializeAws_restJson1UpdateThingRuntimeConfigurationCommandError = asyn
|
|
|
6927
6982
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
6928
6983
|
default:
|
|
6929
6984
|
const parsedBody = parsedOutput.body;
|
|
6985
|
+
const $metadata = deserializeMetadata(output);
|
|
6986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6930
6987
|
response = new GreengrassServiceException_1.GreengrassServiceException({
|
|
6931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6932
6989
|
$fault: "client",
|
|
6933
|
-
$metadata
|
|
6990
|
+
$metadata,
|
|
6934
6991
|
});
|
|
6935
6992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6936
6993
|
}
|
|
@@ -7078,298 +7135,255 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
7078
7135
|
};
|
|
7079
7136
|
const serializeAws_restJson1ConnectivityInfo = (input, context) => {
|
|
7080
7137
|
return {
|
|
7081
|
-
...(input.HostAddress
|
|
7082
|
-
...(input.Id
|
|
7083
|
-
...(input.Metadata
|
|
7084
|
-
...(input.PortNumber
|
|
7138
|
+
...(input.HostAddress != null && { HostAddress: input.HostAddress }),
|
|
7139
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7140
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
7141
|
+
...(input.PortNumber != null && { PortNumber: input.PortNumber }),
|
|
7085
7142
|
};
|
|
7086
7143
|
};
|
|
7087
7144
|
const serializeAws_restJson1Connector = (input, context) => {
|
|
7088
7145
|
return {
|
|
7089
|
-
...(input.ConnectorArn
|
|
7090
|
-
...(input.Id
|
|
7091
|
-
...(input.Parameters
|
|
7092
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1__mapOf__string(input.Parameters, context) }),
|
|
7146
|
+
...(input.ConnectorArn != null && { ConnectorArn: input.ConnectorArn }),
|
|
7147
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7148
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1__mapOf__string(input.Parameters, context) }),
|
|
7093
7149
|
};
|
|
7094
7150
|
};
|
|
7095
7151
|
const serializeAws_restJson1ConnectorDefinitionVersion = (input, context) => {
|
|
7096
7152
|
return {
|
|
7097
|
-
...(input.Connectors
|
|
7098
|
-
input.Connectors !== null && { Connectors: serializeAws_restJson1__listOfConnector(input.Connectors, context) }),
|
|
7153
|
+
...(input.Connectors != null && { Connectors: serializeAws_restJson1__listOfConnector(input.Connectors, context) }),
|
|
7099
7154
|
};
|
|
7100
7155
|
};
|
|
7101
7156
|
const serializeAws_restJson1Core = (input, context) => {
|
|
7102
7157
|
return {
|
|
7103
|
-
...(input.CertificateArn
|
|
7104
|
-
|
|
7105
|
-
...(input.
|
|
7106
|
-
...(input.
|
|
7107
|
-
...(input.ThingArn !== undefined && input.ThingArn !== null && { ThingArn: input.ThingArn }),
|
|
7158
|
+
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
7159
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7160
|
+
...(input.SyncShadow != null && { SyncShadow: input.SyncShadow }),
|
|
7161
|
+
...(input.ThingArn != null && { ThingArn: input.ThingArn }),
|
|
7108
7162
|
};
|
|
7109
7163
|
};
|
|
7110
7164
|
const serializeAws_restJson1CoreDefinitionVersion = (input, context) => {
|
|
7111
7165
|
return {
|
|
7112
|
-
...(input.Cores
|
|
7113
|
-
input.Cores !== null && { Cores: serializeAws_restJson1__listOfCore(input.Cores, context) }),
|
|
7166
|
+
...(input.Cores != null && { Cores: serializeAws_restJson1__listOfCore(input.Cores, context) }),
|
|
7114
7167
|
};
|
|
7115
7168
|
};
|
|
7116
7169
|
const serializeAws_restJson1Device = (input, context) => {
|
|
7117
7170
|
return {
|
|
7118
|
-
...(input.CertificateArn
|
|
7119
|
-
|
|
7120
|
-
...(input.
|
|
7121
|
-
...(input.
|
|
7122
|
-
...(input.ThingArn !== undefined && input.ThingArn !== null && { ThingArn: input.ThingArn }),
|
|
7171
|
+
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
7172
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7173
|
+
...(input.SyncShadow != null && { SyncShadow: input.SyncShadow }),
|
|
7174
|
+
...(input.ThingArn != null && { ThingArn: input.ThingArn }),
|
|
7123
7175
|
};
|
|
7124
7176
|
};
|
|
7125
7177
|
const serializeAws_restJson1DeviceDefinitionVersion = (input, context) => {
|
|
7126
7178
|
return {
|
|
7127
|
-
...(input.Devices
|
|
7128
|
-
input.Devices !== null && { Devices: serializeAws_restJson1__listOfDevice(input.Devices, context) }),
|
|
7179
|
+
...(input.Devices != null && { Devices: serializeAws_restJson1__listOfDevice(input.Devices, context) }),
|
|
7129
7180
|
};
|
|
7130
7181
|
};
|
|
7131
7182
|
const serializeAws_restJson1Function = (input, context) => {
|
|
7132
7183
|
return {
|
|
7133
|
-
...(input.FunctionArn
|
|
7134
|
-
...(input.FunctionConfiguration
|
|
7135
|
-
input.FunctionConfiguration !== null && {
|
|
7184
|
+
...(input.FunctionArn != null && { FunctionArn: input.FunctionArn }),
|
|
7185
|
+
...(input.FunctionConfiguration != null && {
|
|
7136
7186
|
FunctionConfiguration: serializeAws_restJson1FunctionConfiguration(input.FunctionConfiguration, context),
|
|
7137
7187
|
}),
|
|
7138
|
-
...(input.Id
|
|
7188
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7139
7189
|
};
|
|
7140
7190
|
};
|
|
7141
7191
|
const serializeAws_restJson1FunctionConfiguration = (input, context) => {
|
|
7142
7192
|
return {
|
|
7143
|
-
...(input.EncodingType
|
|
7144
|
-
...(input.Environment
|
|
7145
|
-
input.Environment !== null && {
|
|
7193
|
+
...(input.EncodingType != null && { EncodingType: input.EncodingType }),
|
|
7194
|
+
...(input.Environment != null && {
|
|
7146
7195
|
Environment: serializeAws_restJson1FunctionConfigurationEnvironment(input.Environment, context),
|
|
7147
7196
|
}),
|
|
7148
|
-
...(input.ExecArgs
|
|
7149
|
-
...(input.Executable
|
|
7150
|
-
...(input.MemorySize
|
|
7151
|
-
...(input.Pinned
|
|
7152
|
-
...(input.Timeout
|
|
7197
|
+
...(input.ExecArgs != null && { ExecArgs: input.ExecArgs }),
|
|
7198
|
+
...(input.Executable != null && { Executable: input.Executable }),
|
|
7199
|
+
...(input.MemorySize != null && { MemorySize: input.MemorySize }),
|
|
7200
|
+
...(input.Pinned != null && { Pinned: input.Pinned }),
|
|
7201
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
7153
7202
|
};
|
|
7154
7203
|
};
|
|
7155
7204
|
const serializeAws_restJson1FunctionConfigurationEnvironment = (input, context) => {
|
|
7156
7205
|
return {
|
|
7157
|
-
...(input.AccessSysfs
|
|
7158
|
-
...(input.Execution
|
|
7159
|
-
input.Execution !== null && {
|
|
7206
|
+
...(input.AccessSysfs != null && { AccessSysfs: input.AccessSysfs }),
|
|
7207
|
+
...(input.Execution != null && {
|
|
7160
7208
|
Execution: serializeAws_restJson1FunctionExecutionConfig(input.Execution, context),
|
|
7161
7209
|
}),
|
|
7162
|
-
...(input.ResourceAccessPolicies
|
|
7163
|
-
input.ResourceAccessPolicies !== null && {
|
|
7210
|
+
...(input.ResourceAccessPolicies != null && {
|
|
7164
7211
|
ResourceAccessPolicies: serializeAws_restJson1__listOfResourceAccessPolicy(input.ResourceAccessPolicies, context),
|
|
7165
7212
|
}),
|
|
7166
|
-
...(input.Variables
|
|
7167
|
-
input.Variables !== null && { Variables: serializeAws_restJson1__mapOf__string(input.Variables, context) }),
|
|
7213
|
+
...(input.Variables != null && { Variables: serializeAws_restJson1__mapOf__string(input.Variables, context) }),
|
|
7168
7214
|
};
|
|
7169
7215
|
};
|
|
7170
7216
|
const serializeAws_restJson1FunctionDefaultConfig = (input, context) => {
|
|
7171
7217
|
return {
|
|
7172
|
-
...(input.Execution
|
|
7173
|
-
input.Execution !== null && {
|
|
7218
|
+
...(input.Execution != null && {
|
|
7174
7219
|
Execution: serializeAws_restJson1FunctionDefaultExecutionConfig(input.Execution, context),
|
|
7175
7220
|
}),
|
|
7176
7221
|
};
|
|
7177
7222
|
};
|
|
7178
7223
|
const serializeAws_restJson1FunctionDefaultExecutionConfig = (input, context) => {
|
|
7179
7224
|
return {
|
|
7180
|
-
...(input.IsolationMode
|
|
7181
|
-
...(input.RunAs
|
|
7182
|
-
input.RunAs !== null && { RunAs: serializeAws_restJson1FunctionRunAsConfig(input.RunAs, context) }),
|
|
7225
|
+
...(input.IsolationMode != null && { IsolationMode: input.IsolationMode }),
|
|
7226
|
+
...(input.RunAs != null && { RunAs: serializeAws_restJson1FunctionRunAsConfig(input.RunAs, context) }),
|
|
7183
7227
|
};
|
|
7184
7228
|
};
|
|
7185
7229
|
const serializeAws_restJson1FunctionDefinitionVersion = (input, context) => {
|
|
7186
7230
|
return {
|
|
7187
|
-
...(input.DefaultConfig
|
|
7188
|
-
input.DefaultConfig !== null && {
|
|
7231
|
+
...(input.DefaultConfig != null && {
|
|
7189
7232
|
DefaultConfig: serializeAws_restJson1FunctionDefaultConfig(input.DefaultConfig, context),
|
|
7190
7233
|
}),
|
|
7191
|
-
...(input.Functions
|
|
7192
|
-
input.Functions !== null && { Functions: serializeAws_restJson1__listOfFunction(input.Functions, context) }),
|
|
7234
|
+
...(input.Functions != null && { Functions: serializeAws_restJson1__listOfFunction(input.Functions, context) }),
|
|
7193
7235
|
};
|
|
7194
7236
|
};
|
|
7195
7237
|
const serializeAws_restJson1FunctionExecutionConfig = (input, context) => {
|
|
7196
7238
|
return {
|
|
7197
|
-
...(input.IsolationMode
|
|
7198
|
-
...(input.RunAs
|
|
7199
|
-
input.RunAs !== null && { RunAs: serializeAws_restJson1FunctionRunAsConfig(input.RunAs, context) }),
|
|
7239
|
+
...(input.IsolationMode != null && { IsolationMode: input.IsolationMode }),
|
|
7240
|
+
...(input.RunAs != null && { RunAs: serializeAws_restJson1FunctionRunAsConfig(input.RunAs, context) }),
|
|
7200
7241
|
};
|
|
7201
7242
|
};
|
|
7202
7243
|
const serializeAws_restJson1FunctionRunAsConfig = (input, context) => {
|
|
7203
7244
|
return {
|
|
7204
|
-
...(input.Gid
|
|
7205
|
-
...(input.Uid
|
|
7245
|
+
...(input.Gid != null && { Gid: input.Gid }),
|
|
7246
|
+
...(input.Uid != null && { Uid: input.Uid }),
|
|
7206
7247
|
};
|
|
7207
7248
|
};
|
|
7208
7249
|
const serializeAws_restJson1GroupOwnerSetting = (input, context) => {
|
|
7209
7250
|
return {
|
|
7210
|
-
...(input.AutoAddGroupOwner
|
|
7211
|
-
|
|
7212
|
-
...(input.GroupOwner !== undefined && input.GroupOwner !== null && { GroupOwner: input.GroupOwner }),
|
|
7251
|
+
...(input.AutoAddGroupOwner != null && { AutoAddGroupOwner: input.AutoAddGroupOwner }),
|
|
7252
|
+
...(input.GroupOwner != null && { GroupOwner: input.GroupOwner }),
|
|
7213
7253
|
};
|
|
7214
7254
|
};
|
|
7215
7255
|
const serializeAws_restJson1GroupVersion = (input, context) => {
|
|
7216
7256
|
return {
|
|
7217
|
-
...(input.ConnectorDefinitionVersionArn
|
|
7218
|
-
input.ConnectorDefinitionVersionArn !== null && {
|
|
7257
|
+
...(input.ConnectorDefinitionVersionArn != null && {
|
|
7219
7258
|
ConnectorDefinitionVersionArn: input.ConnectorDefinitionVersionArn,
|
|
7220
7259
|
}),
|
|
7221
|
-
...(input.CoreDefinitionVersionArn
|
|
7222
|
-
|
|
7223
|
-
...(input.
|
|
7224
|
-
input.DeviceDefinitionVersionArn !== null && { DeviceDefinitionVersionArn: input.DeviceDefinitionVersionArn }),
|
|
7225
|
-
...(input.FunctionDefinitionVersionArn !== undefined &&
|
|
7226
|
-
input.FunctionDefinitionVersionArn !== null && {
|
|
7260
|
+
...(input.CoreDefinitionVersionArn != null && { CoreDefinitionVersionArn: input.CoreDefinitionVersionArn }),
|
|
7261
|
+
...(input.DeviceDefinitionVersionArn != null && { DeviceDefinitionVersionArn: input.DeviceDefinitionVersionArn }),
|
|
7262
|
+
...(input.FunctionDefinitionVersionArn != null && {
|
|
7227
7263
|
FunctionDefinitionVersionArn: input.FunctionDefinitionVersionArn,
|
|
7228
7264
|
}),
|
|
7229
|
-
...(input.LoggerDefinitionVersionArn
|
|
7230
|
-
|
|
7231
|
-
...(input.ResourceDefinitionVersionArn !== undefined &&
|
|
7232
|
-
input.ResourceDefinitionVersionArn !== null && {
|
|
7265
|
+
...(input.LoggerDefinitionVersionArn != null && { LoggerDefinitionVersionArn: input.LoggerDefinitionVersionArn }),
|
|
7266
|
+
...(input.ResourceDefinitionVersionArn != null && {
|
|
7233
7267
|
ResourceDefinitionVersionArn: input.ResourceDefinitionVersionArn,
|
|
7234
7268
|
}),
|
|
7235
|
-
...(input.SubscriptionDefinitionVersionArn
|
|
7236
|
-
input.SubscriptionDefinitionVersionArn !== null && {
|
|
7269
|
+
...(input.SubscriptionDefinitionVersionArn != null && {
|
|
7237
7270
|
SubscriptionDefinitionVersionArn: input.SubscriptionDefinitionVersionArn,
|
|
7238
7271
|
}),
|
|
7239
7272
|
};
|
|
7240
7273
|
};
|
|
7241
7274
|
const serializeAws_restJson1LocalDeviceResourceData = (input, context) => {
|
|
7242
7275
|
return {
|
|
7243
|
-
...(input.GroupOwnerSetting
|
|
7244
|
-
input.GroupOwnerSetting !== null && {
|
|
7276
|
+
...(input.GroupOwnerSetting != null && {
|
|
7245
7277
|
GroupOwnerSetting: serializeAws_restJson1GroupOwnerSetting(input.GroupOwnerSetting, context),
|
|
7246
7278
|
}),
|
|
7247
|
-
...(input.SourcePath
|
|
7279
|
+
...(input.SourcePath != null && { SourcePath: input.SourcePath }),
|
|
7248
7280
|
};
|
|
7249
7281
|
};
|
|
7250
7282
|
const serializeAws_restJson1LocalVolumeResourceData = (input, context) => {
|
|
7251
7283
|
return {
|
|
7252
|
-
...(input.DestinationPath
|
|
7253
|
-
|
|
7254
|
-
...(input.GroupOwnerSetting !== undefined &&
|
|
7255
|
-
input.GroupOwnerSetting !== null && {
|
|
7284
|
+
...(input.DestinationPath != null && { DestinationPath: input.DestinationPath }),
|
|
7285
|
+
...(input.GroupOwnerSetting != null && {
|
|
7256
7286
|
GroupOwnerSetting: serializeAws_restJson1GroupOwnerSetting(input.GroupOwnerSetting, context),
|
|
7257
7287
|
}),
|
|
7258
|
-
...(input.SourcePath
|
|
7288
|
+
...(input.SourcePath != null && { SourcePath: input.SourcePath }),
|
|
7259
7289
|
};
|
|
7260
7290
|
};
|
|
7261
7291
|
const serializeAws_restJson1Logger = (input, context) => {
|
|
7262
7292
|
return {
|
|
7263
|
-
...(input.Component
|
|
7264
|
-
...(input.Id
|
|
7265
|
-
...(input.Level
|
|
7266
|
-
...(input.Space
|
|
7267
|
-
...(input.Type
|
|
7293
|
+
...(input.Component != null && { Component: input.Component }),
|
|
7294
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7295
|
+
...(input.Level != null && { Level: input.Level }),
|
|
7296
|
+
...(input.Space != null && { Space: input.Space }),
|
|
7297
|
+
...(input.Type != null && { Type: input.Type }),
|
|
7268
7298
|
};
|
|
7269
7299
|
};
|
|
7270
7300
|
const serializeAws_restJson1LoggerDefinitionVersion = (input, context) => {
|
|
7271
7301
|
return {
|
|
7272
|
-
...(input.Loggers
|
|
7273
|
-
input.Loggers !== null && { Loggers: serializeAws_restJson1__listOfLogger(input.Loggers, context) }),
|
|
7302
|
+
...(input.Loggers != null && { Loggers: serializeAws_restJson1__listOfLogger(input.Loggers, context) }),
|
|
7274
7303
|
};
|
|
7275
7304
|
};
|
|
7276
7305
|
const serializeAws_restJson1Resource = (input, context) => {
|
|
7277
7306
|
return {
|
|
7278
|
-
...(input.Id
|
|
7279
|
-
...(input.Name
|
|
7280
|
-
...(input.ResourceDataContainer
|
|
7281
|
-
input.ResourceDataContainer !== null && {
|
|
7307
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7308
|
+
...(input.Name != null && { Name: input.Name }),
|
|
7309
|
+
...(input.ResourceDataContainer != null && {
|
|
7282
7310
|
ResourceDataContainer: serializeAws_restJson1ResourceDataContainer(input.ResourceDataContainer, context),
|
|
7283
7311
|
}),
|
|
7284
7312
|
};
|
|
7285
7313
|
};
|
|
7286
7314
|
const serializeAws_restJson1ResourceAccessPolicy = (input, context) => {
|
|
7287
7315
|
return {
|
|
7288
|
-
...(input.Permission
|
|
7289
|
-
...(input.ResourceId
|
|
7316
|
+
...(input.Permission != null && { Permission: input.Permission }),
|
|
7317
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
7290
7318
|
};
|
|
7291
7319
|
};
|
|
7292
7320
|
const serializeAws_restJson1ResourceDataContainer = (input, context) => {
|
|
7293
7321
|
return {
|
|
7294
|
-
...(input.LocalDeviceResourceData
|
|
7295
|
-
input.LocalDeviceResourceData !== null && {
|
|
7322
|
+
...(input.LocalDeviceResourceData != null && {
|
|
7296
7323
|
LocalDeviceResourceData: serializeAws_restJson1LocalDeviceResourceData(input.LocalDeviceResourceData, context),
|
|
7297
7324
|
}),
|
|
7298
|
-
...(input.LocalVolumeResourceData
|
|
7299
|
-
input.LocalVolumeResourceData !== null && {
|
|
7325
|
+
...(input.LocalVolumeResourceData != null && {
|
|
7300
7326
|
LocalVolumeResourceData: serializeAws_restJson1LocalVolumeResourceData(input.LocalVolumeResourceData, context),
|
|
7301
7327
|
}),
|
|
7302
|
-
...(input.S3MachineLearningModelResourceData
|
|
7303
|
-
input.S3MachineLearningModelResourceData !== null && {
|
|
7328
|
+
...(input.S3MachineLearningModelResourceData != null && {
|
|
7304
7329
|
S3MachineLearningModelResourceData: serializeAws_restJson1S3MachineLearningModelResourceData(input.S3MachineLearningModelResourceData, context),
|
|
7305
7330
|
}),
|
|
7306
|
-
...(input.SageMakerMachineLearningModelResourceData
|
|
7307
|
-
input.SageMakerMachineLearningModelResourceData !== null && {
|
|
7331
|
+
...(input.SageMakerMachineLearningModelResourceData != null && {
|
|
7308
7332
|
SageMakerMachineLearningModelResourceData: serializeAws_restJson1SageMakerMachineLearningModelResourceData(input.SageMakerMachineLearningModelResourceData, context),
|
|
7309
7333
|
}),
|
|
7310
|
-
...(input.SecretsManagerSecretResourceData
|
|
7311
|
-
input.SecretsManagerSecretResourceData !== null && {
|
|
7334
|
+
...(input.SecretsManagerSecretResourceData != null && {
|
|
7312
7335
|
SecretsManagerSecretResourceData: serializeAws_restJson1SecretsManagerSecretResourceData(input.SecretsManagerSecretResourceData, context),
|
|
7313
7336
|
}),
|
|
7314
7337
|
};
|
|
7315
7338
|
};
|
|
7316
7339
|
const serializeAws_restJson1ResourceDefinitionVersion = (input, context) => {
|
|
7317
7340
|
return {
|
|
7318
|
-
...(input.Resources
|
|
7319
|
-
input.Resources !== null && { Resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
|
|
7341
|
+
...(input.Resources != null && { Resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
|
|
7320
7342
|
};
|
|
7321
7343
|
};
|
|
7322
7344
|
const serializeAws_restJson1ResourceDownloadOwnerSetting = (input, context) => {
|
|
7323
7345
|
return {
|
|
7324
|
-
...(input.GroupOwner
|
|
7325
|
-
...(input.GroupPermission
|
|
7326
|
-
input.GroupPermission !== null && { GroupPermission: input.GroupPermission }),
|
|
7346
|
+
...(input.GroupOwner != null && { GroupOwner: input.GroupOwner }),
|
|
7347
|
+
...(input.GroupPermission != null && { GroupPermission: input.GroupPermission }),
|
|
7327
7348
|
};
|
|
7328
7349
|
};
|
|
7329
7350
|
const serializeAws_restJson1S3MachineLearningModelResourceData = (input, context) => {
|
|
7330
7351
|
return {
|
|
7331
|
-
...(input.DestinationPath
|
|
7332
|
-
|
|
7333
|
-
...(input.OwnerSetting !== undefined &&
|
|
7334
|
-
input.OwnerSetting !== null && {
|
|
7352
|
+
...(input.DestinationPath != null && { DestinationPath: input.DestinationPath }),
|
|
7353
|
+
...(input.OwnerSetting != null && {
|
|
7335
7354
|
OwnerSetting: serializeAws_restJson1ResourceDownloadOwnerSetting(input.OwnerSetting, context),
|
|
7336
7355
|
}),
|
|
7337
|
-
...(input.S3Uri
|
|
7356
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
7338
7357
|
};
|
|
7339
7358
|
};
|
|
7340
7359
|
const serializeAws_restJson1SageMakerMachineLearningModelResourceData = (input, context) => {
|
|
7341
7360
|
return {
|
|
7342
|
-
...(input.DestinationPath
|
|
7343
|
-
|
|
7344
|
-
...(input.OwnerSetting !== undefined &&
|
|
7345
|
-
input.OwnerSetting !== null && {
|
|
7361
|
+
...(input.DestinationPath != null && { DestinationPath: input.DestinationPath }),
|
|
7362
|
+
...(input.OwnerSetting != null && {
|
|
7346
7363
|
OwnerSetting: serializeAws_restJson1ResourceDownloadOwnerSetting(input.OwnerSetting, context),
|
|
7347
7364
|
}),
|
|
7348
|
-
...(input.SageMakerJobArn
|
|
7349
|
-
input.SageMakerJobArn !== null && { SageMakerJobArn: input.SageMakerJobArn }),
|
|
7365
|
+
...(input.SageMakerJobArn != null && { SageMakerJobArn: input.SageMakerJobArn }),
|
|
7350
7366
|
};
|
|
7351
7367
|
};
|
|
7352
7368
|
const serializeAws_restJson1SecretsManagerSecretResourceData = (input, context) => {
|
|
7353
7369
|
return {
|
|
7354
|
-
...(input.ARN
|
|
7355
|
-
...(input.AdditionalStagingLabelsToDownload
|
|
7356
|
-
input.AdditionalStagingLabelsToDownload !== null && {
|
|
7370
|
+
...(input.ARN != null && { ARN: input.ARN }),
|
|
7371
|
+
...(input.AdditionalStagingLabelsToDownload != null && {
|
|
7357
7372
|
AdditionalStagingLabelsToDownload: serializeAws_restJson1__listOf__string(input.AdditionalStagingLabelsToDownload, context),
|
|
7358
7373
|
}),
|
|
7359
7374
|
};
|
|
7360
7375
|
};
|
|
7361
7376
|
const serializeAws_restJson1Subscription = (input, context) => {
|
|
7362
7377
|
return {
|
|
7363
|
-
...(input.Id
|
|
7364
|
-
...(input.Source
|
|
7365
|
-
...(input.Subject
|
|
7366
|
-
...(input.Target
|
|
7378
|
+
...(input.Id != null && { Id: input.Id }),
|
|
7379
|
+
...(input.Source != null && { Source: input.Source }),
|
|
7380
|
+
...(input.Subject != null && { Subject: input.Subject }),
|
|
7381
|
+
...(input.Target != null && { Target: input.Target }),
|
|
7367
7382
|
};
|
|
7368
7383
|
};
|
|
7369
7384
|
const serializeAws_restJson1SubscriptionDefinitionVersion = (input, context) => {
|
|
7370
7385
|
return {
|
|
7371
|
-
...(input.Subscriptions
|
|
7372
|
-
input.Subscriptions !== null && {
|
|
7386
|
+
...(input.Subscriptions != null && {
|
|
7373
7387
|
Subscriptions: serializeAws_restJson1__listOfSubscription(input.Subscriptions, context),
|
|
7374
7388
|
}),
|
|
7375
7389
|
};
|
|
@@ -7387,7 +7401,7 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
7387
7401
|
};
|
|
7388
7402
|
const serializeAws_restJson1TelemetryConfigurationUpdate = (input, context) => {
|
|
7389
7403
|
return {
|
|
7390
|
-
...(input.Telemetry
|
|
7404
|
+
...(input.Telemetry != null && { Telemetry: input.Telemetry }),
|
|
7391
7405
|
};
|
|
7392
7406
|
};
|
|
7393
7407
|
const serializeAws_restJson1UpdateTargets = (input, context) => {
|
|
@@ -7586,9 +7600,7 @@ const deserializeAws_restJson1BulkDeploymentResult = (output, context) => {
|
|
|
7586
7600
|
DeploymentId: (0, smithy_client_1.expectString)(output.DeploymentId),
|
|
7587
7601
|
DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus),
|
|
7588
7602
|
DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
|
|
7589
|
-
ErrorDetails: output.ErrorDetails
|
|
7590
|
-
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
7591
|
-
: undefined,
|
|
7603
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
7592
7604
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
7593
7605
|
GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
|
|
7594
7606
|
};
|
|
@@ -7627,16 +7639,12 @@ const deserializeAws_restJson1Connector = (output, context) => {
|
|
|
7627
7639
|
return {
|
|
7628
7640
|
ConnectorArn: (0, smithy_client_1.expectString)(output.ConnectorArn),
|
|
7629
7641
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
7630
|
-
Parameters: output.Parameters
|
|
7631
|
-
? deserializeAws_restJson1__mapOf__string(output.Parameters, context)
|
|
7632
|
-
: undefined,
|
|
7642
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1__mapOf__string(output.Parameters, context) : undefined,
|
|
7633
7643
|
};
|
|
7634
7644
|
};
|
|
7635
7645
|
const deserializeAws_restJson1ConnectorDefinitionVersion = (output, context) => {
|
|
7636
7646
|
return {
|
|
7637
|
-
Connectors: output.Connectors
|
|
7638
|
-
? deserializeAws_restJson1__listOfConnector(output.Connectors, context)
|
|
7639
|
-
: undefined,
|
|
7647
|
+
Connectors: output.Connectors != null ? deserializeAws_restJson1__listOfConnector(output.Connectors, context) : undefined,
|
|
7640
7648
|
};
|
|
7641
7649
|
};
|
|
7642
7650
|
const deserializeAws_restJson1Core = (output, context) => {
|
|
@@ -7649,9 +7657,7 @@ const deserializeAws_restJson1Core = (output, context) => {
|
|
|
7649
7657
|
};
|
|
7650
7658
|
const deserializeAws_restJson1CoreDefinitionVersion = (output, context) => {
|
|
7651
7659
|
return {
|
|
7652
|
-
Cores: output.Cores
|
|
7653
|
-
? deserializeAws_restJson1__listOfCore(output.Cores, context)
|
|
7654
|
-
: undefined,
|
|
7660
|
+
Cores: output.Cores != null ? deserializeAws_restJson1__listOfCore(output.Cores, context) : undefined,
|
|
7655
7661
|
};
|
|
7656
7662
|
};
|
|
7657
7663
|
const deserializeAws_restJson1DefinitionInformation = (output, context) => {
|
|
@@ -7663,9 +7669,7 @@ const deserializeAws_restJson1DefinitionInformation = (output, context) => {
|
|
|
7663
7669
|
LatestVersion: (0, smithy_client_1.expectString)(output.LatestVersion),
|
|
7664
7670
|
LatestVersionArn: (0, smithy_client_1.expectString)(output.LatestVersionArn),
|
|
7665
7671
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7666
|
-
Tags: output.tags
|
|
7667
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
7668
|
-
: undefined,
|
|
7672
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
7669
7673
|
};
|
|
7670
7674
|
};
|
|
7671
7675
|
const deserializeAws_restJson1Deployment = (output, context) => {
|
|
@@ -7698,9 +7702,7 @@ const deserializeAws_restJson1Device = (output, context) => {
|
|
|
7698
7702
|
};
|
|
7699
7703
|
const deserializeAws_restJson1DeviceDefinitionVersion = (output, context) => {
|
|
7700
7704
|
return {
|
|
7701
|
-
Devices: output.Devices
|
|
7702
|
-
? deserializeAws_restJson1__listOfDevice(output.Devices, context)
|
|
7703
|
-
: undefined,
|
|
7705
|
+
Devices: output.Devices != null ? deserializeAws_restJson1__listOfDevice(output.Devices, context) : undefined,
|
|
7704
7706
|
};
|
|
7705
7707
|
};
|
|
7706
7708
|
const deserializeAws_restJson1ErrorDetail = (output, context) => {
|
|
@@ -7723,7 +7725,7 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
7723
7725
|
const deserializeAws_restJson1Function = (output, context) => {
|
|
7724
7726
|
return {
|
|
7725
7727
|
FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
|
|
7726
|
-
FunctionConfiguration: output.FunctionConfiguration
|
|
7728
|
+
FunctionConfiguration: output.FunctionConfiguration != null
|
|
7727
7729
|
? deserializeAws_restJson1FunctionConfiguration(output.FunctionConfiguration, context)
|
|
7728
7730
|
: undefined,
|
|
7729
7731
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -7732,7 +7734,7 @@ const deserializeAws_restJson1Function = (output, context) => {
|
|
|
7732
7734
|
const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
7733
7735
|
return {
|
|
7734
7736
|
EncodingType: (0, smithy_client_1.expectString)(output.EncodingType),
|
|
7735
|
-
Environment: output.Environment
|
|
7737
|
+
Environment: output.Environment != null
|
|
7736
7738
|
? deserializeAws_restJson1FunctionConfigurationEnvironment(output.Environment, context)
|
|
7737
7739
|
: undefined,
|
|
7738
7740
|
ExecArgs: (0, smithy_client_1.expectString)(output.ExecArgs),
|
|
@@ -7745,20 +7747,16 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
7745
7747
|
const deserializeAws_restJson1FunctionConfigurationEnvironment = (output, context) => {
|
|
7746
7748
|
return {
|
|
7747
7749
|
AccessSysfs: (0, smithy_client_1.expectBoolean)(output.AccessSysfs),
|
|
7748
|
-
Execution: output.Execution
|
|
7749
|
-
|
|
7750
|
-
: undefined,
|
|
7751
|
-
ResourceAccessPolicies: output.ResourceAccessPolicies !== undefined && output.ResourceAccessPolicies !== null
|
|
7750
|
+
Execution: output.Execution != null ? deserializeAws_restJson1FunctionExecutionConfig(output.Execution, context) : undefined,
|
|
7751
|
+
ResourceAccessPolicies: output.ResourceAccessPolicies != null
|
|
7752
7752
|
? deserializeAws_restJson1__listOfResourceAccessPolicy(output.ResourceAccessPolicies, context)
|
|
7753
7753
|
: undefined,
|
|
7754
|
-
Variables: output.Variables
|
|
7755
|
-
? deserializeAws_restJson1__mapOf__string(output.Variables, context)
|
|
7756
|
-
: undefined,
|
|
7754
|
+
Variables: output.Variables != null ? deserializeAws_restJson1__mapOf__string(output.Variables, context) : undefined,
|
|
7757
7755
|
};
|
|
7758
7756
|
};
|
|
7759
7757
|
const deserializeAws_restJson1FunctionDefaultConfig = (output, context) => {
|
|
7760
7758
|
return {
|
|
7761
|
-
Execution: output.Execution
|
|
7759
|
+
Execution: output.Execution != null
|
|
7762
7760
|
? deserializeAws_restJson1FunctionDefaultExecutionConfig(output.Execution, context)
|
|
7763
7761
|
: undefined,
|
|
7764
7762
|
};
|
|
@@ -7766,27 +7764,21 @@ const deserializeAws_restJson1FunctionDefaultConfig = (output, context) => {
|
|
|
7766
7764
|
const deserializeAws_restJson1FunctionDefaultExecutionConfig = (output, context) => {
|
|
7767
7765
|
return {
|
|
7768
7766
|
IsolationMode: (0, smithy_client_1.expectString)(output.IsolationMode),
|
|
7769
|
-
RunAs: output.RunAs
|
|
7770
|
-
? deserializeAws_restJson1FunctionRunAsConfig(output.RunAs, context)
|
|
7771
|
-
: undefined,
|
|
7767
|
+
RunAs: output.RunAs != null ? deserializeAws_restJson1FunctionRunAsConfig(output.RunAs, context) : undefined,
|
|
7772
7768
|
};
|
|
7773
7769
|
};
|
|
7774
7770
|
const deserializeAws_restJson1FunctionDefinitionVersion = (output, context) => {
|
|
7775
7771
|
return {
|
|
7776
|
-
DefaultConfig: output.DefaultConfig
|
|
7772
|
+
DefaultConfig: output.DefaultConfig != null
|
|
7777
7773
|
? deserializeAws_restJson1FunctionDefaultConfig(output.DefaultConfig, context)
|
|
7778
7774
|
: undefined,
|
|
7779
|
-
Functions: output.Functions
|
|
7780
|
-
? deserializeAws_restJson1__listOfFunction(output.Functions, context)
|
|
7781
|
-
: undefined,
|
|
7775
|
+
Functions: output.Functions != null ? deserializeAws_restJson1__listOfFunction(output.Functions, context) : undefined,
|
|
7782
7776
|
};
|
|
7783
7777
|
};
|
|
7784
7778
|
const deserializeAws_restJson1FunctionExecutionConfig = (output, context) => {
|
|
7785
7779
|
return {
|
|
7786
7780
|
IsolationMode: (0, smithy_client_1.expectString)(output.IsolationMode),
|
|
7787
|
-
RunAs: output.RunAs
|
|
7788
|
-
? deserializeAws_restJson1FunctionRunAsConfig(output.RunAs, context)
|
|
7789
|
-
: undefined,
|
|
7781
|
+
RunAs: output.RunAs != null ? deserializeAws_restJson1FunctionRunAsConfig(output.RunAs, context) : undefined,
|
|
7790
7782
|
};
|
|
7791
7783
|
};
|
|
7792
7784
|
const deserializeAws_restJson1FunctionRunAsConfig = (output, context) => {
|
|
@@ -7831,7 +7823,7 @@ const deserializeAws_restJson1GroupVersion = (output, context) => {
|
|
|
7831
7823
|
};
|
|
7832
7824
|
const deserializeAws_restJson1LocalDeviceResourceData = (output, context) => {
|
|
7833
7825
|
return {
|
|
7834
|
-
GroupOwnerSetting: output.GroupOwnerSetting
|
|
7826
|
+
GroupOwnerSetting: output.GroupOwnerSetting != null
|
|
7835
7827
|
? deserializeAws_restJson1GroupOwnerSetting(output.GroupOwnerSetting, context)
|
|
7836
7828
|
: undefined,
|
|
7837
7829
|
SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
|
|
@@ -7840,7 +7832,7 @@ const deserializeAws_restJson1LocalDeviceResourceData = (output, context) => {
|
|
|
7840
7832
|
const deserializeAws_restJson1LocalVolumeResourceData = (output, context) => {
|
|
7841
7833
|
return {
|
|
7842
7834
|
DestinationPath: (0, smithy_client_1.expectString)(output.DestinationPath),
|
|
7843
|
-
GroupOwnerSetting: output.GroupOwnerSetting
|
|
7835
|
+
GroupOwnerSetting: output.GroupOwnerSetting != null
|
|
7844
7836
|
? deserializeAws_restJson1GroupOwnerSetting(output.GroupOwnerSetting, context)
|
|
7845
7837
|
: undefined,
|
|
7846
7838
|
SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
|
|
@@ -7857,16 +7849,14 @@ const deserializeAws_restJson1Logger = (output, context) => {
|
|
|
7857
7849
|
};
|
|
7858
7850
|
const deserializeAws_restJson1LoggerDefinitionVersion = (output, context) => {
|
|
7859
7851
|
return {
|
|
7860
|
-
Loggers: output.Loggers
|
|
7861
|
-
? deserializeAws_restJson1__listOfLogger(output.Loggers, context)
|
|
7862
|
-
: undefined,
|
|
7852
|
+
Loggers: output.Loggers != null ? deserializeAws_restJson1__listOfLogger(output.Loggers, context) : undefined,
|
|
7863
7853
|
};
|
|
7864
7854
|
};
|
|
7865
7855
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
7866
7856
|
return {
|
|
7867
7857
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
7868
7858
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7869
|
-
ResourceDataContainer: output.ResourceDataContainer
|
|
7859
|
+
ResourceDataContainer: output.ResourceDataContainer != null
|
|
7870
7860
|
? deserializeAws_restJson1ResourceDataContainer(output.ResourceDataContainer, context)
|
|
7871
7861
|
: undefined,
|
|
7872
7862
|
};
|
|
@@ -7879,29 +7869,26 @@ const deserializeAws_restJson1ResourceAccessPolicy = (output, context) => {
|
|
|
7879
7869
|
};
|
|
7880
7870
|
const deserializeAws_restJson1ResourceDataContainer = (output, context) => {
|
|
7881
7871
|
return {
|
|
7882
|
-
LocalDeviceResourceData: output.LocalDeviceResourceData
|
|
7872
|
+
LocalDeviceResourceData: output.LocalDeviceResourceData != null
|
|
7883
7873
|
? deserializeAws_restJson1LocalDeviceResourceData(output.LocalDeviceResourceData, context)
|
|
7884
7874
|
: undefined,
|
|
7885
|
-
LocalVolumeResourceData: output.LocalVolumeResourceData
|
|
7875
|
+
LocalVolumeResourceData: output.LocalVolumeResourceData != null
|
|
7886
7876
|
? deserializeAws_restJson1LocalVolumeResourceData(output.LocalVolumeResourceData, context)
|
|
7887
7877
|
: undefined,
|
|
7888
|
-
S3MachineLearningModelResourceData: output.S3MachineLearningModelResourceData
|
|
7878
|
+
S3MachineLearningModelResourceData: output.S3MachineLearningModelResourceData != null
|
|
7889
7879
|
? deserializeAws_restJson1S3MachineLearningModelResourceData(output.S3MachineLearningModelResourceData, context)
|
|
7890
7880
|
: undefined,
|
|
7891
|
-
SageMakerMachineLearningModelResourceData: output.SageMakerMachineLearningModelResourceData
|
|
7892
|
-
output.SageMakerMachineLearningModelResourceData !== null
|
|
7881
|
+
SageMakerMachineLearningModelResourceData: output.SageMakerMachineLearningModelResourceData != null
|
|
7893
7882
|
? deserializeAws_restJson1SageMakerMachineLearningModelResourceData(output.SageMakerMachineLearningModelResourceData, context)
|
|
7894
7883
|
: undefined,
|
|
7895
|
-
SecretsManagerSecretResourceData: output.SecretsManagerSecretResourceData
|
|
7884
|
+
SecretsManagerSecretResourceData: output.SecretsManagerSecretResourceData != null
|
|
7896
7885
|
? deserializeAws_restJson1SecretsManagerSecretResourceData(output.SecretsManagerSecretResourceData, context)
|
|
7897
7886
|
: undefined,
|
|
7898
7887
|
};
|
|
7899
7888
|
};
|
|
7900
7889
|
const deserializeAws_restJson1ResourceDefinitionVersion = (output, context) => {
|
|
7901
7890
|
return {
|
|
7902
|
-
Resources: output.Resources
|
|
7903
|
-
? deserializeAws_restJson1__listOfResource(output.Resources, context)
|
|
7904
|
-
: undefined,
|
|
7891
|
+
Resources: output.Resources != null ? deserializeAws_restJson1__listOfResource(output.Resources, context) : undefined,
|
|
7905
7892
|
};
|
|
7906
7893
|
};
|
|
7907
7894
|
const deserializeAws_restJson1ResourceDownloadOwnerSetting = (output, context) => {
|
|
@@ -7912,7 +7899,7 @@ const deserializeAws_restJson1ResourceDownloadOwnerSetting = (output, context) =
|
|
|
7912
7899
|
};
|
|
7913
7900
|
const deserializeAws_restJson1RuntimeConfiguration = (output, context) => {
|
|
7914
7901
|
return {
|
|
7915
|
-
TelemetryConfiguration: output.TelemetryConfiguration
|
|
7902
|
+
TelemetryConfiguration: output.TelemetryConfiguration != null
|
|
7916
7903
|
? deserializeAws_restJson1TelemetryConfiguration(output.TelemetryConfiguration, context)
|
|
7917
7904
|
: undefined,
|
|
7918
7905
|
};
|
|
@@ -7920,7 +7907,7 @@ const deserializeAws_restJson1RuntimeConfiguration = (output, context) => {
|
|
|
7920
7907
|
const deserializeAws_restJson1S3MachineLearningModelResourceData = (output, context) => {
|
|
7921
7908
|
return {
|
|
7922
7909
|
DestinationPath: (0, smithy_client_1.expectString)(output.DestinationPath),
|
|
7923
|
-
OwnerSetting: output.OwnerSetting
|
|
7910
|
+
OwnerSetting: output.OwnerSetting != null
|
|
7924
7911
|
? deserializeAws_restJson1ResourceDownloadOwnerSetting(output.OwnerSetting, context)
|
|
7925
7912
|
: undefined,
|
|
7926
7913
|
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
@@ -7929,7 +7916,7 @@ const deserializeAws_restJson1S3MachineLearningModelResourceData = (output, cont
|
|
|
7929
7916
|
const deserializeAws_restJson1SageMakerMachineLearningModelResourceData = (output, context) => {
|
|
7930
7917
|
return {
|
|
7931
7918
|
DestinationPath: (0, smithy_client_1.expectString)(output.DestinationPath),
|
|
7932
|
-
OwnerSetting: output.OwnerSetting
|
|
7919
|
+
OwnerSetting: output.OwnerSetting != null
|
|
7933
7920
|
? deserializeAws_restJson1ResourceDownloadOwnerSetting(output.OwnerSetting, context)
|
|
7934
7921
|
: undefined,
|
|
7935
7922
|
SageMakerJobArn: (0, smithy_client_1.expectString)(output.SageMakerJobArn),
|
|
@@ -7938,7 +7925,7 @@ const deserializeAws_restJson1SageMakerMachineLearningModelResourceData = (outpu
|
|
|
7938
7925
|
const deserializeAws_restJson1SecretsManagerSecretResourceData = (output, context) => {
|
|
7939
7926
|
return {
|
|
7940
7927
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
7941
|
-
AdditionalStagingLabelsToDownload: output.AdditionalStagingLabelsToDownload
|
|
7928
|
+
AdditionalStagingLabelsToDownload: output.AdditionalStagingLabelsToDownload != null
|
|
7942
7929
|
? deserializeAws_restJson1__listOf__string(output.AdditionalStagingLabelsToDownload, context)
|
|
7943
7930
|
: undefined,
|
|
7944
7931
|
};
|
|
@@ -7953,7 +7940,7 @@ const deserializeAws_restJson1Subscription = (output, context) => {
|
|
|
7953
7940
|
};
|
|
7954
7941
|
const deserializeAws_restJson1SubscriptionDefinitionVersion = (output, context) => {
|
|
7955
7942
|
return {
|
|
7956
|
-
Subscriptions: output.Subscriptions
|
|
7943
|
+
Subscriptions: output.Subscriptions != null
|
|
7957
7944
|
? deserializeAws_restJson1__listOfSubscription(output.Subscriptions, context)
|
|
7958
7945
|
: undefined,
|
|
7959
7946
|
};
|
|
@@ -8032,5 +8019,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8032
8019
|
if (data["__type"] !== undefined) {
|
|
8033
8020
|
return sanitizeErrorCode(data["__type"]);
|
|
8034
8021
|
}
|
|
8035
|
-
return "";
|
|
8036
8022
|
};
|