@aws-sdk/client-imagebuilder 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CancelImageCreationCommand.js +2 -2
- package/dist-cjs/commands/CreateComponentCommand.js +2 -2
- package/dist-cjs/commands/CreateContainerRecipeCommand.js +2 -2
- package/dist-cjs/commands/CreateDistributionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateImageCommand.js +2 -2
- package/dist-cjs/commands/CreateImagePipelineCommand.js +2 -2
- package/dist-cjs/commands/CreateImageRecipeCommand.js +2 -2
- package/dist-cjs/commands/CreateInfrastructureConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteComponentCommand.js +2 -2
- package/dist-cjs/commands/DeleteContainerRecipeCommand.js +2 -2
- package/dist-cjs/commands/DeleteDistributionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteImageCommand.js +2 -2
- package/dist-cjs/commands/DeleteImagePipelineCommand.js +2 -2
- package/dist-cjs/commands/DeleteImageRecipeCommand.js +2 -2
- package/dist-cjs/commands/DeleteInfrastructureConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetComponentCommand.js +2 -2
- package/dist-cjs/commands/GetComponentPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetContainerRecipeCommand.js +2 -2
- package/dist-cjs/commands/GetContainerRecipePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetDistributionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetImageCommand.js +2 -2
- package/dist-cjs/commands/GetImagePipelineCommand.js +2 -2
- package/dist-cjs/commands/GetImagePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetImageRecipeCommand.js +2 -2
- package/dist-cjs/commands/GetImageRecipePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetInfrastructureConfigurationCommand.js +2 -2
- package/dist-cjs/commands/ImportComponentCommand.js +2 -2
- package/dist-cjs/commands/ImportVmImageCommand.js +2 -2
- package/dist-cjs/commands/ListComponentBuildVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListContainerRecipesCommand.js +2 -2
- package/dist-cjs/commands/ListDistributionConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListImageBuildVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListImagePackagesCommand.js +2 -2
- package/dist-cjs/commands/ListImagePipelineImagesCommand.js +2 -2
- package/dist-cjs/commands/ListImagePipelinesCommand.js +2 -2
- package/dist-cjs/commands/ListImageRecipesCommand.js +2 -2
- package/dist-cjs/commands/ListImagesCommand.js +2 -2
- package/dist-cjs/commands/ListInfrastructureConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutComponentPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutContainerRecipePolicyCommand.js +2 -2
- package/dist-cjs/commands/PutImagePolicyCommand.js +2 -2
- package/dist-cjs/commands/PutImageRecipePolicyCommand.js +2 -2
- package/dist-cjs/commands/StartImagePipelineExecutionCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDistributionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateImagePipelineCommand.js +2 -2
- package/dist-cjs/commands/UpdateInfrastructureConfigurationCommand.js +2 -2
- package/dist-cjs/models/models_0.js +584 -874
- package/dist-cjs/protocols/Aws_restJson1.js +615 -971
- package/dist-es/commands/CancelImageCreationCommand.js +3 -3
- package/dist-es/commands/CreateComponentCommand.js +3 -3
- package/dist-es/commands/CreateContainerRecipeCommand.js +3 -3
- package/dist-es/commands/CreateDistributionConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateImageCommand.js +3 -3
- package/dist-es/commands/CreateImagePipelineCommand.js +3 -3
- package/dist-es/commands/CreateImageRecipeCommand.js +3 -3
- package/dist-es/commands/CreateInfrastructureConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteComponentCommand.js +3 -3
- package/dist-es/commands/DeleteContainerRecipeCommand.js +3 -3
- package/dist-es/commands/DeleteDistributionConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteImageCommand.js +3 -3
- package/dist-es/commands/DeleteImagePipelineCommand.js +3 -3
- package/dist-es/commands/DeleteImageRecipeCommand.js +3 -3
- package/dist-es/commands/DeleteInfrastructureConfigurationCommand.js +3 -3
- package/dist-es/commands/GetComponentCommand.js +3 -3
- package/dist-es/commands/GetComponentPolicyCommand.js +3 -3
- package/dist-es/commands/GetContainerRecipeCommand.js +3 -3
- package/dist-es/commands/GetContainerRecipePolicyCommand.js +3 -3
- package/dist-es/commands/GetDistributionConfigurationCommand.js +3 -3
- package/dist-es/commands/GetImageCommand.js +3 -3
- package/dist-es/commands/GetImagePipelineCommand.js +3 -3
- package/dist-es/commands/GetImagePolicyCommand.js +3 -3
- package/dist-es/commands/GetImageRecipeCommand.js +3 -3
- package/dist-es/commands/GetImageRecipePolicyCommand.js +3 -3
- package/dist-es/commands/GetInfrastructureConfigurationCommand.js +3 -3
- package/dist-es/commands/ImportComponentCommand.js +3 -3
- package/dist-es/commands/ImportVmImageCommand.js +3 -3
- package/dist-es/commands/ListComponentBuildVersionsCommand.js +3 -3
- package/dist-es/commands/ListComponentsCommand.js +3 -3
- package/dist-es/commands/ListContainerRecipesCommand.js +3 -3
- package/dist-es/commands/ListDistributionConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListImageBuildVersionsCommand.js +3 -3
- package/dist-es/commands/ListImagePackagesCommand.js +3 -3
- package/dist-es/commands/ListImagePipelineImagesCommand.js +3 -3
- package/dist-es/commands/ListImagePipelinesCommand.js +3 -3
- package/dist-es/commands/ListImageRecipesCommand.js +3 -3
- package/dist-es/commands/ListImagesCommand.js +3 -3
- package/dist-es/commands/ListInfrastructureConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutComponentPolicyCommand.js +3 -3
- package/dist-es/commands/PutContainerRecipePolicyCommand.js +3 -3
- package/dist-es/commands/PutImagePolicyCommand.js +3 -3
- package/dist-es/commands/PutImageRecipePolicyCommand.js +3 -3
- package/dist-es/commands/StartImagePipelineExecutionCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDistributionConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateImagePipelineCommand.js +3 -3
- package/dist-es/commands/UpdateInfrastructureConfigurationCommand.js +3 -3
- package/dist-es/models/models_0.js +145 -580
- package/dist-es/protocols/Aws_restJson1.js +769 -937
- package/dist-types/models/models_0.d.ts +580 -870
- package/dist-types/ts3.4/models/models_0.d.ts +290 -580
- package/package.json +6 -6
|
@@ -297,9 +297,9 @@ const serializeAws_restJson1DeleteComponentCommand = async (input, context) => {
|
|
|
297
297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
298
298
|
const headers = {};
|
|
299
299
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteComponent";
|
|
300
|
-
const query = {
|
|
301
|
-
|
|
302
|
-
};
|
|
300
|
+
const query = map({
|
|
301
|
+
componentBuildVersionArn: [, input.componentBuildVersionArn],
|
|
302
|
+
});
|
|
303
303
|
let body;
|
|
304
304
|
return new protocol_http_1.HttpRequest({
|
|
305
305
|
protocol,
|
|
@@ -317,9 +317,9 @@ const serializeAws_restJson1DeleteContainerRecipeCommand = async (input, context
|
|
|
317
317
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
318
318
|
const headers = {};
|
|
319
319
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteContainerRecipe";
|
|
320
|
-
const query = {
|
|
321
|
-
|
|
322
|
-
};
|
|
320
|
+
const query = map({
|
|
321
|
+
containerRecipeArn: [, input.containerRecipeArn],
|
|
322
|
+
});
|
|
323
323
|
let body;
|
|
324
324
|
return new protocol_http_1.HttpRequest({
|
|
325
325
|
protocol,
|
|
@@ -337,11 +337,9 @@ const serializeAws_restJson1DeleteDistributionConfigurationCommand = async (inpu
|
|
|
337
337
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
338
338
|
const headers = {};
|
|
339
339
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDistributionConfiguration";
|
|
340
|
-
const query = {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}),
|
|
344
|
-
};
|
|
340
|
+
const query = map({
|
|
341
|
+
distributionConfigurationArn: [, input.distributionConfigurationArn],
|
|
342
|
+
});
|
|
345
343
|
let body;
|
|
346
344
|
return new protocol_http_1.HttpRequest({
|
|
347
345
|
protocol,
|
|
@@ -359,9 +357,9 @@ const serializeAws_restJson1DeleteImageCommand = async (input, context) => {
|
|
|
359
357
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
360
358
|
const headers = {};
|
|
361
359
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImage";
|
|
362
|
-
const query = {
|
|
363
|
-
|
|
364
|
-
};
|
|
360
|
+
const query = map({
|
|
361
|
+
imageBuildVersionArn: [, input.imageBuildVersionArn],
|
|
362
|
+
});
|
|
365
363
|
let body;
|
|
366
364
|
return new protocol_http_1.HttpRequest({
|
|
367
365
|
protocol,
|
|
@@ -379,9 +377,9 @@ const serializeAws_restJson1DeleteImagePipelineCommand = async (input, context)
|
|
|
379
377
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
380
378
|
const headers = {};
|
|
381
379
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImagePipeline";
|
|
382
|
-
const query = {
|
|
383
|
-
|
|
384
|
-
};
|
|
380
|
+
const query = map({
|
|
381
|
+
imagePipelineArn: [, input.imagePipelineArn],
|
|
382
|
+
});
|
|
385
383
|
let body;
|
|
386
384
|
return new protocol_http_1.HttpRequest({
|
|
387
385
|
protocol,
|
|
@@ -399,9 +397,9 @@ const serializeAws_restJson1DeleteImageRecipeCommand = async (input, context) =>
|
|
|
399
397
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
400
398
|
const headers = {};
|
|
401
399
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImageRecipe";
|
|
402
|
-
const query = {
|
|
403
|
-
|
|
404
|
-
};
|
|
400
|
+
const query = map({
|
|
401
|
+
imageRecipeArn: [, input.imageRecipeArn],
|
|
402
|
+
});
|
|
405
403
|
let body;
|
|
406
404
|
return new protocol_http_1.HttpRequest({
|
|
407
405
|
protocol,
|
|
@@ -419,11 +417,9 @@ const serializeAws_restJson1DeleteInfrastructureConfigurationCommand = async (in
|
|
|
419
417
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
420
418
|
const headers = {};
|
|
421
419
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteInfrastructureConfiguration";
|
|
422
|
-
const query = {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}),
|
|
426
|
-
};
|
|
420
|
+
const query = map({
|
|
421
|
+
infrastructureConfigurationArn: [, input.infrastructureConfigurationArn],
|
|
422
|
+
});
|
|
427
423
|
let body;
|
|
428
424
|
return new protocol_http_1.HttpRequest({
|
|
429
425
|
protocol,
|
|
@@ -441,9 +437,9 @@ const serializeAws_restJson1GetComponentCommand = async (input, context) => {
|
|
|
441
437
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
438
|
const headers = {};
|
|
443
439
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetComponent";
|
|
444
|
-
const query = {
|
|
445
|
-
|
|
446
|
-
};
|
|
440
|
+
const query = map({
|
|
441
|
+
componentBuildVersionArn: [, input.componentBuildVersionArn],
|
|
442
|
+
});
|
|
447
443
|
let body;
|
|
448
444
|
return new protocol_http_1.HttpRequest({
|
|
449
445
|
protocol,
|
|
@@ -461,9 +457,9 @@ const serializeAws_restJson1GetComponentPolicyCommand = async (input, context) =
|
|
|
461
457
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
462
458
|
const headers = {};
|
|
463
459
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetComponentPolicy";
|
|
464
|
-
const query = {
|
|
465
|
-
|
|
466
|
-
};
|
|
460
|
+
const query = map({
|
|
461
|
+
componentArn: [, input.componentArn],
|
|
462
|
+
});
|
|
467
463
|
let body;
|
|
468
464
|
return new protocol_http_1.HttpRequest({
|
|
469
465
|
protocol,
|
|
@@ -481,9 +477,9 @@ const serializeAws_restJson1GetContainerRecipeCommand = async (input, context) =
|
|
|
481
477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
482
478
|
const headers = {};
|
|
483
479
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetContainerRecipe";
|
|
484
|
-
const query = {
|
|
485
|
-
|
|
486
|
-
};
|
|
480
|
+
const query = map({
|
|
481
|
+
containerRecipeArn: [, input.containerRecipeArn],
|
|
482
|
+
});
|
|
487
483
|
let body;
|
|
488
484
|
return new protocol_http_1.HttpRequest({
|
|
489
485
|
protocol,
|
|
@@ -501,9 +497,9 @@ const serializeAws_restJson1GetContainerRecipePolicyCommand = async (input, cont
|
|
|
501
497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
502
498
|
const headers = {};
|
|
503
499
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetContainerRecipePolicy";
|
|
504
|
-
const query = {
|
|
505
|
-
|
|
506
|
-
};
|
|
500
|
+
const query = map({
|
|
501
|
+
containerRecipeArn: [, input.containerRecipeArn],
|
|
502
|
+
});
|
|
507
503
|
let body;
|
|
508
504
|
return new protocol_http_1.HttpRequest({
|
|
509
505
|
protocol,
|
|
@@ -521,11 +517,9 @@ const serializeAws_restJson1GetDistributionConfigurationCommand = async (input,
|
|
|
521
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
518
|
const headers = {};
|
|
523
519
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetDistributionConfiguration";
|
|
524
|
-
const query = {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}),
|
|
528
|
-
};
|
|
520
|
+
const query = map({
|
|
521
|
+
distributionConfigurationArn: [, input.distributionConfigurationArn],
|
|
522
|
+
});
|
|
529
523
|
let body;
|
|
530
524
|
return new protocol_http_1.HttpRequest({
|
|
531
525
|
protocol,
|
|
@@ -543,9 +537,9 @@ const serializeAws_restJson1GetImageCommand = async (input, context) => {
|
|
|
543
537
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
544
538
|
const headers = {};
|
|
545
539
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetImage";
|
|
546
|
-
const query = {
|
|
547
|
-
|
|
548
|
-
};
|
|
540
|
+
const query = map({
|
|
541
|
+
imageBuildVersionArn: [, input.imageBuildVersionArn],
|
|
542
|
+
});
|
|
549
543
|
let body;
|
|
550
544
|
return new protocol_http_1.HttpRequest({
|
|
551
545
|
protocol,
|
|
@@ -563,9 +557,9 @@ const serializeAws_restJson1GetImagePipelineCommand = async (input, context) =>
|
|
|
563
557
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
564
558
|
const headers = {};
|
|
565
559
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetImagePipeline";
|
|
566
|
-
const query = {
|
|
567
|
-
|
|
568
|
-
};
|
|
560
|
+
const query = map({
|
|
561
|
+
imagePipelineArn: [, input.imagePipelineArn],
|
|
562
|
+
});
|
|
569
563
|
let body;
|
|
570
564
|
return new protocol_http_1.HttpRequest({
|
|
571
565
|
protocol,
|
|
@@ -583,9 +577,9 @@ const serializeAws_restJson1GetImagePolicyCommand = async (input, context) => {
|
|
|
583
577
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
584
578
|
const headers = {};
|
|
585
579
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetImagePolicy";
|
|
586
|
-
const query = {
|
|
587
|
-
|
|
588
|
-
};
|
|
580
|
+
const query = map({
|
|
581
|
+
imageArn: [, input.imageArn],
|
|
582
|
+
});
|
|
589
583
|
let body;
|
|
590
584
|
return new protocol_http_1.HttpRequest({
|
|
591
585
|
protocol,
|
|
@@ -603,9 +597,9 @@ const serializeAws_restJson1GetImageRecipeCommand = async (input, context) => {
|
|
|
603
597
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
604
598
|
const headers = {};
|
|
605
599
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetImageRecipe";
|
|
606
|
-
const query = {
|
|
607
|
-
|
|
608
|
-
};
|
|
600
|
+
const query = map({
|
|
601
|
+
imageRecipeArn: [, input.imageRecipeArn],
|
|
602
|
+
});
|
|
609
603
|
let body;
|
|
610
604
|
return new protocol_http_1.HttpRequest({
|
|
611
605
|
protocol,
|
|
@@ -623,9 +617,9 @@ const serializeAws_restJson1GetImageRecipePolicyCommand = async (input, context)
|
|
|
623
617
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
624
618
|
const headers = {};
|
|
625
619
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetImageRecipePolicy";
|
|
626
|
-
const query = {
|
|
627
|
-
|
|
628
|
-
};
|
|
620
|
+
const query = map({
|
|
621
|
+
imageRecipeArn: [, input.imageRecipeArn],
|
|
622
|
+
});
|
|
629
623
|
let body;
|
|
630
624
|
return new protocol_http_1.HttpRequest({
|
|
631
625
|
protocol,
|
|
@@ -643,11 +637,9 @@ const serializeAws_restJson1GetInfrastructureConfigurationCommand = async (input
|
|
|
643
637
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
644
638
|
const headers = {};
|
|
645
639
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetInfrastructureConfiguration";
|
|
646
|
-
const query = {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}),
|
|
650
|
-
};
|
|
640
|
+
const query = map({
|
|
641
|
+
infrastructureConfigurationArn: [, input.infrastructureConfigurationArn],
|
|
642
|
+
});
|
|
651
643
|
let body;
|
|
652
644
|
return new protocol_http_1.HttpRequest({
|
|
653
645
|
protocol,
|
|
@@ -989,16 +981,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
989
981
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
990
982
|
const headers = {};
|
|
991
983
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
992
|
-
|
|
993
|
-
const labelValue = input.resourceArn;
|
|
994
|
-
if (labelValue.length <= 0) {
|
|
995
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
996
|
-
}
|
|
997
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
998
|
-
}
|
|
999
|
-
else {
|
|
1000
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1001
|
-
}
|
|
984
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1002
985
|
let body;
|
|
1003
986
|
return new protocol_http_1.HttpRequest({
|
|
1004
987
|
protocol,
|
|
@@ -1128,16 +1111,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1128
1111
|
"content-type": "application/json",
|
|
1129
1112
|
};
|
|
1130
1113
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1131
|
-
|
|
1132
|
-
const labelValue = input.resourceArn;
|
|
1133
|
-
if (labelValue.length <= 0) {
|
|
1134
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1135
|
-
}
|
|
1136
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1137
|
-
}
|
|
1138
|
-
else {
|
|
1139
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1140
|
-
}
|
|
1114
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1141
1115
|
let body;
|
|
1142
1116
|
body = JSON.stringify({
|
|
1143
1117
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -1157,19 +1131,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1157
1131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1158
1132
|
const headers = {};
|
|
1159
1133
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
}
|
|
1165
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1166
|
-
}
|
|
1167
|
-
else {
|
|
1168
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1169
|
-
}
|
|
1170
|
-
const query = {
|
|
1171
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
1172
|
-
};
|
|
1134
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1135
|
+
const query = map({
|
|
1136
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
1137
|
+
});
|
|
1173
1138
|
let body;
|
|
1174
1139
|
return new protocol_http_1.HttpRequest({
|
|
1175
1140
|
protocol,
|
|
@@ -1300,23 +1265,20 @@ const deserializeAws_restJson1CancelImageCreationCommand = async (output, contex
|
|
|
1300
1265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
1266
|
return deserializeAws_restJson1CancelImageCreationCommandError(output, context);
|
|
1302
1267
|
}
|
|
1303
|
-
const contents = {
|
|
1268
|
+
const contents = map({
|
|
1304
1269
|
$metadata: deserializeMetadata(output),
|
|
1305
|
-
|
|
1306
|
-
imageBuildVersionArn: undefined,
|
|
1307
|
-
requestId: undefined,
|
|
1308
|
-
};
|
|
1270
|
+
});
|
|
1309
1271
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1310
|
-
if (data.clientToken
|
|
1272
|
+
if (data.clientToken != null) {
|
|
1311
1273
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1312
1274
|
}
|
|
1313
|
-
if (data.imageBuildVersionArn
|
|
1275
|
+
if (data.imageBuildVersionArn != null) {
|
|
1314
1276
|
contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
|
|
1315
1277
|
}
|
|
1316
|
-
if (data.requestId
|
|
1278
|
+
if (data.requestId != null) {
|
|
1317
1279
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1318
1280
|
}
|
|
1319
|
-
return
|
|
1281
|
+
return contents;
|
|
1320
1282
|
};
|
|
1321
1283
|
exports.deserializeAws_restJson1CancelImageCreationCommand = deserializeAws_restJson1CancelImageCreationCommand;
|
|
1322
1284
|
const deserializeAws_restJson1CancelImageCreationCommandError = async (output, context) => {
|
|
@@ -1324,7 +1286,6 @@ const deserializeAws_restJson1CancelImageCreationCommandError = async (output, c
|
|
|
1324
1286
|
...output,
|
|
1325
1287
|
body: await parseBody(output.body, context),
|
|
1326
1288
|
};
|
|
1327
|
-
let response;
|
|
1328
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
1290
|
switch (errorCode) {
|
|
1330
1291
|
case "CallRateLimitExceededException":
|
|
@@ -1353,37 +1314,32 @@ const deserializeAws_restJson1CancelImageCreationCommandError = async (output, c
|
|
|
1353
1314
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1354
1315
|
default:
|
|
1355
1316
|
const parsedBody = parsedOutput.body;
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
$metadata,
|
|
1317
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1321
|
+
errorCode,
|
|
1362
1322
|
});
|
|
1363
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1364
1323
|
}
|
|
1365
1324
|
};
|
|
1366
1325
|
const deserializeAws_restJson1CreateComponentCommand = async (output, context) => {
|
|
1367
1326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
1327
|
return deserializeAws_restJson1CreateComponentCommandError(output, context);
|
|
1369
1328
|
}
|
|
1370
|
-
const contents = {
|
|
1329
|
+
const contents = map({
|
|
1371
1330
|
$metadata: deserializeMetadata(output),
|
|
1372
|
-
|
|
1373
|
-
componentBuildVersionArn: undefined,
|
|
1374
|
-
requestId: undefined,
|
|
1375
|
-
};
|
|
1331
|
+
});
|
|
1376
1332
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1377
|
-
if (data.clientToken
|
|
1333
|
+
if (data.clientToken != null) {
|
|
1378
1334
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1379
1335
|
}
|
|
1380
|
-
if (data.componentBuildVersionArn
|
|
1336
|
+
if (data.componentBuildVersionArn != null) {
|
|
1381
1337
|
contents.componentBuildVersionArn = (0, smithy_client_1.expectString)(data.componentBuildVersionArn);
|
|
1382
1338
|
}
|
|
1383
|
-
if (data.requestId
|
|
1339
|
+
if (data.requestId != null) {
|
|
1384
1340
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1385
1341
|
}
|
|
1386
|
-
return
|
|
1342
|
+
return contents;
|
|
1387
1343
|
};
|
|
1388
1344
|
exports.deserializeAws_restJson1CreateComponentCommand = deserializeAws_restJson1CreateComponentCommand;
|
|
1389
1345
|
const deserializeAws_restJson1CreateComponentCommandError = async (output, context) => {
|
|
@@ -1391,7 +1347,6 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
1391
1347
|
...output,
|
|
1392
1348
|
body: await parseBody(output.body, context),
|
|
1393
1349
|
};
|
|
1394
|
-
let response;
|
|
1395
1350
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
1351
|
switch (errorCode) {
|
|
1397
1352
|
case "CallRateLimitExceededException":
|
|
@@ -1429,37 +1384,32 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
1429
1384
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1430
1385
|
default:
|
|
1431
1386
|
const parsedBody = parsedOutput.body;
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
$metadata,
|
|
1387
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1388
|
+
output,
|
|
1389
|
+
parsedBody,
|
|
1390
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1391
|
+
errorCode,
|
|
1438
1392
|
});
|
|
1439
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1440
1393
|
}
|
|
1441
1394
|
};
|
|
1442
1395
|
const deserializeAws_restJson1CreateContainerRecipeCommand = async (output, context) => {
|
|
1443
1396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1444
1397
|
return deserializeAws_restJson1CreateContainerRecipeCommandError(output, context);
|
|
1445
1398
|
}
|
|
1446
|
-
const contents = {
|
|
1399
|
+
const contents = map({
|
|
1447
1400
|
$metadata: deserializeMetadata(output),
|
|
1448
|
-
|
|
1449
|
-
containerRecipeArn: undefined,
|
|
1450
|
-
requestId: undefined,
|
|
1451
|
-
};
|
|
1401
|
+
});
|
|
1452
1402
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1453
|
-
if (data.clientToken
|
|
1403
|
+
if (data.clientToken != null) {
|
|
1454
1404
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1455
1405
|
}
|
|
1456
|
-
if (data.containerRecipeArn
|
|
1406
|
+
if (data.containerRecipeArn != null) {
|
|
1457
1407
|
contents.containerRecipeArn = (0, smithy_client_1.expectString)(data.containerRecipeArn);
|
|
1458
1408
|
}
|
|
1459
|
-
if (data.requestId
|
|
1409
|
+
if (data.requestId != null) {
|
|
1460
1410
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1461
1411
|
}
|
|
1462
|
-
return
|
|
1412
|
+
return contents;
|
|
1463
1413
|
};
|
|
1464
1414
|
exports.deserializeAws_restJson1CreateContainerRecipeCommand = deserializeAws_restJson1CreateContainerRecipeCommand;
|
|
1465
1415
|
const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output, context) => {
|
|
@@ -1467,7 +1417,6 @@ const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output,
|
|
|
1467
1417
|
...output,
|
|
1468
1418
|
body: await parseBody(output.body, context),
|
|
1469
1419
|
};
|
|
1470
|
-
let response;
|
|
1471
1420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
1421
|
switch (errorCode) {
|
|
1473
1422
|
case "CallRateLimitExceededException":
|
|
@@ -1505,37 +1454,32 @@ const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output,
|
|
|
1505
1454
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1506
1455
|
default:
|
|
1507
1456
|
const parsedBody = parsedOutput.body;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
$metadata,
|
|
1457
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1458
|
+
output,
|
|
1459
|
+
parsedBody,
|
|
1460
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1461
|
+
errorCode,
|
|
1514
1462
|
});
|
|
1515
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1516
1463
|
}
|
|
1517
1464
|
};
|
|
1518
1465
|
const deserializeAws_restJson1CreateDistributionConfigurationCommand = async (output, context) => {
|
|
1519
1466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
1467
|
return deserializeAws_restJson1CreateDistributionConfigurationCommandError(output, context);
|
|
1521
1468
|
}
|
|
1522
|
-
const contents = {
|
|
1469
|
+
const contents = map({
|
|
1523
1470
|
$metadata: deserializeMetadata(output),
|
|
1524
|
-
|
|
1525
|
-
distributionConfigurationArn: undefined,
|
|
1526
|
-
requestId: undefined,
|
|
1527
|
-
};
|
|
1471
|
+
});
|
|
1528
1472
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1529
|
-
if (data.clientToken
|
|
1473
|
+
if (data.clientToken != null) {
|
|
1530
1474
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1531
1475
|
}
|
|
1532
|
-
if (data.distributionConfigurationArn
|
|
1476
|
+
if (data.distributionConfigurationArn != null) {
|
|
1533
1477
|
contents.distributionConfigurationArn = (0, smithy_client_1.expectString)(data.distributionConfigurationArn);
|
|
1534
1478
|
}
|
|
1535
|
-
if (data.requestId
|
|
1479
|
+
if (data.requestId != null) {
|
|
1536
1480
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1537
1481
|
}
|
|
1538
|
-
return
|
|
1482
|
+
return contents;
|
|
1539
1483
|
};
|
|
1540
1484
|
exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = deserializeAws_restJson1CreateDistributionConfigurationCommand;
|
|
1541
1485
|
const deserializeAws_restJson1CreateDistributionConfigurationCommandError = async (output, context) => {
|
|
@@ -1543,7 +1487,6 @@ const deserializeAws_restJson1CreateDistributionConfigurationCommandError = asyn
|
|
|
1543
1487
|
...output,
|
|
1544
1488
|
body: await parseBody(output.body, context),
|
|
1545
1489
|
};
|
|
1546
|
-
let response;
|
|
1547
1490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
1491
|
switch (errorCode) {
|
|
1549
1492
|
case "CallRateLimitExceededException":
|
|
@@ -1581,37 +1524,32 @@ const deserializeAws_restJson1CreateDistributionConfigurationCommandError = asyn
|
|
|
1581
1524
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1582
1525
|
default:
|
|
1583
1526
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
$metadata,
|
|
1527
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1528
|
+
output,
|
|
1529
|
+
parsedBody,
|
|
1530
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1531
|
+
errorCode,
|
|
1590
1532
|
});
|
|
1591
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1592
1533
|
}
|
|
1593
1534
|
};
|
|
1594
1535
|
const deserializeAws_restJson1CreateImageCommand = async (output, context) => {
|
|
1595
1536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1596
1537
|
return deserializeAws_restJson1CreateImageCommandError(output, context);
|
|
1597
1538
|
}
|
|
1598
|
-
const contents = {
|
|
1539
|
+
const contents = map({
|
|
1599
1540
|
$metadata: deserializeMetadata(output),
|
|
1600
|
-
|
|
1601
|
-
imageBuildVersionArn: undefined,
|
|
1602
|
-
requestId: undefined,
|
|
1603
|
-
};
|
|
1541
|
+
});
|
|
1604
1542
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1605
|
-
if (data.clientToken
|
|
1543
|
+
if (data.clientToken != null) {
|
|
1606
1544
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1607
1545
|
}
|
|
1608
|
-
if (data.imageBuildVersionArn
|
|
1546
|
+
if (data.imageBuildVersionArn != null) {
|
|
1609
1547
|
contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
|
|
1610
1548
|
}
|
|
1611
|
-
if (data.requestId
|
|
1549
|
+
if (data.requestId != null) {
|
|
1612
1550
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1613
1551
|
}
|
|
1614
|
-
return
|
|
1552
|
+
return contents;
|
|
1615
1553
|
};
|
|
1616
1554
|
exports.deserializeAws_restJson1CreateImageCommand = deserializeAws_restJson1CreateImageCommand;
|
|
1617
1555
|
const deserializeAws_restJson1CreateImageCommandError = async (output, context) => {
|
|
@@ -1619,7 +1557,6 @@ const deserializeAws_restJson1CreateImageCommandError = async (output, context)
|
|
|
1619
1557
|
...output,
|
|
1620
1558
|
body: await parseBody(output.body, context),
|
|
1621
1559
|
};
|
|
1622
|
-
let response;
|
|
1623
1560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1561
|
switch (errorCode) {
|
|
1625
1562
|
case "CallRateLimitExceededException":
|
|
@@ -1651,37 +1588,32 @@ const deserializeAws_restJson1CreateImageCommandError = async (output, context)
|
|
|
1651
1588
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1652
1589
|
default:
|
|
1653
1590
|
const parsedBody = parsedOutput.body;
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
$metadata,
|
|
1591
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1592
|
+
output,
|
|
1593
|
+
parsedBody,
|
|
1594
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1595
|
+
errorCode,
|
|
1660
1596
|
});
|
|
1661
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1662
1597
|
}
|
|
1663
1598
|
};
|
|
1664
1599
|
const deserializeAws_restJson1CreateImagePipelineCommand = async (output, context) => {
|
|
1665
1600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1666
1601
|
return deserializeAws_restJson1CreateImagePipelineCommandError(output, context);
|
|
1667
1602
|
}
|
|
1668
|
-
const contents = {
|
|
1603
|
+
const contents = map({
|
|
1669
1604
|
$metadata: deserializeMetadata(output),
|
|
1670
|
-
|
|
1671
|
-
imagePipelineArn: undefined,
|
|
1672
|
-
requestId: undefined,
|
|
1673
|
-
};
|
|
1605
|
+
});
|
|
1674
1606
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1675
|
-
if (data.clientToken
|
|
1607
|
+
if (data.clientToken != null) {
|
|
1676
1608
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1677
1609
|
}
|
|
1678
|
-
if (data.imagePipelineArn
|
|
1610
|
+
if (data.imagePipelineArn != null) {
|
|
1679
1611
|
contents.imagePipelineArn = (0, smithy_client_1.expectString)(data.imagePipelineArn);
|
|
1680
1612
|
}
|
|
1681
|
-
if (data.requestId
|
|
1613
|
+
if (data.requestId != null) {
|
|
1682
1614
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1683
1615
|
}
|
|
1684
|
-
return
|
|
1616
|
+
return contents;
|
|
1685
1617
|
};
|
|
1686
1618
|
exports.deserializeAws_restJson1CreateImagePipelineCommand = deserializeAws_restJson1CreateImagePipelineCommand;
|
|
1687
1619
|
const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, context) => {
|
|
@@ -1689,7 +1621,6 @@ const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, c
|
|
|
1689
1621
|
...output,
|
|
1690
1622
|
body: await parseBody(output.body, context),
|
|
1691
1623
|
};
|
|
1692
|
-
let response;
|
|
1693
1624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1625
|
switch (errorCode) {
|
|
1695
1626
|
case "CallRateLimitExceededException":
|
|
@@ -1724,37 +1655,32 @@ const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, c
|
|
|
1724
1655
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1725
1656
|
default:
|
|
1726
1657
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
$metadata,
|
|
1658
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1659
|
+
output,
|
|
1660
|
+
parsedBody,
|
|
1661
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1662
|
+
errorCode,
|
|
1733
1663
|
});
|
|
1734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1664
|
}
|
|
1736
1665
|
};
|
|
1737
1666
|
const deserializeAws_restJson1CreateImageRecipeCommand = async (output, context) => {
|
|
1738
1667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1739
1668
|
return deserializeAws_restJson1CreateImageRecipeCommandError(output, context);
|
|
1740
1669
|
}
|
|
1741
|
-
const contents = {
|
|
1670
|
+
const contents = map({
|
|
1742
1671
|
$metadata: deserializeMetadata(output),
|
|
1743
|
-
|
|
1744
|
-
imageRecipeArn: undefined,
|
|
1745
|
-
requestId: undefined,
|
|
1746
|
-
};
|
|
1672
|
+
});
|
|
1747
1673
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1748
|
-
if (data.clientToken
|
|
1674
|
+
if (data.clientToken != null) {
|
|
1749
1675
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1750
1676
|
}
|
|
1751
|
-
if (data.imageRecipeArn
|
|
1677
|
+
if (data.imageRecipeArn != null) {
|
|
1752
1678
|
contents.imageRecipeArn = (0, smithy_client_1.expectString)(data.imageRecipeArn);
|
|
1753
1679
|
}
|
|
1754
|
-
if (data.requestId
|
|
1680
|
+
if (data.requestId != null) {
|
|
1755
1681
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1756
1682
|
}
|
|
1757
|
-
return
|
|
1683
|
+
return contents;
|
|
1758
1684
|
};
|
|
1759
1685
|
exports.deserializeAws_restJson1CreateImageRecipeCommand = deserializeAws_restJson1CreateImageRecipeCommand;
|
|
1760
1686
|
const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, context) => {
|
|
@@ -1762,7 +1688,6 @@ const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, con
|
|
|
1762
1688
|
...output,
|
|
1763
1689
|
body: await parseBody(output.body, context),
|
|
1764
1690
|
};
|
|
1765
|
-
let response;
|
|
1766
1691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1692
|
switch (errorCode) {
|
|
1768
1693
|
case "CallRateLimitExceededException":
|
|
@@ -1800,37 +1725,32 @@ const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, con
|
|
|
1800
1725
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1801
1726
|
default:
|
|
1802
1727
|
const parsedBody = parsedOutput.body;
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
$metadata,
|
|
1728
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1729
|
+
output,
|
|
1730
|
+
parsedBody,
|
|
1731
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1732
|
+
errorCode,
|
|
1809
1733
|
});
|
|
1810
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1811
1734
|
}
|
|
1812
1735
|
};
|
|
1813
1736
|
const deserializeAws_restJson1CreateInfrastructureConfigurationCommand = async (output, context) => {
|
|
1814
1737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
1738
|
return deserializeAws_restJson1CreateInfrastructureConfigurationCommandError(output, context);
|
|
1816
1739
|
}
|
|
1817
|
-
const contents = {
|
|
1740
|
+
const contents = map({
|
|
1818
1741
|
$metadata: deserializeMetadata(output),
|
|
1819
|
-
|
|
1820
|
-
infrastructureConfigurationArn: undefined,
|
|
1821
|
-
requestId: undefined,
|
|
1822
|
-
};
|
|
1742
|
+
});
|
|
1823
1743
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1824
|
-
if (data.clientToken
|
|
1744
|
+
if (data.clientToken != null) {
|
|
1825
1745
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1826
1746
|
}
|
|
1827
|
-
if (data.infrastructureConfigurationArn
|
|
1747
|
+
if (data.infrastructureConfigurationArn != null) {
|
|
1828
1748
|
contents.infrastructureConfigurationArn = (0, smithy_client_1.expectString)(data.infrastructureConfigurationArn);
|
|
1829
1749
|
}
|
|
1830
|
-
if (data.requestId
|
|
1750
|
+
if (data.requestId != null) {
|
|
1831
1751
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1832
1752
|
}
|
|
1833
|
-
return
|
|
1753
|
+
return contents;
|
|
1834
1754
|
};
|
|
1835
1755
|
exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = deserializeAws_restJson1CreateInfrastructureConfigurationCommand;
|
|
1836
1756
|
const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = async (output, context) => {
|
|
@@ -1838,7 +1758,6 @@ const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = as
|
|
|
1838
1758
|
...output,
|
|
1839
1759
|
body: await parseBody(output.body, context),
|
|
1840
1760
|
};
|
|
1841
|
-
let response;
|
|
1842
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1762
|
switch (errorCode) {
|
|
1844
1763
|
case "CallRateLimitExceededException":
|
|
@@ -1873,33 +1792,29 @@ const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = as
|
|
|
1873
1792
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1874
1793
|
default:
|
|
1875
1794
|
const parsedBody = parsedOutput.body;
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
$metadata,
|
|
1795
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1796
|
+
output,
|
|
1797
|
+
parsedBody,
|
|
1798
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1799
|
+
errorCode,
|
|
1882
1800
|
});
|
|
1883
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1884
1801
|
}
|
|
1885
1802
|
};
|
|
1886
1803
|
const deserializeAws_restJson1DeleteComponentCommand = async (output, context) => {
|
|
1887
1804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
1805
|
return deserializeAws_restJson1DeleteComponentCommandError(output, context);
|
|
1889
1806
|
}
|
|
1890
|
-
const contents = {
|
|
1807
|
+
const contents = map({
|
|
1891
1808
|
$metadata: deserializeMetadata(output),
|
|
1892
|
-
|
|
1893
|
-
requestId: undefined,
|
|
1894
|
-
};
|
|
1809
|
+
});
|
|
1895
1810
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1896
|
-
if (data.componentBuildVersionArn
|
|
1811
|
+
if (data.componentBuildVersionArn != null) {
|
|
1897
1812
|
contents.componentBuildVersionArn = (0, smithy_client_1.expectString)(data.componentBuildVersionArn);
|
|
1898
1813
|
}
|
|
1899
|
-
if (data.requestId
|
|
1814
|
+
if (data.requestId != null) {
|
|
1900
1815
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1901
1816
|
}
|
|
1902
|
-
return
|
|
1817
|
+
return contents;
|
|
1903
1818
|
};
|
|
1904
1819
|
exports.deserializeAws_restJson1DeleteComponentCommand = deserializeAws_restJson1DeleteComponentCommand;
|
|
1905
1820
|
const deserializeAws_restJson1DeleteComponentCommandError = async (output, context) => {
|
|
@@ -1907,7 +1822,6 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
1907
1822
|
...output,
|
|
1908
1823
|
body: await parseBody(output.body, context),
|
|
1909
1824
|
};
|
|
1910
|
-
let response;
|
|
1911
1825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1826
|
switch (errorCode) {
|
|
1913
1827
|
case "CallRateLimitExceededException":
|
|
@@ -1933,33 +1847,29 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
1933
1847
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1934
1848
|
default:
|
|
1935
1849
|
const parsedBody = parsedOutput.body;
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
$metadata,
|
|
1850
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1851
|
+
output,
|
|
1852
|
+
parsedBody,
|
|
1853
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1854
|
+
errorCode,
|
|
1942
1855
|
});
|
|
1943
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1944
1856
|
}
|
|
1945
1857
|
};
|
|
1946
1858
|
const deserializeAws_restJson1DeleteContainerRecipeCommand = async (output, context) => {
|
|
1947
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1948
1860
|
return deserializeAws_restJson1DeleteContainerRecipeCommandError(output, context);
|
|
1949
1861
|
}
|
|
1950
|
-
const contents = {
|
|
1862
|
+
const contents = map({
|
|
1951
1863
|
$metadata: deserializeMetadata(output),
|
|
1952
|
-
|
|
1953
|
-
requestId: undefined,
|
|
1954
|
-
};
|
|
1864
|
+
});
|
|
1955
1865
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1956
|
-
if (data.containerRecipeArn
|
|
1866
|
+
if (data.containerRecipeArn != null) {
|
|
1957
1867
|
contents.containerRecipeArn = (0, smithy_client_1.expectString)(data.containerRecipeArn);
|
|
1958
1868
|
}
|
|
1959
|
-
if (data.requestId
|
|
1869
|
+
if (data.requestId != null) {
|
|
1960
1870
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
1961
1871
|
}
|
|
1962
|
-
return
|
|
1872
|
+
return contents;
|
|
1963
1873
|
};
|
|
1964
1874
|
exports.deserializeAws_restJson1DeleteContainerRecipeCommand = deserializeAws_restJson1DeleteContainerRecipeCommand;
|
|
1965
1875
|
const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output, context) => {
|
|
@@ -1967,7 +1877,6 @@ const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output,
|
|
|
1967
1877
|
...output,
|
|
1968
1878
|
body: await parseBody(output.body, context),
|
|
1969
1879
|
};
|
|
1970
|
-
let response;
|
|
1971
1880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
1881
|
switch (errorCode) {
|
|
1973
1882
|
case "CallRateLimitExceededException":
|
|
@@ -1993,33 +1902,29 @@ const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output,
|
|
|
1993
1902
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1994
1903
|
default:
|
|
1995
1904
|
const parsedBody = parsedOutput.body;
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
$metadata,
|
|
1905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1906
|
+
output,
|
|
1907
|
+
parsedBody,
|
|
1908
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1909
|
+
errorCode,
|
|
2002
1910
|
});
|
|
2003
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2004
1911
|
}
|
|
2005
1912
|
};
|
|
2006
1913
|
const deserializeAws_restJson1DeleteDistributionConfigurationCommand = async (output, context) => {
|
|
2007
1914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2008
1915
|
return deserializeAws_restJson1DeleteDistributionConfigurationCommandError(output, context);
|
|
2009
1916
|
}
|
|
2010
|
-
const contents = {
|
|
1917
|
+
const contents = map({
|
|
2011
1918
|
$metadata: deserializeMetadata(output),
|
|
2012
|
-
|
|
2013
|
-
requestId: undefined,
|
|
2014
|
-
};
|
|
1919
|
+
});
|
|
2015
1920
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2016
|
-
if (data.distributionConfigurationArn
|
|
1921
|
+
if (data.distributionConfigurationArn != null) {
|
|
2017
1922
|
contents.distributionConfigurationArn = (0, smithy_client_1.expectString)(data.distributionConfigurationArn);
|
|
2018
1923
|
}
|
|
2019
|
-
if (data.requestId
|
|
1924
|
+
if (data.requestId != null) {
|
|
2020
1925
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2021
1926
|
}
|
|
2022
|
-
return
|
|
1927
|
+
return contents;
|
|
2023
1928
|
};
|
|
2024
1929
|
exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = deserializeAws_restJson1DeleteDistributionConfigurationCommand;
|
|
2025
1930
|
const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = async (output, context) => {
|
|
@@ -2027,7 +1932,6 @@ const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = asyn
|
|
|
2027
1932
|
...output,
|
|
2028
1933
|
body: await parseBody(output.body, context),
|
|
2029
1934
|
};
|
|
2030
|
-
let response;
|
|
2031
1935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
1936
|
switch (errorCode) {
|
|
2033
1937
|
case "CallRateLimitExceededException":
|
|
@@ -2053,33 +1957,29 @@ const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = asyn
|
|
|
2053
1957
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2054
1958
|
default:
|
|
2055
1959
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
$metadata,
|
|
1960
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1961
|
+
output,
|
|
1962
|
+
parsedBody,
|
|
1963
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
1964
|
+
errorCode,
|
|
2062
1965
|
});
|
|
2063
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2064
1966
|
}
|
|
2065
1967
|
};
|
|
2066
1968
|
const deserializeAws_restJson1DeleteImageCommand = async (output, context) => {
|
|
2067
1969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2068
1970
|
return deserializeAws_restJson1DeleteImageCommandError(output, context);
|
|
2069
1971
|
}
|
|
2070
|
-
const contents = {
|
|
1972
|
+
const contents = map({
|
|
2071
1973
|
$metadata: deserializeMetadata(output),
|
|
2072
|
-
|
|
2073
|
-
requestId: undefined,
|
|
2074
|
-
};
|
|
1974
|
+
});
|
|
2075
1975
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2076
|
-
if (data.imageBuildVersionArn
|
|
1976
|
+
if (data.imageBuildVersionArn != null) {
|
|
2077
1977
|
contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
|
|
2078
1978
|
}
|
|
2079
|
-
if (data.requestId
|
|
1979
|
+
if (data.requestId != null) {
|
|
2080
1980
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2081
1981
|
}
|
|
2082
|
-
return
|
|
1982
|
+
return contents;
|
|
2083
1983
|
};
|
|
2084
1984
|
exports.deserializeAws_restJson1DeleteImageCommand = deserializeAws_restJson1DeleteImageCommand;
|
|
2085
1985
|
const deserializeAws_restJson1DeleteImageCommandError = async (output, context) => {
|
|
@@ -2087,7 +1987,6 @@ const deserializeAws_restJson1DeleteImageCommandError = async (output, context)
|
|
|
2087
1987
|
...output,
|
|
2088
1988
|
body: await parseBody(output.body, context),
|
|
2089
1989
|
};
|
|
2090
|
-
let response;
|
|
2091
1990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
1991
|
switch (errorCode) {
|
|
2093
1992
|
case "CallRateLimitExceededException":
|
|
@@ -2113,33 +2012,29 @@ const deserializeAws_restJson1DeleteImageCommandError = async (output, context)
|
|
|
2113
2012
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2114
2013
|
default:
|
|
2115
2014
|
const parsedBody = parsedOutput.body;
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
$metadata,
|
|
2015
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2016
|
+
output,
|
|
2017
|
+
parsedBody,
|
|
2018
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2019
|
+
errorCode,
|
|
2122
2020
|
});
|
|
2123
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2124
2021
|
}
|
|
2125
2022
|
};
|
|
2126
2023
|
const deserializeAws_restJson1DeleteImagePipelineCommand = async (output, context) => {
|
|
2127
2024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2128
2025
|
return deserializeAws_restJson1DeleteImagePipelineCommandError(output, context);
|
|
2129
2026
|
}
|
|
2130
|
-
const contents = {
|
|
2027
|
+
const contents = map({
|
|
2131
2028
|
$metadata: deserializeMetadata(output),
|
|
2132
|
-
|
|
2133
|
-
requestId: undefined,
|
|
2134
|
-
};
|
|
2029
|
+
});
|
|
2135
2030
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2136
|
-
if (data.imagePipelineArn
|
|
2031
|
+
if (data.imagePipelineArn != null) {
|
|
2137
2032
|
contents.imagePipelineArn = (0, smithy_client_1.expectString)(data.imagePipelineArn);
|
|
2138
2033
|
}
|
|
2139
|
-
if (data.requestId
|
|
2034
|
+
if (data.requestId != null) {
|
|
2140
2035
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2141
2036
|
}
|
|
2142
|
-
return
|
|
2037
|
+
return contents;
|
|
2143
2038
|
};
|
|
2144
2039
|
exports.deserializeAws_restJson1DeleteImagePipelineCommand = deserializeAws_restJson1DeleteImagePipelineCommand;
|
|
2145
2040
|
const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, context) => {
|
|
@@ -2147,7 +2042,6 @@ const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, c
|
|
|
2147
2042
|
...output,
|
|
2148
2043
|
body: await parseBody(output.body, context),
|
|
2149
2044
|
};
|
|
2150
|
-
let response;
|
|
2151
2045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2152
2046
|
switch (errorCode) {
|
|
2153
2047
|
case "CallRateLimitExceededException":
|
|
@@ -2173,33 +2067,29 @@ const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, c
|
|
|
2173
2067
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2174
2068
|
default:
|
|
2175
2069
|
const parsedBody = parsedOutput.body;
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
$metadata,
|
|
2070
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2071
|
+
output,
|
|
2072
|
+
parsedBody,
|
|
2073
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2074
|
+
errorCode,
|
|
2182
2075
|
});
|
|
2183
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2184
2076
|
}
|
|
2185
2077
|
};
|
|
2186
2078
|
const deserializeAws_restJson1DeleteImageRecipeCommand = async (output, context) => {
|
|
2187
2079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
2080
|
return deserializeAws_restJson1DeleteImageRecipeCommandError(output, context);
|
|
2189
2081
|
}
|
|
2190
|
-
const contents = {
|
|
2082
|
+
const contents = map({
|
|
2191
2083
|
$metadata: deserializeMetadata(output),
|
|
2192
|
-
|
|
2193
|
-
requestId: undefined,
|
|
2194
|
-
};
|
|
2084
|
+
});
|
|
2195
2085
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2196
|
-
if (data.imageRecipeArn
|
|
2086
|
+
if (data.imageRecipeArn != null) {
|
|
2197
2087
|
contents.imageRecipeArn = (0, smithy_client_1.expectString)(data.imageRecipeArn);
|
|
2198
2088
|
}
|
|
2199
|
-
if (data.requestId
|
|
2089
|
+
if (data.requestId != null) {
|
|
2200
2090
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2201
2091
|
}
|
|
2202
|
-
return
|
|
2092
|
+
return contents;
|
|
2203
2093
|
};
|
|
2204
2094
|
exports.deserializeAws_restJson1DeleteImageRecipeCommand = deserializeAws_restJson1DeleteImageRecipeCommand;
|
|
2205
2095
|
const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, context) => {
|
|
@@ -2207,7 +2097,6 @@ const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, con
|
|
|
2207
2097
|
...output,
|
|
2208
2098
|
body: await parseBody(output.body, context),
|
|
2209
2099
|
};
|
|
2210
|
-
let response;
|
|
2211
2100
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
2101
|
switch (errorCode) {
|
|
2213
2102
|
case "CallRateLimitExceededException":
|
|
@@ -2233,33 +2122,29 @@ const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, con
|
|
|
2233
2122
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2234
2123
|
default:
|
|
2235
2124
|
const parsedBody = parsedOutput.body;
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
$metadata,
|
|
2125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2126
|
+
output,
|
|
2127
|
+
parsedBody,
|
|
2128
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2129
|
+
errorCode,
|
|
2242
2130
|
});
|
|
2243
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2244
2131
|
}
|
|
2245
2132
|
};
|
|
2246
2133
|
const deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = async (output, context) => {
|
|
2247
2134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
2135
|
return deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError(output, context);
|
|
2249
2136
|
}
|
|
2250
|
-
const contents = {
|
|
2137
|
+
const contents = map({
|
|
2251
2138
|
$metadata: deserializeMetadata(output),
|
|
2252
|
-
|
|
2253
|
-
requestId: undefined,
|
|
2254
|
-
};
|
|
2139
|
+
});
|
|
2255
2140
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2256
|
-
if (data.infrastructureConfigurationArn
|
|
2141
|
+
if (data.infrastructureConfigurationArn != null) {
|
|
2257
2142
|
contents.infrastructureConfigurationArn = (0, smithy_client_1.expectString)(data.infrastructureConfigurationArn);
|
|
2258
2143
|
}
|
|
2259
|
-
if (data.requestId
|
|
2144
|
+
if (data.requestId != null) {
|
|
2260
2145
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2261
2146
|
}
|
|
2262
|
-
return
|
|
2147
|
+
return contents;
|
|
2263
2148
|
};
|
|
2264
2149
|
exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = deserializeAws_restJson1DeleteInfrastructureConfigurationCommand;
|
|
2265
2150
|
const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = async (output, context) => {
|
|
@@ -2267,7 +2152,6 @@ const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = as
|
|
|
2267
2152
|
...output,
|
|
2268
2153
|
body: await parseBody(output.body, context),
|
|
2269
2154
|
};
|
|
2270
|
-
let response;
|
|
2271
2155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2156
|
switch (errorCode) {
|
|
2273
2157
|
case "CallRateLimitExceededException":
|
|
@@ -2293,33 +2177,29 @@ const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = as
|
|
|
2293
2177
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2294
2178
|
default:
|
|
2295
2179
|
const parsedBody = parsedOutput.body;
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
$metadata,
|
|
2180
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2181
|
+
output,
|
|
2182
|
+
parsedBody,
|
|
2183
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2184
|
+
errorCode,
|
|
2302
2185
|
});
|
|
2303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2304
2186
|
}
|
|
2305
2187
|
};
|
|
2306
2188
|
const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
|
|
2307
2189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2308
2190
|
return deserializeAws_restJson1GetComponentCommandError(output, context);
|
|
2309
2191
|
}
|
|
2310
|
-
const contents = {
|
|
2192
|
+
const contents = map({
|
|
2311
2193
|
$metadata: deserializeMetadata(output),
|
|
2312
|
-
|
|
2313
|
-
requestId: undefined,
|
|
2314
|
-
};
|
|
2194
|
+
});
|
|
2315
2195
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2316
|
-
if (data.component
|
|
2196
|
+
if (data.component != null) {
|
|
2317
2197
|
contents.component = deserializeAws_restJson1Component(data.component, context);
|
|
2318
2198
|
}
|
|
2319
|
-
if (data.requestId
|
|
2199
|
+
if (data.requestId != null) {
|
|
2320
2200
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2321
2201
|
}
|
|
2322
|
-
return
|
|
2202
|
+
return contents;
|
|
2323
2203
|
};
|
|
2324
2204
|
exports.deserializeAws_restJson1GetComponentCommand = deserializeAws_restJson1GetComponentCommand;
|
|
2325
2205
|
const deserializeAws_restJson1GetComponentCommandError = async (output, context) => {
|
|
@@ -2327,7 +2207,6 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
2327
2207
|
...output,
|
|
2328
2208
|
body: await parseBody(output.body, context),
|
|
2329
2209
|
};
|
|
2330
|
-
let response;
|
|
2331
2210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2211
|
switch (errorCode) {
|
|
2333
2212
|
case "CallRateLimitExceededException":
|
|
@@ -2350,33 +2229,29 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
2350
2229
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2351
2230
|
default:
|
|
2352
2231
|
const parsedBody = parsedOutput.body;
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
$metadata,
|
|
2232
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2233
|
+
output,
|
|
2234
|
+
parsedBody,
|
|
2235
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2236
|
+
errorCode,
|
|
2359
2237
|
});
|
|
2360
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2361
2238
|
}
|
|
2362
2239
|
};
|
|
2363
2240
|
const deserializeAws_restJson1GetComponentPolicyCommand = async (output, context) => {
|
|
2364
2241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2365
2242
|
return deserializeAws_restJson1GetComponentPolicyCommandError(output, context);
|
|
2366
2243
|
}
|
|
2367
|
-
const contents = {
|
|
2244
|
+
const contents = map({
|
|
2368
2245
|
$metadata: deserializeMetadata(output),
|
|
2369
|
-
|
|
2370
|
-
requestId: undefined,
|
|
2371
|
-
};
|
|
2246
|
+
});
|
|
2372
2247
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2373
|
-
if (data.policy
|
|
2248
|
+
if (data.policy != null) {
|
|
2374
2249
|
contents.policy = (0, smithy_client_1.expectString)(data.policy);
|
|
2375
2250
|
}
|
|
2376
|
-
if (data.requestId
|
|
2251
|
+
if (data.requestId != null) {
|
|
2377
2252
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2378
2253
|
}
|
|
2379
|
-
return
|
|
2254
|
+
return contents;
|
|
2380
2255
|
};
|
|
2381
2256
|
exports.deserializeAws_restJson1GetComponentPolicyCommand = deserializeAws_restJson1GetComponentPolicyCommand;
|
|
2382
2257
|
const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, context) => {
|
|
@@ -2384,7 +2259,6 @@ const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, co
|
|
|
2384
2259
|
...output,
|
|
2385
2260
|
body: await parseBody(output.body, context),
|
|
2386
2261
|
};
|
|
2387
|
-
let response;
|
|
2388
2262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
2263
|
switch (errorCode) {
|
|
2390
2264
|
case "CallRateLimitExceededException":
|
|
@@ -2407,33 +2281,29 @@ const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, co
|
|
|
2407
2281
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2408
2282
|
default:
|
|
2409
2283
|
const parsedBody = parsedOutput.body;
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
$metadata,
|
|
2284
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2285
|
+
output,
|
|
2286
|
+
parsedBody,
|
|
2287
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2288
|
+
errorCode,
|
|
2416
2289
|
});
|
|
2417
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2418
2290
|
}
|
|
2419
2291
|
};
|
|
2420
2292
|
const deserializeAws_restJson1GetContainerRecipeCommand = async (output, context) => {
|
|
2421
2293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2422
2294
|
return deserializeAws_restJson1GetContainerRecipeCommandError(output, context);
|
|
2423
2295
|
}
|
|
2424
|
-
const contents = {
|
|
2296
|
+
const contents = map({
|
|
2425
2297
|
$metadata: deserializeMetadata(output),
|
|
2426
|
-
|
|
2427
|
-
requestId: undefined,
|
|
2428
|
-
};
|
|
2298
|
+
});
|
|
2429
2299
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2430
|
-
if (data.containerRecipe
|
|
2300
|
+
if (data.containerRecipe != null) {
|
|
2431
2301
|
contents.containerRecipe = deserializeAws_restJson1ContainerRecipe(data.containerRecipe, context);
|
|
2432
2302
|
}
|
|
2433
|
-
if (data.requestId
|
|
2303
|
+
if (data.requestId != null) {
|
|
2434
2304
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2435
2305
|
}
|
|
2436
|
-
return
|
|
2306
|
+
return contents;
|
|
2437
2307
|
};
|
|
2438
2308
|
exports.deserializeAws_restJson1GetContainerRecipeCommand = deserializeAws_restJson1GetContainerRecipeCommand;
|
|
2439
2309
|
const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, context) => {
|
|
@@ -2441,7 +2311,6 @@ const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, co
|
|
|
2441
2311
|
...output,
|
|
2442
2312
|
body: await parseBody(output.body, context),
|
|
2443
2313
|
};
|
|
2444
|
-
let response;
|
|
2445
2314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
2315
|
switch (errorCode) {
|
|
2447
2316
|
case "CallRateLimitExceededException":
|
|
@@ -2464,33 +2333,29 @@ const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, co
|
|
|
2464
2333
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2465
2334
|
default:
|
|
2466
2335
|
const parsedBody = parsedOutput.body;
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
$metadata,
|
|
2336
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2337
|
+
output,
|
|
2338
|
+
parsedBody,
|
|
2339
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2340
|
+
errorCode,
|
|
2473
2341
|
});
|
|
2474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2475
2342
|
}
|
|
2476
2343
|
};
|
|
2477
2344
|
const deserializeAws_restJson1GetContainerRecipePolicyCommand = async (output, context) => {
|
|
2478
2345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2479
2346
|
return deserializeAws_restJson1GetContainerRecipePolicyCommandError(output, context);
|
|
2480
2347
|
}
|
|
2481
|
-
const contents = {
|
|
2348
|
+
const contents = map({
|
|
2482
2349
|
$metadata: deserializeMetadata(output),
|
|
2483
|
-
|
|
2484
|
-
requestId: undefined,
|
|
2485
|
-
};
|
|
2350
|
+
});
|
|
2486
2351
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2487
|
-
if (data.policy
|
|
2352
|
+
if (data.policy != null) {
|
|
2488
2353
|
contents.policy = (0, smithy_client_1.expectString)(data.policy);
|
|
2489
2354
|
}
|
|
2490
|
-
if (data.requestId
|
|
2355
|
+
if (data.requestId != null) {
|
|
2491
2356
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2492
2357
|
}
|
|
2493
|
-
return
|
|
2358
|
+
return contents;
|
|
2494
2359
|
};
|
|
2495
2360
|
exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = deserializeAws_restJson1GetContainerRecipePolicyCommand;
|
|
2496
2361
|
const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (output, context) => {
|
|
@@ -2498,7 +2363,6 @@ const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (outp
|
|
|
2498
2363
|
...output,
|
|
2499
2364
|
body: await parseBody(output.body, context),
|
|
2500
2365
|
};
|
|
2501
|
-
let response;
|
|
2502
2366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
2367
|
switch (errorCode) {
|
|
2504
2368
|
case "CallRateLimitExceededException":
|
|
@@ -2521,33 +2385,29 @@ const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (outp
|
|
|
2521
2385
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2522
2386
|
default:
|
|
2523
2387
|
const parsedBody = parsedOutput.body;
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
$metadata,
|
|
2388
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2389
|
+
output,
|
|
2390
|
+
parsedBody,
|
|
2391
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2392
|
+
errorCode,
|
|
2530
2393
|
});
|
|
2531
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2532
2394
|
}
|
|
2533
2395
|
};
|
|
2534
2396
|
const deserializeAws_restJson1GetDistributionConfigurationCommand = async (output, context) => {
|
|
2535
2397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
2398
|
return deserializeAws_restJson1GetDistributionConfigurationCommandError(output, context);
|
|
2537
2399
|
}
|
|
2538
|
-
const contents = {
|
|
2400
|
+
const contents = map({
|
|
2539
2401
|
$metadata: deserializeMetadata(output),
|
|
2540
|
-
|
|
2541
|
-
requestId: undefined,
|
|
2542
|
-
};
|
|
2402
|
+
});
|
|
2543
2403
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2544
|
-
if (data.distributionConfiguration
|
|
2404
|
+
if (data.distributionConfiguration != null) {
|
|
2545
2405
|
contents.distributionConfiguration = deserializeAws_restJson1DistributionConfiguration(data.distributionConfiguration, context);
|
|
2546
2406
|
}
|
|
2547
|
-
if (data.requestId
|
|
2407
|
+
if (data.requestId != null) {
|
|
2548
2408
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2549
2409
|
}
|
|
2550
|
-
return
|
|
2410
|
+
return contents;
|
|
2551
2411
|
};
|
|
2552
2412
|
exports.deserializeAws_restJson1GetDistributionConfigurationCommand = deserializeAws_restJson1GetDistributionConfigurationCommand;
|
|
2553
2413
|
const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (output, context) => {
|
|
@@ -2555,7 +2415,6 @@ const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (
|
|
|
2555
2415
|
...output,
|
|
2556
2416
|
body: await parseBody(output.body, context),
|
|
2557
2417
|
};
|
|
2558
|
-
let response;
|
|
2559
2418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
2419
|
switch (errorCode) {
|
|
2561
2420
|
case "CallRateLimitExceededException":
|
|
@@ -2578,33 +2437,29 @@ const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (
|
|
|
2578
2437
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2579
2438
|
default:
|
|
2580
2439
|
const parsedBody = parsedOutput.body;
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
$metadata,
|
|
2440
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2441
|
+
output,
|
|
2442
|
+
parsedBody,
|
|
2443
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2444
|
+
errorCode,
|
|
2587
2445
|
});
|
|
2588
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2589
2446
|
}
|
|
2590
2447
|
};
|
|
2591
2448
|
const deserializeAws_restJson1GetImageCommand = async (output, context) => {
|
|
2592
2449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2593
2450
|
return deserializeAws_restJson1GetImageCommandError(output, context);
|
|
2594
2451
|
}
|
|
2595
|
-
const contents = {
|
|
2452
|
+
const contents = map({
|
|
2596
2453
|
$metadata: deserializeMetadata(output),
|
|
2597
|
-
|
|
2598
|
-
requestId: undefined,
|
|
2599
|
-
};
|
|
2454
|
+
});
|
|
2600
2455
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2601
|
-
if (data.image
|
|
2456
|
+
if (data.image != null) {
|
|
2602
2457
|
contents.image = deserializeAws_restJson1Image(data.image, context);
|
|
2603
2458
|
}
|
|
2604
|
-
if (data.requestId
|
|
2459
|
+
if (data.requestId != null) {
|
|
2605
2460
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2606
2461
|
}
|
|
2607
|
-
return
|
|
2462
|
+
return contents;
|
|
2608
2463
|
};
|
|
2609
2464
|
exports.deserializeAws_restJson1GetImageCommand = deserializeAws_restJson1GetImageCommand;
|
|
2610
2465
|
const deserializeAws_restJson1GetImageCommandError = async (output, context) => {
|
|
@@ -2612,7 +2467,6 @@ const deserializeAws_restJson1GetImageCommandError = async (output, context) =>
|
|
|
2612
2467
|
...output,
|
|
2613
2468
|
body: await parseBody(output.body, context),
|
|
2614
2469
|
};
|
|
2615
|
-
let response;
|
|
2616
2470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
2471
|
switch (errorCode) {
|
|
2618
2472
|
case "CallRateLimitExceededException":
|
|
@@ -2635,33 +2489,29 @@ const deserializeAws_restJson1GetImageCommandError = async (output, context) =>
|
|
|
2635
2489
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2636
2490
|
default:
|
|
2637
2491
|
const parsedBody = parsedOutput.body;
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
$metadata,
|
|
2492
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2493
|
+
output,
|
|
2494
|
+
parsedBody,
|
|
2495
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2496
|
+
errorCode,
|
|
2644
2497
|
});
|
|
2645
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2646
2498
|
}
|
|
2647
2499
|
};
|
|
2648
2500
|
const deserializeAws_restJson1GetImagePipelineCommand = async (output, context) => {
|
|
2649
2501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2650
2502
|
return deserializeAws_restJson1GetImagePipelineCommandError(output, context);
|
|
2651
2503
|
}
|
|
2652
|
-
const contents = {
|
|
2504
|
+
const contents = map({
|
|
2653
2505
|
$metadata: deserializeMetadata(output),
|
|
2654
|
-
|
|
2655
|
-
requestId: undefined,
|
|
2656
|
-
};
|
|
2506
|
+
});
|
|
2657
2507
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2658
|
-
if (data.imagePipeline
|
|
2508
|
+
if (data.imagePipeline != null) {
|
|
2659
2509
|
contents.imagePipeline = deserializeAws_restJson1ImagePipeline(data.imagePipeline, context);
|
|
2660
2510
|
}
|
|
2661
|
-
if (data.requestId
|
|
2511
|
+
if (data.requestId != null) {
|
|
2662
2512
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2663
2513
|
}
|
|
2664
|
-
return
|
|
2514
|
+
return contents;
|
|
2665
2515
|
};
|
|
2666
2516
|
exports.deserializeAws_restJson1GetImagePipelineCommand = deserializeAws_restJson1GetImagePipelineCommand;
|
|
2667
2517
|
const deserializeAws_restJson1GetImagePipelineCommandError = async (output, context) => {
|
|
@@ -2669,7 +2519,6 @@ const deserializeAws_restJson1GetImagePipelineCommandError = async (output, cont
|
|
|
2669
2519
|
...output,
|
|
2670
2520
|
body: await parseBody(output.body, context),
|
|
2671
2521
|
};
|
|
2672
|
-
let response;
|
|
2673
2522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
2523
|
switch (errorCode) {
|
|
2675
2524
|
case "CallRateLimitExceededException":
|
|
@@ -2692,33 +2541,29 @@ const deserializeAws_restJson1GetImagePipelineCommandError = async (output, cont
|
|
|
2692
2541
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2693
2542
|
default:
|
|
2694
2543
|
const parsedBody = parsedOutput.body;
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
$metadata,
|
|
2544
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2545
|
+
output,
|
|
2546
|
+
parsedBody,
|
|
2547
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2548
|
+
errorCode,
|
|
2701
2549
|
});
|
|
2702
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2703
2550
|
}
|
|
2704
2551
|
};
|
|
2705
2552
|
const deserializeAws_restJson1GetImagePolicyCommand = async (output, context) => {
|
|
2706
2553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2707
2554
|
return deserializeAws_restJson1GetImagePolicyCommandError(output, context);
|
|
2708
2555
|
}
|
|
2709
|
-
const contents = {
|
|
2556
|
+
const contents = map({
|
|
2710
2557
|
$metadata: deserializeMetadata(output),
|
|
2711
|
-
|
|
2712
|
-
requestId: undefined,
|
|
2713
|
-
};
|
|
2558
|
+
});
|
|
2714
2559
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2715
|
-
if (data.policy
|
|
2560
|
+
if (data.policy != null) {
|
|
2716
2561
|
contents.policy = (0, smithy_client_1.expectString)(data.policy);
|
|
2717
2562
|
}
|
|
2718
|
-
if (data.requestId
|
|
2563
|
+
if (data.requestId != null) {
|
|
2719
2564
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2720
2565
|
}
|
|
2721
|
-
return
|
|
2566
|
+
return contents;
|
|
2722
2567
|
};
|
|
2723
2568
|
exports.deserializeAws_restJson1GetImagePolicyCommand = deserializeAws_restJson1GetImagePolicyCommand;
|
|
2724
2569
|
const deserializeAws_restJson1GetImagePolicyCommandError = async (output, context) => {
|
|
@@ -2726,7 +2571,6 @@ const deserializeAws_restJson1GetImagePolicyCommandError = async (output, contex
|
|
|
2726
2571
|
...output,
|
|
2727
2572
|
body: await parseBody(output.body, context),
|
|
2728
2573
|
};
|
|
2729
|
-
let response;
|
|
2730
2574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
2575
|
switch (errorCode) {
|
|
2732
2576
|
case "CallRateLimitExceededException":
|
|
@@ -2749,33 +2593,29 @@ const deserializeAws_restJson1GetImagePolicyCommandError = async (output, contex
|
|
|
2749
2593
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2750
2594
|
default:
|
|
2751
2595
|
const parsedBody = parsedOutput.body;
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
$metadata,
|
|
2596
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2597
|
+
output,
|
|
2598
|
+
parsedBody,
|
|
2599
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2600
|
+
errorCode,
|
|
2758
2601
|
});
|
|
2759
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2760
2602
|
}
|
|
2761
2603
|
};
|
|
2762
2604
|
const deserializeAws_restJson1GetImageRecipeCommand = async (output, context) => {
|
|
2763
2605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2764
2606
|
return deserializeAws_restJson1GetImageRecipeCommandError(output, context);
|
|
2765
2607
|
}
|
|
2766
|
-
const contents = {
|
|
2608
|
+
const contents = map({
|
|
2767
2609
|
$metadata: deserializeMetadata(output),
|
|
2768
|
-
|
|
2769
|
-
requestId: undefined,
|
|
2770
|
-
};
|
|
2610
|
+
});
|
|
2771
2611
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2772
|
-
if (data.imageRecipe
|
|
2612
|
+
if (data.imageRecipe != null) {
|
|
2773
2613
|
contents.imageRecipe = deserializeAws_restJson1ImageRecipe(data.imageRecipe, context);
|
|
2774
2614
|
}
|
|
2775
|
-
if (data.requestId
|
|
2615
|
+
if (data.requestId != null) {
|
|
2776
2616
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2777
2617
|
}
|
|
2778
|
-
return
|
|
2618
|
+
return contents;
|
|
2779
2619
|
};
|
|
2780
2620
|
exports.deserializeAws_restJson1GetImageRecipeCommand = deserializeAws_restJson1GetImageRecipeCommand;
|
|
2781
2621
|
const deserializeAws_restJson1GetImageRecipeCommandError = async (output, context) => {
|
|
@@ -2783,7 +2623,6 @@ const deserializeAws_restJson1GetImageRecipeCommandError = async (output, contex
|
|
|
2783
2623
|
...output,
|
|
2784
2624
|
body: await parseBody(output.body, context),
|
|
2785
2625
|
};
|
|
2786
|
-
let response;
|
|
2787
2626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2627
|
switch (errorCode) {
|
|
2789
2628
|
case "CallRateLimitExceededException":
|
|
@@ -2806,33 +2645,29 @@ const deserializeAws_restJson1GetImageRecipeCommandError = async (output, contex
|
|
|
2806
2645
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2807
2646
|
default:
|
|
2808
2647
|
const parsedBody = parsedOutput.body;
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
$metadata,
|
|
2648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2652
|
+
errorCode,
|
|
2815
2653
|
});
|
|
2816
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2817
2654
|
}
|
|
2818
2655
|
};
|
|
2819
2656
|
const deserializeAws_restJson1GetImageRecipePolicyCommand = async (output, context) => {
|
|
2820
2657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
2658
|
return deserializeAws_restJson1GetImageRecipePolicyCommandError(output, context);
|
|
2822
2659
|
}
|
|
2823
|
-
const contents = {
|
|
2660
|
+
const contents = map({
|
|
2824
2661
|
$metadata: deserializeMetadata(output),
|
|
2825
|
-
|
|
2826
|
-
requestId: undefined,
|
|
2827
|
-
};
|
|
2662
|
+
});
|
|
2828
2663
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2829
|
-
if (data.policy
|
|
2664
|
+
if (data.policy != null) {
|
|
2830
2665
|
contents.policy = (0, smithy_client_1.expectString)(data.policy);
|
|
2831
2666
|
}
|
|
2832
|
-
if (data.requestId
|
|
2667
|
+
if (data.requestId != null) {
|
|
2833
2668
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2834
2669
|
}
|
|
2835
|
-
return
|
|
2670
|
+
return contents;
|
|
2836
2671
|
};
|
|
2837
2672
|
exports.deserializeAws_restJson1GetImageRecipePolicyCommand = deserializeAws_restJson1GetImageRecipePolicyCommand;
|
|
2838
2673
|
const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output, context) => {
|
|
@@ -2840,7 +2675,6 @@ const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output,
|
|
|
2840
2675
|
...output,
|
|
2841
2676
|
body: await parseBody(output.body, context),
|
|
2842
2677
|
};
|
|
2843
|
-
let response;
|
|
2844
2678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
2679
|
switch (errorCode) {
|
|
2846
2680
|
case "CallRateLimitExceededException":
|
|
@@ -2863,33 +2697,29 @@ const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output,
|
|
|
2863
2697
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2864
2698
|
default:
|
|
2865
2699
|
const parsedBody = parsedOutput.body;
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
$metadata,
|
|
2700
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2701
|
+
output,
|
|
2702
|
+
parsedBody,
|
|
2703
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2704
|
+
errorCode,
|
|
2872
2705
|
});
|
|
2873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2874
2706
|
}
|
|
2875
2707
|
};
|
|
2876
2708
|
const deserializeAws_restJson1GetInfrastructureConfigurationCommand = async (output, context) => {
|
|
2877
2709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2878
2710
|
return deserializeAws_restJson1GetInfrastructureConfigurationCommandError(output, context);
|
|
2879
2711
|
}
|
|
2880
|
-
const contents = {
|
|
2712
|
+
const contents = map({
|
|
2881
2713
|
$metadata: deserializeMetadata(output),
|
|
2882
|
-
|
|
2883
|
-
requestId: undefined,
|
|
2884
|
-
};
|
|
2714
|
+
});
|
|
2885
2715
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2886
|
-
if (data.infrastructureConfiguration
|
|
2716
|
+
if (data.infrastructureConfiguration != null) {
|
|
2887
2717
|
contents.infrastructureConfiguration = deserializeAws_restJson1InfrastructureConfiguration(data.infrastructureConfiguration, context);
|
|
2888
2718
|
}
|
|
2889
|
-
if (data.requestId
|
|
2719
|
+
if (data.requestId != null) {
|
|
2890
2720
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2891
2721
|
}
|
|
2892
|
-
return
|
|
2722
|
+
return contents;
|
|
2893
2723
|
};
|
|
2894
2724
|
exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = deserializeAws_restJson1GetInfrastructureConfigurationCommand;
|
|
2895
2725
|
const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async (output, context) => {
|
|
@@ -2897,7 +2727,6 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
|
|
|
2897
2727
|
...output,
|
|
2898
2728
|
body: await parseBody(output.body, context),
|
|
2899
2729
|
};
|
|
2900
|
-
let response;
|
|
2901
2730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
2731
|
switch (errorCode) {
|
|
2903
2732
|
case "CallRateLimitExceededException":
|
|
@@ -2920,37 +2749,32 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
|
|
|
2920
2749
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2921
2750
|
default:
|
|
2922
2751
|
const parsedBody = parsedOutput.body;
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
$metadata,
|
|
2752
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2753
|
+
output,
|
|
2754
|
+
parsedBody,
|
|
2755
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2756
|
+
errorCode,
|
|
2929
2757
|
});
|
|
2930
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2931
2758
|
}
|
|
2932
2759
|
};
|
|
2933
2760
|
const deserializeAws_restJson1ImportComponentCommand = async (output, context) => {
|
|
2934
2761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2935
2762
|
return deserializeAws_restJson1ImportComponentCommandError(output, context);
|
|
2936
2763
|
}
|
|
2937
|
-
const contents = {
|
|
2764
|
+
const contents = map({
|
|
2938
2765
|
$metadata: deserializeMetadata(output),
|
|
2939
|
-
|
|
2940
|
-
componentBuildVersionArn: undefined,
|
|
2941
|
-
requestId: undefined,
|
|
2942
|
-
};
|
|
2766
|
+
});
|
|
2943
2767
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2944
|
-
if (data.clientToken
|
|
2768
|
+
if (data.clientToken != null) {
|
|
2945
2769
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
2946
2770
|
}
|
|
2947
|
-
if (data.componentBuildVersionArn
|
|
2771
|
+
if (data.componentBuildVersionArn != null) {
|
|
2948
2772
|
contents.componentBuildVersionArn = (0, smithy_client_1.expectString)(data.componentBuildVersionArn);
|
|
2949
2773
|
}
|
|
2950
|
-
if (data.requestId
|
|
2774
|
+
if (data.requestId != null) {
|
|
2951
2775
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
2952
2776
|
}
|
|
2953
|
-
return
|
|
2777
|
+
return contents;
|
|
2954
2778
|
};
|
|
2955
2779
|
exports.deserializeAws_restJson1ImportComponentCommand = deserializeAws_restJson1ImportComponentCommand;
|
|
2956
2780
|
const deserializeAws_restJson1ImportComponentCommandError = async (output, context) => {
|
|
@@ -2958,7 +2782,6 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
|
|
|
2958
2782
|
...output,
|
|
2959
2783
|
body: await parseBody(output.body, context),
|
|
2960
2784
|
};
|
|
2961
|
-
let response;
|
|
2962
2785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
2786
|
switch (errorCode) {
|
|
2964
2787
|
case "CallRateLimitExceededException":
|
|
@@ -2993,37 +2816,32 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
|
|
|
2993
2816
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2994
2817
|
default:
|
|
2995
2818
|
const parsedBody = parsedOutput.body;
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
$metadata,
|
|
2819
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2820
|
+
output,
|
|
2821
|
+
parsedBody,
|
|
2822
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2823
|
+
errorCode,
|
|
3002
2824
|
});
|
|
3003
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3004
2825
|
}
|
|
3005
2826
|
};
|
|
3006
2827
|
const deserializeAws_restJson1ImportVmImageCommand = async (output, context) => {
|
|
3007
2828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3008
2829
|
return deserializeAws_restJson1ImportVmImageCommandError(output, context);
|
|
3009
2830
|
}
|
|
3010
|
-
const contents = {
|
|
2831
|
+
const contents = map({
|
|
3011
2832
|
$metadata: deserializeMetadata(output),
|
|
3012
|
-
|
|
3013
|
-
imageArn: undefined,
|
|
3014
|
-
requestId: undefined,
|
|
3015
|
-
};
|
|
2833
|
+
});
|
|
3016
2834
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3017
|
-
if (data.clientToken
|
|
2835
|
+
if (data.clientToken != null) {
|
|
3018
2836
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
3019
2837
|
}
|
|
3020
|
-
if (data.imageArn
|
|
2838
|
+
if (data.imageArn != null) {
|
|
3021
2839
|
contents.imageArn = (0, smithy_client_1.expectString)(data.imageArn);
|
|
3022
2840
|
}
|
|
3023
|
-
if (data.requestId
|
|
2841
|
+
if (data.requestId != null) {
|
|
3024
2842
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3025
2843
|
}
|
|
3026
|
-
return
|
|
2844
|
+
return contents;
|
|
3027
2845
|
};
|
|
3028
2846
|
exports.deserializeAws_restJson1ImportVmImageCommand = deserializeAws_restJson1ImportVmImageCommand;
|
|
3029
2847
|
const deserializeAws_restJson1ImportVmImageCommandError = async (output, context) => {
|
|
@@ -3031,7 +2849,6 @@ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context
|
|
|
3031
2849
|
...output,
|
|
3032
2850
|
body: await parseBody(output.body, context),
|
|
3033
2851
|
};
|
|
3034
|
-
let response;
|
|
3035
2852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3036
2853
|
switch (errorCode) {
|
|
3037
2854
|
case "ClientException":
|
|
@@ -3045,37 +2862,32 @@ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context
|
|
|
3045
2862
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3046
2863
|
default:
|
|
3047
2864
|
const parsedBody = parsedOutput.body;
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
$metadata,
|
|
2865
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2866
|
+
output,
|
|
2867
|
+
parsedBody,
|
|
2868
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2869
|
+
errorCode,
|
|
3054
2870
|
});
|
|
3055
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3056
2871
|
}
|
|
3057
2872
|
};
|
|
3058
2873
|
const deserializeAws_restJson1ListComponentBuildVersionsCommand = async (output, context) => {
|
|
3059
2874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3060
2875
|
return deserializeAws_restJson1ListComponentBuildVersionsCommandError(output, context);
|
|
3061
2876
|
}
|
|
3062
|
-
const contents = {
|
|
2877
|
+
const contents = map({
|
|
3063
2878
|
$metadata: deserializeMetadata(output),
|
|
3064
|
-
|
|
3065
|
-
nextToken: undefined,
|
|
3066
|
-
requestId: undefined,
|
|
3067
|
-
};
|
|
2879
|
+
});
|
|
3068
2880
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3069
|
-
if (data.componentSummaryList
|
|
2881
|
+
if (data.componentSummaryList != null) {
|
|
3070
2882
|
contents.componentSummaryList = deserializeAws_restJson1ComponentSummaryList(data.componentSummaryList, context);
|
|
3071
2883
|
}
|
|
3072
|
-
if (data.nextToken
|
|
2884
|
+
if (data.nextToken != null) {
|
|
3073
2885
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3074
2886
|
}
|
|
3075
|
-
if (data.requestId
|
|
2887
|
+
if (data.requestId != null) {
|
|
3076
2888
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3077
2889
|
}
|
|
3078
|
-
return
|
|
2890
|
+
return contents;
|
|
3079
2891
|
};
|
|
3080
2892
|
exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = deserializeAws_restJson1ListComponentBuildVersionsCommand;
|
|
3081
2893
|
const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (output, context) => {
|
|
@@ -3083,7 +2895,6 @@ const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (ou
|
|
|
3083
2895
|
...output,
|
|
3084
2896
|
body: await parseBody(output.body, context),
|
|
3085
2897
|
};
|
|
3086
|
-
let response;
|
|
3087
2898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
2899
|
switch (errorCode) {
|
|
3089
2900
|
case "CallRateLimitExceededException":
|
|
@@ -3109,37 +2920,32 @@ const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (ou
|
|
|
3109
2920
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3110
2921
|
default:
|
|
3111
2922
|
const parsedBody = parsedOutput.body;
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
$metadata,
|
|
2923
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2924
|
+
output,
|
|
2925
|
+
parsedBody,
|
|
2926
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2927
|
+
errorCode,
|
|
3118
2928
|
});
|
|
3119
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3120
2929
|
}
|
|
3121
2930
|
};
|
|
3122
2931
|
const deserializeAws_restJson1ListComponentsCommand = async (output, context) => {
|
|
3123
2932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3124
2933
|
return deserializeAws_restJson1ListComponentsCommandError(output, context);
|
|
3125
2934
|
}
|
|
3126
|
-
const contents = {
|
|
2935
|
+
const contents = map({
|
|
3127
2936
|
$metadata: deserializeMetadata(output),
|
|
3128
|
-
|
|
3129
|
-
nextToken: undefined,
|
|
3130
|
-
requestId: undefined,
|
|
3131
|
-
};
|
|
2937
|
+
});
|
|
3132
2938
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3133
|
-
if (data.componentVersionList
|
|
2939
|
+
if (data.componentVersionList != null) {
|
|
3134
2940
|
contents.componentVersionList = deserializeAws_restJson1ComponentVersionList(data.componentVersionList, context);
|
|
3135
2941
|
}
|
|
3136
|
-
if (data.nextToken
|
|
2942
|
+
if (data.nextToken != null) {
|
|
3137
2943
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3138
2944
|
}
|
|
3139
|
-
if (data.requestId
|
|
2945
|
+
if (data.requestId != null) {
|
|
3140
2946
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3141
2947
|
}
|
|
3142
|
-
return
|
|
2948
|
+
return contents;
|
|
3143
2949
|
};
|
|
3144
2950
|
exports.deserializeAws_restJson1ListComponentsCommand = deserializeAws_restJson1ListComponentsCommand;
|
|
3145
2951
|
const deserializeAws_restJson1ListComponentsCommandError = async (output, context) => {
|
|
@@ -3147,7 +2953,6 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
3147
2953
|
...output,
|
|
3148
2954
|
body: await parseBody(output.body, context),
|
|
3149
2955
|
};
|
|
3150
|
-
let response;
|
|
3151
2956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3152
2957
|
switch (errorCode) {
|
|
3153
2958
|
case "CallRateLimitExceededException":
|
|
@@ -3173,37 +2978,32 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
3173
2978
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3174
2979
|
default:
|
|
3175
2980
|
const parsedBody = parsedOutput.body;
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
$metadata,
|
|
2981
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2982
|
+
output,
|
|
2983
|
+
parsedBody,
|
|
2984
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
2985
|
+
errorCode,
|
|
3182
2986
|
});
|
|
3183
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3184
2987
|
}
|
|
3185
2988
|
};
|
|
3186
2989
|
const deserializeAws_restJson1ListContainerRecipesCommand = async (output, context) => {
|
|
3187
2990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3188
2991
|
return deserializeAws_restJson1ListContainerRecipesCommandError(output, context);
|
|
3189
2992
|
}
|
|
3190
|
-
const contents = {
|
|
2993
|
+
const contents = map({
|
|
3191
2994
|
$metadata: deserializeMetadata(output),
|
|
3192
|
-
|
|
3193
|
-
nextToken: undefined,
|
|
3194
|
-
requestId: undefined,
|
|
3195
|
-
};
|
|
2995
|
+
});
|
|
3196
2996
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3197
|
-
if (data.containerRecipeSummaryList
|
|
2997
|
+
if (data.containerRecipeSummaryList != null) {
|
|
3198
2998
|
contents.containerRecipeSummaryList = deserializeAws_restJson1ContainerRecipeSummaryList(data.containerRecipeSummaryList, context);
|
|
3199
2999
|
}
|
|
3200
|
-
if (data.nextToken
|
|
3000
|
+
if (data.nextToken != null) {
|
|
3201
3001
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3202
3002
|
}
|
|
3203
|
-
if (data.requestId
|
|
3003
|
+
if (data.requestId != null) {
|
|
3204
3004
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3205
3005
|
}
|
|
3206
|
-
return
|
|
3006
|
+
return contents;
|
|
3207
3007
|
};
|
|
3208
3008
|
exports.deserializeAws_restJson1ListContainerRecipesCommand = deserializeAws_restJson1ListContainerRecipesCommand;
|
|
3209
3009
|
const deserializeAws_restJson1ListContainerRecipesCommandError = async (output, context) => {
|
|
@@ -3211,7 +3011,6 @@ const deserializeAws_restJson1ListContainerRecipesCommandError = async (output,
|
|
|
3211
3011
|
...output,
|
|
3212
3012
|
body: await parseBody(output.body, context),
|
|
3213
3013
|
};
|
|
3214
|
-
let response;
|
|
3215
3014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
3015
|
switch (errorCode) {
|
|
3217
3016
|
case "CallRateLimitExceededException":
|
|
@@ -3237,37 +3036,32 @@ const deserializeAws_restJson1ListContainerRecipesCommandError = async (output,
|
|
|
3237
3036
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3238
3037
|
default:
|
|
3239
3038
|
const parsedBody = parsedOutput.body;
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
$metadata,
|
|
3039
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3040
|
+
output,
|
|
3041
|
+
parsedBody,
|
|
3042
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3043
|
+
errorCode,
|
|
3246
3044
|
});
|
|
3247
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3248
3045
|
}
|
|
3249
3046
|
};
|
|
3250
3047
|
const deserializeAws_restJson1ListDistributionConfigurationsCommand = async (output, context) => {
|
|
3251
3048
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3252
3049
|
return deserializeAws_restJson1ListDistributionConfigurationsCommandError(output, context);
|
|
3253
3050
|
}
|
|
3254
|
-
const contents = {
|
|
3051
|
+
const contents = map({
|
|
3255
3052
|
$metadata: deserializeMetadata(output),
|
|
3256
|
-
|
|
3257
|
-
nextToken: undefined,
|
|
3258
|
-
requestId: undefined,
|
|
3259
|
-
};
|
|
3053
|
+
});
|
|
3260
3054
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3261
|
-
if (data.distributionConfigurationSummaryList
|
|
3055
|
+
if (data.distributionConfigurationSummaryList != null) {
|
|
3262
3056
|
contents.distributionConfigurationSummaryList = deserializeAws_restJson1DistributionConfigurationSummaryList(data.distributionConfigurationSummaryList, context);
|
|
3263
3057
|
}
|
|
3264
|
-
if (data.nextToken
|
|
3058
|
+
if (data.nextToken != null) {
|
|
3265
3059
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3266
3060
|
}
|
|
3267
|
-
if (data.requestId
|
|
3061
|
+
if (data.requestId != null) {
|
|
3268
3062
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3269
3063
|
}
|
|
3270
|
-
return
|
|
3064
|
+
return contents;
|
|
3271
3065
|
};
|
|
3272
3066
|
exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = deserializeAws_restJson1ListDistributionConfigurationsCommand;
|
|
3273
3067
|
const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async (output, context) => {
|
|
@@ -3275,7 +3069,6 @@ const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async
|
|
|
3275
3069
|
...output,
|
|
3276
3070
|
body: await parseBody(output.body, context),
|
|
3277
3071
|
};
|
|
3278
|
-
let response;
|
|
3279
3072
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3280
3073
|
switch (errorCode) {
|
|
3281
3074
|
case "CallRateLimitExceededException":
|
|
@@ -3301,37 +3094,32 @@ const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async
|
|
|
3301
3094
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3302
3095
|
default:
|
|
3303
3096
|
const parsedBody = parsedOutput.body;
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
$metadata,
|
|
3097
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3098
|
+
output,
|
|
3099
|
+
parsedBody,
|
|
3100
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3101
|
+
errorCode,
|
|
3310
3102
|
});
|
|
3311
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3312
3103
|
}
|
|
3313
3104
|
};
|
|
3314
3105
|
const deserializeAws_restJson1ListImageBuildVersionsCommand = async (output, context) => {
|
|
3315
3106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3316
3107
|
return deserializeAws_restJson1ListImageBuildVersionsCommandError(output, context);
|
|
3317
3108
|
}
|
|
3318
|
-
const contents = {
|
|
3109
|
+
const contents = map({
|
|
3319
3110
|
$metadata: deserializeMetadata(output),
|
|
3320
|
-
|
|
3321
|
-
nextToken: undefined,
|
|
3322
|
-
requestId: undefined,
|
|
3323
|
-
};
|
|
3111
|
+
});
|
|
3324
3112
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3325
|
-
if (data.imageSummaryList
|
|
3113
|
+
if (data.imageSummaryList != null) {
|
|
3326
3114
|
contents.imageSummaryList = deserializeAws_restJson1ImageSummaryList(data.imageSummaryList, context);
|
|
3327
3115
|
}
|
|
3328
|
-
if (data.nextToken
|
|
3116
|
+
if (data.nextToken != null) {
|
|
3329
3117
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3330
3118
|
}
|
|
3331
|
-
if (data.requestId
|
|
3119
|
+
if (data.requestId != null) {
|
|
3332
3120
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3333
3121
|
}
|
|
3334
|
-
return
|
|
3122
|
+
return contents;
|
|
3335
3123
|
};
|
|
3336
3124
|
exports.deserializeAws_restJson1ListImageBuildVersionsCommand = deserializeAws_restJson1ListImageBuildVersionsCommand;
|
|
3337
3125
|
const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output, context) => {
|
|
@@ -3339,7 +3127,6 @@ const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output
|
|
|
3339
3127
|
...output,
|
|
3340
3128
|
body: await parseBody(output.body, context),
|
|
3341
3129
|
};
|
|
3342
|
-
let response;
|
|
3343
3130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3344
3131
|
switch (errorCode) {
|
|
3345
3132
|
case "CallRateLimitExceededException":
|
|
@@ -3365,37 +3152,32 @@ const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output
|
|
|
3365
3152
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3366
3153
|
default:
|
|
3367
3154
|
const parsedBody = parsedOutput.body;
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
$metadata,
|
|
3155
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3156
|
+
output,
|
|
3157
|
+
parsedBody,
|
|
3158
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3159
|
+
errorCode,
|
|
3374
3160
|
});
|
|
3375
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3376
3161
|
}
|
|
3377
3162
|
};
|
|
3378
3163
|
const deserializeAws_restJson1ListImagePackagesCommand = async (output, context) => {
|
|
3379
3164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3380
3165
|
return deserializeAws_restJson1ListImagePackagesCommandError(output, context);
|
|
3381
3166
|
}
|
|
3382
|
-
const contents = {
|
|
3167
|
+
const contents = map({
|
|
3383
3168
|
$metadata: deserializeMetadata(output),
|
|
3384
|
-
|
|
3385
|
-
nextToken: undefined,
|
|
3386
|
-
requestId: undefined,
|
|
3387
|
-
};
|
|
3169
|
+
});
|
|
3388
3170
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3389
|
-
if (data.imagePackageList
|
|
3171
|
+
if (data.imagePackageList != null) {
|
|
3390
3172
|
contents.imagePackageList = deserializeAws_restJson1ImagePackageList(data.imagePackageList, context);
|
|
3391
3173
|
}
|
|
3392
|
-
if (data.nextToken
|
|
3174
|
+
if (data.nextToken != null) {
|
|
3393
3175
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3394
3176
|
}
|
|
3395
|
-
if (data.requestId
|
|
3177
|
+
if (data.requestId != null) {
|
|
3396
3178
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3397
3179
|
}
|
|
3398
|
-
return
|
|
3180
|
+
return contents;
|
|
3399
3181
|
};
|
|
3400
3182
|
exports.deserializeAws_restJson1ListImagePackagesCommand = deserializeAws_restJson1ListImagePackagesCommand;
|
|
3401
3183
|
const deserializeAws_restJson1ListImagePackagesCommandError = async (output, context) => {
|
|
@@ -3403,7 +3185,6 @@ const deserializeAws_restJson1ListImagePackagesCommandError = async (output, con
|
|
|
3403
3185
|
...output,
|
|
3404
3186
|
body: await parseBody(output.body, context),
|
|
3405
3187
|
};
|
|
3406
|
-
let response;
|
|
3407
3188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
3189
|
switch (errorCode) {
|
|
3409
3190
|
case "CallRateLimitExceededException":
|
|
@@ -3432,37 +3213,32 @@ const deserializeAws_restJson1ListImagePackagesCommandError = async (output, con
|
|
|
3432
3213
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3433
3214
|
default:
|
|
3434
3215
|
const parsedBody = parsedOutput.body;
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
$metadata,
|
|
3216
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3217
|
+
output,
|
|
3218
|
+
parsedBody,
|
|
3219
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3220
|
+
errorCode,
|
|
3441
3221
|
});
|
|
3442
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3443
3222
|
}
|
|
3444
3223
|
};
|
|
3445
3224
|
const deserializeAws_restJson1ListImagePipelineImagesCommand = async (output, context) => {
|
|
3446
3225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3447
3226
|
return deserializeAws_restJson1ListImagePipelineImagesCommandError(output, context);
|
|
3448
3227
|
}
|
|
3449
|
-
const contents = {
|
|
3228
|
+
const contents = map({
|
|
3450
3229
|
$metadata: deserializeMetadata(output),
|
|
3451
|
-
|
|
3452
|
-
nextToken: undefined,
|
|
3453
|
-
requestId: undefined,
|
|
3454
|
-
};
|
|
3230
|
+
});
|
|
3455
3231
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3456
|
-
if (data.imageSummaryList
|
|
3232
|
+
if (data.imageSummaryList != null) {
|
|
3457
3233
|
contents.imageSummaryList = deserializeAws_restJson1ImageSummaryList(data.imageSummaryList, context);
|
|
3458
3234
|
}
|
|
3459
|
-
if (data.nextToken
|
|
3235
|
+
if (data.nextToken != null) {
|
|
3460
3236
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3461
3237
|
}
|
|
3462
|
-
if (data.requestId
|
|
3238
|
+
if (data.requestId != null) {
|
|
3463
3239
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3464
3240
|
}
|
|
3465
|
-
return
|
|
3241
|
+
return contents;
|
|
3466
3242
|
};
|
|
3467
3243
|
exports.deserializeAws_restJson1ListImagePipelineImagesCommand = deserializeAws_restJson1ListImagePipelineImagesCommand;
|
|
3468
3244
|
const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (output, context) => {
|
|
@@ -3470,7 +3246,6 @@ const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (outpu
|
|
|
3470
3246
|
...output,
|
|
3471
3247
|
body: await parseBody(output.body, context),
|
|
3472
3248
|
};
|
|
3473
|
-
let response;
|
|
3474
3249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3475
3250
|
switch (errorCode) {
|
|
3476
3251
|
case "CallRateLimitExceededException":
|
|
@@ -3499,37 +3274,32 @@ const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (outpu
|
|
|
3499
3274
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3500
3275
|
default:
|
|
3501
3276
|
const parsedBody = parsedOutput.body;
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
$metadata,
|
|
3277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3278
|
+
output,
|
|
3279
|
+
parsedBody,
|
|
3280
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3281
|
+
errorCode,
|
|
3508
3282
|
});
|
|
3509
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3510
3283
|
}
|
|
3511
3284
|
};
|
|
3512
3285
|
const deserializeAws_restJson1ListImagePipelinesCommand = async (output, context) => {
|
|
3513
3286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3514
3287
|
return deserializeAws_restJson1ListImagePipelinesCommandError(output, context);
|
|
3515
3288
|
}
|
|
3516
|
-
const contents = {
|
|
3289
|
+
const contents = map({
|
|
3517
3290
|
$metadata: deserializeMetadata(output),
|
|
3518
|
-
|
|
3519
|
-
nextToken: undefined,
|
|
3520
|
-
requestId: undefined,
|
|
3521
|
-
};
|
|
3291
|
+
});
|
|
3522
3292
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3523
|
-
if (data.imagePipelineList
|
|
3293
|
+
if (data.imagePipelineList != null) {
|
|
3524
3294
|
contents.imagePipelineList = deserializeAws_restJson1ImagePipelineList(data.imagePipelineList, context);
|
|
3525
3295
|
}
|
|
3526
|
-
if (data.nextToken
|
|
3296
|
+
if (data.nextToken != null) {
|
|
3527
3297
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3528
3298
|
}
|
|
3529
|
-
if (data.requestId
|
|
3299
|
+
if (data.requestId != null) {
|
|
3530
3300
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3531
3301
|
}
|
|
3532
|
-
return
|
|
3302
|
+
return contents;
|
|
3533
3303
|
};
|
|
3534
3304
|
exports.deserializeAws_restJson1ListImagePipelinesCommand = deserializeAws_restJson1ListImagePipelinesCommand;
|
|
3535
3305
|
const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, context) => {
|
|
@@ -3537,7 +3307,6 @@ const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, co
|
|
|
3537
3307
|
...output,
|
|
3538
3308
|
body: await parseBody(output.body, context),
|
|
3539
3309
|
};
|
|
3540
|
-
let response;
|
|
3541
3310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
3311
|
switch (errorCode) {
|
|
3543
3312
|
case "CallRateLimitExceededException":
|
|
@@ -3563,37 +3332,32 @@ const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, co
|
|
|
3563
3332
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3564
3333
|
default:
|
|
3565
3334
|
const parsedBody = parsedOutput.body;
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
$metadata,
|
|
3335
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3336
|
+
output,
|
|
3337
|
+
parsedBody,
|
|
3338
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3339
|
+
errorCode,
|
|
3572
3340
|
});
|
|
3573
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3574
3341
|
}
|
|
3575
3342
|
};
|
|
3576
3343
|
const deserializeAws_restJson1ListImageRecipesCommand = async (output, context) => {
|
|
3577
3344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3578
3345
|
return deserializeAws_restJson1ListImageRecipesCommandError(output, context);
|
|
3579
3346
|
}
|
|
3580
|
-
const contents = {
|
|
3347
|
+
const contents = map({
|
|
3581
3348
|
$metadata: deserializeMetadata(output),
|
|
3582
|
-
|
|
3583
|
-
nextToken: undefined,
|
|
3584
|
-
requestId: undefined,
|
|
3585
|
-
};
|
|
3349
|
+
});
|
|
3586
3350
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3587
|
-
if (data.imageRecipeSummaryList
|
|
3351
|
+
if (data.imageRecipeSummaryList != null) {
|
|
3588
3352
|
contents.imageRecipeSummaryList = deserializeAws_restJson1ImageRecipeSummaryList(data.imageRecipeSummaryList, context);
|
|
3589
3353
|
}
|
|
3590
|
-
if (data.nextToken
|
|
3354
|
+
if (data.nextToken != null) {
|
|
3591
3355
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3592
3356
|
}
|
|
3593
|
-
if (data.requestId
|
|
3357
|
+
if (data.requestId != null) {
|
|
3594
3358
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3595
3359
|
}
|
|
3596
|
-
return
|
|
3360
|
+
return contents;
|
|
3597
3361
|
};
|
|
3598
3362
|
exports.deserializeAws_restJson1ListImageRecipesCommand = deserializeAws_restJson1ListImageRecipesCommand;
|
|
3599
3363
|
const deserializeAws_restJson1ListImageRecipesCommandError = async (output, context) => {
|
|
@@ -3601,7 +3365,6 @@ const deserializeAws_restJson1ListImageRecipesCommandError = async (output, cont
|
|
|
3601
3365
|
...output,
|
|
3602
3366
|
body: await parseBody(output.body, context),
|
|
3603
3367
|
};
|
|
3604
|
-
let response;
|
|
3605
3368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3606
3369
|
switch (errorCode) {
|
|
3607
3370
|
case "CallRateLimitExceededException":
|
|
@@ -3627,37 +3390,32 @@ const deserializeAws_restJson1ListImageRecipesCommandError = async (output, cont
|
|
|
3627
3390
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3628
3391
|
default:
|
|
3629
3392
|
const parsedBody = parsedOutput.body;
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
$metadata,
|
|
3393
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3394
|
+
output,
|
|
3395
|
+
parsedBody,
|
|
3396
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3397
|
+
errorCode,
|
|
3636
3398
|
});
|
|
3637
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3638
3399
|
}
|
|
3639
3400
|
};
|
|
3640
3401
|
const deserializeAws_restJson1ListImagesCommand = async (output, context) => {
|
|
3641
3402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3642
3403
|
return deserializeAws_restJson1ListImagesCommandError(output, context);
|
|
3643
3404
|
}
|
|
3644
|
-
const contents = {
|
|
3405
|
+
const contents = map({
|
|
3645
3406
|
$metadata: deserializeMetadata(output),
|
|
3646
|
-
|
|
3647
|
-
nextToken: undefined,
|
|
3648
|
-
requestId: undefined,
|
|
3649
|
-
};
|
|
3407
|
+
});
|
|
3650
3408
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3651
|
-
if (data.imageVersionList
|
|
3409
|
+
if (data.imageVersionList != null) {
|
|
3652
3410
|
contents.imageVersionList = deserializeAws_restJson1ImageVersionList(data.imageVersionList, context);
|
|
3653
3411
|
}
|
|
3654
|
-
if (data.nextToken
|
|
3412
|
+
if (data.nextToken != null) {
|
|
3655
3413
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3656
3414
|
}
|
|
3657
|
-
if (data.requestId
|
|
3415
|
+
if (data.requestId != null) {
|
|
3658
3416
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3659
3417
|
}
|
|
3660
|
-
return
|
|
3418
|
+
return contents;
|
|
3661
3419
|
};
|
|
3662
3420
|
exports.deserializeAws_restJson1ListImagesCommand = deserializeAws_restJson1ListImagesCommand;
|
|
3663
3421
|
const deserializeAws_restJson1ListImagesCommandError = async (output, context) => {
|
|
@@ -3665,7 +3423,6 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
|
|
|
3665
3423
|
...output,
|
|
3666
3424
|
body: await parseBody(output.body, context),
|
|
3667
3425
|
};
|
|
3668
|
-
let response;
|
|
3669
3426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3670
3427
|
switch (errorCode) {
|
|
3671
3428
|
case "CallRateLimitExceededException":
|
|
@@ -3691,38 +3448,32 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
|
|
|
3691
3448
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3692
3449
|
default:
|
|
3693
3450
|
const parsedBody = parsedOutput.body;
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
$metadata,
|
|
3451
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3452
|
+
output,
|
|
3453
|
+
parsedBody,
|
|
3454
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3455
|
+
errorCode,
|
|
3700
3456
|
});
|
|
3701
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3702
3457
|
}
|
|
3703
3458
|
};
|
|
3704
3459
|
const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (output, context) => {
|
|
3705
3460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3706
3461
|
return deserializeAws_restJson1ListInfrastructureConfigurationsCommandError(output, context);
|
|
3707
3462
|
}
|
|
3708
|
-
const contents = {
|
|
3463
|
+
const contents = map({
|
|
3709
3464
|
$metadata: deserializeMetadata(output),
|
|
3710
|
-
|
|
3711
|
-
nextToken: undefined,
|
|
3712
|
-
requestId: undefined,
|
|
3713
|
-
};
|
|
3465
|
+
});
|
|
3714
3466
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3715
|
-
if (data.infrastructureConfigurationSummaryList
|
|
3716
|
-
data.infrastructureConfigurationSummaryList !== null) {
|
|
3467
|
+
if (data.infrastructureConfigurationSummaryList != null) {
|
|
3717
3468
|
contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
|
|
3718
3469
|
}
|
|
3719
|
-
if (data.nextToken
|
|
3470
|
+
if (data.nextToken != null) {
|
|
3720
3471
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3721
3472
|
}
|
|
3722
|
-
if (data.requestId
|
|
3473
|
+
if (data.requestId != null) {
|
|
3723
3474
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3724
3475
|
}
|
|
3725
|
-
return
|
|
3476
|
+
return contents;
|
|
3726
3477
|
};
|
|
3727
3478
|
exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = deserializeAws_restJson1ListInfrastructureConfigurationsCommand;
|
|
3728
3479
|
const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = async (output, context) => {
|
|
@@ -3730,7 +3481,6 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
|
|
|
3730
3481
|
...output,
|
|
3731
3482
|
body: await parseBody(output.body, context),
|
|
3732
3483
|
};
|
|
3733
|
-
let response;
|
|
3734
3484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3735
3485
|
switch (errorCode) {
|
|
3736
3486
|
case "CallRateLimitExceededException":
|
|
@@ -3756,29 +3506,26 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
|
|
|
3756
3506
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3757
3507
|
default:
|
|
3758
3508
|
const parsedBody = parsedOutput.body;
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
$metadata,
|
|
3509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3510
|
+
output,
|
|
3511
|
+
parsedBody,
|
|
3512
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3513
|
+
errorCode,
|
|
3765
3514
|
});
|
|
3766
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3767
3515
|
}
|
|
3768
3516
|
};
|
|
3769
3517
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
3770
3518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3771
3519
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
3772
3520
|
}
|
|
3773
|
-
const contents = {
|
|
3521
|
+
const contents = map({
|
|
3774
3522
|
$metadata: deserializeMetadata(output),
|
|
3775
|
-
|
|
3776
|
-
};
|
|
3523
|
+
});
|
|
3777
3524
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3778
|
-
if (data.tags
|
|
3525
|
+
if (data.tags != null) {
|
|
3779
3526
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3780
3527
|
}
|
|
3781
|
-
return
|
|
3528
|
+
return contents;
|
|
3782
3529
|
};
|
|
3783
3530
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
3784
3531
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -3786,7 +3533,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3786
3533
|
...output,
|
|
3787
3534
|
body: await parseBody(output.body, context),
|
|
3788
3535
|
};
|
|
3789
|
-
let response;
|
|
3790
3536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3791
3537
|
switch (errorCode) {
|
|
3792
3538
|
case "InvalidParameterException":
|
|
@@ -3800,33 +3546,29 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3800
3546
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
3801
3547
|
default:
|
|
3802
3548
|
const parsedBody = parsedOutput.body;
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
$metadata,
|
|
3549
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3550
|
+
output,
|
|
3551
|
+
parsedBody,
|
|
3552
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3553
|
+
errorCode,
|
|
3809
3554
|
});
|
|
3810
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3811
3555
|
}
|
|
3812
3556
|
};
|
|
3813
3557
|
const deserializeAws_restJson1PutComponentPolicyCommand = async (output, context) => {
|
|
3814
3558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3815
3559
|
return deserializeAws_restJson1PutComponentPolicyCommandError(output, context);
|
|
3816
3560
|
}
|
|
3817
|
-
const contents = {
|
|
3561
|
+
const contents = map({
|
|
3818
3562
|
$metadata: deserializeMetadata(output),
|
|
3819
|
-
|
|
3820
|
-
requestId: undefined,
|
|
3821
|
-
};
|
|
3563
|
+
});
|
|
3822
3564
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3823
|
-
if (data.componentArn
|
|
3565
|
+
if (data.componentArn != null) {
|
|
3824
3566
|
contents.componentArn = (0, smithy_client_1.expectString)(data.componentArn);
|
|
3825
3567
|
}
|
|
3826
|
-
if (data.requestId
|
|
3568
|
+
if (data.requestId != null) {
|
|
3827
3569
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3828
3570
|
}
|
|
3829
|
-
return
|
|
3571
|
+
return contents;
|
|
3830
3572
|
};
|
|
3831
3573
|
exports.deserializeAws_restJson1PutComponentPolicyCommand = deserializeAws_restJson1PutComponentPolicyCommand;
|
|
3832
3574
|
const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, context) => {
|
|
@@ -3834,7 +3576,6 @@ const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, co
|
|
|
3834
3576
|
...output,
|
|
3835
3577
|
body: await parseBody(output.body, context),
|
|
3836
3578
|
};
|
|
3837
|
-
let response;
|
|
3838
3579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3839
3580
|
switch (errorCode) {
|
|
3840
3581
|
case "CallRateLimitExceededException":
|
|
@@ -3863,33 +3604,29 @@ const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, co
|
|
|
3863
3604
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3864
3605
|
default:
|
|
3865
3606
|
const parsedBody = parsedOutput.body;
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
$metadata,
|
|
3607
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3608
|
+
output,
|
|
3609
|
+
parsedBody,
|
|
3610
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3611
|
+
errorCode,
|
|
3872
3612
|
});
|
|
3873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3874
3613
|
}
|
|
3875
3614
|
};
|
|
3876
3615
|
const deserializeAws_restJson1PutContainerRecipePolicyCommand = async (output, context) => {
|
|
3877
3616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3878
3617
|
return deserializeAws_restJson1PutContainerRecipePolicyCommandError(output, context);
|
|
3879
3618
|
}
|
|
3880
|
-
const contents = {
|
|
3619
|
+
const contents = map({
|
|
3881
3620
|
$metadata: deserializeMetadata(output),
|
|
3882
|
-
|
|
3883
|
-
requestId: undefined,
|
|
3884
|
-
};
|
|
3621
|
+
});
|
|
3885
3622
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3886
|
-
if (data.containerRecipeArn
|
|
3623
|
+
if (data.containerRecipeArn != null) {
|
|
3887
3624
|
contents.containerRecipeArn = (0, smithy_client_1.expectString)(data.containerRecipeArn);
|
|
3888
3625
|
}
|
|
3889
|
-
if (data.requestId
|
|
3626
|
+
if (data.requestId != null) {
|
|
3890
3627
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3891
3628
|
}
|
|
3892
|
-
return
|
|
3629
|
+
return contents;
|
|
3893
3630
|
};
|
|
3894
3631
|
exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = deserializeAws_restJson1PutContainerRecipePolicyCommand;
|
|
3895
3632
|
const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (output, context) => {
|
|
@@ -3897,7 +3634,6 @@ const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (outp
|
|
|
3897
3634
|
...output,
|
|
3898
3635
|
body: await parseBody(output.body, context),
|
|
3899
3636
|
};
|
|
3900
|
-
let response;
|
|
3901
3637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3902
3638
|
switch (errorCode) {
|
|
3903
3639
|
case "CallRateLimitExceededException":
|
|
@@ -3926,33 +3662,29 @@ const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (outp
|
|
|
3926
3662
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3927
3663
|
default:
|
|
3928
3664
|
const parsedBody = parsedOutput.body;
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
$metadata,
|
|
3665
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3666
|
+
output,
|
|
3667
|
+
parsedBody,
|
|
3668
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3669
|
+
errorCode,
|
|
3935
3670
|
});
|
|
3936
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3937
3671
|
}
|
|
3938
3672
|
};
|
|
3939
3673
|
const deserializeAws_restJson1PutImagePolicyCommand = async (output, context) => {
|
|
3940
3674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3941
3675
|
return deserializeAws_restJson1PutImagePolicyCommandError(output, context);
|
|
3942
3676
|
}
|
|
3943
|
-
const contents = {
|
|
3677
|
+
const contents = map({
|
|
3944
3678
|
$metadata: deserializeMetadata(output),
|
|
3945
|
-
|
|
3946
|
-
requestId: undefined,
|
|
3947
|
-
};
|
|
3679
|
+
});
|
|
3948
3680
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3949
|
-
if (data.imageArn
|
|
3681
|
+
if (data.imageArn != null) {
|
|
3950
3682
|
contents.imageArn = (0, smithy_client_1.expectString)(data.imageArn);
|
|
3951
3683
|
}
|
|
3952
|
-
if (data.requestId
|
|
3684
|
+
if (data.requestId != null) {
|
|
3953
3685
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
3954
3686
|
}
|
|
3955
|
-
return
|
|
3687
|
+
return contents;
|
|
3956
3688
|
};
|
|
3957
3689
|
exports.deserializeAws_restJson1PutImagePolicyCommand = deserializeAws_restJson1PutImagePolicyCommand;
|
|
3958
3690
|
const deserializeAws_restJson1PutImagePolicyCommandError = async (output, context) => {
|
|
@@ -3960,7 +3692,6 @@ const deserializeAws_restJson1PutImagePolicyCommandError = async (output, contex
|
|
|
3960
3692
|
...output,
|
|
3961
3693
|
body: await parseBody(output.body, context),
|
|
3962
3694
|
};
|
|
3963
|
-
let response;
|
|
3964
3695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
3696
|
switch (errorCode) {
|
|
3966
3697
|
case "CallRateLimitExceededException":
|
|
@@ -3989,33 +3720,29 @@ const deserializeAws_restJson1PutImagePolicyCommandError = async (output, contex
|
|
|
3989
3720
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3990
3721
|
default:
|
|
3991
3722
|
const parsedBody = parsedOutput.body;
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
$metadata,
|
|
3723
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3724
|
+
output,
|
|
3725
|
+
parsedBody,
|
|
3726
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3727
|
+
errorCode,
|
|
3998
3728
|
});
|
|
3999
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4000
3729
|
}
|
|
4001
3730
|
};
|
|
4002
3731
|
const deserializeAws_restJson1PutImageRecipePolicyCommand = async (output, context) => {
|
|
4003
3732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4004
3733
|
return deserializeAws_restJson1PutImageRecipePolicyCommandError(output, context);
|
|
4005
3734
|
}
|
|
4006
|
-
const contents = {
|
|
3735
|
+
const contents = map({
|
|
4007
3736
|
$metadata: deserializeMetadata(output),
|
|
4008
|
-
|
|
4009
|
-
requestId: undefined,
|
|
4010
|
-
};
|
|
3737
|
+
});
|
|
4011
3738
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4012
|
-
if (data.imageRecipeArn
|
|
3739
|
+
if (data.imageRecipeArn != null) {
|
|
4013
3740
|
contents.imageRecipeArn = (0, smithy_client_1.expectString)(data.imageRecipeArn);
|
|
4014
3741
|
}
|
|
4015
|
-
if (data.requestId
|
|
3742
|
+
if (data.requestId != null) {
|
|
4016
3743
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
4017
3744
|
}
|
|
4018
|
-
return
|
|
3745
|
+
return contents;
|
|
4019
3746
|
};
|
|
4020
3747
|
exports.deserializeAws_restJson1PutImageRecipePolicyCommand = deserializeAws_restJson1PutImageRecipePolicyCommand;
|
|
4021
3748
|
const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output, context) => {
|
|
@@ -4023,7 +3750,6 @@ const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output,
|
|
|
4023
3750
|
...output,
|
|
4024
3751
|
body: await parseBody(output.body, context),
|
|
4025
3752
|
};
|
|
4026
|
-
let response;
|
|
4027
3753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4028
3754
|
switch (errorCode) {
|
|
4029
3755
|
case "CallRateLimitExceededException":
|
|
@@ -4052,37 +3778,32 @@ const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output,
|
|
|
4052
3778
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4053
3779
|
default:
|
|
4054
3780
|
const parsedBody = parsedOutput.body;
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
$metadata,
|
|
3781
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3782
|
+
output,
|
|
3783
|
+
parsedBody,
|
|
3784
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3785
|
+
errorCode,
|
|
4061
3786
|
});
|
|
4062
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4063
3787
|
}
|
|
4064
3788
|
};
|
|
4065
3789
|
const deserializeAws_restJson1StartImagePipelineExecutionCommand = async (output, context) => {
|
|
4066
3790
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4067
3791
|
return deserializeAws_restJson1StartImagePipelineExecutionCommandError(output, context);
|
|
4068
3792
|
}
|
|
4069
|
-
const contents = {
|
|
3793
|
+
const contents = map({
|
|
4070
3794
|
$metadata: deserializeMetadata(output),
|
|
4071
|
-
|
|
4072
|
-
imageBuildVersionArn: undefined,
|
|
4073
|
-
requestId: undefined,
|
|
4074
|
-
};
|
|
3795
|
+
});
|
|
4075
3796
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4076
|
-
if (data.clientToken
|
|
3797
|
+
if (data.clientToken != null) {
|
|
4077
3798
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
4078
3799
|
}
|
|
4079
|
-
if (data.imageBuildVersionArn
|
|
3800
|
+
if (data.imageBuildVersionArn != null) {
|
|
4080
3801
|
contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
|
|
4081
3802
|
}
|
|
4082
|
-
if (data.requestId
|
|
3803
|
+
if (data.requestId != null) {
|
|
4083
3804
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
4084
3805
|
}
|
|
4085
|
-
return
|
|
3806
|
+
return contents;
|
|
4086
3807
|
};
|
|
4087
3808
|
exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = deserializeAws_restJson1StartImagePipelineExecutionCommand;
|
|
4088
3809
|
const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (output, context) => {
|
|
@@ -4090,7 +3811,6 @@ const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (o
|
|
|
4090
3811
|
...output,
|
|
4091
3812
|
body: await parseBody(output.body, context),
|
|
4092
3813
|
};
|
|
4093
|
-
let response;
|
|
4094
3814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4095
3815
|
switch (errorCode) {
|
|
4096
3816
|
case "CallRateLimitExceededException":
|
|
@@ -4122,25 +3842,23 @@ const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (o
|
|
|
4122
3842
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4123
3843
|
default:
|
|
4124
3844
|
const parsedBody = parsedOutput.body;
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
$metadata,
|
|
3845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3846
|
+
output,
|
|
3847
|
+
parsedBody,
|
|
3848
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3849
|
+
errorCode,
|
|
4131
3850
|
});
|
|
4132
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4133
3851
|
}
|
|
4134
3852
|
};
|
|
4135
3853
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
4136
3854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4137
3855
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
4138
3856
|
}
|
|
4139
|
-
const contents = {
|
|
3857
|
+
const contents = map({
|
|
4140
3858
|
$metadata: deserializeMetadata(output),
|
|
4141
|
-
};
|
|
3859
|
+
});
|
|
4142
3860
|
await collectBody(output.body, context);
|
|
4143
|
-
return
|
|
3861
|
+
return contents;
|
|
4144
3862
|
};
|
|
4145
3863
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
4146
3864
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -4148,7 +3866,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4148
3866
|
...output,
|
|
4149
3867
|
body: await parseBody(output.body, context),
|
|
4150
3868
|
};
|
|
4151
|
-
let response;
|
|
4152
3869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4153
3870
|
switch (errorCode) {
|
|
4154
3871
|
case "InvalidParameterException":
|
|
@@ -4162,25 +3879,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4162
3879
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4163
3880
|
default:
|
|
4164
3881
|
const parsedBody = parsedOutput.body;
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
$metadata,
|
|
3882
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3883
|
+
output,
|
|
3884
|
+
parsedBody,
|
|
3885
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3886
|
+
errorCode,
|
|
4171
3887
|
});
|
|
4172
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4173
3888
|
}
|
|
4174
3889
|
};
|
|
4175
3890
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4176
3891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4177
3892
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
4178
3893
|
}
|
|
4179
|
-
const contents = {
|
|
3894
|
+
const contents = map({
|
|
4180
3895
|
$metadata: deserializeMetadata(output),
|
|
4181
|
-
};
|
|
3896
|
+
});
|
|
4182
3897
|
await collectBody(output.body, context);
|
|
4183
|
-
return
|
|
3898
|
+
return contents;
|
|
4184
3899
|
};
|
|
4185
3900
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
4186
3901
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -4188,7 +3903,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4188
3903
|
...output,
|
|
4189
3904
|
body: await parseBody(output.body, context),
|
|
4190
3905
|
};
|
|
4191
|
-
let response;
|
|
4192
3906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4193
3907
|
switch (errorCode) {
|
|
4194
3908
|
case "InvalidParameterException":
|
|
@@ -4202,37 +3916,32 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4202
3916
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4203
3917
|
default:
|
|
4204
3918
|
const parsedBody = parsedOutput.body;
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
$metadata,
|
|
3919
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3920
|
+
output,
|
|
3921
|
+
parsedBody,
|
|
3922
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3923
|
+
errorCode,
|
|
4211
3924
|
});
|
|
4212
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4213
3925
|
}
|
|
4214
3926
|
};
|
|
4215
3927
|
const deserializeAws_restJson1UpdateDistributionConfigurationCommand = async (output, context) => {
|
|
4216
3928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4217
3929
|
return deserializeAws_restJson1UpdateDistributionConfigurationCommandError(output, context);
|
|
4218
3930
|
}
|
|
4219
|
-
const contents = {
|
|
3931
|
+
const contents = map({
|
|
4220
3932
|
$metadata: deserializeMetadata(output),
|
|
4221
|
-
|
|
4222
|
-
distributionConfigurationArn: undefined,
|
|
4223
|
-
requestId: undefined,
|
|
4224
|
-
};
|
|
3933
|
+
});
|
|
4225
3934
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4226
|
-
if (data.clientToken
|
|
3935
|
+
if (data.clientToken != null) {
|
|
4227
3936
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
4228
3937
|
}
|
|
4229
|
-
if (data.distributionConfigurationArn
|
|
3938
|
+
if (data.distributionConfigurationArn != null) {
|
|
4230
3939
|
contents.distributionConfigurationArn = (0, smithy_client_1.expectString)(data.distributionConfigurationArn);
|
|
4231
3940
|
}
|
|
4232
|
-
if (data.requestId
|
|
3941
|
+
if (data.requestId != null) {
|
|
4233
3942
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
4234
3943
|
}
|
|
4235
|
-
return
|
|
3944
|
+
return contents;
|
|
4236
3945
|
};
|
|
4237
3946
|
exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = deserializeAws_restJson1UpdateDistributionConfigurationCommand;
|
|
4238
3947
|
const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = async (output, context) => {
|
|
@@ -4240,7 +3949,6 @@ const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = asyn
|
|
|
4240
3949
|
...output,
|
|
4241
3950
|
body: await parseBody(output.body, context),
|
|
4242
3951
|
};
|
|
4243
|
-
let response;
|
|
4244
3952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4245
3953
|
switch (errorCode) {
|
|
4246
3954
|
case "CallRateLimitExceededException":
|
|
@@ -4272,37 +3980,32 @@ const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = asyn
|
|
|
4272
3980
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4273
3981
|
default:
|
|
4274
3982
|
const parsedBody = parsedOutput.body;
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
$metadata,
|
|
3983
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3984
|
+
output,
|
|
3985
|
+
parsedBody,
|
|
3986
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
3987
|
+
errorCode,
|
|
4281
3988
|
});
|
|
4282
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4283
3989
|
}
|
|
4284
3990
|
};
|
|
4285
3991
|
const deserializeAws_restJson1UpdateImagePipelineCommand = async (output, context) => {
|
|
4286
3992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4287
3993
|
return deserializeAws_restJson1UpdateImagePipelineCommandError(output, context);
|
|
4288
3994
|
}
|
|
4289
|
-
const contents = {
|
|
3995
|
+
const contents = map({
|
|
4290
3996
|
$metadata: deserializeMetadata(output),
|
|
4291
|
-
|
|
4292
|
-
imagePipelineArn: undefined,
|
|
4293
|
-
requestId: undefined,
|
|
4294
|
-
};
|
|
3997
|
+
});
|
|
4295
3998
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4296
|
-
if (data.clientToken
|
|
3999
|
+
if (data.clientToken != null) {
|
|
4297
4000
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
4298
4001
|
}
|
|
4299
|
-
if (data.imagePipelineArn
|
|
4002
|
+
if (data.imagePipelineArn != null) {
|
|
4300
4003
|
contents.imagePipelineArn = (0, smithy_client_1.expectString)(data.imagePipelineArn);
|
|
4301
4004
|
}
|
|
4302
|
-
if (data.requestId
|
|
4005
|
+
if (data.requestId != null) {
|
|
4303
4006
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
4304
4007
|
}
|
|
4305
|
-
return
|
|
4008
|
+
return contents;
|
|
4306
4009
|
};
|
|
4307
4010
|
exports.deserializeAws_restJson1UpdateImagePipelineCommand = deserializeAws_restJson1UpdateImagePipelineCommand;
|
|
4308
4011
|
const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, context) => {
|
|
@@ -4310,7 +4013,6 @@ const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, c
|
|
|
4310
4013
|
...output,
|
|
4311
4014
|
body: await parseBody(output.body, context),
|
|
4312
4015
|
};
|
|
4313
|
-
let response;
|
|
4314
4016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4315
4017
|
switch (errorCode) {
|
|
4316
4018
|
case "CallRateLimitExceededException":
|
|
@@ -4339,37 +4041,32 @@ const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, c
|
|
|
4339
4041
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4340
4042
|
default:
|
|
4341
4043
|
const parsedBody = parsedOutput.body;
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
$metadata,
|
|
4044
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4045
|
+
output,
|
|
4046
|
+
parsedBody,
|
|
4047
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
4048
|
+
errorCode,
|
|
4348
4049
|
});
|
|
4349
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4350
4050
|
}
|
|
4351
4051
|
};
|
|
4352
4052
|
const deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = async (output, context) => {
|
|
4353
4053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4354
4054
|
return deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError(output, context);
|
|
4355
4055
|
}
|
|
4356
|
-
const contents = {
|
|
4056
|
+
const contents = map({
|
|
4357
4057
|
$metadata: deserializeMetadata(output),
|
|
4358
|
-
|
|
4359
|
-
infrastructureConfigurationArn: undefined,
|
|
4360
|
-
requestId: undefined,
|
|
4361
|
-
};
|
|
4058
|
+
});
|
|
4362
4059
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4363
|
-
if (data.clientToken
|
|
4060
|
+
if (data.clientToken != null) {
|
|
4364
4061
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
4365
4062
|
}
|
|
4366
|
-
if (data.infrastructureConfigurationArn
|
|
4063
|
+
if (data.infrastructureConfigurationArn != null) {
|
|
4367
4064
|
contents.infrastructureConfigurationArn = (0, smithy_client_1.expectString)(data.infrastructureConfigurationArn);
|
|
4368
4065
|
}
|
|
4369
|
-
if (data.requestId
|
|
4066
|
+
if (data.requestId != null) {
|
|
4370
4067
|
contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
|
|
4371
4068
|
}
|
|
4372
|
-
return
|
|
4069
|
+
return contents;
|
|
4373
4070
|
};
|
|
4374
4071
|
exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = deserializeAws_restJson1UpdateInfrastructureConfigurationCommand;
|
|
4375
4072
|
const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = async (output, context) => {
|
|
@@ -4377,7 +4074,6 @@ const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = as
|
|
|
4377
4074
|
...output,
|
|
4378
4075
|
body: await parseBody(output.body, context),
|
|
4379
4076
|
};
|
|
4380
|
-
let response;
|
|
4381
4077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4382
4078
|
switch (errorCode) {
|
|
4383
4079
|
case "CallRateLimitExceededException":
|
|
@@ -4406,20 +4102,19 @@ const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = as
|
|
|
4406
4102
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4407
4103
|
default:
|
|
4408
4104
|
const parsedBody = parsedOutput.body;
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
$metadata,
|
|
4105
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4106
|
+
output,
|
|
4107
|
+
parsedBody,
|
|
4108
|
+
exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
|
|
4109
|
+
errorCode,
|
|
4415
4110
|
});
|
|
4416
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4417
4111
|
}
|
|
4418
4112
|
};
|
|
4113
|
+
const map = smithy_client_1.map;
|
|
4419
4114
|
const deserializeAws_restJson1CallRateLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4420
|
-
const contents = {};
|
|
4115
|
+
const contents = map({});
|
|
4421
4116
|
const data = parsedOutput.body;
|
|
4422
|
-
if (data.message
|
|
4117
|
+
if (data.message != null) {
|
|
4423
4118
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4424
4119
|
}
|
|
4425
4120
|
const exception = new models_0_1.CallRateLimitExceededException({
|
|
@@ -4429,9 +4124,9 @@ const deserializeAws_restJson1CallRateLimitExceededExceptionResponse = async (pa
|
|
|
4429
4124
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4430
4125
|
};
|
|
4431
4126
|
const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, context) => {
|
|
4432
|
-
const contents = {};
|
|
4127
|
+
const contents = map({});
|
|
4433
4128
|
const data = parsedOutput.body;
|
|
4434
|
-
if (data.message
|
|
4129
|
+
if (data.message != null) {
|
|
4435
4130
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4436
4131
|
}
|
|
4437
4132
|
const exception = new models_0_1.ClientException({
|
|
@@ -4441,9 +4136,9 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
|
|
|
4441
4136
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4442
4137
|
};
|
|
4443
4138
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
4444
|
-
const contents = {};
|
|
4139
|
+
const contents = map({});
|
|
4445
4140
|
const data = parsedOutput.body;
|
|
4446
|
-
if (data.message
|
|
4141
|
+
if (data.message != null) {
|
|
4447
4142
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4448
4143
|
}
|
|
4449
4144
|
const exception = new models_0_1.ForbiddenException({
|
|
@@ -4453,9 +4148,9 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
4453
4148
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4454
4149
|
};
|
|
4455
4150
|
const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
4456
|
-
const contents = {};
|
|
4151
|
+
const contents = map({});
|
|
4457
4152
|
const data = parsedOutput.body;
|
|
4458
|
-
if (data.message
|
|
4153
|
+
if (data.message != null) {
|
|
4459
4154
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4460
4155
|
}
|
|
4461
4156
|
const exception = new models_0_1.IdempotentParameterMismatchException({
|
|
@@ -4465,9 +4160,9 @@ const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = asy
|
|
|
4465
4160
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4466
4161
|
};
|
|
4467
4162
|
const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
|
|
4468
|
-
const contents = {};
|
|
4163
|
+
const contents = map({});
|
|
4469
4164
|
const data = parsedOutput.body;
|
|
4470
|
-
if (data.message
|
|
4165
|
+
if (data.message != null) {
|
|
4471
4166
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4472
4167
|
}
|
|
4473
4168
|
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
@@ -4477,9 +4172,9 @@ const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (p
|
|
|
4477
4172
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4478
4173
|
};
|
|
4479
4174
|
const deserializeAws_restJson1InvalidParameterCombinationExceptionResponse = async (parsedOutput, context) => {
|
|
4480
|
-
const contents = {};
|
|
4175
|
+
const contents = map({});
|
|
4481
4176
|
const data = parsedOutput.body;
|
|
4482
|
-
if (data.message
|
|
4177
|
+
if (data.message != null) {
|
|
4483
4178
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4484
4179
|
}
|
|
4485
4180
|
const exception = new models_0_1.InvalidParameterCombinationException({
|
|
@@ -4489,9 +4184,9 @@ const deserializeAws_restJson1InvalidParameterCombinationExceptionResponse = asy
|
|
|
4489
4184
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4490
4185
|
};
|
|
4491
4186
|
const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
4492
|
-
const contents = {};
|
|
4187
|
+
const contents = map({});
|
|
4493
4188
|
const data = parsedOutput.body;
|
|
4494
|
-
if (data.message
|
|
4189
|
+
if (data.message != null) {
|
|
4495
4190
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4496
4191
|
}
|
|
4497
4192
|
const exception = new models_0_1.InvalidParameterException({
|
|
@@ -4501,9 +4196,9 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
4501
4196
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4502
4197
|
};
|
|
4503
4198
|
const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
4504
|
-
const contents = {};
|
|
4199
|
+
const contents = map({});
|
|
4505
4200
|
const data = parsedOutput.body;
|
|
4506
|
-
if (data.message
|
|
4201
|
+
if (data.message != null) {
|
|
4507
4202
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4508
4203
|
}
|
|
4509
4204
|
const exception = new models_0_1.InvalidParameterValueException({
|
|
@@ -4513,9 +4208,9 @@ const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (pa
|
|
|
4513
4208
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4514
4209
|
};
|
|
4515
4210
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
4516
|
-
const contents = {};
|
|
4211
|
+
const contents = map({});
|
|
4517
4212
|
const data = parsedOutput.body;
|
|
4518
|
-
if (data.message
|
|
4213
|
+
if (data.message != null) {
|
|
4519
4214
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4520
4215
|
}
|
|
4521
4216
|
const exception = new models_0_1.InvalidRequestException({
|
|
@@ -4525,9 +4220,9 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
4525
4220
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4526
4221
|
};
|
|
4527
4222
|
const deserializeAws_restJson1InvalidVersionNumberExceptionResponse = async (parsedOutput, context) => {
|
|
4528
|
-
const contents = {};
|
|
4223
|
+
const contents = map({});
|
|
4529
4224
|
const data = parsedOutput.body;
|
|
4530
|
-
if (data.message
|
|
4225
|
+
if (data.message != null) {
|
|
4531
4226
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4532
4227
|
}
|
|
4533
4228
|
const exception = new models_0_1.InvalidVersionNumberException({
|
|
@@ -4537,9 +4232,9 @@ const deserializeAws_restJson1InvalidVersionNumberExceptionResponse = async (par
|
|
|
4537
4232
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4538
4233
|
};
|
|
4539
4234
|
const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4540
|
-
const contents = {};
|
|
4235
|
+
const contents = map({});
|
|
4541
4236
|
const data = parsedOutput.body;
|
|
4542
|
-
if (data.message
|
|
4237
|
+
if (data.message != null) {
|
|
4543
4238
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4544
4239
|
}
|
|
4545
4240
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
@@ -4549,9 +4244,9 @@ const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (pa
|
|
|
4549
4244
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4550
4245
|
};
|
|
4551
4246
|
const deserializeAws_restJson1ResourceDependencyExceptionResponse = async (parsedOutput, context) => {
|
|
4552
|
-
const contents = {};
|
|
4247
|
+
const contents = map({});
|
|
4553
4248
|
const data = parsedOutput.body;
|
|
4554
|
-
if (data.message
|
|
4249
|
+
if (data.message != null) {
|
|
4555
4250
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4556
4251
|
}
|
|
4557
4252
|
const exception = new models_0_1.ResourceDependencyException({
|
|
@@ -4561,9 +4256,9 @@ const deserializeAws_restJson1ResourceDependencyExceptionResponse = async (parse
|
|
|
4561
4256
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4562
4257
|
};
|
|
4563
4258
|
const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
4564
|
-
const contents = {};
|
|
4259
|
+
const contents = map({});
|
|
4565
4260
|
const data = parsedOutput.body;
|
|
4566
|
-
if (data.message
|
|
4261
|
+
if (data.message != null) {
|
|
4567
4262
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4568
4263
|
}
|
|
4569
4264
|
const exception = new models_0_1.ResourceInUseException({
|
|
@@ -4573,9 +4268,9 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
4573
4268
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4574
4269
|
};
|
|
4575
4270
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4576
|
-
const contents = {};
|
|
4271
|
+
const contents = map({});
|
|
4577
4272
|
const data = parsedOutput.body;
|
|
4578
|
-
if (data.message
|
|
4273
|
+
if (data.message != null) {
|
|
4579
4274
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4580
4275
|
}
|
|
4581
4276
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -4585,9 +4280,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4585
4280
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4586
4281
|
};
|
|
4587
4282
|
const deserializeAws_restJson1ServiceExceptionResponse = async (parsedOutput, context) => {
|
|
4588
|
-
const contents = {};
|
|
4283
|
+
const contents = map({});
|
|
4589
4284
|
const data = parsedOutput.body;
|
|
4590
|
-
if (data.message
|
|
4285
|
+
if (data.message != null) {
|
|
4591
4286
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4592
4287
|
}
|
|
4593
4288
|
const exception = new models_0_1.ServiceException({
|
|
@@ -4597,9 +4292,9 @@ const deserializeAws_restJson1ServiceExceptionResponse = async (parsedOutput, co
|
|
|
4597
4292
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4598
4293
|
};
|
|
4599
4294
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4600
|
-
const contents = {};
|
|
4295
|
+
const contents = map({});
|
|
4601
4296
|
const data = parsedOutput.body;
|
|
4602
|
-
if (data.message
|
|
4297
|
+
if (data.message != null) {
|
|
4603
4298
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4604
4299
|
}
|
|
4605
4300
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -4609,9 +4304,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
4609
4304
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4610
4305
|
};
|
|
4611
4306
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
4612
|
-
const contents = {};
|
|
4307
|
+
const contents = map({});
|
|
4613
4308
|
const data = parsedOutput.body;
|
|
4614
|
-
if (data.message
|
|
4309
|
+
if (data.message != null) {
|
|
4615
4310
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4616
4311
|
}
|
|
4617
4312
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
@@ -4624,9 +4319,6 @@ const serializeAws_restJson1AccountList = (input, context) => {
|
|
|
4624
4319
|
return input
|
|
4625
4320
|
.filter((e) => e != null)
|
|
4626
4321
|
.map((entry) => {
|
|
4627
|
-
if (entry === null) {
|
|
4628
|
-
return null;
|
|
4629
|
-
}
|
|
4630
4322
|
return entry;
|
|
4631
4323
|
});
|
|
4632
4324
|
};
|
|
@@ -4664,9 +4356,6 @@ const serializeAws_restJson1ComponentConfigurationList = (input, context) => {
|
|
|
4664
4356
|
return input
|
|
4665
4357
|
.filter((e) => e != null)
|
|
4666
4358
|
.map((entry) => {
|
|
4667
|
-
if (entry === null) {
|
|
4668
|
-
return null;
|
|
4669
|
-
}
|
|
4670
4359
|
return serializeAws_restJson1ComponentConfiguration(entry, context);
|
|
4671
4360
|
});
|
|
4672
4361
|
};
|
|
@@ -4680,9 +4369,6 @@ const serializeAws_restJson1ComponentParameterList = (input, context) => {
|
|
|
4680
4369
|
return input
|
|
4681
4370
|
.filter((e) => e != null)
|
|
4682
4371
|
.map((entry) => {
|
|
4683
|
-
if (entry === null) {
|
|
4684
|
-
return null;
|
|
4685
|
-
}
|
|
4686
4372
|
return serializeAws_restJson1ComponentParameter(entry, context);
|
|
4687
4373
|
});
|
|
4688
4374
|
};
|
|
@@ -4690,9 +4376,6 @@ const serializeAws_restJson1ComponentParameterValueList = (input, context) => {
|
|
|
4690
4376
|
return input
|
|
4691
4377
|
.filter((e) => e != null)
|
|
4692
4378
|
.map((entry) => {
|
|
4693
|
-
if (entry === null) {
|
|
4694
|
-
return null;
|
|
4695
|
-
}
|
|
4696
4379
|
return entry;
|
|
4697
4380
|
});
|
|
4698
4381
|
};
|
|
@@ -4734,9 +4417,6 @@ const serializeAws_restJson1DistributionList = (input, context) => {
|
|
|
4734
4417
|
return input
|
|
4735
4418
|
.filter((e) => e != null)
|
|
4736
4419
|
.map((entry) => {
|
|
4737
|
-
if (entry === null) {
|
|
4738
|
-
return null;
|
|
4739
|
-
}
|
|
4740
4420
|
return serializeAws_restJson1Distribution(entry, context);
|
|
4741
4421
|
});
|
|
4742
4422
|
};
|
|
@@ -4769,9 +4449,6 @@ const serializeAws_restJson1FastLaunchConfigurationList = (input, context) => {
|
|
|
4769
4449
|
return input
|
|
4770
4450
|
.filter((e) => e != null)
|
|
4771
4451
|
.map((entry) => {
|
|
4772
|
-
if (entry === null) {
|
|
4773
|
-
return null;
|
|
4774
|
-
}
|
|
4775
4452
|
return serializeAws_restJson1FastLaunchConfiguration(entry, context);
|
|
4776
4453
|
});
|
|
4777
4454
|
};
|
|
@@ -4797,9 +4474,6 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
4797
4474
|
return input
|
|
4798
4475
|
.filter((e) => e != null)
|
|
4799
4476
|
.map((entry) => {
|
|
4800
|
-
if (entry === null) {
|
|
4801
|
-
return null;
|
|
4802
|
-
}
|
|
4803
4477
|
return serializeAws_restJson1Filter(entry, context);
|
|
4804
4478
|
});
|
|
4805
4479
|
};
|
|
@@ -4807,9 +4481,6 @@ const serializeAws_restJson1FilterValues = (input, context) => {
|
|
|
4807
4481
|
return input
|
|
4808
4482
|
.filter((e) => e != null)
|
|
4809
4483
|
.map((entry) => {
|
|
4810
|
-
if (entry === null) {
|
|
4811
|
-
return null;
|
|
4812
|
-
}
|
|
4813
4484
|
return entry;
|
|
4814
4485
|
});
|
|
4815
4486
|
};
|
|
@@ -4831,9 +4502,6 @@ const serializeAws_restJson1InstanceBlockDeviceMappings = (input, context) => {
|
|
|
4831
4502
|
return input
|
|
4832
4503
|
.filter((e) => e != null)
|
|
4833
4504
|
.map((entry) => {
|
|
4834
|
-
if (entry === null) {
|
|
4835
|
-
return null;
|
|
4836
|
-
}
|
|
4837
4505
|
return serializeAws_restJson1InstanceBlockDeviceMapping(entry, context);
|
|
4838
4506
|
});
|
|
4839
4507
|
};
|
|
@@ -4855,9 +4523,6 @@ const serializeAws_restJson1InstanceTypeList = (input, context) => {
|
|
|
4855
4523
|
return input
|
|
4856
4524
|
.filter((e) => e != null)
|
|
4857
4525
|
.map((entry) => {
|
|
4858
|
-
if (entry === null) {
|
|
4859
|
-
return null;
|
|
4860
|
-
}
|
|
4861
4526
|
return entry;
|
|
4862
4527
|
});
|
|
4863
4528
|
};
|
|
@@ -4884,9 +4549,6 @@ const serializeAws_restJson1LaunchTemplateConfigurationList = (input, context) =
|
|
|
4884
4549
|
return input
|
|
4885
4550
|
.filter((e) => e != null)
|
|
4886
4551
|
.map((entry) => {
|
|
4887
|
-
if (entry === null) {
|
|
4888
|
-
return null;
|
|
4889
|
-
}
|
|
4890
4552
|
return serializeAws_restJson1LaunchTemplateConfiguration(entry, context);
|
|
4891
4553
|
});
|
|
4892
4554
|
};
|
|
@@ -4894,9 +4556,6 @@ const serializeAws_restJson1LicenseConfigurationArnList = (input, context) => {
|
|
|
4894
4556
|
return input
|
|
4895
4557
|
.filter((e) => e != null)
|
|
4896
4558
|
.map((entry) => {
|
|
4897
|
-
if (entry === null) {
|
|
4898
|
-
return null;
|
|
4899
|
-
}
|
|
4900
4559
|
return entry;
|
|
4901
4560
|
});
|
|
4902
4561
|
};
|
|
@@ -4909,9 +4568,6 @@ const serializeAws_restJson1OrganizationalUnitArnList = (input, context) => {
|
|
|
4909
4568
|
return input
|
|
4910
4569
|
.filter((e) => e != null)
|
|
4911
4570
|
.map((entry) => {
|
|
4912
|
-
if (entry === null) {
|
|
4913
|
-
return null;
|
|
4914
|
-
}
|
|
4915
4571
|
return entry;
|
|
4916
4572
|
});
|
|
4917
4573
|
};
|
|
@@ -4919,9 +4575,6 @@ const serializeAws_restJson1OrganizationArnList = (input, context) => {
|
|
|
4919
4575
|
return input
|
|
4920
4576
|
.filter((e) => e != null)
|
|
4921
4577
|
.map((entry) => {
|
|
4922
|
-
if (entry === null) {
|
|
4923
|
-
return null;
|
|
4924
|
-
}
|
|
4925
4578
|
return entry;
|
|
4926
4579
|
});
|
|
4927
4580
|
};
|
|
@@ -4929,9 +4582,6 @@ const serializeAws_restJson1OsVersionList = (input, context) => {
|
|
|
4929
4582
|
return input
|
|
4930
4583
|
.filter((e) => e != null)
|
|
4931
4584
|
.map((entry) => {
|
|
4932
|
-
if (entry === null) {
|
|
4933
|
-
return null;
|
|
4934
|
-
}
|
|
4935
4585
|
return entry;
|
|
4936
4586
|
});
|
|
4937
4587
|
};
|
|
@@ -4973,9 +4623,6 @@ const serializeAws_restJson1SecurityGroupIds = (input, context) => {
|
|
|
4973
4623
|
return input
|
|
4974
4624
|
.filter((e) => e != null)
|
|
4975
4625
|
.map((entry) => {
|
|
4976
|
-
if (entry === null) {
|
|
4977
|
-
return null;
|
|
4978
|
-
}
|
|
4979
4626
|
return entry;
|
|
4980
4627
|
});
|
|
4981
4628
|
};
|
|
@@ -4983,9 +4630,6 @@ const serializeAws_restJson1StringList = (input, context) => {
|
|
|
4983
4630
|
return input
|
|
4984
4631
|
.filter((e) => e != null)
|
|
4985
4632
|
.map((entry) => {
|
|
4986
|
-
if (entry === null) {
|
|
4987
|
-
return null;
|
|
4988
|
-
}
|
|
4989
4633
|
return entry;
|
|
4990
4634
|
});
|
|
4991
4635
|
};
|