@aws-sdk/client-imagebuilder 3.721.0 → 3.724.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 (31) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +473 -317
  3. package/dist-es/Imagebuilder.js +2 -0
  4. package/dist-es/ImagebuilderClient.js +1 -0
  5. package/dist-es/commands/ImportDiskImageCommand.js +22 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_0.js +35 -34
  8. package/dist-es/protocols/Aws_restJson1.js +37 -0
  9. package/dist-types/Imagebuilder.d.ts +7 -0
  10. package/dist-types/ImagebuilderClient.d.ts +3 -2
  11. package/dist-types/commands/GetImageCommand.d.ts +1 -1
  12. package/dist-types/commands/ImportDiskImageCommand.d.ts +101 -0
  13. package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +1 -1
  14. package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +1 -1
  15. package/dist-types/commands/ListImagesCommand.d.ts +1 -1
  16. package/dist-types/commands/index.d.ts +1 -0
  17. package/dist-types/models/models_0.d.ts +114 -9
  18. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  19. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  20. package/dist-types/runtimeConfig.d.ts +1 -1
  21. package/dist-types/runtimeConfig.native.d.ts +2 -2
  22. package/dist-types/ts3.4/Imagebuilder.d.ts +17 -0
  23. package/dist-types/ts3.4/ImagebuilderClient.d.ts +6 -0
  24. package/dist-types/ts3.4/commands/ImportDiskImageCommand.d.ts +50 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +17 -0
  27. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
  31. package/package.json +43 -43
@@ -37,6 +37,7 @@ import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
37
37
  import { GetWorkflowExecutionCommand, } from "./commands/GetWorkflowExecutionCommand";
38
38
  import { GetWorkflowStepExecutionCommand, } from "./commands/GetWorkflowStepExecutionCommand";
39
39
  import { ImportComponentCommand, } from "./commands/ImportComponentCommand";
40
+ import { ImportDiskImageCommand, } from "./commands/ImportDiskImageCommand";
40
41
  import { ImportVmImageCommand, } from "./commands/ImportVmImageCommand";
41
42
  import { ListComponentBuildVersionsCommand, } from "./commands/ListComponentBuildVersionsCommand";
42
43
  import { ListComponentsCommand, } from "./commands/ListComponentsCommand";
@@ -113,6 +114,7 @@ const commands = {
113
114
  GetWorkflowExecutionCommand,
114
115
  GetWorkflowStepExecutionCommand,
115
116
  ImportComponentCommand,
117
+ ImportDiskImageCommand,
116
118
  ImportVmImageCommand,
117
119
  ListComponentBuildVersionsCommand,
118
120
  ListComponentsCommand,
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class ImagebuilderClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ImportDiskImageCommand, se_ImportDiskImageCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ImportDiskImageCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("imagebuilder", "ImportDiskImage", {})
17
+ .n("ImagebuilderClient", "ImportDiskImageCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ImportDiskImageCommand)
20
+ .de(de_ImportDiskImageCommand)
21
+ .build() {
22
+ }
@@ -36,6 +36,7 @@ export * from "./GetWorkflowCommand";
36
36
  export * from "./GetWorkflowExecutionCommand";
37
37
  export * from "./GetWorkflowStepExecutionCommand";
38
38
  export * from "./ImportComponentCommand";
39
+ export * from "./ImportDiskImageCommand";
39
40
  export * from "./ImportVmImageCommand";
40
41
  export * from "./ListComponentBuildVersionsCommand";
41
42
  export * from "./ListComponentsCommand";
@@ -15,102 +15,103 @@ export const ImageStatus = {
15
15
  };
16
16
  export const BuildType = {
17
17
  IMPORT: "IMPORT",
18
+ IMPORT_ISO: "IMPORT_ISO",
18
19
  SCHEDULED: "SCHEDULED",
19
20
  USER_INITIATED: "USER_INITIATED",
20
21
  };
21
22
  export class CallRateLimitExceededException extends __BaseException {
23
+ name = "CallRateLimitExceededException";
24
+ $fault = "client";
22
25
  constructor(opts) {
23
26
  super({
24
27
  name: "CallRateLimitExceededException",
25
28
  $fault: "client",
26
29
  ...opts,
27
30
  });
28
- this.name = "CallRateLimitExceededException";
29
- this.$fault = "client";
30
31
  Object.setPrototypeOf(this, CallRateLimitExceededException.prototype);
31
32
  }
32
33
  }
33
34
  export class ClientException extends __BaseException {
35
+ name = "ClientException";
36
+ $fault = "client";
34
37
  constructor(opts) {
35
38
  super({
36
39
  name: "ClientException",
37
40
  $fault: "client",
38
41
  ...opts,
39
42
  });
40
- this.name = "ClientException";
41
- this.$fault = "client";
42
43
  Object.setPrototypeOf(this, ClientException.prototype);
43
44
  }
44
45
  }
45
46
  export class ForbiddenException extends __BaseException {
47
+ name = "ForbiddenException";
48
+ $fault = "client";
46
49
  constructor(opts) {
47
50
  super({
48
51
  name: "ForbiddenException",
49
52
  $fault: "client",
50
53
  ...opts,
51
54
  });
52
- this.name = "ForbiddenException";
53
- this.$fault = "client";
54
55
  Object.setPrototypeOf(this, ForbiddenException.prototype);
55
56
  }
56
57
  }
57
58
  export class IdempotentParameterMismatchException extends __BaseException {
59
+ name = "IdempotentParameterMismatchException";
60
+ $fault = "client";
58
61
  constructor(opts) {
59
62
  super({
60
63
  name: "IdempotentParameterMismatchException",
61
64
  $fault: "client",
62
65
  ...opts,
63
66
  });
64
- this.name = "IdempotentParameterMismatchException";
65
- this.$fault = "client";
66
67
  Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
67
68
  }
68
69
  }
69
70
  export class InvalidRequestException extends __BaseException {
71
+ name = "InvalidRequestException";
72
+ $fault = "client";
70
73
  constructor(opts) {
71
74
  super({
72
75
  name: "InvalidRequestException",
73
76
  $fault: "client",
74
77
  ...opts,
75
78
  });
76
- this.name = "InvalidRequestException";
77
- this.$fault = "client";
78
79
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
79
80
  }
80
81
  }
81
82
  export class ResourceInUseException extends __BaseException {
83
+ name = "ResourceInUseException";
84
+ $fault = "client";
82
85
  constructor(opts) {
83
86
  super({
84
87
  name: "ResourceInUseException",
85
88
  $fault: "client",
86
89
  ...opts,
87
90
  });
88
- this.name = "ResourceInUseException";
89
- this.$fault = "client";
90
91
  Object.setPrototypeOf(this, ResourceInUseException.prototype);
91
92
  }
92
93
  }
93
94
  export class ServiceException extends __BaseException {
95
+ name = "ServiceException";
96
+ $fault = "server";
94
97
  constructor(opts) {
95
98
  super({
96
99
  name: "ServiceException",
97
100
  $fault: "server",
98
101
  ...opts,
99
102
  });
100
- this.name = "ServiceException";
101
- this.$fault = "server";
102
103
  Object.setPrototypeOf(this, ServiceException.prototype);
103
104
  }
104
105
  }
105
106
  export class ServiceUnavailableException extends __BaseException {
107
+ name = "ServiceUnavailableException";
108
+ $fault = "server";
106
109
  constructor(opts) {
107
110
  super({
108
111
  name: "ServiceUnavailableException",
109
112
  $fault: "server",
110
113
  ...opts,
111
114
  });
112
- this.name = "ServiceUnavailableException";
113
- this.$fault = "server";
114
115
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
115
116
  }
116
117
  }
@@ -150,50 +151,50 @@ export const EbsVolumeType = {
150
151
  STANDARD: "standard",
151
152
  };
152
153
  export class InvalidParameterCombinationException extends __BaseException {
154
+ name = "InvalidParameterCombinationException";
155
+ $fault = "client";
153
156
  constructor(opts) {
154
157
  super({
155
158
  name: "InvalidParameterCombinationException",
156
159
  $fault: "client",
157
160
  ...opts,
158
161
  });
159
- this.name = "InvalidParameterCombinationException";
160
- this.$fault = "client";
161
162
  Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
162
163
  }
163
164
  }
164
165
  export class InvalidVersionNumberException extends __BaseException {
166
+ name = "InvalidVersionNumberException";
167
+ $fault = "client";
165
168
  constructor(opts) {
166
169
  super({
167
170
  name: "InvalidVersionNumberException",
168
171
  $fault: "client",
169
172
  ...opts,
170
173
  });
171
- this.name = "InvalidVersionNumberException";
172
- this.$fault = "client";
173
174
  Object.setPrototypeOf(this, InvalidVersionNumberException.prototype);
174
175
  }
175
176
  }
176
177
  export class ServiceQuotaExceededException extends __BaseException {
178
+ name = "ServiceQuotaExceededException";
179
+ $fault = "client";
177
180
  constructor(opts) {
178
181
  super({
179
182
  name: "ServiceQuotaExceededException",
180
183
  $fault: "client",
181
184
  ...opts,
182
185
  });
183
- this.name = "ServiceQuotaExceededException";
184
- this.$fault = "client";
185
186
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
186
187
  }
187
188
  }
188
189
  export class ResourceAlreadyExistsException extends __BaseException {
190
+ name = "ResourceAlreadyExistsException";
191
+ $fault = "client";
189
192
  constructor(opts) {
190
193
  super({
191
194
  name: "ResourceAlreadyExistsException",
192
195
  $fault: "client",
193
196
  ...opts,
194
197
  });
195
- this.name = "ResourceAlreadyExistsException";
196
- this.$fault = "client";
197
198
  Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
198
199
  }
199
200
  }
@@ -248,26 +249,26 @@ export const WorkflowType = {
248
249
  TEST: "TEST",
249
250
  };
250
251
  export class ResourceDependencyException extends __BaseException {
252
+ name = "ResourceDependencyException";
253
+ $fault = "client";
251
254
  constructor(opts) {
252
255
  super({
253
256
  name: "ResourceDependencyException",
254
257
  $fault: "client",
255
258
  ...opts,
256
259
  });
257
- this.name = "ResourceDependencyException";
258
- this.$fault = "client";
259
260
  Object.setPrototypeOf(this, ResourceDependencyException.prototype);
260
261
  }
261
262
  }
262
263
  export class ResourceNotFoundException extends __BaseException {
264
+ name = "ResourceNotFoundException";
265
+ $fault = "client";
263
266
  constructor(opts) {
264
267
  super({
265
268
  name: "ResourceNotFoundException",
266
269
  $fault: "client",
267
270
  ...opts,
268
271
  });
269
- this.name = "ResourceNotFoundException";
270
- this.$fault = "client";
271
272
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
272
273
  }
273
274
  }
@@ -330,14 +331,14 @@ export const WorkflowStepExecutionStatus = {
330
331
  SKIPPED: "SKIPPED",
331
332
  };
332
333
  export class InvalidPaginationTokenException extends __BaseException {
334
+ name = "InvalidPaginationTokenException";
335
+ $fault = "client";
333
336
  constructor(opts) {
334
337
  super({
335
338
  name: "InvalidPaginationTokenException",
336
339
  $fault: "client",
337
340
  ...opts,
338
341
  });
339
- this.name = "InvalidPaginationTokenException";
340
- this.$fault = "client";
341
342
  Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
342
343
  }
343
344
  }
@@ -361,26 +362,26 @@ export const LifecycleExecutionResourceStatus = {
361
362
  SUCCESS: "SUCCESS",
362
363
  };
363
364
  export class InvalidParameterException extends __BaseException {
365
+ name = "InvalidParameterException";
366
+ $fault = "client";
364
367
  constructor(opts) {
365
368
  super({
366
369
  name: "InvalidParameterException",
367
370
  $fault: "client",
368
371
  ...opts,
369
372
  });
370
- this.name = "InvalidParameterException";
371
- this.$fault = "client";
372
373
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
373
374
  }
374
375
  }
375
376
  export class InvalidParameterValueException extends __BaseException {
377
+ name = "InvalidParameterValueException";
378
+ $fault = "client";
376
379
  constructor(opts) {
377
380
  super({
378
381
  name: "InvalidParameterValueException",
379
382
  $fault: "client",
380
383
  ...opts,
381
384
  });
382
- this.name = "InvalidParameterValueException";
383
- this.$fault = "client";
384
385
  Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
385
386
  }
386
387
  }
@@ -556,6 +556,28 @@ export const se_ImportComponentCommand = async (input, context) => {
556
556
  b.m("PUT").h(headers).b(body);
557
557
  return b.build();
558
558
  };
559
+ export const se_ImportDiskImageCommand = async (input, context) => {
560
+ const b = rb(input, context);
561
+ const headers = {
562
+ "content-type": "application/json",
563
+ };
564
+ b.bp("/ImportDiskImage");
565
+ let body;
566
+ body = JSON.stringify(take(input, {
567
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
568
+ description: [],
569
+ executionRole: [],
570
+ infrastructureConfigurationArn: [],
571
+ name: [],
572
+ osVersion: [],
573
+ platform: [],
574
+ semanticVersion: [],
575
+ tags: (_) => _json(_),
576
+ uri: [],
577
+ }));
578
+ b.m("PUT").h(headers).b(body);
579
+ return b.build();
580
+ };
559
581
  export const se_ImportVmImageCommand = async (input, context) => {
560
582
  const b = rb(input, context);
561
583
  const headers = {
@@ -1731,6 +1753,21 @@ export const de_ImportComponentCommand = async (output, context) => {
1731
1753
  Object.assign(contents, doc);
1732
1754
  return contents;
1733
1755
  };
1756
+ export const de_ImportDiskImageCommand = async (output, context) => {
1757
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1758
+ return de_CommandError(output, context);
1759
+ }
1760
+ const contents = map({
1761
+ $metadata: deserializeMetadata(output),
1762
+ });
1763
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1764
+ const doc = take(data, {
1765
+ clientToken: __expectString,
1766
+ imageBuildVersionArn: __expectString,
1767
+ });
1768
+ Object.assign(contents, doc);
1769
+ return contents;
1770
+ };
1734
1771
  export const de_ImportVmImageCommand = async (output, context) => {
1735
1772
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
1773
  return de_CommandError(output, context);
@@ -37,6 +37,7 @@ import { GetWorkflowCommandInput, GetWorkflowCommandOutput } from "./commands/Ge
37
37
  import { GetWorkflowExecutionCommandInput, GetWorkflowExecutionCommandOutput } from "./commands/GetWorkflowExecutionCommand";
38
38
  import { GetWorkflowStepExecutionCommandInput, GetWorkflowStepExecutionCommandOutput } from "./commands/GetWorkflowStepExecutionCommand";
39
39
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "./commands/ImportComponentCommand";
40
+ import { ImportDiskImageCommandInput, ImportDiskImageCommandOutput } from "./commands/ImportDiskImageCommand";
40
41
  import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "./commands/ImportVmImageCommand";
41
42
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "./commands/ListComponentBuildVersionsCommand";
42
43
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
@@ -303,6 +304,12 @@ export interface Imagebuilder {
303
304
  importComponent(args: ImportComponentCommandInput, options?: __HttpHandlerOptions): Promise<ImportComponentCommandOutput>;
304
305
  importComponent(args: ImportComponentCommandInput, cb: (err: any, data?: ImportComponentCommandOutput) => void): void;
305
306
  importComponent(args: ImportComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportComponentCommandOutput) => void): void;
307
+ /**
308
+ * @see {@link ImportDiskImageCommand}
309
+ */
310
+ importDiskImage(args: ImportDiskImageCommandInput, options?: __HttpHandlerOptions): Promise<ImportDiskImageCommandOutput>;
311
+ importDiskImage(args: ImportDiskImageCommandInput, cb: (err: any, data?: ImportDiskImageCommandOutput) => void): void;
312
+ importDiskImage(args: ImportDiskImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportDiskImageCommandOutput) => void): void;
306
313
  /**
307
314
  * @see {@link ImportVmImageCommand}
308
315
  */
@@ -45,6 +45,7 @@ import { GetWorkflowCommandInput, GetWorkflowCommandOutput } from "./commands/Ge
45
45
  import { GetWorkflowExecutionCommandInput, GetWorkflowExecutionCommandOutput } from "./commands/GetWorkflowExecutionCommand";
46
46
  import { GetWorkflowStepExecutionCommandInput, GetWorkflowStepExecutionCommandOutput } from "./commands/GetWorkflowStepExecutionCommand";
47
47
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "./commands/ImportComponentCommand";
48
+ import { ImportDiskImageCommandInput, ImportDiskImageCommandOutput } from "./commands/ImportDiskImageCommand";
48
49
  import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "./commands/ImportVmImageCommand";
49
50
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "./commands/ListComponentBuildVersionsCommand";
50
51
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
@@ -87,11 +88,11 @@ export { __Client };
87
88
  /**
88
89
  * @public
89
90
  */
90
- export type ServiceInputTypes = CancelImageCreationCommandInput | CancelLifecycleExecutionCommandInput | CreateComponentCommandInput | CreateContainerRecipeCommandInput | CreateDistributionConfigurationCommandInput | CreateImageCommandInput | CreateImagePipelineCommandInput | CreateImageRecipeCommandInput | CreateInfrastructureConfigurationCommandInput | CreateLifecyclePolicyCommandInput | CreateWorkflowCommandInput | DeleteComponentCommandInput | DeleteContainerRecipeCommandInput | DeleteDistributionConfigurationCommandInput | DeleteImageCommandInput | DeleteImagePipelineCommandInput | DeleteImageRecipeCommandInput | DeleteInfrastructureConfigurationCommandInput | DeleteLifecyclePolicyCommandInput | DeleteWorkflowCommandInput | GetComponentCommandInput | GetComponentPolicyCommandInput | GetContainerRecipeCommandInput | GetContainerRecipePolicyCommandInput | GetDistributionConfigurationCommandInput | GetImageCommandInput | GetImagePipelineCommandInput | GetImagePolicyCommandInput | GetImageRecipeCommandInput | GetImageRecipePolicyCommandInput | GetInfrastructureConfigurationCommandInput | GetLifecycleExecutionCommandInput | GetLifecyclePolicyCommandInput | GetMarketplaceResourceCommandInput | GetWorkflowCommandInput | GetWorkflowExecutionCommandInput | GetWorkflowStepExecutionCommandInput | ImportComponentCommandInput | ImportVmImageCommandInput | ListComponentBuildVersionsCommandInput | ListComponentsCommandInput | ListContainerRecipesCommandInput | ListDistributionConfigurationsCommandInput | ListImageBuildVersionsCommandInput | ListImagePackagesCommandInput | ListImagePipelineImagesCommandInput | ListImagePipelinesCommandInput | ListImageRecipesCommandInput | ListImageScanFindingAggregationsCommandInput | ListImageScanFindingsCommandInput | ListImagesCommandInput | ListInfrastructureConfigurationsCommandInput | ListLifecycleExecutionResourcesCommandInput | ListLifecycleExecutionsCommandInput | ListLifecyclePoliciesCommandInput | ListTagsForResourceCommandInput | ListWaitingWorkflowStepsCommandInput | ListWorkflowBuildVersionsCommandInput | ListWorkflowExecutionsCommandInput | ListWorkflowStepExecutionsCommandInput | ListWorkflowsCommandInput | PutComponentPolicyCommandInput | PutContainerRecipePolicyCommandInput | PutImagePolicyCommandInput | PutImageRecipePolicyCommandInput | SendWorkflowStepActionCommandInput | StartImagePipelineExecutionCommandInput | StartResourceStateUpdateCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDistributionConfigurationCommandInput | UpdateImagePipelineCommandInput | UpdateInfrastructureConfigurationCommandInput | UpdateLifecyclePolicyCommandInput;
91
+ export type ServiceInputTypes = CancelImageCreationCommandInput | CancelLifecycleExecutionCommandInput | CreateComponentCommandInput | CreateContainerRecipeCommandInput | CreateDistributionConfigurationCommandInput | CreateImageCommandInput | CreateImagePipelineCommandInput | CreateImageRecipeCommandInput | CreateInfrastructureConfigurationCommandInput | CreateLifecyclePolicyCommandInput | CreateWorkflowCommandInput | DeleteComponentCommandInput | DeleteContainerRecipeCommandInput | DeleteDistributionConfigurationCommandInput | DeleteImageCommandInput | DeleteImagePipelineCommandInput | DeleteImageRecipeCommandInput | DeleteInfrastructureConfigurationCommandInput | DeleteLifecyclePolicyCommandInput | DeleteWorkflowCommandInput | GetComponentCommandInput | GetComponentPolicyCommandInput | GetContainerRecipeCommandInput | GetContainerRecipePolicyCommandInput | GetDistributionConfigurationCommandInput | GetImageCommandInput | GetImagePipelineCommandInput | GetImagePolicyCommandInput | GetImageRecipeCommandInput | GetImageRecipePolicyCommandInput | GetInfrastructureConfigurationCommandInput | GetLifecycleExecutionCommandInput | GetLifecyclePolicyCommandInput | GetMarketplaceResourceCommandInput | GetWorkflowCommandInput | GetWorkflowExecutionCommandInput | GetWorkflowStepExecutionCommandInput | ImportComponentCommandInput | ImportDiskImageCommandInput | ImportVmImageCommandInput | ListComponentBuildVersionsCommandInput | ListComponentsCommandInput | ListContainerRecipesCommandInput | ListDistributionConfigurationsCommandInput | ListImageBuildVersionsCommandInput | ListImagePackagesCommandInput | ListImagePipelineImagesCommandInput | ListImagePipelinesCommandInput | ListImageRecipesCommandInput | ListImageScanFindingAggregationsCommandInput | ListImageScanFindingsCommandInput | ListImagesCommandInput | ListInfrastructureConfigurationsCommandInput | ListLifecycleExecutionResourcesCommandInput | ListLifecycleExecutionsCommandInput | ListLifecyclePoliciesCommandInput | ListTagsForResourceCommandInput | ListWaitingWorkflowStepsCommandInput | ListWorkflowBuildVersionsCommandInput | ListWorkflowExecutionsCommandInput | ListWorkflowStepExecutionsCommandInput | ListWorkflowsCommandInput | PutComponentPolicyCommandInput | PutContainerRecipePolicyCommandInput | PutImagePolicyCommandInput | PutImageRecipePolicyCommandInput | SendWorkflowStepActionCommandInput | StartImagePipelineExecutionCommandInput | StartResourceStateUpdateCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDistributionConfigurationCommandInput | UpdateImagePipelineCommandInput | UpdateInfrastructureConfigurationCommandInput | UpdateLifecyclePolicyCommandInput;
91
92
  /**
92
93
  * @public
93
94
  */
94
- export type ServiceOutputTypes = CancelImageCreationCommandOutput | CancelLifecycleExecutionCommandOutput | CreateComponentCommandOutput | CreateContainerRecipeCommandOutput | CreateDistributionConfigurationCommandOutput | CreateImageCommandOutput | CreateImagePipelineCommandOutput | CreateImageRecipeCommandOutput | CreateInfrastructureConfigurationCommandOutput | CreateLifecyclePolicyCommandOutput | CreateWorkflowCommandOutput | DeleteComponentCommandOutput | DeleteContainerRecipeCommandOutput | DeleteDistributionConfigurationCommandOutput | DeleteImageCommandOutput | DeleteImagePipelineCommandOutput | DeleteImageRecipeCommandOutput | DeleteInfrastructureConfigurationCommandOutput | DeleteLifecyclePolicyCommandOutput | DeleteWorkflowCommandOutput | GetComponentCommandOutput | GetComponentPolicyCommandOutput | GetContainerRecipeCommandOutput | GetContainerRecipePolicyCommandOutput | GetDistributionConfigurationCommandOutput | GetImageCommandOutput | GetImagePipelineCommandOutput | GetImagePolicyCommandOutput | GetImageRecipeCommandOutput | GetImageRecipePolicyCommandOutput | GetInfrastructureConfigurationCommandOutput | GetLifecycleExecutionCommandOutput | GetLifecyclePolicyCommandOutput | GetMarketplaceResourceCommandOutput | GetWorkflowCommandOutput | GetWorkflowExecutionCommandOutput | GetWorkflowStepExecutionCommandOutput | ImportComponentCommandOutput | ImportVmImageCommandOutput | ListComponentBuildVersionsCommandOutput | ListComponentsCommandOutput | ListContainerRecipesCommandOutput | ListDistributionConfigurationsCommandOutput | ListImageBuildVersionsCommandOutput | ListImagePackagesCommandOutput | ListImagePipelineImagesCommandOutput | ListImagePipelinesCommandOutput | ListImageRecipesCommandOutput | ListImageScanFindingAggregationsCommandOutput | ListImageScanFindingsCommandOutput | ListImagesCommandOutput | ListInfrastructureConfigurationsCommandOutput | ListLifecycleExecutionResourcesCommandOutput | ListLifecycleExecutionsCommandOutput | ListLifecyclePoliciesCommandOutput | ListTagsForResourceCommandOutput | ListWaitingWorkflowStepsCommandOutput | ListWorkflowBuildVersionsCommandOutput | ListWorkflowExecutionsCommandOutput | ListWorkflowStepExecutionsCommandOutput | ListWorkflowsCommandOutput | PutComponentPolicyCommandOutput | PutContainerRecipePolicyCommandOutput | PutImagePolicyCommandOutput | PutImageRecipePolicyCommandOutput | SendWorkflowStepActionCommandOutput | StartImagePipelineExecutionCommandOutput | StartResourceStateUpdateCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDistributionConfigurationCommandOutput | UpdateImagePipelineCommandOutput | UpdateInfrastructureConfigurationCommandOutput | UpdateLifecyclePolicyCommandOutput;
95
+ export type ServiceOutputTypes = CancelImageCreationCommandOutput | CancelLifecycleExecutionCommandOutput | CreateComponentCommandOutput | CreateContainerRecipeCommandOutput | CreateDistributionConfigurationCommandOutput | CreateImageCommandOutput | CreateImagePipelineCommandOutput | CreateImageRecipeCommandOutput | CreateInfrastructureConfigurationCommandOutput | CreateLifecyclePolicyCommandOutput | CreateWorkflowCommandOutput | DeleteComponentCommandOutput | DeleteContainerRecipeCommandOutput | DeleteDistributionConfigurationCommandOutput | DeleteImageCommandOutput | DeleteImagePipelineCommandOutput | DeleteImageRecipeCommandOutput | DeleteInfrastructureConfigurationCommandOutput | DeleteLifecyclePolicyCommandOutput | DeleteWorkflowCommandOutput | GetComponentCommandOutput | GetComponentPolicyCommandOutput | GetContainerRecipeCommandOutput | GetContainerRecipePolicyCommandOutput | GetDistributionConfigurationCommandOutput | GetImageCommandOutput | GetImagePipelineCommandOutput | GetImagePolicyCommandOutput | GetImageRecipeCommandOutput | GetImageRecipePolicyCommandOutput | GetInfrastructureConfigurationCommandOutput | GetLifecycleExecutionCommandOutput | GetLifecyclePolicyCommandOutput | GetMarketplaceResourceCommandOutput | GetWorkflowCommandOutput | GetWorkflowExecutionCommandOutput | GetWorkflowStepExecutionCommandOutput | ImportComponentCommandOutput | ImportDiskImageCommandOutput | ImportVmImageCommandOutput | ListComponentBuildVersionsCommandOutput | ListComponentsCommandOutput | ListContainerRecipesCommandOutput | ListDistributionConfigurationsCommandOutput | ListImageBuildVersionsCommandOutput | ListImagePackagesCommandOutput | ListImagePipelineImagesCommandOutput | ListImagePipelinesCommandOutput | ListImageRecipesCommandOutput | ListImageScanFindingAggregationsCommandOutput | ListImageScanFindingsCommandOutput | ListImagesCommandOutput | ListInfrastructureConfigurationsCommandOutput | ListLifecycleExecutionResourcesCommandOutput | ListLifecycleExecutionsCommandOutput | ListLifecyclePoliciesCommandOutput | ListTagsForResourceCommandOutput | ListWaitingWorkflowStepsCommandOutput | ListWorkflowBuildVersionsCommandOutput | ListWorkflowExecutionsCommandOutput | ListWorkflowStepExecutionsCommandOutput | ListWorkflowsCommandOutput | PutComponentPolicyCommandOutput | PutContainerRecipePolicyCommandOutput | PutImagePolicyCommandOutput | PutImageRecipePolicyCommandOutput | SendWorkflowStepActionCommandOutput | StartImagePipelineExecutionCommandOutput | StartResourceStateUpdateCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDistributionConfigurationCommandOutput | UpdateImagePipelineCommandOutput | UpdateInfrastructureConfigurationCommandOutput | UpdateLifecyclePolicyCommandOutput;
95
96
  /**
96
97
  * @public
97
98
  */
@@ -310,7 +310,7 @@ declare const GetImageCommand_base: {
310
310
  * // ],
311
311
  * // },
312
312
  * // tags: "<TagMap>",
313
- * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT",
313
+ * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT" || "IMPORT_ISO",
314
314
  * // imageSource: "AMAZON_MANAGED" || "AWS_MARKETPLACE" || "IMPORTED" || "CUSTOM",
315
315
  * // scanState: { // ImageScanState
316
316
  * // status: "PENDING" || "SCANNING" || "COLLECTING" || "COMPLETED" || "ABANDONED" || "FAILED" || "TIMED_OUT",
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient";
4
+ import { ImportDiskImageRequest, ImportDiskImageResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ImportDiskImageCommand}.
14
+ */
15
+ export interface ImportDiskImageCommandInput extends ImportDiskImageRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ImportDiskImageCommand}.
21
+ */
22
+ export interface ImportDiskImageCommandOutput extends ImportDiskImageResponse, __MetadataBearer {
23
+ }
24
+ declare const ImportDiskImageCommand_base: {
25
+ new (input: ImportDiskImageCommandInput): import("@smithy/smithy-client").CommandImpl<ImportDiskImageCommandInput, ImportDiskImageCommandOutput, ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ImportDiskImageCommandInput): import("@smithy/smithy-client").CommandImpl<ImportDiskImageCommandInput, ImportDiskImageCommandOutput, ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Import a Windows operating system image from a verified Microsoft ISO disk
31
+ * file. The following disk images are supported:</p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>Windows 11 Enterprise</p>
35
+ * </li>
36
+ * </ul>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { ImagebuilderClient, ImportDiskImageCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import
41
+ * // const { ImagebuilderClient, ImportDiskImageCommand } = require("@aws-sdk/client-imagebuilder"); // CommonJS import
42
+ * const client = new ImagebuilderClient(config);
43
+ * const input = { // ImportDiskImageRequest
44
+ * name: "STRING_VALUE", // required
45
+ * semanticVersion: "STRING_VALUE", // required
46
+ * description: "STRING_VALUE",
47
+ * platform: "STRING_VALUE", // required
48
+ * osVersion: "STRING_VALUE", // required
49
+ * executionRole: "STRING_VALUE",
50
+ * infrastructureConfigurationArn: "STRING_VALUE", // required
51
+ * uri: "STRING_VALUE", // required
52
+ * tags: { // TagMap
53
+ * "<keys>": "STRING_VALUE",
54
+ * },
55
+ * clientToken: "STRING_VALUE", // required
56
+ * };
57
+ * const command = new ImportDiskImageCommand(input);
58
+ * const response = await client.send(command);
59
+ * // { // ImportDiskImageResponse
60
+ * // clientToken: "STRING_VALUE",
61
+ * // imageBuildVersionArn: "STRING_VALUE",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param ImportDiskImageCommandInput - {@link ImportDiskImageCommandInput}
67
+ * @returns {@link ImportDiskImageCommandOutput}
68
+ * @see {@link ImportDiskImageCommandInput} for command's `input` shape.
69
+ * @see {@link ImportDiskImageCommandOutput} for command's `response` shape.
70
+ * @see {@link ImagebuilderClientResolvedConfig | config} for ImagebuilderClient's `config` shape.
71
+ *
72
+ * @throws {@link ClientException} (client fault)
73
+ * <p>These errors are usually caused by a client action, such as using an action or
74
+ * resource on behalf of a user that doesn't have permissions to use the action or
75
+ * resource, or specifying an invalid resource identifier.</p>
76
+ *
77
+ * @throws {@link ServiceException} (server fault)
78
+ * <p>This exception is thrown when the service encounters an unrecoverable
79
+ * exception.</p>
80
+ *
81
+ * @throws {@link ServiceUnavailableException} (server fault)
82
+ * <p>The service is unable to process your request at this time.</p>
83
+ *
84
+ * @throws {@link ImagebuilderServiceException}
85
+ * <p>Base exception class for all service exceptions from Imagebuilder service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class ImportDiskImageCommand extends ImportDiskImageCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: ImportDiskImageRequest;
94
+ output: ImportDiskImageResponse;
95
+ };
96
+ sdk: {
97
+ input: ImportDiskImageCommandInput;
98
+ output: ImportDiskImageCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -91,7 +91,7 @@ declare const ListImageBuildVersionsCommand_base: {
91
91
  * // tags: { // TagMap
92
92
  * // "<keys>": "STRING_VALUE",
93
93
  * // },
94
- * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT",
94
+ * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT" || "IMPORT_ISO",
95
95
  * // imageSource: "AMAZON_MANAGED" || "AWS_MARKETPLACE" || "IMPORTED" || "CUSTOM",
96
96
  * // deprecationTime: new Date("TIMESTAMP"),
97
97
  * // lifecycleExecutionId: "STRING_VALUE",
@@ -91,7 +91,7 @@ declare const ListImagePipelineImagesCommand_base: {
91
91
  * // tags: { // TagMap
92
92
  * // "<keys>": "STRING_VALUE",
93
93
  * // },
94
- * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT",
94
+ * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT" || "IMPORT_ISO",
95
95
  * // imageSource: "AMAZON_MANAGED" || "AWS_MARKETPLACE" || "IMPORTED" || "CUSTOM",
96
96
  * // deprecationTime: new Date("TIMESTAMP"),
97
97
  * // lifecycleExecutionId: "STRING_VALUE",
@@ -64,7 +64,7 @@ declare const ListImagesCommand_base: {
64
64
  * // osVersion: "STRING_VALUE",
65
65
  * // owner: "STRING_VALUE",
66
66
  * // dateCreated: "STRING_VALUE",
67
- * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT",
67
+ * // buildType: "USER_INITIATED" || "SCHEDULED" || "IMPORT" || "IMPORT_ISO",
68
68
  * // imageSource: "AMAZON_MANAGED" || "AWS_MARKETPLACE" || "IMPORTED" || "CUSTOM",
69
69
  * // },
70
70
  * // ],
@@ -36,6 +36,7 @@ export * from "./GetWorkflowCommand";
36
36
  export * from "./GetWorkflowExecutionCommand";
37
37
  export * from "./GetWorkflowStepExecutionCommand";
38
38
  export * from "./ImportComponentCommand";
39
+ export * from "./ImportDiskImageCommand";
39
40
  export * from "./ImportVmImageCommand";
40
41
  export * from "./ListComponentBuildVersionsCommand";
41
42
  export * from "./ListComponentsCommand";