@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.
@@ -730,6 +730,33 @@ export var serializeAws_restJson1ImportComponentCommand = function (input, conte
730
730
  }
731
731
  });
732
732
  }); };
733
+ export var serializeAws_restJson1ImportVmImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
734
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
735
+ var _c;
736
+ return __generator(this, function (_d) {
737
+ switch (_d.label) {
738
+ case 0: return [4, context.endpoint()];
739
+ case 1:
740
+ _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
741
+ headers = {
742
+ "content-type": "application/json",
743
+ };
744
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportVmImage";
745
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.osVersion !== undefined && input.osVersion !== null && { osVersion: input.osVersion })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
746
+ input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.vmImportTaskId !== undefined &&
747
+ input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId })));
748
+ return [2, new __HttpRequest({
749
+ protocol: protocol,
750
+ hostname: hostname,
751
+ port: port,
752
+ method: "PUT",
753
+ headers: headers,
754
+ path: resolvedPath,
755
+ body: body,
756
+ })];
757
+ }
758
+ });
759
+ }); };
733
760
  export var serializeAws_restJson1ListComponentBuildVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
734
761
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
735
762
  return __generator(this, function (_c) {
@@ -4595,6 +4622,92 @@ var deserializeAws_restJson1ImportComponentCommandError = function (output, cont
4595
4622
  }
4596
4623
  });
4597
4624
  }); };
4625
+ export var deserializeAws_restJson1ImportVmImageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4626
+ var contents, data, _a, _b;
4627
+ return __generator(this, function (_c) {
4628
+ switch (_c.label) {
4629
+ case 0:
4630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4631
+ return [2, deserializeAws_restJson1ImportVmImageCommandError(output, context)];
4632
+ }
4633
+ contents = {
4634
+ $metadata: deserializeMetadata(output),
4635
+ clientToken: undefined,
4636
+ imageArn: undefined,
4637
+ requestId: undefined,
4638
+ };
4639
+ _a = __expectNonNull;
4640
+ _b = __expectObject;
4641
+ return [4, parseBody(output.body, context)];
4642
+ case 1:
4643
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4644
+ if (data.clientToken !== undefined && data.clientToken !== null) {
4645
+ contents.clientToken = __expectString(data.clientToken);
4646
+ }
4647
+ if (data.imageArn !== undefined && data.imageArn !== null) {
4648
+ contents.imageArn = __expectString(data.imageArn);
4649
+ }
4650
+ if (data.requestId !== undefined && data.requestId !== null) {
4651
+ contents.requestId = __expectString(data.requestId);
4652
+ }
4653
+ return [2, Promise.resolve(contents)];
4654
+ }
4655
+ });
4656
+ }); };
4657
+ var deserializeAws_restJson1ImportVmImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4658
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
4659
+ var _f;
4660
+ return __generator(this, function (_g) {
4661
+ switch (_g.label) {
4662
+ case 0:
4663
+ _a = [__assign({}, output)];
4664
+ _f = {};
4665
+ return [4, parseBody(output.body, context)];
4666
+ case 1:
4667
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4668
+ errorCode = "UnknownError";
4669
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4670
+ _b = errorCode;
4671
+ switch (_b) {
4672
+ case "ClientException": return [3, 2];
4673
+ case "com.amazonaws.imagebuilder#ClientException": return [3, 2];
4674
+ case "ServiceException": return [3, 4];
4675
+ case "com.amazonaws.imagebuilder#ServiceException": return [3, 4];
4676
+ case "ServiceUnavailableException": return [3, 6];
4677
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException": return [3, 6];
4678
+ }
4679
+ return [3, 8];
4680
+ case 2:
4681
+ _c = [{}];
4682
+ return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
4683
+ case 3:
4684
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4685
+ return [3, 9];
4686
+ case 4:
4687
+ _d = [{}];
4688
+ return [4, deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)];
4689
+ case 5:
4690
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4691
+ return [3, 9];
4692
+ case 6:
4693
+ _e = [{}];
4694
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4695
+ case 7:
4696
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4697
+ return [3, 9];
4698
+ case 8:
4699
+ parsedBody = parsedOutput.body;
4700
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4701
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4702
+ _g.label = 9;
4703
+ case 9:
4704
+ message = response.message || response.Message || errorCode;
4705
+ response.message = message;
4706
+ delete response.Message;
4707
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4708
+ }
4709
+ });
4710
+ }); };
4598
4711
  export var deserializeAws_restJson1ListComponentBuildVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4599
4712
  var contents, data, _a, _b;
4600
4713
  return __generator(this, function (_c) {
@@ -7489,7 +7602,7 @@ var serializeAws_restJson1ContainerDistributionConfiguration = function (input,
7489
7602
  }));
7490
7603
  };
7491
7604
  var serializeAws_restJson1Distribution = function (input, context) {
7492
- return __assign(__assign(__assign(__assign(__assign({}, (input.amiDistributionConfiguration !== undefined &&
7605
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiDistributionConfiguration !== undefined &&
7493
7606
  input.amiDistributionConfiguration !== null && {
7494
7607
  amiDistributionConfiguration: serializeAws_restJson1AmiDistributionConfiguration(input.amiDistributionConfiguration, context),
7495
7608
  })), (input.containerDistributionConfiguration !== undefined &&
@@ -7501,7 +7614,10 @@ var serializeAws_restJson1Distribution = function (input, context) {
7501
7614
  })), (input.licenseConfigurationArns !== undefined &&
7502
7615
  input.licenseConfigurationArns !== null && {
7503
7616
  licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
7504
- })), (input.region !== undefined && input.region !== null && { region: input.region }));
7617
+ })), (input.region !== undefined && input.region !== null && { region: input.region })), (input.s3ExportConfiguration !== undefined &&
7618
+ input.s3ExportConfiguration !== null && {
7619
+ s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
7620
+ }));
7505
7621
  };
7506
7622
  var serializeAws_restJson1DistributionList = function (input, context) {
7507
7623
  return input
@@ -7660,6 +7776,10 @@ var serializeAws_restJson1ResourceTagMap = function (input, context) {
7660
7776
  return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
7661
7777
  }, {});
7662
7778
  };
7779
+ var serializeAws_restJson1S3ExportConfiguration = function (input, context) {
7780
+ return __assign(__assign(__assign(__assign({}, (input.diskImageFormat !== undefined &&
7781
+ input.diskImageFormat !== null && { diskImageFormat: input.diskImageFormat })), (input.roleName !== undefined && input.roleName !== null && { roleName: input.roleName })), (input.s3Bucket !== undefined && input.s3Bucket !== null && { s3Bucket: input.s3Bucket })), (input.s3Prefix !== undefined && input.s3Prefix !== null && { s3Prefix: input.s3Prefix }));
7782
+ };
7663
7783
  var serializeAws_restJson1S3Logs = function (input, context) {
7664
7784
  return __assign(__assign({}, (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.s3KeyPrefix !== undefined && input.s3KeyPrefix !== null && { s3KeyPrefix: input.s3KeyPrefix }));
7665
7785
  };
@@ -8018,6 +8138,9 @@ var deserializeAws_restJson1Distribution = function (output, context) {
8018
8138
  ? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
8019
8139
  : undefined,
8020
8140
  region: __expectString(output.region),
8141
+ s3ExportConfiguration: output.s3ExportConfiguration !== undefined && output.s3ExportConfiguration !== null
8142
+ ? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
8143
+ : undefined,
8021
8144
  };
8022
8145
  };
8023
8146
  var deserializeAws_restJson1DistributionConfiguration = function (output, context) {
@@ -8086,6 +8209,7 @@ var deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = function (outp
8086
8209
  var deserializeAws_restJson1Image = function (output, context) {
8087
8210
  return {
8088
8211
  arn: __expectString(output.arn),
8212
+ buildType: __expectString(output.buildType),
8089
8213
  containerRecipe: output.containerRecipe !== undefined && output.containerRecipe !== null
8090
8214
  ? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
8091
8215
  : undefined,
@@ -8232,6 +8356,7 @@ var deserializeAws_restJson1ImageState = function (output, context) {
8232
8356
  var deserializeAws_restJson1ImageSummary = function (output, context) {
8233
8357
  return {
8234
8358
  arn: __expectString(output.arn),
8359
+ buildType: __expectString(output.buildType),
8235
8360
  dateCreated: __expectString(output.dateCreated),
8236
8361
  name: __expectString(output.name),
8237
8362
  osVersion: __expectString(output.osVersion),
@@ -8269,6 +8394,7 @@ var deserializeAws_restJson1ImageTestsConfiguration = function (output, context)
8269
8394
  var deserializeAws_restJson1ImageVersion = function (output, context) {
8270
8395
  return {
8271
8396
  arn: __expectString(output.arn),
8397
+ buildType: __expectString(output.buildType),
8272
8398
  dateCreated: __expectString(output.dateCreated),
8273
8399
  name: __expectString(output.name),
8274
8400
  osVersion: __expectString(output.osVersion),
@@ -8503,6 +8629,14 @@ var deserializeAws_restJson1ResourceTagMap = function (output, context) {
8503
8629
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
8504
8630
  }, {});
8505
8631
  };
8632
+ var deserializeAws_restJson1S3ExportConfiguration = function (output, context) {
8633
+ return {
8634
+ diskImageFormat: __expectString(output.diskImageFormat),
8635
+ roleName: __expectString(output.roleName),
8636
+ s3Bucket: __expectString(output.s3Bucket),
8637
+ s3Prefix: __expectString(output.s3Prefix),
8638
+ };
8639
+ };
8506
8640
  var deserializeAws_restJson1S3Logs = function (output, context) {
8507
8641
  return {
8508
8642
  s3BucketName: __expectString(output.s3BucketName),
@@ -26,6 +26,7 @@ import { GetImageRecipeCommandInput, GetImageRecipeCommandOutput } from "./comma
26
26
  import { GetImageRecipePolicyCommandInput, GetImageRecipePolicyCommandOutput } from "./commands/GetImageRecipePolicyCommand";
27
27
  import { GetInfrastructureConfigurationCommandInput, GetInfrastructureConfigurationCommandOutput } from "./commands/GetInfrastructureConfigurationCommand";
28
28
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "./commands/ImportComponentCommand";
29
+ import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "./commands/ImportVmImageCommand";
29
30
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "./commands/ListComponentBuildVersionsCommand";
30
31
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
31
32
  import { ListContainerRecipesCommandInput, ListContainerRecipesCommandOutput } from "./commands/ListContainerRecipesCommand";
@@ -246,6 +247,20 @@ export declare class Imagebuilder extends ImagebuilderClient {
246
247
  importComponent(args: ImportComponentCommandInput, options?: __HttpHandlerOptions): Promise<ImportComponentCommandOutput>;
247
248
  importComponent(args: ImportComponentCommandInput, cb: (err: any, data?: ImportComponentCommandOutput) => void): void;
248
249
  importComponent(args: ImportComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportComponentCommandOutput) => void): void;
250
+ /**
251
+ * <p>When you export your virtual machine (VM) from its virtualization environment,
252
+ * that process creates a set of one or more disk container files that act as
253
+ * snapshots of your VM’s environment, settings, and data. The Amazon EC2 API
254
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html">ImportImage</a>
255
+ * action uses those files to import your VM and create an AMI. To import using the
256
+ * CLI command, see <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/import-image.html">import-image</a>
257
+ * </p>
258
+ * <p>You can reference the task ID from the VM import to pull in the AMI that
259
+ * the import created as the base image for your Image Builder recipe.</p>
260
+ */
261
+ importVmImage(args: ImportVmImageCommandInput, options?: __HttpHandlerOptions): Promise<ImportVmImageCommandOutput>;
262
+ importVmImage(args: ImportVmImageCommandInput, cb: (err: any, data?: ImportVmImageCommandOutput) => void): void;
263
+ importVmImage(args: ImportVmImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportVmImageCommandOutput) => void): void;
249
264
  /**
250
265
  * <p> Returns the list of component build versions for the specified semantic version.</p>
251
266
  * <note>
@@ -33,6 +33,7 @@ import { GetImageRecipeCommandInput, GetImageRecipeCommandOutput } from "./comma
33
33
  import { GetImageRecipePolicyCommandInput, GetImageRecipePolicyCommandOutput } from "./commands/GetImageRecipePolicyCommand";
34
34
  import { GetInfrastructureConfigurationCommandInput, GetInfrastructureConfigurationCommandOutput } from "./commands/GetInfrastructureConfigurationCommand";
35
35
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "./commands/ImportComponentCommand";
36
+ import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "./commands/ImportVmImageCommand";
36
37
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "./commands/ListComponentBuildVersionsCommand";
37
38
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
38
39
  import { ListContainerRecipesCommandInput, ListContainerRecipesCommandOutput } from "./commands/ListContainerRecipesCommand";
@@ -55,8 +56,8 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
55
56
  import { UpdateDistributionConfigurationCommandInput, UpdateDistributionConfigurationCommandOutput } from "./commands/UpdateDistributionConfigurationCommand";
56
57
  import { UpdateImagePipelineCommandInput, UpdateImagePipelineCommandOutput } from "./commands/UpdateImagePipelineCommand";
57
58
  import { UpdateInfrastructureConfigurationCommandInput, UpdateInfrastructureConfigurationCommandOutput } from "./commands/UpdateInfrastructureConfigurationCommand";
58
- export declare type ServiceInputTypes = CancelImageCreationCommandInput | CreateComponentCommandInput | CreateContainerRecipeCommandInput | CreateDistributionConfigurationCommandInput | CreateImageCommandInput | CreateImagePipelineCommandInput | CreateImageRecipeCommandInput | CreateInfrastructureConfigurationCommandInput | DeleteComponentCommandInput | DeleteContainerRecipeCommandInput | DeleteDistributionConfigurationCommandInput | DeleteImageCommandInput | DeleteImagePipelineCommandInput | DeleteImageRecipeCommandInput | DeleteInfrastructureConfigurationCommandInput | GetComponentCommandInput | GetComponentPolicyCommandInput | GetContainerRecipeCommandInput | GetContainerRecipePolicyCommandInput | GetDistributionConfigurationCommandInput | GetImageCommandInput | GetImagePipelineCommandInput | GetImagePolicyCommandInput | GetImageRecipeCommandInput | GetImageRecipePolicyCommandInput | GetInfrastructureConfigurationCommandInput | ImportComponentCommandInput | ListComponentBuildVersionsCommandInput | ListComponentsCommandInput | ListContainerRecipesCommandInput | ListDistributionConfigurationsCommandInput | ListImageBuildVersionsCommandInput | ListImagePackagesCommandInput | ListImagePipelineImagesCommandInput | ListImagePipelinesCommandInput | ListImageRecipesCommandInput | ListImagesCommandInput | ListInfrastructureConfigurationsCommandInput | ListTagsForResourceCommandInput | PutComponentPolicyCommandInput | PutContainerRecipePolicyCommandInput | PutImagePolicyCommandInput | PutImageRecipePolicyCommandInput | StartImagePipelineExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDistributionConfigurationCommandInput | UpdateImagePipelineCommandInput | UpdateInfrastructureConfigurationCommandInput;
59
- export declare type ServiceOutputTypes = CancelImageCreationCommandOutput | CreateComponentCommandOutput | CreateContainerRecipeCommandOutput | CreateDistributionConfigurationCommandOutput | CreateImageCommandOutput | CreateImagePipelineCommandOutput | CreateImageRecipeCommandOutput | CreateInfrastructureConfigurationCommandOutput | DeleteComponentCommandOutput | DeleteContainerRecipeCommandOutput | DeleteDistributionConfigurationCommandOutput | DeleteImageCommandOutput | DeleteImagePipelineCommandOutput | DeleteImageRecipeCommandOutput | DeleteInfrastructureConfigurationCommandOutput | GetComponentCommandOutput | GetComponentPolicyCommandOutput | GetContainerRecipeCommandOutput | GetContainerRecipePolicyCommandOutput | GetDistributionConfigurationCommandOutput | GetImageCommandOutput | GetImagePipelineCommandOutput | GetImagePolicyCommandOutput | GetImageRecipeCommandOutput | GetImageRecipePolicyCommandOutput | GetInfrastructureConfigurationCommandOutput | ImportComponentCommandOutput | ListComponentBuildVersionsCommandOutput | ListComponentsCommandOutput | ListContainerRecipesCommandOutput | ListDistributionConfigurationsCommandOutput | ListImageBuildVersionsCommandOutput | ListImagePackagesCommandOutput | ListImagePipelineImagesCommandOutput | ListImagePipelinesCommandOutput | ListImageRecipesCommandOutput | ListImagesCommandOutput | ListInfrastructureConfigurationsCommandOutput | ListTagsForResourceCommandOutput | PutComponentPolicyCommandOutput | PutContainerRecipePolicyCommandOutput | PutImagePolicyCommandOutput | PutImageRecipePolicyCommandOutput | StartImagePipelineExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDistributionConfigurationCommandOutput | UpdateImagePipelineCommandOutput | UpdateInfrastructureConfigurationCommandOutput;
59
+ export declare type ServiceInputTypes = CancelImageCreationCommandInput | CreateComponentCommandInput | CreateContainerRecipeCommandInput | CreateDistributionConfigurationCommandInput | CreateImageCommandInput | CreateImagePipelineCommandInput | CreateImageRecipeCommandInput | CreateInfrastructureConfigurationCommandInput | DeleteComponentCommandInput | DeleteContainerRecipeCommandInput | DeleteDistributionConfigurationCommandInput | DeleteImageCommandInput | DeleteImagePipelineCommandInput | DeleteImageRecipeCommandInput | DeleteInfrastructureConfigurationCommandInput | GetComponentCommandInput | GetComponentPolicyCommandInput | GetContainerRecipeCommandInput | GetContainerRecipePolicyCommandInput | GetDistributionConfigurationCommandInput | GetImageCommandInput | GetImagePipelineCommandInput | GetImagePolicyCommandInput | GetImageRecipeCommandInput | GetImageRecipePolicyCommandInput | GetInfrastructureConfigurationCommandInput | ImportComponentCommandInput | ImportVmImageCommandInput | ListComponentBuildVersionsCommandInput | ListComponentsCommandInput | ListContainerRecipesCommandInput | ListDistributionConfigurationsCommandInput | ListImageBuildVersionsCommandInput | ListImagePackagesCommandInput | ListImagePipelineImagesCommandInput | ListImagePipelinesCommandInput | ListImageRecipesCommandInput | ListImagesCommandInput | ListInfrastructureConfigurationsCommandInput | ListTagsForResourceCommandInput | PutComponentPolicyCommandInput | PutContainerRecipePolicyCommandInput | PutImagePolicyCommandInput | PutImageRecipePolicyCommandInput | StartImagePipelineExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDistributionConfigurationCommandInput | UpdateImagePipelineCommandInput | UpdateInfrastructureConfigurationCommandInput;
60
+ export declare type ServiceOutputTypes = CancelImageCreationCommandOutput | CreateComponentCommandOutput | CreateContainerRecipeCommandOutput | CreateDistributionConfigurationCommandOutput | CreateImageCommandOutput | CreateImagePipelineCommandOutput | CreateImageRecipeCommandOutput | CreateInfrastructureConfigurationCommandOutput | DeleteComponentCommandOutput | DeleteContainerRecipeCommandOutput | DeleteDistributionConfigurationCommandOutput | DeleteImageCommandOutput | DeleteImagePipelineCommandOutput | DeleteImageRecipeCommandOutput | DeleteInfrastructureConfigurationCommandOutput | GetComponentCommandOutput | GetComponentPolicyCommandOutput | GetContainerRecipeCommandOutput | GetContainerRecipePolicyCommandOutput | GetDistributionConfigurationCommandOutput | GetImageCommandOutput | GetImagePipelineCommandOutput | GetImagePolicyCommandOutput | GetImageRecipeCommandOutput | GetImageRecipePolicyCommandOutput | GetInfrastructureConfigurationCommandOutput | ImportComponentCommandOutput | ImportVmImageCommandOutput | ListComponentBuildVersionsCommandOutput | ListComponentsCommandOutput | ListContainerRecipesCommandOutput | ListDistributionConfigurationsCommandOutput | ListImageBuildVersionsCommandOutput | ListImagePackagesCommandOutput | ListImagePipelineImagesCommandOutput | ListImagePipelinesCommandOutput | ListImageRecipesCommandOutput | ListImagesCommandOutput | ListInfrastructureConfigurationsCommandOutput | ListTagsForResourceCommandOutput | PutComponentPolicyCommandOutput | PutContainerRecipePolicyCommandOutput | PutImagePolicyCommandOutput | PutImageRecipePolicyCommandOutput | StartImagePipelineExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDistributionConfigurationCommandOutput | UpdateImagePipelineCommandOutput | UpdateInfrastructureConfigurationCommandOutput;
60
61
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
61
62
  /**
62
63
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,43 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient";
4
+ import { ImportVmImageRequest, ImportVmImageResponse } from "../models/models_0";
5
+ export interface ImportVmImageCommandInput extends ImportVmImageRequest {
6
+ }
7
+ export interface ImportVmImageCommandOutput extends ImportVmImageResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>When you export your virtual machine (VM) from its virtualization environment,
11
+ * that process creates a set of one or more disk container files that act as
12
+ * snapshots of your VM’s environment, settings, and data. The Amazon EC2 API
13
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html">ImportImage</a>
14
+ * action uses those files to import your VM and create an AMI. To import using the
15
+ * CLI command, see <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/import-image.html">import-image</a>
16
+ * </p>
17
+ * <p>You can reference the task ID from the VM import to pull in the AMI that
18
+ * the import created as the base image for your Image Builder recipe.</p>
19
+ * @example
20
+ * Use a bare-bones client and the command you need to make an API call.
21
+ * ```javascript
22
+ * import { ImagebuilderClient, ImportVmImageCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import
23
+ * // const { ImagebuilderClient, ImportVmImageCommand } = require("@aws-sdk/client-imagebuilder"); // CommonJS import
24
+ * const client = new ImagebuilderClient(config);
25
+ * const command = new ImportVmImageCommand(input);
26
+ * const response = await client.send(command);
27
+ * ```
28
+ *
29
+ * @see {@link ImportVmImageCommandInput} for command's `input` shape.
30
+ * @see {@link ImportVmImageCommandOutput} for command's `response` shape.
31
+ * @see {@link ImagebuilderClientResolvedConfig | config} for ImagebuilderClient's `config` shape.
32
+ *
33
+ */
34
+ export declare class ImportVmImageCommand extends $Command<ImportVmImageCommandInput, ImportVmImageCommandOutput, ImagebuilderClientResolvedConfig> {
35
+ readonly input: ImportVmImageCommandInput;
36
+ constructor(input: ImportVmImageCommandInput);
37
+ /**
38
+ * @internal
39
+ */
40
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportVmImageCommandInput, ImportVmImageCommandOutput>;
41
+ private serialize;
42
+ private deserialize;
43
+ }
@@ -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";