@aws-sdk/client-imagebuilder 3.42.0 → 3.47.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +50 -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 +186 -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 +189 -3
  16. package/dist-es/runtimeConfig.browser.js +12 -3
  17. package/dist-es/runtimeConfig.js +13 -6
  18. package/dist-types/Imagebuilder.d.ts +17 -2
  19. package/dist-types/ImagebuilderClient.d.ts +8 -3
  20. package/dist-types/commands/DeleteImageCommand.d.ts +1 -1
  21. package/dist-types/commands/ImportVmImageCommand.d.ts +43 -0
  22. package/dist-types/commands/PutContainerRecipePolicyCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/models/models_0.d.ts +253 -116
  25. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  26. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  27. package/dist-types/runtimeConfig.d.ts +4 -3
  28. package/dist-types/runtimeConfig.native.d.ts +1 -0
  29. package/dist-types/ts3.4/Imagebuilder.d.ts +5 -0
  30. package/dist-types/ts3.4/ImagebuilderClient.d.ts +6 -3
  31. package/dist-types/ts3.4/commands/ImportVmImageCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +73 -68
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  38. package/package.json +38 -45
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1CancelImageCreationCommand = exports.serializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.serializeAws_restJson1UpdateImagePipelineCommand = exports.serializeAws_restJson1UpdateDistributionConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartImagePipelineExecutionCommand = exports.serializeAws_restJson1PutImageRecipePolicyCommand = exports.serializeAws_restJson1PutImagePolicyCommand = exports.serializeAws_restJson1PutContainerRecipePolicyCommand = exports.serializeAws_restJson1PutComponentPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.serializeAws_restJson1ListImagesCommand = exports.serializeAws_restJson1ListImageRecipesCommand = exports.serializeAws_restJson1ListImagePipelinesCommand = exports.serializeAws_restJson1ListImagePipelineImagesCommand = exports.serializeAws_restJson1ListImagePackagesCommand = exports.serializeAws_restJson1ListImageBuildVersionsCommand = exports.serializeAws_restJson1ListDistributionConfigurationsCommand = exports.serializeAws_restJson1ListContainerRecipesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListComponentBuildVersionsCommand = exports.serializeAws_restJson1ImportComponentCommand = exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = exports.serializeAws_restJson1GetImageRecipePolicyCommand = exports.serializeAws_restJson1GetImageRecipeCommand = exports.serializeAws_restJson1GetImagePolicyCommand = exports.serializeAws_restJson1GetImagePipelineCommand = exports.serializeAws_restJson1GetImageCommand = exports.serializeAws_restJson1GetDistributionConfigurationCommand = exports.serializeAws_restJson1GetContainerRecipePolicyCommand = exports.serializeAws_restJson1GetContainerRecipeCommand = exports.serializeAws_restJson1GetComponentPolicyCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.serializeAws_restJson1DeleteImageRecipeCommand = exports.serializeAws_restJson1DeleteImagePipelineCommand = exports.serializeAws_restJson1DeleteImageCommand = exports.serializeAws_restJson1DeleteDistributionConfigurationCommand = exports.serializeAws_restJson1DeleteContainerRecipeCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.serializeAws_restJson1CreateImageRecipeCommand = exports.serializeAws_restJson1CreateImagePipelineCommand = exports.serializeAws_restJson1CreateImageCommand = exports.serializeAws_restJson1CreateDistributionConfigurationCommand = exports.serializeAws_restJson1CreateContainerRecipeCommand = exports.serializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1CancelImageCreationCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1UpdateImagePipelineCommand = exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = exports.deserializeAws_restJson1PutImageRecipePolicyCommand = exports.deserializeAws_restJson1PutImagePolicyCommand = exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = exports.deserializeAws_restJson1PutComponentPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.deserializeAws_restJson1ListImagesCommand = exports.deserializeAws_restJson1ListImageRecipesCommand = exports.deserializeAws_restJson1ListImagePipelinesCommand = exports.deserializeAws_restJson1ListImagePipelineImagesCommand = exports.deserializeAws_restJson1ListImagePackagesCommand = exports.deserializeAws_restJson1ListImageBuildVersionsCommand = exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = exports.deserializeAws_restJson1ListContainerRecipesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = exports.deserializeAws_restJson1ImportComponentCommand = exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = exports.deserializeAws_restJson1GetImageRecipePolicyCommand = exports.deserializeAws_restJson1GetImageRecipeCommand = exports.deserializeAws_restJson1GetImagePolicyCommand = exports.deserializeAws_restJson1GetImagePipelineCommand = exports.deserializeAws_restJson1GetImageCommand = exports.deserializeAws_restJson1GetDistributionConfigurationCommand = exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = exports.deserializeAws_restJson1GetContainerRecipeCommand = exports.deserializeAws_restJson1GetComponentPolicyCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.deserializeAws_restJson1DeleteImageRecipeCommand = exports.deserializeAws_restJson1DeleteImagePipelineCommand = exports.deserializeAws_restJson1DeleteImageCommand = exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = exports.deserializeAws_restJson1DeleteContainerRecipeCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1CreateImageRecipeCommand = exports.deserializeAws_restJson1CreateImagePipelineCommand = exports.deserializeAws_restJson1CreateImageCommand = exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = exports.deserializeAws_restJson1CreateContainerRecipeCommand = exports.deserializeAws_restJson1CreateComponentCommand = void 0;
3
+ exports.serializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.serializeAws_restJson1UpdateImagePipelineCommand = exports.serializeAws_restJson1UpdateDistributionConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartImagePipelineExecutionCommand = exports.serializeAws_restJson1PutImageRecipePolicyCommand = exports.serializeAws_restJson1PutImagePolicyCommand = exports.serializeAws_restJson1PutContainerRecipePolicyCommand = exports.serializeAws_restJson1PutComponentPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.serializeAws_restJson1ListImagesCommand = exports.serializeAws_restJson1ListImageRecipesCommand = exports.serializeAws_restJson1ListImagePipelinesCommand = exports.serializeAws_restJson1ListImagePipelineImagesCommand = exports.serializeAws_restJson1ListImagePackagesCommand = exports.serializeAws_restJson1ListImageBuildVersionsCommand = exports.serializeAws_restJson1ListDistributionConfigurationsCommand = exports.serializeAws_restJson1ListContainerRecipesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListComponentBuildVersionsCommand = exports.serializeAws_restJson1ImportVmImageCommand = exports.serializeAws_restJson1ImportComponentCommand = exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = exports.serializeAws_restJson1GetImageRecipePolicyCommand = exports.serializeAws_restJson1GetImageRecipeCommand = exports.serializeAws_restJson1GetImagePolicyCommand = exports.serializeAws_restJson1GetImagePipelineCommand = exports.serializeAws_restJson1GetImageCommand = exports.serializeAws_restJson1GetDistributionConfigurationCommand = exports.serializeAws_restJson1GetContainerRecipePolicyCommand = exports.serializeAws_restJson1GetContainerRecipeCommand = exports.serializeAws_restJson1GetComponentPolicyCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.serializeAws_restJson1DeleteImageRecipeCommand = exports.serializeAws_restJson1DeleteImagePipelineCommand = exports.serializeAws_restJson1DeleteImageCommand = exports.serializeAws_restJson1DeleteDistributionConfigurationCommand = exports.serializeAws_restJson1DeleteContainerRecipeCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.serializeAws_restJson1CreateImageRecipeCommand = exports.serializeAws_restJson1CreateImagePipelineCommand = exports.serializeAws_restJson1CreateImageCommand = exports.serializeAws_restJson1CreateDistributionConfigurationCommand = exports.serializeAws_restJson1CreateContainerRecipeCommand = exports.serializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1CancelImageCreationCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1UpdateImagePipelineCommand = exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = exports.deserializeAws_restJson1PutImageRecipePolicyCommand = exports.deserializeAws_restJson1PutImagePolicyCommand = exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = exports.deserializeAws_restJson1PutComponentPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.deserializeAws_restJson1ListImagesCommand = exports.deserializeAws_restJson1ListImageRecipesCommand = exports.deserializeAws_restJson1ListImagePipelinesCommand = exports.deserializeAws_restJson1ListImagePipelineImagesCommand = exports.deserializeAws_restJson1ListImagePackagesCommand = exports.deserializeAws_restJson1ListImageBuildVersionsCommand = exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = exports.deserializeAws_restJson1ListContainerRecipesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = exports.deserializeAws_restJson1ImportVmImageCommand = exports.deserializeAws_restJson1ImportComponentCommand = exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = exports.deserializeAws_restJson1GetImageRecipePolicyCommand = exports.deserializeAws_restJson1GetImageRecipeCommand = exports.deserializeAws_restJson1GetImagePolicyCommand = exports.deserializeAws_restJson1GetImagePipelineCommand = exports.deserializeAws_restJson1GetImageCommand = exports.deserializeAws_restJson1GetDistributionConfigurationCommand = exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = exports.deserializeAws_restJson1GetContainerRecipeCommand = exports.deserializeAws_restJson1GetComponentPolicyCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.deserializeAws_restJson1DeleteImageRecipeCommand = exports.deserializeAws_restJson1DeleteImagePipelineCommand = exports.deserializeAws_restJson1DeleteImageCommand = exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = exports.deserializeAws_restJson1DeleteContainerRecipeCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1CreateImageRecipeCommand = exports.deserializeAws_restJson1CreateImagePipelineCommand = exports.deserializeAws_restJson1CreateImageCommand = exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = exports.deserializeAws_restJson1CreateContainerRecipeCommand = exports.deserializeAws_restJson1CreateComponentCommand = exports.deserializeAws_restJson1CancelImageCreationCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -733,6 +733,37 @@ const serializeAws_restJson1ImportComponentCommand = async (input, context) => {
733
733
  });
734
734
  };
735
735
  exports.serializeAws_restJson1ImportComponentCommand = serializeAws_restJson1ImportComponentCommand;
736
+ const serializeAws_restJson1ImportVmImageCommand = async (input, context) => {
737
+ var _a;
738
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
739
+ const headers = {
740
+ "content-type": "application/json",
741
+ };
742
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ImportVmImage";
743
+ let body;
744
+ body = JSON.stringify({
745
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
746
+ ...(input.description !== undefined && input.description !== null && { description: input.description }),
747
+ ...(input.name !== undefined && input.name !== null && { name: input.name }),
748
+ ...(input.osVersion !== undefined && input.osVersion !== null && { osVersion: input.osVersion }),
749
+ ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
750
+ ...(input.semanticVersion !== undefined &&
751
+ input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
752
+ ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
753
+ ...(input.vmImportTaskId !== undefined &&
754
+ input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId }),
755
+ });
756
+ return new protocol_http_1.HttpRequest({
757
+ protocol,
758
+ hostname,
759
+ port,
760
+ method: "PUT",
761
+ headers,
762
+ path: resolvedPath,
763
+ body,
764
+ });
765
+ };
766
+ exports.serializeAws_restJson1ImportVmImageCommand = serializeAws_restJson1ImportVmImageCommand;
736
767
  const serializeAws_restJson1ListComponentBuildVersionsCommand = async (input, context) => {
737
768
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
738
769
  const headers = {
@@ -4213,6 +4244,78 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
4213
4244
  delete response.Message;
4214
4245
  return Promise.reject(Object.assign(new Error(message), response));
4215
4246
  };
4247
+ const deserializeAws_restJson1ImportVmImageCommand = async (output, context) => {
4248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4249
+ return deserializeAws_restJson1ImportVmImageCommandError(output, context);
4250
+ }
4251
+ const contents = {
4252
+ $metadata: deserializeMetadata(output),
4253
+ clientToken: undefined,
4254
+ imageArn: undefined,
4255
+ requestId: undefined,
4256
+ };
4257
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4258
+ if (data.clientToken !== undefined && data.clientToken !== null) {
4259
+ contents.clientToken = smithy_client_1.expectString(data.clientToken);
4260
+ }
4261
+ if (data.imageArn !== undefined && data.imageArn !== null) {
4262
+ contents.imageArn = smithy_client_1.expectString(data.imageArn);
4263
+ }
4264
+ if (data.requestId !== undefined && data.requestId !== null) {
4265
+ contents.requestId = smithy_client_1.expectString(data.requestId);
4266
+ }
4267
+ return Promise.resolve(contents);
4268
+ };
4269
+ exports.deserializeAws_restJson1ImportVmImageCommand = deserializeAws_restJson1ImportVmImageCommand;
4270
+ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context) => {
4271
+ const parsedOutput = {
4272
+ ...output,
4273
+ body: await parseBody(output.body, context),
4274
+ };
4275
+ let response;
4276
+ let errorCode = "UnknownError";
4277
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4278
+ switch (errorCode) {
4279
+ case "ClientException":
4280
+ case "com.amazonaws.imagebuilder#ClientException":
4281
+ response = {
4282
+ ...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
4283
+ name: errorCode,
4284
+ $metadata: deserializeMetadata(output),
4285
+ };
4286
+ break;
4287
+ case "ServiceException":
4288
+ case "com.amazonaws.imagebuilder#ServiceException":
4289
+ response = {
4290
+ ...(await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context)),
4291
+ name: errorCode,
4292
+ $metadata: deserializeMetadata(output),
4293
+ };
4294
+ break;
4295
+ case "ServiceUnavailableException":
4296
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4297
+ response = {
4298
+ ...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
4299
+ name: errorCode,
4300
+ $metadata: deserializeMetadata(output),
4301
+ };
4302
+ break;
4303
+ default:
4304
+ const parsedBody = parsedOutput.body;
4305
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4306
+ response = {
4307
+ ...parsedBody,
4308
+ name: `${errorCode}`,
4309
+ message: parsedBody.message || parsedBody.Message || errorCode,
4310
+ $fault: "client",
4311
+ $metadata: deserializeMetadata(output),
4312
+ };
4313
+ }
4314
+ const message = response.message || response.Message || errorCode;
4315
+ response.message = message;
4316
+ delete response.Message;
4317
+ return Promise.reject(Object.assign(new Error(message), response));
4318
+ };
4216
4319
  const deserializeAws_restJson1ListComponentBuildVersionsCommand = async (output, context) => {
4217
4320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4218
4321
  return deserializeAws_restJson1ListComponentBuildVersionsCommandError(output, context);
@@ -6790,6 +6893,10 @@ const serializeAws_restJson1Distribution = (input, context) => {
6790
6893
  licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
6791
6894
  }),
6792
6895
  ...(input.region !== undefined && input.region !== null && { region: input.region }),
6896
+ ...(input.s3ExportConfiguration !== undefined &&
6897
+ input.s3ExportConfiguration !== null && {
6898
+ s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
6899
+ }),
6793
6900
  };
6794
6901
  };
6795
6902
  const serializeAws_restJson1DistributionList = (input, context) => {
@@ -6897,6 +7004,14 @@ const serializeAws_restJson1InstanceTypeList = (input, context) => {
6897
7004
  };
6898
7005
  const serializeAws_restJson1LaunchPermissionConfiguration = (input, context) => {
6899
7006
  return {
7007
+ ...(input.organizationArns !== undefined &&
7008
+ input.organizationArns !== null && {
7009
+ organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
7010
+ }),
7011
+ ...(input.organizationalUnitArns !== undefined &&
7012
+ input.organizationalUnitArns !== null && {
7013
+ organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
7014
+ }),
6900
7015
  ...(input.userGroups !== undefined &&
6901
7016
  input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) }),
6902
7017
  ...(input.userIds !== undefined &&
@@ -6938,6 +7053,26 @@ const serializeAws_restJson1Logging = (input, context) => {
6938
7053
  input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
6939
7054
  };
6940
7055
  };
7056
+ const serializeAws_restJson1OrganizationalUnitArnList = (input, context) => {
7057
+ return input
7058
+ .filter((e) => e != null)
7059
+ .map((entry) => {
7060
+ if (entry === null) {
7061
+ return null;
7062
+ }
7063
+ return entry;
7064
+ });
7065
+ };
7066
+ const serializeAws_restJson1OrganizationArnList = (input, context) => {
7067
+ return input
7068
+ .filter((e) => e != null)
7069
+ .map((entry) => {
7070
+ if (entry === null) {
7071
+ return null;
7072
+ }
7073
+ return entry;
7074
+ });
7075
+ };
6941
7076
  const serializeAws_restJson1OsVersionList = (input, context) => {
6942
7077
  return input
6943
7078
  .filter((e) => e != null)
@@ -6959,6 +7094,15 @@ const serializeAws_restJson1ResourceTagMap = (input, context) => {
6959
7094
  };
6960
7095
  }, {});
6961
7096
  };
7097
+ const serializeAws_restJson1S3ExportConfiguration = (input, context) => {
7098
+ return {
7099
+ ...(input.diskImageFormat !== undefined &&
7100
+ input.diskImageFormat !== null && { diskImageFormat: input.diskImageFormat }),
7101
+ ...(input.roleName !== undefined && input.roleName !== null && { roleName: input.roleName }),
7102
+ ...(input.s3Bucket !== undefined && input.s3Bucket !== null && { s3Bucket: input.s3Bucket }),
7103
+ ...(input.s3Prefix !== undefined && input.s3Prefix !== null && { s3Prefix: input.s3Prefix }),
7104
+ };
7105
+ };
6962
7106
  const serializeAws_restJson1S3Logs = (input, context) => {
6963
7107
  return {
6964
7108
  ...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
@@ -7330,6 +7474,9 @@ const deserializeAws_restJson1Distribution = (output, context) => {
7330
7474
  ? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
7331
7475
  : undefined,
7332
7476
  region: smithy_client_1.expectString(output.region),
7477
+ s3ExportConfiguration: output.s3ExportConfiguration !== undefined && output.s3ExportConfiguration !== null
7478
+ ? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
7479
+ : undefined,
7333
7480
  };
7334
7481
  };
7335
7482
  const deserializeAws_restJson1DistributionConfiguration = (output, context) => {
@@ -7398,6 +7545,7 @@ const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = (output, con
7398
7545
  const deserializeAws_restJson1Image = (output, context) => {
7399
7546
  return {
7400
7547
  arn: smithy_client_1.expectString(output.arn),
7548
+ buildType: smithy_client_1.expectString(output.buildType),
7401
7549
  containerRecipe: output.containerRecipe !== undefined && output.containerRecipe !== null
7402
7550
  ? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
7403
7551
  : undefined,
@@ -7544,6 +7692,7 @@ const deserializeAws_restJson1ImageState = (output, context) => {
7544
7692
  const deserializeAws_restJson1ImageSummary = (output, context) => {
7545
7693
  return {
7546
7694
  arn: smithy_client_1.expectString(output.arn),
7695
+ buildType: smithy_client_1.expectString(output.buildType),
7547
7696
  dateCreated: smithy_client_1.expectString(output.dateCreated),
7548
7697
  name: smithy_client_1.expectString(output.name),
7549
7698
  osVersion: smithy_client_1.expectString(output.osVersion),
@@ -7581,6 +7730,7 @@ const deserializeAws_restJson1ImageTestsConfiguration = (output, context) => {
7581
7730
  const deserializeAws_restJson1ImageVersion = (output, context) => {
7582
7731
  return {
7583
7732
  arn: smithy_client_1.expectString(output.arn),
7733
+ buildType: smithy_client_1.expectString(output.buildType),
7584
7734
  dateCreated: smithy_client_1.expectString(output.dateCreated),
7585
7735
  name: smithy_client_1.expectString(output.name),
7586
7736
  osVersion: smithy_client_1.expectString(output.osVersion),
@@ -7707,6 +7857,12 @@ const deserializeAws_restJson1InstanceTypeList = (output, context) => {
7707
7857
  };
7708
7858
  const deserializeAws_restJson1LaunchPermissionConfiguration = (output, context) => {
7709
7859
  return {
7860
+ organizationArns: output.organizationArns !== undefined && output.organizationArns !== null
7861
+ ? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
7862
+ : undefined,
7863
+ organizationalUnitArns: output.organizationalUnitArns !== undefined && output.organizationalUnitArns !== null
7864
+ ? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
7865
+ : undefined,
7710
7866
  userGroups: output.userGroups !== undefined && output.userGroups !== null
7711
7867
  ? deserializeAws_restJson1StringList(output.userGroups, context)
7712
7868
  : undefined,
@@ -7749,6 +7905,26 @@ const deserializeAws_restJson1Logging = (output, context) => {
7749
7905
  : undefined,
7750
7906
  };
7751
7907
  };
7908
+ const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
7909
+ return (output || [])
7910
+ .filter((e) => e != null)
7911
+ .map((entry) => {
7912
+ if (entry === null) {
7913
+ return null;
7914
+ }
7915
+ return smithy_client_1.expectString(entry);
7916
+ });
7917
+ };
7918
+ const deserializeAws_restJson1OrganizationArnList = (output, context) => {
7919
+ return (output || [])
7920
+ .filter((e) => e != null)
7921
+ .map((entry) => {
7922
+ if (entry === null) {
7923
+ return null;
7924
+ }
7925
+ return smithy_client_1.expectString(entry);
7926
+ });
7927
+ };
7752
7928
  const deserializeAws_restJson1OsVersionList = (output, context) => {
7753
7929
  return (output || [])
7754
7930
  .filter((e) => e != null)
@@ -7790,6 +7966,14 @@ const deserializeAws_restJson1ResourceTagMap = (output, context) => {
7790
7966
  };
7791
7967
  }, {});
7792
7968
  };
7969
+ const deserializeAws_restJson1S3ExportConfiguration = (output, context) => {
7970
+ return {
7971
+ diskImageFormat: smithy_client_1.expectString(output.diskImageFormat),
7972
+ roleName: smithy_client_1.expectString(output.roleName),
7973
+ s3Bucket: smithy_client_1.expectString(output.s3Bucket),
7974
+ s3Prefix: smithy_client_1.expectString(output.s3Prefix),
7975
+ };
7976
+ };
7793
7977
  const deserializeAws_restJson1S3Logs = (output, context) => {
7794
7978
  return {
7795
7979
  s3BucketName: smithy_client_1.expectString(output.s3BucketName),
@@ -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)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -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,10 +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 CallRateLimitExceededException;
41
- (function (CallRateLimitExceededException) {
42
- CallRateLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
- })(CallRateLimitExceededException || (CallRateLimitExceededException = {}));
40
+ export var BuildType;
41
+ (function (BuildType) {
42
+ BuildType["IMPORT"] = "IMPORT";
43
+ BuildType["SCHEDULED"] = "SCHEDULED";
44
+ BuildType["USER_INITIATED"] = "USER_INITIATED";
45
+ })(BuildType || (BuildType = {}));
44
46
  export var CancelImageCreationRequest;
45
47
  (function (CancelImageCreationRequest) {
46
48
  CancelImageCreationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -49,34 +51,6 @@ export var CancelImageCreationResponse;
49
51
  (function (CancelImageCreationResponse) {
50
52
  CancelImageCreationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
51
53
  })(CancelImageCreationResponse || (CancelImageCreationResponse = {}));
52
- export var ClientException;
53
- (function (ClientException) {
54
- ClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
55
- })(ClientException || (ClientException = {}));
56
- export var ForbiddenException;
57
- (function (ForbiddenException) {
58
- ForbiddenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
59
- })(ForbiddenException || (ForbiddenException = {}));
60
- export var IdempotentParameterMismatchException;
61
- (function (IdempotentParameterMismatchException) {
62
- IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
63
- })(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
64
- export var InvalidRequestException;
65
- (function (InvalidRequestException) {
66
- InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
67
- })(InvalidRequestException || (InvalidRequestException = {}));
68
- export var ResourceInUseException;
69
- (function (ResourceInUseException) {
70
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
- })(ResourceInUseException || (ResourceInUseException = {}));
72
- export var ServiceException;
73
- (function (ServiceException) {
74
- ServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- })(ServiceException || (ServiceException = {}));
76
- export var ServiceUnavailableException;
77
- (function (ServiceUnavailableException) {
78
- ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
- })(ServiceUnavailableException || (ServiceUnavailableException = {}));
80
54
  export var ComponentParameterDetail;
81
55
  (function (ComponentParameterDetail) {
82
56
  ComponentParameterDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -181,18 +155,6 @@ export var CreateComponentResponse;
181
155
  (function (CreateComponentResponse) {
182
156
  CreateComponentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
157
  })(CreateComponentResponse || (CreateComponentResponse = {}));
184
- export var InvalidParameterCombinationException;
185
- (function (InvalidParameterCombinationException) {
186
- InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
- })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
188
- export var InvalidVersionNumberException;
189
- (function (InvalidVersionNumberException) {
190
- InvalidVersionNumberException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
- })(InvalidVersionNumberException || (InvalidVersionNumberException = {}));
192
- export var ServiceQuotaExceededException;
193
- (function (ServiceQuotaExceededException) {
194
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
196
158
  export var CreateContainerRecipeRequest;
197
159
  (function (CreateContainerRecipeRequest) {
198
160
  CreateContainerRecipeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -201,14 +163,20 @@ export var CreateContainerRecipeResponse;
201
163
  (function (CreateContainerRecipeResponse) {
202
164
  CreateContainerRecipeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
165
  })(CreateContainerRecipeResponse || (CreateContainerRecipeResponse = {}));
204
- export var ResourceAlreadyExistsException;
205
- (function (ResourceAlreadyExistsException) {
206
- ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
- })(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
208
166
  export var LaunchTemplateConfiguration;
209
167
  (function (LaunchTemplateConfiguration) {
210
168
  LaunchTemplateConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
169
  })(LaunchTemplateConfiguration || (LaunchTemplateConfiguration = {}));
170
+ export var DiskImageFormat;
171
+ (function (DiskImageFormat) {
172
+ DiskImageFormat["RAW"] = "RAW";
173
+ DiskImageFormat["VHD"] = "VHD";
174
+ DiskImageFormat["VMDK"] = "VMDK";
175
+ })(DiskImageFormat || (DiskImageFormat = {}));
176
+ export var S3ExportConfiguration;
177
+ (function (S3ExportConfiguration) {
178
+ S3ExportConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
+ })(S3ExportConfiguration || (S3ExportConfiguration = {}));
212
180
  export var Distribution;
213
181
  (function (Distribution) {
214
182
  Distribution.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -291,10 +259,6 @@ export var DeleteComponentResponse;
291
259
  (function (DeleteComponentResponse) {
292
260
  DeleteComponentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
293
261
  })(DeleteComponentResponse || (DeleteComponentResponse = {}));
294
- export var ResourceDependencyException;
295
- (function (ResourceDependencyException) {
296
- ResourceDependencyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
- })(ResourceDependencyException || (ResourceDependencyException = {}));
298
262
  export var DeleteContainerRecipeRequest;
299
263
  (function (DeleteContainerRecipeRequest) {
300
264
  DeleteContainerRecipeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -371,10 +335,6 @@ export var GetComponentPolicyResponse;
371
335
  (function (GetComponentPolicyResponse) {
372
336
  GetComponentPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
373
337
  })(GetComponentPolicyResponse || (GetComponentPolicyResponse = {}));
374
- export var ResourceNotFoundException;
375
- (function (ResourceNotFoundException) {
376
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
377
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
378
338
  export var GetContainerRecipeRequest;
379
339
  (function (GetContainerRecipeRequest) {
380
340
  GetContainerRecipeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -480,10 +440,14 @@ export var ImportComponentResponse;
480
440
  (function (ImportComponentResponse) {
481
441
  ImportComponentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
482
442
  })(ImportComponentResponse || (ImportComponentResponse = {}));
483
- export var InvalidPaginationTokenException;
484
- (function (InvalidPaginationTokenException) {
485
- InvalidPaginationTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
486
- })(InvalidPaginationTokenException || (InvalidPaginationTokenException = {}));
443
+ export var ImportVmImageRequest;
444
+ (function (ImportVmImageRequest) {
445
+ ImportVmImageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
446
+ })(ImportVmImageRequest || (ImportVmImageRequest = {}));
447
+ export var ImportVmImageResponse;
448
+ (function (ImportVmImageResponse) {
449
+ ImportVmImageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
450
+ })(ImportVmImageResponse || (ImportVmImageResponse = {}));
487
451
  export var ListComponentBuildVersionsRequest;
488
452
  (function (ListComponentBuildVersionsRequest) {
489
453
  ListComponentBuildVersionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -598,10 +562,6 @@ export var ListInfrastructureConfigurationsResponse;
598
562
  (function (ListInfrastructureConfigurationsResponse) {
599
563
  ListInfrastructureConfigurationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
600
564
  })(ListInfrastructureConfigurationsResponse || (ListInfrastructureConfigurationsResponse = {}));
601
- export var InvalidParameterException;
602
- (function (InvalidParameterException) {
603
- InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
604
- })(InvalidParameterException || (InvalidParameterException = {}));
605
565
  export var ListTagsForResourceRequest;
606
566
  (function (ListTagsForResourceRequest) {
607
567
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -610,10 +570,6 @@ export var ListTagsForResourceResponse;
610
570
  (function (ListTagsForResourceResponse) {
611
571
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
612
572
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
613
- export var InvalidParameterValueException;
614
- (function (InvalidParameterValueException) {
615
- InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
616
- })(InvalidParameterValueException || (InvalidParameterValueException = {}));
617
573
  export var PutComponentPolicyRequest;
618
574
  (function (PutComponentPolicyRequest) {
619
575
  PutComponentPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };