@aws-sdk/client-imagebuilder 3.43.0 → 3.47.1

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Imagebuilder.js +15 -0
  3. package/dist-cjs/commands/ImportVmImageCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +1 -0
  6. package/dist-cjs/models/models_0.js +32 -104
  7. package/dist-cjs/protocols/Aws_restJson1.js +132 -2
  8. package/dist-cjs/runtimeConfig.browser.js +7 -2
  9. package/dist-cjs/runtimeConfig.js +9 -3
  10. package/dist-es/Imagebuilder.js +15 -0
  11. package/dist-es/commands/ImportVmImageCommand.js +39 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoints.js +1 -0
  14. package/dist-es/models/models_0.js +24 -68
  15. package/dist-es/protocols/Aws_restJson1.js +136 -2
  16. package/dist-es/runtimeConfig.browser.js +12 -3
  17. package/dist-es/runtimeConfig.js +13 -6
  18. package/dist-types/Imagebuilder.d.ts +15 -0
  19. package/dist-types/ImagebuilderClient.d.ts +8 -3
  20. package/dist-types/commands/ImportVmImageCommand.d.ts +43 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/models_0.d.ts +238 -111
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  25. package/dist-types/runtimeConfig.d.ts +4 -3
  26. package/dist-types/runtimeConfig.native.d.ts +1 -0
  27. package/dist-types/ts3.4/Imagebuilder.d.ts +5 -0
  28. package/dist-types/ts3.4/ImagebuilderClient.d.ts +6 -3
  29. package/dist-types/ts3.4/commands/ImportVmImageCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +69 -68
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  36. package/package.json +39 -46
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.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-imagebuilder
9
+
10
+
11
+
12
+
13
+
14
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **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))
31
+
32
+
33
+ ### Features
34
+
35
+ * **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))
36
+ * 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))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
43
+
44
+
45
+ ### Features
46
+
47
+ * **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))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
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.CreateImagePipelineResponse = exports.CreateImagePipelineRequest = exports.PipelineStatus = exports.Schedule = exports.PipelineExecutionStartCondition = exports.CreateImageResponse = exports.CreateImageRequest = exports.ImageTestsConfiguration = exports.CreateDistributionConfigurationResponse = exports.CreateDistributionConfigurationRequest = exports.Distribution = exports.S3ExportConfiguration = exports.DiskImageFormat = exports.LaunchTemplateConfiguration = exports.CreateContainerRecipeResponse = exports.CreateContainerRecipeRequest = 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.CancelImageCreationResponse = exports.CancelImageCreationRequest = exports.BuildType = exports.AmiDistributionConfiguration = exports.LaunchPermissionConfiguration = exports.Ami = exports.ImageState = exports.ImageStatus = exports.AdditionalInstanceConfiguration = exports.SystemsManagerAgent = void 0;
4
+ 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 = exports.ImageType = exports.GetImageRequest = exports.GetDistributionConfigurationResponse = exports.GetDistributionConfigurationRequest = exports.GetContainerRecipePolicyResponse = exports.GetContainerRecipePolicyRequest = exports.GetContainerRecipeResponse = exports.GetContainerRecipeRequest = 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.DeleteComponentResponse = exports.DeleteComponentRequest = exports.CreateInfrastructureConfigurationResponse = exports.CreateInfrastructureConfigurationRequest = exports.Logging = exports.S3Logs = exports.InstanceMetadataOptions = exports.CreateImageRecipeResponse = exports.CreateImageRecipeRequest = void 0;
5
+ 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.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = 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.ImportVmImageResponse = exports.ImportVmImageRequest = exports.ImportComponentResponse = exports.ImportComponentRequest = exports.GetInfrastructureConfigurationResponse = exports.GetInfrastructureConfigurationRequest = void 0;
6
+ exports.UpdateInfrastructureConfigurationResponse = exports.UpdateInfrastructureConfigurationRequest = exports.UpdateImagePipelineResponse = exports.UpdateImagePipelineRequest = exports.UpdateDistributionConfigurationResponse = exports.UpdateDistributionConfigurationRequest = void 0;
7
7
  var SystemsManagerAgent;
8
8
  (function (SystemsManagerAgent) {
9
9
  SystemsManagerAgent.filterSensitiveLog = (obj) => ({
@@ -54,12 +54,12 @@ var AmiDistributionConfiguration;
54
54
  ...obj,
55
55
  });
56
56
  })(AmiDistributionConfiguration = exports.AmiDistributionConfiguration || (exports.AmiDistributionConfiguration = {}));
57
- var CallRateLimitExceededException;
58
- (function (CallRateLimitExceededException) {
59
- CallRateLimitExceededException.filterSensitiveLog = (obj) => ({
60
- ...obj,
61
- });
62
- })(CallRateLimitExceededException = exports.CallRateLimitExceededException || (exports.CallRateLimitExceededException = {}));
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 = {}));
63
63
  var CancelImageCreationRequest;
64
64
  (function (CancelImageCreationRequest) {
65
65
  CancelImageCreationRequest.filterSensitiveLog = (obj) => ({
@@ -72,48 +72,6 @@ var CancelImageCreationResponse;
72
72
  ...obj,
73
73
  });
74
74
  })(CancelImageCreationResponse = exports.CancelImageCreationResponse || (exports.CancelImageCreationResponse = {}));
75
- var ClientException;
76
- (function (ClientException) {
77
- ClientException.filterSensitiveLog = (obj) => ({
78
- ...obj,
79
- });
80
- })(ClientException = exports.ClientException || (exports.ClientException = {}));
81
- var ForbiddenException;
82
- (function (ForbiddenException) {
83
- ForbiddenException.filterSensitiveLog = (obj) => ({
84
- ...obj,
85
- });
86
- })(ForbiddenException = exports.ForbiddenException || (exports.ForbiddenException = {}));
87
- var IdempotentParameterMismatchException;
88
- (function (IdempotentParameterMismatchException) {
89
- IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
90
- ...obj,
91
- });
92
- })(IdempotentParameterMismatchException = exports.IdempotentParameterMismatchException || (exports.IdempotentParameterMismatchException = {}));
93
- var InvalidRequestException;
94
- (function (InvalidRequestException) {
95
- InvalidRequestException.filterSensitiveLog = (obj) => ({
96
- ...obj,
97
- });
98
- })(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
99
- var ResourceInUseException;
100
- (function (ResourceInUseException) {
101
- ResourceInUseException.filterSensitiveLog = (obj) => ({
102
- ...obj,
103
- });
104
- })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
105
- var ServiceException;
106
- (function (ServiceException) {
107
- ServiceException.filterSensitiveLog = (obj) => ({
108
- ...obj,
109
- });
110
- })(ServiceException = exports.ServiceException || (exports.ServiceException = {}));
111
- var ServiceUnavailableException;
112
- (function (ServiceUnavailableException) {
113
- ServiceUnavailableException.filterSensitiveLog = (obj) => ({
114
- ...obj,
115
- });
116
- })(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
117
75
  var ComponentParameterDetail;
118
76
  (function (ComponentParameterDetail) {
119
77
  ComponentParameterDetail.filterSensitiveLog = (obj) => ({
@@ -252,24 +210,6 @@ var CreateComponentResponse;
252
210
  ...obj,
253
211
  });
254
212
  })(CreateComponentResponse = exports.CreateComponentResponse || (exports.CreateComponentResponse = {}));
255
- var InvalidParameterCombinationException;
256
- (function (InvalidParameterCombinationException) {
257
- InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
258
- ...obj,
259
- });
260
- })(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
261
- var InvalidVersionNumberException;
262
- (function (InvalidVersionNumberException) {
263
- InvalidVersionNumberException.filterSensitiveLog = (obj) => ({
264
- ...obj,
265
- });
266
- })(InvalidVersionNumberException = exports.InvalidVersionNumberException || (exports.InvalidVersionNumberException = {}));
267
- var ServiceQuotaExceededException;
268
- (function (ServiceQuotaExceededException) {
269
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
270
- ...obj,
271
- });
272
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
273
213
  var CreateContainerRecipeRequest;
274
214
  (function (CreateContainerRecipeRequest) {
275
215
  CreateContainerRecipeRequest.filterSensitiveLog = (obj) => ({
@@ -282,18 +222,24 @@ var CreateContainerRecipeResponse;
282
222
  ...obj,
283
223
  });
284
224
  })(CreateContainerRecipeResponse = exports.CreateContainerRecipeResponse || (exports.CreateContainerRecipeResponse = {}));
285
- var ResourceAlreadyExistsException;
286
- (function (ResourceAlreadyExistsException) {
287
- ResourceAlreadyExistsException.filterSensitiveLog = (obj) => ({
288
- ...obj,
289
- });
290
- })(ResourceAlreadyExistsException = exports.ResourceAlreadyExistsException || (exports.ResourceAlreadyExistsException = {}));
291
225
  var LaunchTemplateConfiguration;
292
226
  (function (LaunchTemplateConfiguration) {
293
227
  LaunchTemplateConfiguration.filterSensitiveLog = (obj) => ({
294
228
  ...obj,
295
229
  });
296
230
  })(LaunchTemplateConfiguration = exports.LaunchTemplateConfiguration || (exports.LaunchTemplateConfiguration = {}));
231
+ var DiskImageFormat;
232
+ (function (DiskImageFormat) {
233
+ DiskImageFormat["RAW"] = "RAW";
234
+ DiskImageFormat["VHD"] = "VHD";
235
+ DiskImageFormat["VMDK"] = "VMDK";
236
+ })(DiskImageFormat = exports.DiskImageFormat || (exports.DiskImageFormat = {}));
237
+ var S3ExportConfiguration;
238
+ (function (S3ExportConfiguration) {
239
+ S3ExportConfiguration.filterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ })(S3ExportConfiguration = exports.S3ExportConfiguration || (exports.S3ExportConfiguration = {}));
297
243
  var Distribution;
298
244
  (function (Distribution) {
299
245
  Distribution.filterSensitiveLog = (obj) => ({
@@ -412,12 +358,6 @@ var DeleteComponentResponse;
412
358
  ...obj,
413
359
  });
414
360
  })(DeleteComponentResponse = exports.DeleteComponentResponse || (exports.DeleteComponentResponse = {}));
415
- var ResourceDependencyException;
416
- (function (ResourceDependencyException) {
417
- ResourceDependencyException.filterSensitiveLog = (obj) => ({
418
- ...obj,
419
- });
420
- })(ResourceDependencyException = exports.ResourceDependencyException || (exports.ResourceDependencyException = {}));
421
361
  var DeleteContainerRecipeRequest;
422
362
  (function (DeleteContainerRecipeRequest) {
423
363
  DeleteContainerRecipeRequest.filterSensitiveLog = (obj) => ({
@@ -532,12 +472,6 @@ var GetComponentPolicyResponse;
532
472
  ...obj,
533
473
  });
534
474
  })(GetComponentPolicyResponse = exports.GetComponentPolicyResponse || (exports.GetComponentPolicyResponse = {}));
535
- var ResourceNotFoundException;
536
- (function (ResourceNotFoundException) {
537
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
538
- ...obj,
539
- });
540
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
541
475
  var GetContainerRecipeRequest;
542
476
  (function (GetContainerRecipeRequest) {
543
477
  GetContainerRecipeRequest.filterSensitiveLog = (obj) => ({
@@ -693,12 +627,18 @@ var ImportComponentResponse;
693
627
  ...obj,
694
628
  });
695
629
  })(ImportComponentResponse = exports.ImportComponentResponse || (exports.ImportComponentResponse = {}));
696
- var InvalidPaginationTokenException;
697
- (function (InvalidPaginationTokenException) {
698
- InvalidPaginationTokenException.filterSensitiveLog = (obj) => ({
630
+ var ImportVmImageRequest;
631
+ (function (ImportVmImageRequest) {
632
+ ImportVmImageRequest.filterSensitiveLog = (obj) => ({
633
+ ...obj,
634
+ });
635
+ })(ImportVmImageRequest = exports.ImportVmImageRequest || (exports.ImportVmImageRequest = {}));
636
+ var ImportVmImageResponse;
637
+ (function (ImportVmImageResponse) {
638
+ ImportVmImageResponse.filterSensitiveLog = (obj) => ({
699
639
  ...obj,
700
640
  });
701
- })(InvalidPaginationTokenException = exports.InvalidPaginationTokenException || (exports.InvalidPaginationTokenException = {}));
641
+ })(ImportVmImageResponse = exports.ImportVmImageResponse || (exports.ImportVmImageResponse = {}));
702
642
  var ListComponentBuildVersionsRequest;
703
643
  (function (ListComponentBuildVersionsRequest) {
704
644
  ListComponentBuildVersionsRequest.filterSensitiveLog = (obj) => ({
@@ -867,12 +807,6 @@ var ListInfrastructureConfigurationsResponse;
867
807
  ...obj,
868
808
  });
869
809
  })(ListInfrastructureConfigurationsResponse = exports.ListInfrastructureConfigurationsResponse || (exports.ListInfrastructureConfigurationsResponse = {}));
870
- var InvalidParameterException;
871
- (function (InvalidParameterException) {
872
- InvalidParameterException.filterSensitiveLog = (obj) => ({
873
- ...obj,
874
- });
875
- })(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
876
810
  var ListTagsForResourceRequest;
877
811
  (function (ListTagsForResourceRequest) {
878
812
  ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
@@ -885,12 +819,6 @@ var ListTagsForResourceResponse;
885
819
  ...obj,
886
820
  });
887
821
  })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
888
- var InvalidParameterValueException;
889
- (function (InvalidParameterValueException) {
890
- InvalidParameterValueException.filterSensitiveLog = (obj) => ({
891
- ...obj,
892
- });
893
- })(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
894
822
  var PutComponentPolicyRequest;
895
823
  (function (PutComponentPolicyRequest) {
896
824
  PutComponentPolicyRequest.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),
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),