@aws-sdk/client-imagebuilder 3.41.0 → 3.46.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 CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
12
+
13
+
14
+ ### Features
15
+
16
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
17
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
18
+
19
+
20
+
21
+
22
+
23
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
24
+
25
+
26
+ ### Features
27
+
28
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
46
+
47
+ **Note:** Version bump only for package @aws-sdk/client-imagebuilder
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
54
 
8
55
 
@@ -28,6 +28,7 @@ const GetImageRecipeCommand_1 = require("./commands/GetImageRecipeCommand");
28
28
  const GetImageRecipePolicyCommand_1 = require("./commands/GetImageRecipePolicyCommand");
29
29
  const GetInfrastructureConfigurationCommand_1 = require("./commands/GetInfrastructureConfigurationCommand");
30
30
  const ImportComponentCommand_1 = require("./commands/ImportComponentCommand");
31
+ const ImportVmImageCommand_1 = require("./commands/ImportVmImageCommand");
31
32
  const ListComponentBuildVersionsCommand_1 = require("./commands/ListComponentBuildVersionsCommand");
32
33
  const ListComponentsCommand_1 = require("./commands/ListComponentsCommand");
33
34
  const ListContainerRecipesCommand_1 = require("./commands/ListContainerRecipesCommand");
@@ -430,6 +431,20 @@ class Imagebuilder extends ImagebuilderClient_1.ImagebuilderClient {
430
431
  return this.send(command, optionsOrCb);
431
432
  }
432
433
  }
434
+ importVmImage(args, optionsOrCb, cb) {
435
+ const command = new ImportVmImageCommand_1.ImportVmImageCommand(args);
436
+ if (typeof optionsOrCb === "function") {
437
+ this.send(command, optionsOrCb);
438
+ }
439
+ else if (typeof cb === "function") {
440
+ if (typeof optionsOrCb !== "object")
441
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
442
+ this.send(command, optionsOrCb || {}, cb);
443
+ }
444
+ else {
445
+ return this.send(command, optionsOrCb);
446
+ }
447
+ }
433
448
  listComponentBuildVersions(args, optionsOrCb, cb) {
434
449
  const command = new ListComponentBuildVersionsCommand_1.ListComponentBuildVersionsCommand(args);
435
450
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImportVmImageCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ImportVmImageCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ImagebuilderClient";
18
+ const commandName = "ImportVmImageCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ImportVmImageRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ImportVmImageResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ImportVmImageCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ImportVmImageCommand(output, context);
34
+ }
35
+ }
36
+ exports.ImportVmImageCommand = ImportVmImageCommand;
@@ -28,6 +28,7 @@ tslib_1.__exportStar(require("./GetImageRecipeCommand"), exports);
28
28
  tslib_1.__exportStar(require("./GetImageRecipePolicyCommand"), exports);
29
29
  tslib_1.__exportStar(require("./GetInfrastructureConfigurationCommand"), exports);
30
30
  tslib_1.__exportStar(require("./ImportComponentCommand"), exports);
31
+ tslib_1.__exportStar(require("./ImportVmImageCommand"), exports);
31
32
  tslib_1.__exportStar(require("./ListComponentBuildVersionsCommand"), exports);
32
33
  tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
33
34
  tslib_1.__exportStar(require("./ListContainerRecipesCommand"), exports);
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateDistributionConfigurationRequest = exports.Distribution = exports.LaunchTemplateConfiguration = exports.ResourceAlreadyExistsException = exports.CreateContainerRecipeResponse = exports.CreateContainerRecipeRequest = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.CreateComponentResponse = exports.CreateComponentRequest = exports.ContainerRecipeSummary = exports.ContainerRecipe = exports.InstanceConfiguration = exports.InstanceBlockDeviceMapping = exports.EbsInstanceBlockDeviceSpecification = exports.EbsVolumeType = exports.ContainerType = exports.ContainerDistributionConfiguration = exports.TargetContainerRepository = exports.ContainerRepositoryService = exports.Container = exports.ComponentVersion = exports.ComponentSummary = exports.ComponentFormat = exports.ComponentConfiguration = exports.ComponentParameter = exports.Component = exports.ComponentType = exports.ComponentState = exports.ComponentStatus = exports.Platform = exports.ComponentParameterDetail = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CancelImageCreationResponse = exports.CancelImageCreationRequest = exports.CallRateLimitExceededException = exports.AmiDistributionConfiguration = exports.LaunchPermissionConfiguration = exports.Ami = exports.ImageState = exports.ImageStatus = exports.AdditionalInstanceConfiguration = exports.SystemsManagerAgent = void 0;
4
- exports.OutputResources = exports.InfrastructureConfiguration = exports.ImageRecipe = exports.ImageType = exports.GetImageRequest = exports.GetDistributionConfigurationResponse = exports.GetDistributionConfigurationRequest = exports.GetContainerRecipePolicyResponse = exports.GetContainerRecipePolicyRequest = exports.GetContainerRecipeResponse = exports.GetContainerRecipeRequest = exports.ResourceNotFoundException = exports.GetComponentPolicyResponse = exports.GetComponentPolicyRequest = exports.GetComponentResponse = exports.GetComponentRequest = exports.Filter = exports.DistributionConfigurationSummary = exports.DistributionConfiguration = exports.DeleteInfrastructureConfigurationResponse = exports.DeleteInfrastructureConfigurationRequest = exports.DeleteImageRecipeResponse = exports.DeleteImageRecipeRequest = exports.DeleteImagePipelineResponse = exports.DeleteImagePipelineRequest = exports.DeleteImageResponse = exports.DeleteImageRequest = exports.DeleteDistributionConfigurationResponse = exports.DeleteDistributionConfigurationRequest = exports.DeleteContainerRecipeResponse = exports.DeleteContainerRecipeRequest = exports.ResourceDependencyException = exports.DeleteComponentResponse = exports.DeleteComponentRequest = exports.CreateInfrastructureConfigurationResponse = exports.CreateInfrastructureConfigurationRequest = exports.Logging = exports.S3Logs = exports.InstanceMetadataOptions = exports.CreateImageRecipeResponse = exports.CreateImageRecipeRequest = exports.CreateImagePipelineResponse = exports.CreateImagePipelineRequest = exports.PipelineStatus = exports.Schedule = exports.PipelineExecutionStartCondition = exports.CreateImageResponse = exports.CreateImageRequest = exports.ImageTestsConfiguration = exports.CreateDistributionConfigurationResponse = void 0;
5
- exports.PutComponentPolicyResponse = exports.PutComponentPolicyRequest = exports.InvalidParameterValueException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.InvalidParameterException = exports.ListInfrastructureConfigurationsResponse = exports.InfrastructureConfigurationSummary = exports.ListInfrastructureConfigurationsRequest = exports.ListImagesResponse = exports.ImageVersion = exports.ListImagesRequest = exports.ListImageRecipesResponse = exports.ImageRecipeSummary = exports.ListImageRecipesRequest = exports.ListImagePipelinesResponse = exports.ListImagePipelinesRequest = exports.ListImagePipelineImagesResponse = exports.ListImagePipelineImagesRequest = exports.ListImagePackagesResponse = exports.ImagePackage = exports.ListImagePackagesRequest = exports.ListImageBuildVersionsResponse = exports.ImageSummary = exports.ListImageBuildVersionsRequest = exports.ListDistributionConfigurationsResponse = exports.ListDistributionConfigurationsRequest = exports.ListContainerRecipesResponse = exports.ListContainerRecipesRequest = exports.ListComponentsResponse = exports.ListComponentsRequest = exports.Ownership = exports.ListComponentBuildVersionsResponse = exports.ListComponentBuildVersionsRequest = exports.InvalidPaginationTokenException = exports.ImportComponentResponse = exports.ImportComponentRequest = exports.GetInfrastructureConfigurationResponse = exports.GetInfrastructureConfigurationRequest = exports.GetImageRecipePolicyResponse = exports.GetImageRecipePolicyRequest = exports.GetImageRecipeResponse = exports.GetImageRecipeRequest = exports.GetImagePolicyResponse = exports.GetImagePolicyRequest = exports.GetImagePipelineResponse = exports.ImagePipeline = exports.GetImagePipelineRequest = exports.GetImageResponse = exports.Image = void 0;
6
- exports.UpdateInfrastructureConfigurationResponse = exports.UpdateInfrastructureConfigurationRequest = exports.UpdateImagePipelineResponse = exports.UpdateImagePipelineRequest = exports.UpdateDistributionConfigurationResponse = exports.UpdateDistributionConfigurationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartImagePipelineExecutionResponse = exports.StartImagePipelineExecutionRequest = exports.PutImageRecipePolicyResponse = exports.PutImageRecipePolicyRequest = exports.PutImagePolicyResponse = exports.PutImagePolicyRequest = exports.PutContainerRecipePolicyResponse = exports.PutContainerRecipePolicyRequest = void 0;
3
+ exports.DiskImageFormat = exports.LaunchTemplateConfiguration = exports.ResourceAlreadyExistsException = exports.CreateContainerRecipeResponse = exports.CreateContainerRecipeRequest = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.CreateComponentResponse = exports.CreateComponentRequest = exports.ContainerRecipeSummary = exports.ContainerRecipe = exports.InstanceConfiguration = exports.InstanceBlockDeviceMapping = exports.EbsInstanceBlockDeviceSpecification = exports.EbsVolumeType = exports.ContainerType = exports.ContainerDistributionConfiguration = exports.TargetContainerRepository = exports.ContainerRepositoryService = exports.Container = exports.ComponentVersion = exports.ComponentSummary = exports.ComponentFormat = exports.ComponentConfiguration = exports.ComponentParameter = exports.Component = exports.ComponentType = exports.ComponentState = exports.ComponentStatus = exports.Platform = exports.ComponentParameterDetail = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CancelImageCreationResponse = exports.CancelImageCreationRequest = exports.CallRateLimitExceededException = exports.BuildType = exports.AmiDistributionConfiguration = exports.LaunchPermissionConfiguration = exports.Ami = exports.ImageState = exports.ImageStatus = exports.AdditionalInstanceConfiguration = exports.SystemsManagerAgent = void 0;
4
+ exports.ImageType = exports.GetImageRequest = exports.GetDistributionConfigurationResponse = exports.GetDistributionConfigurationRequest = exports.GetContainerRecipePolicyResponse = exports.GetContainerRecipePolicyRequest = exports.GetContainerRecipeResponse = exports.GetContainerRecipeRequest = exports.ResourceNotFoundException = exports.GetComponentPolicyResponse = exports.GetComponentPolicyRequest = exports.GetComponentResponse = exports.GetComponentRequest = exports.Filter = exports.DistributionConfigurationSummary = exports.DistributionConfiguration = exports.DeleteInfrastructureConfigurationResponse = exports.DeleteInfrastructureConfigurationRequest = exports.DeleteImageRecipeResponse = exports.DeleteImageRecipeRequest = exports.DeleteImagePipelineResponse = exports.DeleteImagePipelineRequest = exports.DeleteImageResponse = exports.DeleteImageRequest = exports.DeleteDistributionConfigurationResponse = exports.DeleteDistributionConfigurationRequest = exports.DeleteContainerRecipeResponse = exports.DeleteContainerRecipeRequest = exports.ResourceDependencyException = exports.DeleteComponentResponse = exports.DeleteComponentRequest = exports.CreateInfrastructureConfigurationResponse = exports.CreateInfrastructureConfigurationRequest = exports.Logging = exports.S3Logs = exports.InstanceMetadataOptions = exports.CreateImageRecipeResponse = exports.CreateImageRecipeRequest = exports.CreateImagePipelineResponse = exports.CreateImagePipelineRequest = exports.PipelineStatus = exports.Schedule = exports.PipelineExecutionStartCondition = exports.CreateImageResponse = exports.CreateImageRequest = exports.ImageTestsConfiguration = exports.CreateDistributionConfigurationResponse = exports.CreateDistributionConfigurationRequest = exports.Distribution = exports.S3ExportConfiguration = void 0;
5
+ exports.InvalidParameterException = exports.ListInfrastructureConfigurationsResponse = exports.InfrastructureConfigurationSummary = exports.ListInfrastructureConfigurationsRequest = exports.ListImagesResponse = exports.ImageVersion = exports.ListImagesRequest = exports.ListImageRecipesResponse = exports.ImageRecipeSummary = exports.ListImageRecipesRequest = exports.ListImagePipelinesResponse = exports.ListImagePipelinesRequest = exports.ListImagePipelineImagesResponse = exports.ListImagePipelineImagesRequest = exports.ListImagePackagesResponse = exports.ImagePackage = exports.ListImagePackagesRequest = exports.ListImageBuildVersionsResponse = exports.ImageSummary = exports.ListImageBuildVersionsRequest = exports.ListDistributionConfigurationsResponse = exports.ListDistributionConfigurationsRequest = exports.ListContainerRecipesResponse = exports.ListContainerRecipesRequest = exports.ListComponentsResponse = exports.ListComponentsRequest = exports.Ownership = exports.ListComponentBuildVersionsResponse = exports.ListComponentBuildVersionsRequest = exports.InvalidPaginationTokenException = exports.ImportVmImageResponse = exports.ImportVmImageRequest = exports.ImportComponentResponse = exports.ImportComponentRequest = exports.GetInfrastructureConfigurationResponse = exports.GetInfrastructureConfigurationRequest = exports.GetImageRecipePolicyResponse = exports.GetImageRecipePolicyRequest = exports.GetImageRecipeResponse = exports.GetImageRecipeRequest = exports.GetImagePolicyResponse = exports.GetImagePolicyRequest = exports.GetImagePipelineResponse = exports.ImagePipeline = exports.GetImagePipelineRequest = exports.GetImageResponse = exports.Image = exports.OutputResources = exports.InfrastructureConfiguration = exports.ImageRecipe = void 0;
6
+ exports.UpdateInfrastructureConfigurationResponse = exports.UpdateInfrastructureConfigurationRequest = exports.UpdateImagePipelineResponse = exports.UpdateImagePipelineRequest = exports.UpdateDistributionConfigurationResponse = exports.UpdateDistributionConfigurationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartImagePipelineExecutionResponse = exports.StartImagePipelineExecutionRequest = exports.PutImageRecipePolicyResponse = exports.PutImageRecipePolicyRequest = exports.PutImagePolicyResponse = exports.PutImagePolicyRequest = exports.PutContainerRecipePolicyResponse = exports.PutContainerRecipePolicyRequest = exports.PutComponentPolicyResponse = exports.PutComponentPolicyRequest = exports.InvalidParameterValueException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = void 0;
7
7
  var SystemsManagerAgent;
8
8
  (function (SystemsManagerAgent) {
9
9
  SystemsManagerAgent.filterSensitiveLog = (obj) => ({
@@ -54,6 +54,12 @@ var AmiDistributionConfiguration;
54
54
  ...obj,
55
55
  });
56
56
  })(AmiDistributionConfiguration = exports.AmiDistributionConfiguration || (exports.AmiDistributionConfiguration = {}));
57
+ var BuildType;
58
+ (function (BuildType) {
59
+ BuildType["IMPORT"] = "IMPORT";
60
+ BuildType["SCHEDULED"] = "SCHEDULED";
61
+ BuildType["USER_INITIATED"] = "USER_INITIATED";
62
+ })(BuildType = exports.BuildType || (exports.BuildType = {}));
57
63
  var CallRateLimitExceededException;
58
64
  (function (CallRateLimitExceededException) {
59
65
  CallRateLimitExceededException.filterSensitiveLog = (obj) => ({
@@ -294,6 +300,18 @@ var LaunchTemplateConfiguration;
294
300
  ...obj,
295
301
  });
296
302
  })(LaunchTemplateConfiguration = exports.LaunchTemplateConfiguration || (exports.LaunchTemplateConfiguration = {}));
303
+ var DiskImageFormat;
304
+ (function (DiskImageFormat) {
305
+ DiskImageFormat["RAW"] = "RAW";
306
+ DiskImageFormat["VHD"] = "VHD";
307
+ DiskImageFormat["VMDK"] = "VMDK";
308
+ })(DiskImageFormat = exports.DiskImageFormat || (exports.DiskImageFormat = {}));
309
+ var S3ExportConfiguration;
310
+ (function (S3ExportConfiguration) {
311
+ S3ExportConfiguration.filterSensitiveLog = (obj) => ({
312
+ ...obj,
313
+ });
314
+ })(S3ExportConfiguration = exports.S3ExportConfiguration || (exports.S3ExportConfiguration = {}));
297
315
  var Distribution;
298
316
  (function (Distribution) {
299
317
  Distribution.filterSensitiveLog = (obj) => ({
@@ -693,6 +711,18 @@ var ImportComponentResponse;
693
711
  ...obj,
694
712
  });
695
713
  })(ImportComponentResponse = exports.ImportComponentResponse || (exports.ImportComponentResponse = {}));
714
+ var ImportVmImageRequest;
715
+ (function (ImportVmImageRequest) {
716
+ ImportVmImageRequest.filterSensitiveLog = (obj) => ({
717
+ ...obj,
718
+ });
719
+ })(ImportVmImageRequest = exports.ImportVmImageRequest || (exports.ImportVmImageRequest = {}));
720
+ var ImportVmImageResponse;
721
+ (function (ImportVmImageResponse) {
722
+ ImportVmImageResponse.filterSensitiveLog = (obj) => ({
723
+ ...obj,
724
+ });
725
+ })(ImportVmImageResponse = exports.ImportVmImageResponse || (exports.ImportVmImageResponse = {}));
696
726
  var InvalidPaginationTokenException;
697
727
  (function (InvalidPaginationTokenException) {
698
728
  InvalidPaginationTokenException.filterSensitiveLog = (obj) => ({
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1CancelImageCreationCommand = exports.serializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.serializeAws_restJson1UpdateImagePipelineCommand = exports.serializeAws_restJson1UpdateDistributionConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartImagePipelineExecutionCommand = exports.serializeAws_restJson1PutImageRecipePolicyCommand = exports.serializeAws_restJson1PutImagePolicyCommand = exports.serializeAws_restJson1PutContainerRecipePolicyCommand = exports.serializeAws_restJson1PutComponentPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.serializeAws_restJson1ListImagesCommand = exports.serializeAws_restJson1ListImageRecipesCommand = exports.serializeAws_restJson1ListImagePipelinesCommand = exports.serializeAws_restJson1ListImagePipelineImagesCommand = exports.serializeAws_restJson1ListImagePackagesCommand = exports.serializeAws_restJson1ListImageBuildVersionsCommand = exports.serializeAws_restJson1ListDistributionConfigurationsCommand = exports.serializeAws_restJson1ListContainerRecipesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListComponentBuildVersionsCommand = exports.serializeAws_restJson1ImportComponentCommand = exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = exports.serializeAws_restJson1GetImageRecipePolicyCommand = exports.serializeAws_restJson1GetImageRecipeCommand = exports.serializeAws_restJson1GetImagePolicyCommand = exports.serializeAws_restJson1GetImagePipelineCommand = exports.serializeAws_restJson1GetImageCommand = exports.serializeAws_restJson1GetDistributionConfigurationCommand = exports.serializeAws_restJson1GetContainerRecipePolicyCommand = exports.serializeAws_restJson1GetContainerRecipeCommand = exports.serializeAws_restJson1GetComponentPolicyCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.serializeAws_restJson1DeleteImageRecipeCommand = exports.serializeAws_restJson1DeleteImagePipelineCommand = exports.serializeAws_restJson1DeleteImageCommand = exports.serializeAws_restJson1DeleteDistributionConfigurationCommand = exports.serializeAws_restJson1DeleteContainerRecipeCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.serializeAws_restJson1CreateImageRecipeCommand = exports.serializeAws_restJson1CreateImagePipelineCommand = exports.serializeAws_restJson1CreateImageCommand = exports.serializeAws_restJson1CreateDistributionConfigurationCommand = exports.serializeAws_restJson1CreateContainerRecipeCommand = exports.serializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1CancelImageCreationCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1UpdateImagePipelineCommand = exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = exports.deserializeAws_restJson1PutImageRecipePolicyCommand = exports.deserializeAws_restJson1PutImagePolicyCommand = exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = exports.deserializeAws_restJson1PutComponentPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.deserializeAws_restJson1ListImagesCommand = exports.deserializeAws_restJson1ListImageRecipesCommand = exports.deserializeAws_restJson1ListImagePipelinesCommand = exports.deserializeAws_restJson1ListImagePipelineImagesCommand = exports.deserializeAws_restJson1ListImagePackagesCommand = exports.deserializeAws_restJson1ListImageBuildVersionsCommand = exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = exports.deserializeAws_restJson1ListContainerRecipesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = exports.deserializeAws_restJson1ImportComponentCommand = exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = exports.deserializeAws_restJson1GetImageRecipePolicyCommand = exports.deserializeAws_restJson1GetImageRecipeCommand = exports.deserializeAws_restJson1GetImagePolicyCommand = exports.deserializeAws_restJson1GetImagePipelineCommand = exports.deserializeAws_restJson1GetImageCommand = exports.deserializeAws_restJson1GetDistributionConfigurationCommand = exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = exports.deserializeAws_restJson1GetContainerRecipeCommand = exports.deserializeAws_restJson1GetComponentPolicyCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.deserializeAws_restJson1DeleteImageRecipeCommand = exports.deserializeAws_restJson1DeleteImagePipelineCommand = exports.deserializeAws_restJson1DeleteImageCommand = exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = exports.deserializeAws_restJson1DeleteContainerRecipeCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1CreateImageRecipeCommand = exports.deserializeAws_restJson1CreateImagePipelineCommand = exports.deserializeAws_restJson1CreateImageCommand = exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = exports.deserializeAws_restJson1CreateContainerRecipeCommand = exports.deserializeAws_restJson1CreateComponentCommand = void 0;
3
+ exports.serializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.serializeAws_restJson1UpdateImagePipelineCommand = exports.serializeAws_restJson1UpdateDistributionConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartImagePipelineExecutionCommand = exports.serializeAws_restJson1PutImageRecipePolicyCommand = exports.serializeAws_restJson1PutImagePolicyCommand = exports.serializeAws_restJson1PutContainerRecipePolicyCommand = exports.serializeAws_restJson1PutComponentPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.serializeAws_restJson1ListImagesCommand = exports.serializeAws_restJson1ListImageRecipesCommand = exports.serializeAws_restJson1ListImagePipelinesCommand = exports.serializeAws_restJson1ListImagePipelineImagesCommand = exports.serializeAws_restJson1ListImagePackagesCommand = exports.serializeAws_restJson1ListImageBuildVersionsCommand = exports.serializeAws_restJson1ListDistributionConfigurationsCommand = exports.serializeAws_restJson1ListContainerRecipesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListComponentBuildVersionsCommand = exports.serializeAws_restJson1ImportVmImageCommand = exports.serializeAws_restJson1ImportComponentCommand = exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = exports.serializeAws_restJson1GetImageRecipePolicyCommand = exports.serializeAws_restJson1GetImageRecipeCommand = exports.serializeAws_restJson1GetImagePolicyCommand = exports.serializeAws_restJson1GetImagePipelineCommand = exports.serializeAws_restJson1GetImageCommand = exports.serializeAws_restJson1GetDistributionConfigurationCommand = exports.serializeAws_restJson1GetContainerRecipePolicyCommand = exports.serializeAws_restJson1GetContainerRecipeCommand = exports.serializeAws_restJson1GetComponentPolicyCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.serializeAws_restJson1DeleteImageRecipeCommand = exports.serializeAws_restJson1DeleteImagePipelineCommand = exports.serializeAws_restJson1DeleteImageCommand = exports.serializeAws_restJson1DeleteDistributionConfigurationCommand = exports.serializeAws_restJson1DeleteContainerRecipeCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.serializeAws_restJson1CreateImageRecipeCommand = exports.serializeAws_restJson1CreateImagePipelineCommand = exports.serializeAws_restJson1CreateImageCommand = exports.serializeAws_restJson1CreateDistributionConfigurationCommand = exports.serializeAws_restJson1CreateContainerRecipeCommand = exports.serializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1CancelImageCreationCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1UpdateImagePipelineCommand = exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = exports.deserializeAws_restJson1PutImageRecipePolicyCommand = exports.deserializeAws_restJson1PutImagePolicyCommand = exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = exports.deserializeAws_restJson1PutComponentPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.deserializeAws_restJson1ListImagesCommand = exports.deserializeAws_restJson1ListImageRecipesCommand = exports.deserializeAws_restJson1ListImagePipelinesCommand = exports.deserializeAws_restJson1ListImagePipelineImagesCommand = exports.deserializeAws_restJson1ListImagePackagesCommand = exports.deserializeAws_restJson1ListImageBuildVersionsCommand = exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = exports.deserializeAws_restJson1ListContainerRecipesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = exports.deserializeAws_restJson1ImportVmImageCommand = exports.deserializeAws_restJson1ImportComponentCommand = exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = exports.deserializeAws_restJson1GetImageRecipePolicyCommand = exports.deserializeAws_restJson1GetImageRecipeCommand = exports.deserializeAws_restJson1GetImagePolicyCommand = exports.deserializeAws_restJson1GetImagePipelineCommand = exports.deserializeAws_restJson1GetImageCommand = exports.deserializeAws_restJson1GetDistributionConfigurationCommand = exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = exports.deserializeAws_restJson1GetContainerRecipeCommand = exports.deserializeAws_restJson1GetComponentPolicyCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.deserializeAws_restJson1DeleteImageRecipeCommand = exports.deserializeAws_restJson1DeleteImagePipelineCommand = exports.deserializeAws_restJson1DeleteImageCommand = exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = exports.deserializeAws_restJson1DeleteContainerRecipeCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1CreateImageRecipeCommand = exports.deserializeAws_restJson1CreateImagePipelineCommand = exports.deserializeAws_restJson1CreateImageCommand = exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = exports.deserializeAws_restJson1CreateContainerRecipeCommand = exports.deserializeAws_restJson1CreateComponentCommand = exports.deserializeAws_restJson1CancelImageCreationCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -733,6 +733,37 @@ const serializeAws_restJson1ImportComponentCommand = async (input, context) => {
733
733
  });
734
734
  };
735
735
  exports.serializeAws_restJson1ImportComponentCommand = serializeAws_restJson1ImportComponentCommand;
736
+ const serializeAws_restJson1ImportVmImageCommand = async (input, context) => {
737
+ var _a;
738
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
739
+ const headers = {
740
+ "content-type": "application/json",
741
+ };
742
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ImportVmImage";
743
+ let body;
744
+ body = JSON.stringify({
745
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
746
+ ...(input.description !== undefined && input.description !== null && { description: input.description }),
747
+ ...(input.name !== undefined && input.name !== null && { name: input.name }),
748
+ ...(input.osVersion !== undefined && input.osVersion !== null && { osVersion: input.osVersion }),
749
+ ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
750
+ ...(input.semanticVersion !== undefined &&
751
+ input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
752
+ ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
753
+ ...(input.vmImportTaskId !== undefined &&
754
+ input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId }),
755
+ });
756
+ return new protocol_http_1.HttpRequest({
757
+ protocol,
758
+ hostname,
759
+ port,
760
+ method: "PUT",
761
+ headers,
762
+ path: resolvedPath,
763
+ body,
764
+ });
765
+ };
766
+ exports.serializeAws_restJson1ImportVmImageCommand = serializeAws_restJson1ImportVmImageCommand;
736
767
  const serializeAws_restJson1ListComponentBuildVersionsCommand = async (input, context) => {
737
768
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
738
769
  const headers = {
@@ -4213,6 +4244,78 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
4213
4244
  delete response.Message;
4214
4245
  return Promise.reject(Object.assign(new Error(message), response));
4215
4246
  };
4247
+ const deserializeAws_restJson1ImportVmImageCommand = async (output, context) => {
4248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4249
+ return deserializeAws_restJson1ImportVmImageCommandError(output, context);
4250
+ }
4251
+ const contents = {
4252
+ $metadata: deserializeMetadata(output),
4253
+ clientToken: undefined,
4254
+ imageArn: undefined,
4255
+ requestId: undefined,
4256
+ };
4257
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4258
+ if (data.clientToken !== undefined && data.clientToken !== null) {
4259
+ contents.clientToken = smithy_client_1.expectString(data.clientToken);
4260
+ }
4261
+ if (data.imageArn !== undefined && data.imageArn !== null) {
4262
+ contents.imageArn = smithy_client_1.expectString(data.imageArn);
4263
+ }
4264
+ if (data.requestId !== undefined && data.requestId !== null) {
4265
+ contents.requestId = smithy_client_1.expectString(data.requestId);
4266
+ }
4267
+ return Promise.resolve(contents);
4268
+ };
4269
+ exports.deserializeAws_restJson1ImportVmImageCommand = deserializeAws_restJson1ImportVmImageCommand;
4270
+ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context) => {
4271
+ const parsedOutput = {
4272
+ ...output,
4273
+ body: await parseBody(output.body, context),
4274
+ };
4275
+ let response;
4276
+ let errorCode = "UnknownError";
4277
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4278
+ switch (errorCode) {
4279
+ case "ClientException":
4280
+ case "com.amazonaws.imagebuilder#ClientException":
4281
+ response = {
4282
+ ...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
4283
+ name: errorCode,
4284
+ $metadata: deserializeMetadata(output),
4285
+ };
4286
+ break;
4287
+ case "ServiceException":
4288
+ case "com.amazonaws.imagebuilder#ServiceException":
4289
+ response = {
4290
+ ...(await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)),
4291
+ name: errorCode,
4292
+ $metadata: deserializeMetadata(output),
4293
+ };
4294
+ break;
4295
+ case "ServiceUnavailableException":
4296
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4297
+ response = {
4298
+ ...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
4299
+ name: errorCode,
4300
+ $metadata: deserializeMetadata(output),
4301
+ };
4302
+ break;
4303
+ default:
4304
+ const parsedBody = parsedOutput.body;
4305
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4306
+ response = {
4307
+ ...parsedBody,
4308
+ name: `${errorCode}`,
4309
+ message: parsedBody.message || parsedBody.Message || errorCode,
4310
+ $fault: "client",
4311
+ $metadata: deserializeMetadata(output),
4312
+ };
4313
+ }
4314
+ const message = response.message || response.Message || errorCode;
4315
+ response.message = message;
4316
+ delete response.Message;
4317
+ return Promise.reject(Object.assign(new Error(message), response));
4318
+ };
4216
4319
  const deserializeAws_restJson1ListComponentBuildVersionsCommand = async (output, context) => {
4217
4320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4218
4321
  return deserializeAws_restJson1ListComponentBuildVersionsCommandError(output, context);
@@ -6790,6 +6893,10 @@ const serializeAws_restJson1Distribution = (input, context) => {
6790
6893
  licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
6791
6894
  }),
6792
6895
  ...(input.region !== undefined && input.region !== null && { region: input.region }),
6896
+ ...(input.s3ExportConfiguration !== undefined &&
6897
+ input.s3ExportConfiguration !== null && {
6898
+ s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
6899
+ }),
6793
6900
  };
6794
6901
  };
6795
6902
  const serializeAws_restJson1DistributionList = (input, context) => {
@@ -6897,6 +7004,14 @@ const serializeAws_restJson1InstanceTypeList = (input, context) => {
6897
7004
  };
6898
7005
  const serializeAws_restJson1LaunchPermissionConfiguration = (input, context) => {
6899
7006
  return {
7007
+ ...(input.organizationArns !== undefined &&
7008
+ input.organizationArns !== null && {
7009
+ organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
7010
+ }),
7011
+ ...(input.organizationalUnitArns !== undefined &&
7012
+ input.organizationalUnitArns !== null && {
7013
+ organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
7014
+ }),
6900
7015
  ...(input.userGroups !== undefined &&
6901
7016
  input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) }),
6902
7017
  ...(input.userIds !== undefined &&
@@ -6938,6 +7053,26 @@ const serializeAws_restJson1Logging = (input, context) => {
6938
7053
  input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
6939
7054
  };
6940
7055
  };
7056
+ const serializeAws_restJson1OrganizationalUnitArnList = (input, context) => {
7057
+ return input
7058
+ .filter((e) => e != null)
7059
+ .map((entry) => {
7060
+ if (entry === null) {
7061
+ return null;
7062
+ }
7063
+ return entry;
7064
+ });
7065
+ };
7066
+ const serializeAws_restJson1OrganizationArnList = (input, context) => {
7067
+ return input
7068
+ .filter((e) => e != null)
7069
+ .map((entry) => {
7070
+ if (entry === null) {
7071
+ return null;
7072
+ }
7073
+ return entry;
7074
+ });
7075
+ };
6941
7076
  const serializeAws_restJson1OsVersionList = (input, context) => {
6942
7077
  return input
6943
7078
  .filter((e) => e != null)
@@ -6959,6 +7094,15 @@ const serializeAws_restJson1ResourceTagMap = (input, context) => {
6959
7094
  };
6960
7095
  }, {});
6961
7096
  };
7097
+ const serializeAws_restJson1S3ExportConfiguration = (input, context) => {
7098
+ return {
7099
+ ...(input.diskImageFormat !== undefined &&
7100
+ input.diskImageFormat !== null && { diskImageFormat: input.diskImageFormat }),
7101
+ ...(input.roleName !== undefined && input.roleName !== null && { roleName: input.roleName }),
7102
+ ...(input.s3Bucket !== undefined && input.s3Bucket !== null && { s3Bucket: input.s3Bucket }),
7103
+ ...(input.s3Prefix !== undefined && input.s3Prefix !== null && { s3Prefix: input.s3Prefix }),
7104
+ };
7105
+ };
6962
7106
  const serializeAws_restJson1S3Logs = (input, context) => {
6963
7107
  return {
6964
7108
  ...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
@@ -7330,6 +7474,9 @@ const deserializeAws_restJson1Distribution = (output, context) => {
7330
7474
  ? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
7331
7475
  : undefined,
7332
7476
  region: smithy_client_1.expectString(output.region),
7477
+ s3ExportConfiguration: output.s3ExportConfiguration !== undefined && output.s3ExportConfiguration !== null
7478
+ ? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
7479
+ : undefined,
7333
7480
  };
7334
7481
  };
7335
7482
  const deserializeAws_restJson1DistributionConfiguration = (output, context) => {
@@ -7398,6 +7545,7 @@ const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = (output, con
7398
7545
  const deserializeAws_restJson1Image = (output, context) => {
7399
7546
  return {
7400
7547
  arn: smithy_client_1.expectString(output.arn),
7548
+ buildType: smithy_client_1.expectString(output.buildType),
7401
7549
  containerRecipe: output.containerRecipe !== undefined && output.containerRecipe !== null
7402
7550
  ? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
7403
7551
  : undefined,
@@ -7544,6 +7692,7 @@ const deserializeAws_restJson1ImageState = (output, context) => {
7544
7692
  const deserializeAws_restJson1ImageSummary = (output, context) => {
7545
7693
  return {
7546
7694
  arn: smithy_client_1.expectString(output.arn),
7695
+ buildType: smithy_client_1.expectString(output.buildType),
7547
7696
  dateCreated: smithy_client_1.expectString(output.dateCreated),
7548
7697
  name: smithy_client_1.expectString(output.name),
7549
7698
  osVersion: smithy_client_1.expectString(output.osVersion),
@@ -7581,6 +7730,7 @@ const deserializeAws_restJson1ImageTestsConfiguration = (output, context) => {
7581
7730
  const deserializeAws_restJson1ImageVersion = (output, context) => {
7582
7731
  return {
7583
7732
  arn: smithy_client_1.expectString(output.arn),
7733
+ buildType: smithy_client_1.expectString(output.buildType),
7584
7734
  dateCreated: smithy_client_1.expectString(output.dateCreated),
7585
7735
  name: smithy_client_1.expectString(output.name),
7586
7736
  osVersion: smithy_client_1.expectString(output.osVersion),
@@ -7707,6 +7857,12 @@ const deserializeAws_restJson1InstanceTypeList = (output, context) => {
7707
7857
  };
7708
7858
  const deserializeAws_restJson1LaunchPermissionConfiguration = (output, context) => {
7709
7859
  return {
7860
+ organizationArns: output.organizationArns !== undefined && output.organizationArns !== null
7861
+ ? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
7862
+ : undefined,
7863
+ organizationalUnitArns: output.organizationalUnitArns !== undefined && output.organizationalUnitArns !== null
7864
+ ? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
7865
+ : undefined,
7710
7866
  userGroups: output.userGroups !== undefined && output.userGroups !== null
7711
7867
  ? deserializeAws_restJson1StringList(output.userGroups, context)
7712
7868
  : undefined,
@@ -7749,6 +7905,26 @@ const deserializeAws_restJson1Logging = (output, context) => {
7749
7905
  : undefined,
7750
7906
  };
7751
7907
  };
7908
+ const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
7909
+ return (output || [])
7910
+ .filter((e) => e != null)
7911
+ .map((entry) => {
7912
+ if (entry === null) {
7913
+ return null;
7914
+ }
7915
+ return smithy_client_1.expectString(entry);
7916
+ });
7917
+ };
7918
+ const deserializeAws_restJson1OrganizationArnList = (output, context) => {
7919
+ return (output || [])
7920
+ .filter((e) => e != null)
7921
+ .map((entry) => {
7922
+ if (entry === null) {
7923
+ return null;
7924
+ }
7925
+ return smithy_client_1.expectString(entry);
7926
+ });
7927
+ };
7752
7928
  const deserializeAws_restJson1OsVersionList = (output, context) => {
7753
7929
  return (output || [])
7754
7930
  .filter((e) => e != null)
@@ -7790,6 +7966,14 @@ const deserializeAws_restJson1ResourceTagMap = (output, context) => {
7790
7966
  };
7791
7967
  }, {});
7792
7968
  };
7969
+ const deserializeAws_restJson1S3ExportConfiguration = (output, context) => {
7970
+ return {
7971
+ diskImageFormat: smithy_client_1.expectString(output.diskImageFormat),
7972
+ roleName: smithy_client_1.expectString(output.roleName),
7973
+ s3Bucket: smithy_client_1.expectString(output.s3Bucket),
7974
+ s3Prefix: smithy_client_1.expectString(output.s3Prefix),
7975
+ };
7976
+ };
7793
7977
  const deserializeAws_restJson1S3Logs = (output, context) => {
7794
7978
  return {
7795
7979
  s3BucketName: smithy_client_1.expectString(output.s3BucketName),
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
- const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const getRuntimeConfig = (config) => {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
20
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
21
  return {
24
22
  ...clientSharedValues,
@@ -26,6 +26,7 @@ import { GetImageRecipeCommand, } from "./commands/GetImageRecipeCommand";
26
26
  import { GetImageRecipePolicyCommand, } from "./commands/GetImageRecipePolicyCommand";
27
27
  import { GetInfrastructureConfigurationCommand, } from "./commands/GetInfrastructureConfigurationCommand";
28
28
  import { ImportComponentCommand, } from "./commands/ImportComponentCommand";
29
+ import { ImportVmImageCommand, } from "./commands/ImportVmImageCommand";
29
30
  import { ListComponentBuildVersionsCommand, } from "./commands/ListComponentBuildVersionsCommand";
30
31
  import { ListComponentsCommand, } from "./commands/ListComponentsCommand";
31
32
  import { ListContainerRecipesCommand, } from "./commands/ListContainerRecipesCommand";
@@ -432,6 +433,20 @@ var Imagebuilder = (function (_super) {
432
433
  return this.send(command, optionsOrCb);
433
434
  }
434
435
  };
436
+ Imagebuilder.prototype.importVmImage = function (args, optionsOrCb, cb) {
437
+ var command = new ImportVmImageCommand(args);
438
+ if (typeof optionsOrCb === "function") {
439
+ this.send(command, optionsOrCb);
440
+ }
441
+ else if (typeof cb === "function") {
442
+ if (typeof optionsOrCb !== "object")
443
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
444
+ this.send(command, optionsOrCb || {}, cb);
445
+ }
446
+ else {
447
+ return this.send(command, optionsOrCb);
448
+ }
449
+ };
435
450
  Imagebuilder.prototype.listComponentBuildVersions = function (args, optionsOrCb, cb) {
436
451
  var command = new ListComponentBuildVersionsCommand(args);
437
452
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ImportVmImageRequest, ImportVmImageResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ImportVmImageCommand, serializeAws_restJson1ImportVmImageCommand, } from "../protocols/Aws_restJson1";
6
+ var ImportVmImageCommand = (function (_super) {
7
+ __extends(ImportVmImageCommand, _super);
8
+ function ImportVmImageCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ImportVmImageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ImagebuilderClient";
18
+ var commandName = "ImportVmImageCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ImportVmImageRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ImportVmImageResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ImportVmImageCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ImportVmImageCommand(input, context);
33
+ };
34
+ ImportVmImageCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ImportVmImageCommand(output, context);
36
+ };
37
+ return ImportVmImageCommand;
38
+ }($Command));
39
+ export { ImportVmImageCommand };
@@ -25,6 +25,7 @@ export * from "./GetImageRecipeCommand";
25
25
  export * from "./GetImageRecipePolicyCommand";
26
26
  export * from "./GetInfrastructureConfigurationCommand";
27
27
  export * from "./ImportComponentCommand";
28
+ export * from "./ImportVmImageCommand";
28
29
  export * from "./ListComponentBuildVersionsCommand";
29
30
  export * from "./ListComponentsCommand";
30
31
  export * from "./ListContainerRecipesCommand";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",