@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
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -26,6 +26,7 @@ import { GetImageRecipeCommandInput, GetImageRecipeCommandOutput } from "./comma
26
26
  import { GetImageRecipePolicyCommandInput, GetImageRecipePolicyCommandOutput } from "./commands/GetImageRecipePolicyCommand";
27
27
  import { GetInfrastructureConfigurationCommandInput, GetInfrastructureConfigurationCommandOutput } from "./commands/GetInfrastructureConfigurationCommand";
28
28
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "./commands/ImportComponentCommand";
29
+ import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "./commands/ImportVmImageCommand";
29
30
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "./commands/ListComponentBuildVersionsCommand";
30
31
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
31
32
  import { ListContainerRecipesCommandInput, ListContainerRecipesCommandOutput } from "./commands/ListContainerRecipesCommand";
@@ -160,6 +161,10 @@ export declare class Imagebuilder extends ImagebuilderClient {
160
161
  importComponent(args: ImportComponentCommandInput, cb: (err: any, data?: ImportComponentCommandOutput) => void): void;
161
162
  importComponent(args: ImportComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportComponentCommandOutput) => void): void;
162
163
 
164
+ importVmImage(args: ImportVmImageCommandInput, options?: __HttpHandlerOptions): Promise<ImportVmImageCommandOutput>;
165
+ importVmImage(args: ImportVmImageCommandInput, cb: (err: any, data?: ImportVmImageCommandOutput) => void): void;
166
+ importVmImage(args: ImportVmImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportVmImageCommandOutput) => void): void;
167
+
163
168
  listComponentBuildVersions(args: ListComponentBuildVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListComponentBuildVersionsCommandOutput>;
164
169
  listComponentBuildVersions(args: ListComponentBuildVersionsCommandInput, cb: (err: any, data?: ListComponentBuildVersionsCommandOutput) => void): void;
165
170
  listComponentBuildVersions(args: ListComponentBuildVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComponentBuildVersionsCommandOutput) => void): void;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CancelImageCreationCommandInput, CancelImageCreationCommandOutput } from "./commands/CancelImageCreationCommand";
10
10
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
@@ -33,6 +33,7 @@ import { GetImageRecipeCommandInput, GetImageRecipeCommandOutput } from "./comma
33
33
  import { GetImageRecipePolicyCommandInput, GetImageRecipePolicyCommandOutput } from "./commands/GetImageRecipePolicyCommand";
34
34
  import { GetInfrastructureConfigurationCommandInput, GetInfrastructureConfigurationCommandOutput } from "./commands/GetInfrastructureConfigurationCommand";
35
35
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "./commands/ImportComponentCommand";
36
+ import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "./commands/ImportVmImageCommand";
36
37
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "./commands/ListComponentBuildVersionsCommand";
37
38
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
38
39
  import { ListContainerRecipesCommandInput, ListContainerRecipesCommandOutput } from "./commands/ListContainerRecipesCommand";
@@ -55,8 +56,8 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
55
56
  import { UpdateDistributionConfigurationCommandInput, UpdateDistributionConfigurationCommandOutput } from "./commands/UpdateDistributionConfigurationCommand";
56
57
  import { UpdateImagePipelineCommandInput, UpdateImagePipelineCommandOutput } from "./commands/UpdateImagePipelineCommand";
57
58
  import { UpdateInfrastructureConfigurationCommandInput, UpdateInfrastructureConfigurationCommandOutput } from "./commands/UpdateInfrastructureConfigurationCommand";
58
- export declare type ServiceInputTypes = CancelImageCreationCommandInput | CreateComponentCommandInput | CreateContainerRecipeCommandInput | CreateDistributionConfigurationCommandInput | CreateImageCommandInput | CreateImagePipelineCommandInput | CreateImageRecipeCommandInput | CreateInfrastructureConfigurationCommandInput | DeleteComponentCommandInput | DeleteContainerRecipeCommandInput | DeleteDistributionConfigurationCommandInput | DeleteImageCommandInput | DeleteImagePipelineCommandInput | DeleteImageRecipeCommandInput | DeleteInfrastructureConfigurationCommandInput | GetComponentCommandInput | GetComponentPolicyCommandInput | GetContainerRecipeCommandInput | GetContainerRecipePolicyCommandInput | GetDistributionConfigurationCommandInput | GetImageCommandInput | GetImagePipelineCommandInput | GetImagePolicyCommandInput | GetImageRecipeCommandInput | GetImageRecipePolicyCommandInput | GetInfrastructureConfigurationCommandInput | ImportComponentCommandInput | ListComponentBuildVersionsCommandInput | ListComponentsCommandInput | ListContainerRecipesCommandInput | ListDistributionConfigurationsCommandInput | ListImageBuildVersionsCommandInput | ListImagePackagesCommandInput | ListImagePipelineImagesCommandInput | ListImagePipelinesCommandInput | ListImageRecipesCommandInput | ListImagesCommandInput | ListInfrastructureConfigurationsCommandInput | ListTagsForResourceCommandInput | PutComponentPolicyCommandInput | PutContainerRecipePolicyCommandInput | PutImagePolicyCommandInput | PutImageRecipePolicyCommandInput | StartImagePipelineExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDistributionConfigurationCommandInput | UpdateImagePipelineCommandInput | UpdateInfrastructureConfigurationCommandInput;
59
- export declare type ServiceOutputTypes = CancelImageCreationCommandOutput | CreateComponentCommandOutput | CreateContainerRecipeCommandOutput | CreateDistributionConfigurationCommandOutput | CreateImageCommandOutput | CreateImagePipelineCommandOutput | CreateImageRecipeCommandOutput | CreateInfrastructureConfigurationCommandOutput | DeleteComponentCommandOutput | DeleteContainerRecipeCommandOutput | DeleteDistributionConfigurationCommandOutput | DeleteImageCommandOutput | DeleteImagePipelineCommandOutput | DeleteImageRecipeCommandOutput | DeleteInfrastructureConfigurationCommandOutput | GetComponentCommandOutput | GetComponentPolicyCommandOutput | GetContainerRecipeCommandOutput | GetContainerRecipePolicyCommandOutput | GetDistributionConfigurationCommandOutput | GetImageCommandOutput | GetImagePipelineCommandOutput | GetImagePolicyCommandOutput | GetImageRecipeCommandOutput | GetImageRecipePolicyCommandOutput | GetInfrastructureConfigurationCommandOutput | ImportComponentCommandOutput | ListComponentBuildVersionsCommandOutput | ListComponentsCommandOutput | ListContainerRecipesCommandOutput | ListDistributionConfigurationsCommandOutput | ListImageBuildVersionsCommandOutput | ListImagePackagesCommandOutput | ListImagePipelineImagesCommandOutput | ListImagePipelinesCommandOutput | ListImageRecipesCommandOutput | ListImagesCommandOutput | ListInfrastructureConfigurationsCommandOutput | ListTagsForResourceCommandOutput | PutComponentPolicyCommandOutput | PutContainerRecipePolicyCommandOutput | PutImagePolicyCommandOutput | PutImageRecipePolicyCommandOutput | StartImagePipelineExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDistributionConfigurationCommandOutput | UpdateImagePipelineCommandOutput | UpdateInfrastructureConfigurationCommandOutput;
59
+ export declare type ServiceInputTypes = CancelImageCreationCommandInput | CreateComponentCommandInput | CreateContainerRecipeCommandInput | CreateDistributionConfigurationCommandInput | CreateImageCommandInput | CreateImagePipelineCommandInput | CreateImageRecipeCommandInput | CreateInfrastructureConfigurationCommandInput | DeleteComponentCommandInput | DeleteContainerRecipeCommandInput | DeleteDistributionConfigurationCommandInput | DeleteImageCommandInput | DeleteImagePipelineCommandInput | DeleteImageRecipeCommandInput | DeleteInfrastructureConfigurationCommandInput | GetComponentCommandInput | GetComponentPolicyCommandInput | GetContainerRecipeCommandInput | GetContainerRecipePolicyCommandInput | GetDistributionConfigurationCommandInput | GetImageCommandInput | GetImagePipelineCommandInput | GetImagePolicyCommandInput | GetImageRecipeCommandInput | GetImageRecipePolicyCommandInput | GetInfrastructureConfigurationCommandInput | ImportComponentCommandInput | ImportVmImageCommandInput | ListComponentBuildVersionsCommandInput | ListComponentsCommandInput | ListContainerRecipesCommandInput | ListDistributionConfigurationsCommandInput | ListImageBuildVersionsCommandInput | ListImagePackagesCommandInput | ListImagePipelineImagesCommandInput | ListImagePipelinesCommandInput | ListImageRecipesCommandInput | ListImagesCommandInput | ListInfrastructureConfigurationsCommandInput | ListTagsForResourceCommandInput | PutComponentPolicyCommandInput | PutContainerRecipePolicyCommandInput | PutImagePolicyCommandInput | PutImageRecipePolicyCommandInput | StartImagePipelineExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDistributionConfigurationCommandInput | UpdateImagePipelineCommandInput | UpdateInfrastructureConfigurationCommandInput;
60
+ export declare type ServiceOutputTypes = CancelImageCreationCommandOutput | CreateComponentCommandOutput | CreateContainerRecipeCommandOutput | CreateDistributionConfigurationCommandOutput | CreateImageCommandOutput | CreateImagePipelineCommandOutput | CreateImageRecipeCommandOutput | CreateInfrastructureConfigurationCommandOutput | DeleteComponentCommandOutput | DeleteContainerRecipeCommandOutput | DeleteDistributionConfigurationCommandOutput | DeleteImageCommandOutput | DeleteImagePipelineCommandOutput | DeleteImageRecipeCommandOutput | DeleteInfrastructureConfigurationCommandOutput | GetComponentCommandOutput | GetComponentPolicyCommandOutput | GetContainerRecipeCommandOutput | GetContainerRecipePolicyCommandOutput | GetDistributionConfigurationCommandOutput | GetImageCommandOutput | GetImagePipelineCommandOutput | GetImagePolicyCommandOutput | GetImageRecipeCommandOutput | GetImageRecipePolicyCommandOutput | GetInfrastructureConfigurationCommandOutput | ImportComponentCommandOutput | ImportVmImageCommandOutput | ListComponentBuildVersionsCommandOutput | ListComponentsCommandOutput | ListContainerRecipesCommandOutput | ListDistributionConfigurationsCommandOutput | ListImageBuildVersionsCommandOutput | ListImagePackagesCommandOutput | ListImagePipelineImagesCommandOutput | ListImagePipelinesCommandOutput | ListImageRecipesCommandOutput | ListImagesCommandOutput | ListInfrastructureConfigurationsCommandOutput | ListTagsForResourceCommandOutput | PutComponentPolicyCommandOutput | PutContainerRecipePolicyCommandOutput | PutImagePolicyCommandOutput | PutImageRecipePolicyCommandOutput | StartImagePipelineExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDistributionConfigurationCommandOutput | UpdateImagePipelineCommandOutput | UpdateInfrastructureConfigurationCommandOutput;
60
61
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
61
62
 
62
63
  requestHandler?: __HttpHandler;
@@ -100,6 +101,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
100
101
  regionInfoProvider?: RegionInfoProvider;
101
102
 
102
103
  defaultUserAgentProvider?: Provider<__UserAgent>;
104
+
105
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
103
106
  }
104
107
  declare type ImagebuilderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
105
108
 
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient";
4
+ import { ImportVmImageRequest, ImportVmImageResponse } from "../models/models_0";
5
+ export interface ImportVmImageCommandInput extends ImportVmImageRequest {
6
+ }
7
+ export interface ImportVmImageCommandOutput extends ImportVmImageResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ImportVmImageCommand extends $Command<ImportVmImageCommandInput, ImportVmImageCommandOutput, ImagebuilderClientResolvedConfig> {
11
+ readonly input: ImportVmImageCommandInput;
12
+ constructor(input: ImportVmImageCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ImagebuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportVmImageCommandInput, ImportVmImageCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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";
@@ -68,6 +68,10 @@ export interface LaunchPermissionConfiguration {
68
68
  userIds?: string[];
69
69
 
70
70
  userGroups?: string[];
71
+
72
+ organizationArns?: string[];
73
+
74
+ organizationalUnitArns?: string[];
71
75
  }
72
76
  export declare namespace LaunchPermissionConfiguration {
73
77
 
@@ -94,16 +98,17 @@ export declare namespace AmiDistributionConfiguration {
94
98
 
95
99
  const filterSensitiveLog: (obj: AmiDistributionConfiguration) => any;
96
100
  }
101
+ export declare enum BuildType {
102
+ IMPORT = "IMPORT",
103
+ SCHEDULED = "SCHEDULED",
104
+ USER_INITIATED = "USER_INITIATED"
105
+ }
97
106
 
98
107
  export interface CallRateLimitExceededException extends __SmithyException, $MetadataBearer {
99
108
  name: "CallRateLimitExceededException";
100
109
  $fault: "client";
101
110
  message?: string;
102
111
  }
103
- export declare namespace CallRateLimitExceededException {
104
-
105
- const filterSensitiveLog: (obj: CallRateLimitExceededException) => any;
106
- }
107
112
  export interface CancelImageCreationRequest {
108
113
 
109
114
  imageBuildVersionArn: string | undefined;
@@ -132,70 +137,42 @@ export interface ClientException extends __SmithyException, $MetadataBearer {
132
137
  $fault: "client";
133
138
  message?: string;
134
139
  }
135
- export declare namespace ClientException {
136
-
137
- const filterSensitiveLog: (obj: ClientException) => any;
138
- }
139
140
 
140
141
  export interface ForbiddenException extends __SmithyException, $MetadataBearer {
141
142
  name: "ForbiddenException";
142
143
  $fault: "client";
143
144
  message?: string;
144
145
  }
145
- export declare namespace ForbiddenException {
146
-
147
- const filterSensitiveLog: (obj: ForbiddenException) => any;
148
- }
149
146
 
150
147
  export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
151
148
  name: "IdempotentParameterMismatchException";
152
149
  $fault: "client";
153
150
  message?: string;
154
151
  }
155
- export declare namespace IdempotentParameterMismatchException {
156
-
157
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
158
- }
159
152
 
160
153
  export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
161
154
  name: "InvalidRequestException";
162
155
  $fault: "client";
163
156
  message?: string;
164
157
  }
165
- export declare namespace InvalidRequestException {
166
-
167
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
168
- }
169
158
 
170
159
  export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
171
160
  name: "ResourceInUseException";
172
161
  $fault: "client";
173
162
  message?: string;
174
163
  }
175
- export declare namespace ResourceInUseException {
176
-
177
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
178
- }
179
164
 
180
165
  export interface ServiceException extends __SmithyException, $MetadataBearer {
181
166
  name: "ServiceException";
182
167
  $fault: "server";
183
168
  message?: string;
184
169
  }
185
- export declare namespace ServiceException {
186
-
187
- const filterSensitiveLog: (obj: ServiceException) => any;
188
- }
189
170
 
190
171
  export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
191
172
  name: "ServiceUnavailableException";
192
173
  $fault: "server";
193
174
  message?: string;
194
175
  }
195
- export declare namespace ServiceUnavailableException {
196
-
197
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
198
- }
199
176
 
200
177
  export interface ComponentParameterDetail {
201
178
 
@@ -572,30 +549,18 @@ export interface InvalidParameterCombinationException extends __SmithyException,
572
549
  $fault: "client";
573
550
  message?: string;
574
551
  }
575
- export declare namespace InvalidParameterCombinationException {
576
-
577
- const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
578
- }
579
552
 
580
553
  export interface InvalidVersionNumberException extends __SmithyException, $MetadataBearer {
581
554
  name: "InvalidVersionNumberException";
582
555
  $fault: "client";
583
556
  message?: string;
584
557
  }
585
- export declare namespace InvalidVersionNumberException {
586
-
587
- const filterSensitiveLog: (obj: InvalidVersionNumberException) => any;
588
- }
589
558
 
590
559
  export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
591
560
  name: "ServiceQuotaExceededException";
592
561
  $fault: "client";
593
562
  message?: string;
594
563
  }
595
- export declare namespace ServiceQuotaExceededException {
596
-
597
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
598
- }
599
564
  export interface CreateContainerRecipeRequest {
600
565
 
601
566
  containerType: ContainerType | string | undefined;
@@ -654,10 +619,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
654
619
  $fault: "client";
655
620
  message?: string;
656
621
  }
657
- export declare namespace ResourceAlreadyExistsException {
658
-
659
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
660
- }
661
622
 
662
623
  export interface LaunchTemplateConfiguration {
663
624
 
@@ -671,6 +632,26 @@ export declare namespace LaunchTemplateConfiguration {
671
632
 
672
633
  const filterSensitiveLog: (obj: LaunchTemplateConfiguration) => any;
673
634
  }
635
+ export declare enum DiskImageFormat {
636
+ RAW = "RAW",
637
+ VHD = "VHD",
638
+ VMDK = "VMDK"
639
+ }
640
+
641
+ export interface S3ExportConfiguration {
642
+
643
+ roleName: string | undefined;
644
+
645
+ diskImageFormat: DiskImageFormat | string | undefined;
646
+
647
+ s3Bucket: string | undefined;
648
+
649
+ s3Prefix?: string;
650
+ }
651
+ export declare namespace S3ExportConfiguration {
652
+
653
+ const filterSensitiveLog: (obj: S3ExportConfiguration) => any;
654
+ }
674
655
 
675
656
  export interface Distribution {
676
657
 
@@ -683,6 +664,8 @@ export interface Distribution {
683
664
  licenseConfigurationArns?: string[];
684
665
 
685
666
  launchTemplateConfigurations?: LaunchTemplateConfiguration[];
667
+
668
+ s3ExportConfiguration?: S3ExportConfiguration;
686
669
  }
687
670
  export declare namespace Distribution {
688
671
 
@@ -975,10 +958,6 @@ export interface ResourceDependencyException extends __SmithyException, $Metadat
975
958
  $fault: "client";
976
959
  message?: string;
977
960
  }
978
- export declare namespace ResourceDependencyException {
979
-
980
- const filterSensitiveLog: (obj: ResourceDependencyException) => any;
981
- }
982
961
  export interface DeleteContainerRecipeRequest {
983
962
 
984
963
  containerRecipeArn: string | undefined;
@@ -1188,10 +1167,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
1188
1167
  $fault: "client";
1189
1168
  message?: string;
1190
1169
  }
1191
- export declare namespace ResourceNotFoundException {
1192
-
1193
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
1194
- }
1195
1170
  export interface GetContainerRecipeRequest {
1196
1171
 
1197
1172
  containerRecipeArn: string | undefined;
@@ -1389,6 +1364,8 @@ export interface Image {
1389
1364
  tags?: {
1390
1365
  [key: string]: string;
1391
1366
  };
1367
+
1368
+ buildType?: BuildType | string;
1392
1369
  }
1393
1370
  export declare namespace Image {
1394
1371
 
@@ -1583,16 +1560,48 @@ export declare namespace ImportComponentResponse {
1583
1560
 
1584
1561
  const filterSensitiveLog: (obj: ImportComponentResponse) => any;
1585
1562
  }
1563
+ export interface ImportVmImageRequest {
1564
+
1565
+ name: string | undefined;
1566
+
1567
+ semanticVersion: string | undefined;
1568
+
1569
+ description?: string;
1570
+
1571
+ platform: Platform | string | undefined;
1572
+
1573
+ osVersion?: string;
1574
+
1575
+ vmImportTaskId: string | undefined;
1576
+
1577
+ tags?: {
1578
+ [key: string]: string;
1579
+ };
1580
+
1581
+ clientToken?: string;
1582
+ }
1583
+ export declare namespace ImportVmImageRequest {
1584
+
1585
+ const filterSensitiveLog: (obj: ImportVmImageRequest) => any;
1586
+ }
1587
+ export interface ImportVmImageResponse {
1588
+
1589
+ requestId?: string;
1590
+
1591
+ imageArn?: string;
1592
+
1593
+ clientToken?: string;
1594
+ }
1595
+ export declare namespace ImportVmImageResponse {
1596
+
1597
+ const filterSensitiveLog: (obj: ImportVmImageResponse) => any;
1598
+ }
1586
1599
 
1587
1600
  export interface InvalidPaginationTokenException extends __SmithyException, $MetadataBearer {
1588
1601
  name: "InvalidPaginationTokenException";
1589
1602
  $fault: "client";
1590
1603
  message?: string;
1591
1604
  }
1592
- export declare namespace InvalidPaginationTokenException {
1593
-
1594
- const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
1595
- }
1596
1605
  export interface ListComponentBuildVersionsRequest {
1597
1606
 
1598
1607
  componentVersionArn: string | undefined;
@@ -1740,6 +1749,8 @@ export interface ImageSummary {
1740
1749
  tags?: {
1741
1750
  [key: string]: string;
1742
1751
  };
1752
+
1753
+ buildType?: BuildType | string;
1743
1754
  }
1744
1755
  export declare namespace ImageSummary {
1745
1756
 
@@ -1927,6 +1938,8 @@ export interface ImageVersion {
1927
1938
  owner?: string;
1928
1939
 
1929
1940
  dateCreated?: string;
1941
+
1942
+ buildType?: BuildType | string;
1930
1943
  }
1931
1944
  export declare namespace ImageVersion {
1932
1945
 
@@ -2003,10 +2016,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
2003
2016
  $fault: "client";
2004
2017
  message?: string;
2005
2018
  }
2006
- export declare namespace InvalidParameterException {
2007
-
2008
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
2009
- }
2010
2019
  export interface ListTagsForResourceRequest {
2011
2020
 
2012
2021
  resourceArn: string | undefined;
@@ -2031,10 +2040,6 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
2031
2040
  $fault: "client";
2032
2041
  message?: string;
2033
2042
  }
2034
- export declare namespace InvalidParameterValueException {
2035
-
2036
- const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
2037
- }
2038
2043
  export interface PutComponentPolicyRequest {
2039
2044
 
2040
2045
  componentArn: string | undefined;
@@ -27,6 +27,7 @@ import { GetImageRecipeCommandInput, GetImageRecipeCommandOutput } from "../comm
27
27
  import { GetImageRecipePolicyCommandInput, GetImageRecipePolicyCommandOutput } from "../commands/GetImageRecipePolicyCommand";
28
28
  import { GetInfrastructureConfigurationCommandInput, GetInfrastructureConfigurationCommandOutput } from "../commands/GetInfrastructureConfigurationCommand";
29
29
  import { ImportComponentCommandInput, ImportComponentCommandOutput } from "../commands/ImportComponentCommand";
30
+ import { ImportVmImageCommandInput, ImportVmImageCommandOutput } from "../commands/ImportVmImageCommand";
30
31
  import { ListComponentBuildVersionsCommandInput, ListComponentBuildVersionsCommandOutput } from "../commands/ListComponentBuildVersionsCommand";
31
32
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "../commands/ListComponentsCommand";
32
33
  import { ListContainerRecipesCommandInput, ListContainerRecipesCommandOutput } from "../commands/ListContainerRecipesCommand";
@@ -76,6 +77,7 @@ export declare const serializeAws_restJson1GetImageRecipeCommand: (input: GetIma
76
77
  export declare const serializeAws_restJson1GetImageRecipePolicyCommand: (input: GetImageRecipePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
78
  export declare const serializeAws_restJson1GetInfrastructureConfigurationCommand: (input: GetInfrastructureConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
79
  export declare const serializeAws_restJson1ImportComponentCommand: (input: ImportComponentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
+ export declare const serializeAws_restJson1ImportVmImageCommand: (input: ImportVmImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
81
  export declare const serializeAws_restJson1ListComponentBuildVersionsCommand: (input: ListComponentBuildVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
82
  export declare const serializeAws_restJson1ListComponentsCommand: (input: ListComponentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
81
83
  export declare const serializeAws_restJson1ListContainerRecipesCommand: (input: ListContainerRecipesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -125,6 +127,7 @@ export declare const deserializeAws_restJson1GetImageRecipeCommand: (output: __H
125
127
  export declare const deserializeAws_restJson1GetImageRecipePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetImageRecipePolicyCommandOutput>;
126
128
  export declare const deserializeAws_restJson1GetInfrastructureConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetInfrastructureConfigurationCommandOutput>;
127
129
  export declare const deserializeAws_restJson1ImportComponentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportComponentCommandOutput>;
130
+ export declare const deserializeAws_restJson1ImportVmImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportVmImageCommandOutput>;
128
131
  export declare const deserializeAws_restJson1ListComponentBuildVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListComponentBuildVersionsCommandOutput>;
129
132
  export declare const deserializeAws_restJson1ListComponentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListComponentsCommandOutput>;
130
133
  export declare const deserializeAws_restJson1ListContainerRecipesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListContainerRecipesCommandOutput>;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ImagebuilderClientConfig } from "./ImagebuilderClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ImagebuilderClientConfig } from "./ImagebuilderClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-imagebuilder",
3
3
  "description": "AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native",
4
- "version": "3.42.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,50 +18,46 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.42.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-host-header": "3.47.0",
29
+ "@aws-sdk/middleware-logger": "3.47.0",
30
+ "@aws-sdk/middleware-retry": "3.47.0",
31
+ "@aws-sdk/middleware-serde": "3.47.0",
32
+ "@aws-sdk/middleware-signing": "3.47.0",
33
+ "@aws-sdk/middleware-stack": "3.47.0",
34
+ "@aws-sdk/middleware-user-agent": "3.47.0",
35
+ "@aws-sdk/node-config-provider": "3.47.0",
36
+ "@aws-sdk/node-http-handler": "3.47.0",
37
+ "@aws-sdk/protocol-http": "3.47.0",
38
+ "@aws-sdk/smithy-client": "3.47.0",
39
+ "@aws-sdk/types": "3.47.0",
40
+ "@aws-sdk/url-parser": "3.47.0",
41
+ "@aws-sdk/util-base64-browser": "3.47.0",
42
+ "@aws-sdk/util-base64-node": "3.47.0",
43
+ "@aws-sdk/util-body-length-browser": "3.47.0",
44
+ "@aws-sdk/util-body-length-node": "3.47.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
48
+ "@aws-sdk/util-user-agent-node": "3.47.0",
49
+ "@aws-sdk/util-utf8-browser": "3.47.0",
50
+ "@aws-sdk/util-utf8-node": "3.47.0",
52
51
  "tslib": "^2.3.0",
53
52
  "uuid": "^8.3.2"
54
53
  },
55
54
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
57
56
  "@types/node": "^12.7.5",
58
- "@types/uuid": "^8.3.0",
59
- "downlevel-dts": "0.7.0",
60
- "jest": "^26.1.0",
61
- "rimraf": "^3.0.0",
62
- "ts-jest": "^26.4.1",
63
- "typedoc": "^0.19.2",
64
- "typescript": "~4.3.5"
57
+ "@types/uuid": "^8.3.0"
65
58
  },
66
59
  "engines": {
67
- "node": ">=10.0.0"
60
+ "node": ">=12.0.0"
68
61
  },
69
62
  "typesVersions": {
70
63
  "<4.0": {