@aws-sdk/client-imagebuilder 3.43.0 → 3.45.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,17 @@
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
18
 
8
19
 
@@ -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) => {
@@ -6987,6 +7094,15 @@ const serializeAws_restJson1ResourceTagMap = (input, context) => {
6987
7094
  };
6988
7095
  }, {});
6989
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
+ };
6990
7106
  const serializeAws_restJson1S3Logs = (input, context) => {
6991
7107
  return {
6992
7108
  ...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
@@ -7358,6 +7474,9 @@ const deserializeAws_restJson1Distribution = (output, context) => {
7358
7474
  ? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
7359
7475
  : undefined,
7360
7476
  region: smithy_client_1.expectString(output.region),
7477
+ s3ExportConfiguration: output.s3ExportConfiguration !== undefined && output.s3ExportConfiguration !== null
7478
+ ? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
7479
+ : undefined,
7361
7480
  };
7362
7481
  };
7363
7482
  const deserializeAws_restJson1DistributionConfiguration = (output, context) => {
@@ -7426,6 +7545,7 @@ const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = (output, con
7426
7545
  const deserializeAws_restJson1Image = (output, context) => {
7427
7546
  return {
7428
7547
  arn: smithy_client_1.expectString(output.arn),
7548
+ buildType: smithy_client_1.expectString(output.buildType),
7429
7549
  containerRecipe: output.containerRecipe !== undefined && output.containerRecipe !== null
7430
7550
  ? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
7431
7551
  : undefined,
@@ -7572,6 +7692,7 @@ const deserializeAws_restJson1ImageState = (output, context) => {
7572
7692
  const deserializeAws_restJson1ImageSummary = (output, context) => {
7573
7693
  return {
7574
7694
  arn: smithy_client_1.expectString(output.arn),
7695
+ buildType: smithy_client_1.expectString(output.buildType),
7575
7696
  dateCreated: smithy_client_1.expectString(output.dateCreated),
7576
7697
  name: smithy_client_1.expectString(output.name),
7577
7698
  osVersion: smithy_client_1.expectString(output.osVersion),
@@ -7609,6 +7730,7 @@ const deserializeAws_restJson1ImageTestsConfiguration = (output, context) => {
7609
7730
  const deserializeAws_restJson1ImageVersion = (output, context) => {
7610
7731
  return {
7611
7732
  arn: smithy_client_1.expectString(output.arn),
7733
+ buildType: smithy_client_1.expectString(output.buildType),
7612
7734
  dateCreated: smithy_client_1.expectString(output.dateCreated),
7613
7735
  name: smithy_client_1.expectString(output.name),
7614
7736
  osVersion: smithy_client_1.expectString(output.osVersion),
@@ -7844,6 +7966,14 @@ const deserializeAws_restJson1ResourceTagMap = (output, context) => {
7844
7966
  };
7845
7967
  }, {});
7846
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
+ };
7847
7977
  const deserializeAws_restJson1S3Logs = (output, context) => {
7848
7978
  return {
7849
7979
  s3BucketName: smithy_client_1.expectString(output.s3BucketName),
@@ -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",
@@ -37,6 +37,12 @@ export var AmiDistributionConfiguration;
37
37
  (function (AmiDistributionConfiguration) {
38
38
  AmiDistributionConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
39
39
  })(AmiDistributionConfiguration || (AmiDistributionConfiguration = {}));
40
+ export var BuildType;
41
+ (function (BuildType) {
42
+ BuildType["IMPORT"] = "IMPORT";
43
+ BuildType["SCHEDULED"] = "SCHEDULED";
44
+ BuildType["USER_INITIATED"] = "USER_INITIATED";
45
+ })(BuildType || (BuildType = {}));
40
46
  export var CallRateLimitExceededException;
41
47
  (function (CallRateLimitExceededException) {
42
48
  CallRateLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -209,6 +215,16 @@ export var LaunchTemplateConfiguration;
209
215
  (function (LaunchTemplateConfiguration) {
210
216
  LaunchTemplateConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
217
  })(LaunchTemplateConfiguration || (LaunchTemplateConfiguration = {}));
218
+ export var DiskImageFormat;
219
+ (function (DiskImageFormat) {
220
+ DiskImageFormat["RAW"] = "RAW";
221
+ DiskImageFormat["VHD"] = "VHD";
222
+ DiskImageFormat["VMDK"] = "VMDK";
223
+ })(DiskImageFormat || (DiskImageFormat = {}));
224
+ export var S3ExportConfiguration;
225
+ (function (S3ExportConfiguration) {
226
+ S3ExportConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
+ })(S3ExportConfiguration || (S3ExportConfiguration = {}));
212
228
  export var Distribution;
213
229
  (function (Distribution) {
214
230
  Distribution.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -480,6 +496,14 @@ export var ImportComponentResponse;
480
496
  (function (ImportComponentResponse) {
481
497
  ImportComponentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
482
498
  })(ImportComponentResponse || (ImportComponentResponse = {}));
499
+ export var ImportVmImageRequest;
500
+ (function (ImportVmImageRequest) {
501
+ ImportVmImageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
502
+ })(ImportVmImageRequest || (ImportVmImageRequest = {}));
503
+ export var ImportVmImageResponse;
504
+ (function (ImportVmImageResponse) {
505
+ ImportVmImageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
506
+ })(ImportVmImageResponse || (ImportVmImageResponse = {}));
483
507
  export var InvalidPaginationTokenException;
484
508
  (function (InvalidPaginationTokenException) {
485
509
  InvalidPaginationTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };