@aws-sdk/client-imagebuilder 3.52.0 → 3.53.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.
@@ -66,7 +66,17 @@ export declare class Imagebuilder extends ImagebuilderClient {
66
66
  cancelImageCreation(args: CancelImageCreationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelImageCreationCommandOutput) => void): void;
67
67
  /**
68
68
  * <p>Creates a new component that can be used to build, validate, test, and assess your
69
- * image.</p>
69
+ * image. The component is based on a YAML document that you specify using exactly one
70
+ * of the following methods:</p>
71
+ * <ul>
72
+ * <li>
73
+ * <p>Inline, using the <code>data</code> property in the request body.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>A URL that points to a YAML document file stored in Amazon S3, using the
77
+ * <code>uri</code> property in the request body.</p>
78
+ * </li>
79
+ * </ul>
70
80
  */
71
81
  createComponent(args: CreateComponentCommandInput, options?: __HttpHandlerOptions): Promise<CreateComponentCommandOutput>;
72
82
  createComponent(args: CreateComponentCommandInput, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
@@ -8,7 +8,17 @@ export interface CreateComponentCommandOutput extends CreateComponentResponse, _
8
8
  }
9
9
  /**
10
10
  * <p>Creates a new component that can be used to build, validate, test, and assess your
11
- * image.</p>
11
+ * image. The component is based on a YAML document that you specify using exactly one
12
+ * of the following methods:</p>
13
+ * <ul>
14
+ * <li>
15
+ * <p>Inline, using the <code>data</code> property in the request body.</p>
16
+ * </li>
17
+ * <li>
18
+ * <p>A URL that points to a YAML document file stored in Amazon S3, using the
19
+ * <code>uri</code> property in the request body.</p>
20
+ * </li>
21
+ * </ul>
12
22
  * @example
13
23
  * Use a bare-bones client and the command you need to make an API call.
14
24
  * ```javascript
@@ -3,3 +3,4 @@ export * from "./ImagebuilderClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ImagebuilderServiceException } from "./models/ImagebuilderServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Imagebuilder service.
4
+ */
5
+ export declare class ImagebuilderServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ImagebuilderServiceException as __BaseException } from "./ImagebuilderServiceException";
2
3
  /**
3
4
  * <p>Contains settings for the Systems Manager agent on your build instance.</p>
4
5
  */
@@ -31,11 +32,19 @@ export interface AdditionalInstanceConfiguration {
31
32
  /**
32
33
  * <p>Use this property to provide commands or a command script to run when you launch
33
34
  * your build instance.</p>
35
+ * <p>The userDataOverride property replaces any commands that Image Builder might have added to ensure
36
+ * that Systems Manager is installed on your Linux build instance. If you override the user data,
37
+ * make sure that you add commands to install Systems Manager, if it is not pre-installed on your
38
+ * base image.</p>
34
39
  * <note>
35
- * <p>The userDataOverride property replaces any commands that Image Builder might have added to ensure
36
- * that Systems Manager is installed on your Linux build instance. If you override the user data,
37
- * make sure that you add commands to install Systems Manager, if it is not pre-installed on your
38
- * base image.</p>
40
+ * <p>The user data is always base 64 encoded. For example, the
41
+ * following commands are encoded as <code>IyEvYmluL2Jhc2gKbWtkaXIgLXAgL3Zhci9iYi8KdG91Y2ggL3Zhci$</code>:</p>
42
+ *
43
+ * <p>
44
+ * <i>#!/bin/bash</i>
45
+ * </p>
46
+ * <p>mkdir -p /var/bb/</p>
47
+ * <p>touch /var</p>
39
48
  * </note>
40
49
  */
41
50
  userDataOverride?: string;
@@ -192,10 +201,13 @@ export declare enum BuildType {
192
201
  /**
193
202
  * <p>You have exceeded the permitted request rate for the specific operation.</p>
194
203
  */
195
- export interface CallRateLimitExceededException extends __SmithyException, $MetadataBearer {
196
- name: "CallRateLimitExceededException";
197
- $fault: "client";
198
- message?: string;
204
+ export declare class CallRateLimitExceededException extends __BaseException {
205
+ readonly name: "CallRateLimitExceededException";
206
+ readonly $fault: "client";
207
+ /**
208
+ * @internal
209
+ */
210
+ constructor(opts: __ExceptionOptionType<CallRateLimitExceededException, __BaseException>);
199
211
  }
200
212
  export interface CancelImageCreationRequest {
201
213
  /**
@@ -240,60 +252,81 @@ export declare namespace CancelImageCreationResponse {
240
252
  * behalf of a user that doesn't have permissions to use the action or resource, or specifying an
241
253
  * invalid resource identifier.</p>
242
254
  */
243
- export interface ClientException extends __SmithyException, $MetadataBearer {
244
- name: "ClientException";
245
- $fault: "client";
246
- message?: string;
255
+ export declare class ClientException extends __BaseException {
256
+ readonly name: "ClientException";
257
+ readonly $fault: "client";
258
+ /**
259
+ * @internal
260
+ */
261
+ constructor(opts: __ExceptionOptionType<ClientException, __BaseException>);
247
262
  }
248
263
  /**
249
264
  * <p>You are not authorized to perform the requested operation.</p>
250
265
  */
251
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
252
- name: "ForbiddenException";
253
- $fault: "client";
254
- message?: string;
266
+ export declare class ForbiddenException extends __BaseException {
267
+ readonly name: "ForbiddenException";
268
+ readonly $fault: "client";
269
+ /**
270
+ * @internal
271
+ */
272
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
255
273
  }
256
274
  /**
257
275
  * <p>You have specified a client token for an operation using parameter values that differ from
258
276
  * a previous request that used the same client token.</p>
259
277
  */
260
- export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
261
- name: "IdempotentParameterMismatchException";
262
- $fault: "client";
263
- message?: string;
278
+ export declare class IdempotentParameterMismatchException extends __BaseException {
279
+ readonly name: "IdempotentParameterMismatchException";
280
+ readonly $fault: "client";
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts: __ExceptionOptionType<IdempotentParameterMismatchException, __BaseException>);
264
285
  }
265
286
  /**
266
287
  * <p>You have made a request for an action that is not supported by the service.</p>
267
288
  */
268
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
269
- name: "InvalidRequestException";
270
- $fault: "client";
271
- message?: string;
289
+ export declare class InvalidRequestException extends __BaseException {
290
+ readonly name: "InvalidRequestException";
291
+ readonly $fault: "client";
292
+ /**
293
+ * @internal
294
+ */
295
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
272
296
  }
273
297
  /**
274
298
  * <p>The resource that you are trying to operate on is currently in use. Review the message
275
299
  * details and retry later.</p>
276
300
  */
277
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
278
- name: "ResourceInUseException";
279
- $fault: "client";
280
- message?: string;
301
+ export declare class ResourceInUseException extends __BaseException {
302
+ readonly name: "ResourceInUseException";
303
+ readonly $fault: "client";
304
+ /**
305
+ * @internal
306
+ */
307
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
281
308
  }
282
309
  /**
283
310
  * <p>This exception is thrown when the service encounters an unrecoverable exception.</p>
284
311
  */
285
- export interface ServiceException extends __SmithyException, $MetadataBearer {
286
- name: "ServiceException";
287
- $fault: "server";
288
- message?: string;
312
+ export declare class ServiceException extends __BaseException {
313
+ readonly name: "ServiceException";
314
+ readonly $fault: "server";
315
+ /**
316
+ * @internal
317
+ */
318
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
289
319
  }
290
320
  /**
291
321
  * <p>The service is unable to process your request at this time.</p>
292
322
  */
293
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
294
- name: "ServiceUnavailableException";
295
- $fault: "server";
296
- message?: string;
323
+ export declare class ServiceUnavailableException extends __BaseException {
324
+ readonly name: "ServiceUnavailableException";
325
+ readonly $fault: "server";
326
+ /**
327
+ * @internal
328
+ */
329
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
297
330
  }
298
331
  /**
299
332
  * <p>Defines a parameter that is used to provide configuration details for the component.</p>
@@ -406,7 +439,7 @@ export interface Component {
406
439
  */
407
440
  owner?: string;
408
441
  /**
409
- * <p>The data of the component.</p>
442
+ * <p>Component data contains the YAML document content for the component.</p>
410
443
  */
411
444
  data?: string;
412
445
  /**
@@ -991,15 +1024,18 @@ export interface CreateComponentRequest {
991
1024
  */
992
1025
  supportedOsVersions?: string[];
993
1026
  /**
994
- * <p>The data of the component. Used to specify the data inline. Either <code>data</code> or
995
- * <code>uri</code> can be used to specify the data within the component.</p>
1027
+ * <p>Component <code>data</code> contains inline YAML document content for the component.
1028
+ * Alternatively, you can specify the <code>uri</code> of a YAML document file stored in
1029
+ * Amazon S3. However, you cannot specify both properties.</p>
996
1030
  */
997
1031
  data?: string;
998
1032
  /**
999
- * <p>The uri of the component. Must be an Amazon S3 URL and the requester must have permission to
1000
- * access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service
1001
- * quota. Either <code>data</code> or <code>uri</code> can be used to specify the data within the
1002
- * component.</p>
1033
+ * <p>The <code>uri</code> of a YAML component document file. This must be an S3 URL
1034
+ * (<code>s3://bucket/key</code>), and the requester must have permission to access
1035
+ * the S3 bucket it points to. If you use Amazon S3, you can specify component content
1036
+ * up to your service quota.</p>
1037
+ * <p>Alternatively, you can specify the YAML document inline, using the component
1038
+ * <code>data</code> property. You cannot specify both properties.</p>
1003
1039
  */
1004
1040
  uri?: string;
1005
1041
  /**
@@ -1047,26 +1083,35 @@ export declare namespace CreateComponentResponse {
1047
1083
  * <p>You have specified two or more mutually exclusive parameters. Review the error message for
1048
1084
  * details.</p>
1049
1085
  */
1050
- export interface InvalidParameterCombinationException extends __SmithyException, $MetadataBearer {
1051
- name: "InvalidParameterCombinationException";
1052
- $fault: "client";
1053
- message?: string;
1086
+ export declare class InvalidParameterCombinationException extends __BaseException {
1087
+ readonly name: "InvalidParameterCombinationException";
1088
+ readonly $fault: "client";
1089
+ /**
1090
+ * @internal
1091
+ */
1092
+ constructor(opts: __ExceptionOptionType<InvalidParameterCombinationException, __BaseException>);
1054
1093
  }
1055
1094
  /**
1056
1095
  * <p>Your version number is out of bounds or does not follow the required syntax.</p>
1057
1096
  */
1058
- export interface InvalidVersionNumberException extends __SmithyException, $MetadataBearer {
1059
- name: "InvalidVersionNumberException";
1060
- $fault: "client";
1061
- message?: string;
1097
+ export declare class InvalidVersionNumberException extends __BaseException {
1098
+ readonly name: "InvalidVersionNumberException";
1099
+ readonly $fault: "client";
1100
+ /**
1101
+ * @internal
1102
+ */
1103
+ constructor(opts: __ExceptionOptionType<InvalidVersionNumberException, __BaseException>);
1062
1104
  }
1063
1105
  /**
1064
1106
  * <p>You have exceeded the number of permitted resources or operations for this service. For service quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/imagebuilder.html#limits_imagebuilder">EC2 Image Builder endpoints and quotas</a>.</p>
1065
1107
  */
1066
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
1067
- name: "ServiceQuotaExceededException";
1068
- $fault: "client";
1069
- message?: string;
1108
+ export declare class ServiceQuotaExceededException extends __BaseException {
1109
+ readonly name: "ServiceQuotaExceededException";
1110
+ readonly $fault: "client";
1111
+ /**
1112
+ * @internal
1113
+ */
1114
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
1070
1115
  }
1071
1116
  export interface CreateContainerRecipeRequest {
1072
1117
  /**
@@ -1177,10 +1222,95 @@ export declare namespace CreateContainerRecipeResponse {
1177
1222
  /**
1178
1223
  * <p>The resource that you are trying to create already exists.</p>
1179
1224
  */
1180
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
1181
- name: "ResourceAlreadyExistsException";
1182
- $fault: "client";
1183
- message?: string;
1225
+ export declare class ResourceAlreadyExistsException extends __BaseException {
1226
+ readonly name: "ResourceAlreadyExistsException";
1227
+ readonly $fault: "client";
1228
+ /**
1229
+ * @internal
1230
+ */
1231
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
1232
+ }
1233
+ /**
1234
+ * <p>Identifies the launch template that the associated Windows AMI uses for
1235
+ * launching an instance when faster launching is enabled.</p>
1236
+ * <note>
1237
+ * <p>You can specify either the <code>launchTemplateName</code> or the
1238
+ * <code>launchTemplateId</code>, but not both.</p>
1239
+ * </note>
1240
+ */
1241
+ export interface FastLaunchLaunchTemplateSpecification {
1242
+ /**
1243
+ * <p>The ID of the launch template to use for faster launching for a Windows AMI.</p>
1244
+ */
1245
+ launchTemplateId?: string;
1246
+ /**
1247
+ * <p>The name of the launch template to use for faster launching for a Windows AMI.</p>
1248
+ */
1249
+ launchTemplateName?: string;
1250
+ /**
1251
+ * <p>The version of the launch template to use for faster launching for a Windows AMI.</p>
1252
+ */
1253
+ launchTemplateVersion?: string;
1254
+ }
1255
+ export declare namespace FastLaunchLaunchTemplateSpecification {
1256
+ /**
1257
+ * @internal
1258
+ */
1259
+ const filterSensitiveLog: (obj: FastLaunchLaunchTemplateSpecification) => any;
1260
+ }
1261
+ /**
1262
+ * <p>Configuration settings for creating and managing pre-provisioned snapshots
1263
+ * for a fast-launch enabled Windows AMI.</p>
1264
+ */
1265
+ export interface FastLaunchSnapshotConfiguration {
1266
+ /**
1267
+ * <p>The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled
1268
+ * Windows AMI.</p>
1269
+ */
1270
+ targetResourceCount?: number;
1271
+ }
1272
+ export declare namespace FastLaunchSnapshotConfiguration {
1273
+ /**
1274
+ * @internal
1275
+ */
1276
+ const filterSensitiveLog: (obj: FastLaunchSnapshotConfiguration) => any;
1277
+ }
1278
+ /**
1279
+ * <p>Define and configure faster launching for output Windows AMIs.</p>
1280
+ */
1281
+ export interface FastLaunchConfiguration {
1282
+ /**
1283
+ * <p>A Boolean that represents the current state of faster launching for the
1284
+ * Windows AMI. Set to <code>true</code> to start using Windows faster launching, or
1285
+ * <code>false</code> to stop using it.</p>
1286
+ */
1287
+ enabled: boolean | undefined;
1288
+ /**
1289
+ * <p>Configuration settings for managing the number of snapshots that are
1290
+ * created from pre-provisioned instances for the Windows AMI when faster
1291
+ * launching is enabled.</p>
1292
+ */
1293
+ snapshotConfiguration?: FastLaunchSnapshotConfiguration;
1294
+ /**
1295
+ * <p>The maximum number of parallel instances that are launched for creating
1296
+ * resources.</p>
1297
+ */
1298
+ maxParallelLaunches?: number;
1299
+ /**
1300
+ * <p>The launch template that the fast-launch enabled Windows AMI uses when it
1301
+ * launches Windows instances to create pre-provisioned snapshots.</p>
1302
+ */
1303
+ launchTemplate?: FastLaunchLaunchTemplateSpecification;
1304
+ /**
1305
+ * <p>The owner account ID for the fast-launch enabled Windows AMI.</p>
1306
+ */
1307
+ accountId?: string;
1308
+ }
1309
+ export declare namespace FastLaunchConfiguration {
1310
+ /**
1311
+ * @internal
1312
+ */
1313
+ const filterSensitiveLog: (obj: FastLaunchConfiguration) => any;
1184
1314
  }
1185
1315
  /**
1186
1316
  * <p>Identifies an Amazon EC2 launch template to use for a specific account.</p>
@@ -1289,6 +1419,10 @@ export interface Distribution {
1289
1419
  * using a file format that is compatible with your VMs in that Region.</p>
1290
1420
  */
1291
1421
  s3ExportConfiguration?: S3ExportConfiguration;
1422
+ /**
1423
+ * <p>The Windows faster-launching configurations to use for AMI distribution.</p>
1424
+ */
1425
+ fastLaunchConfigurations?: FastLaunchConfiguration[];
1292
1426
  }
1293
1427
  export declare namespace Distribution {
1294
1428
  /**
@@ -1862,10 +1996,13 @@ export declare namespace DeleteComponentResponse {
1862
1996
  * <p>You have attempted to mutate or delete a resource with a dependency that prohibits this
1863
1997
  * action. See the error message for more details.</p>
1864
1998
  */
1865
- export interface ResourceDependencyException extends __SmithyException, $MetadataBearer {
1866
- name: "ResourceDependencyException";
1867
- $fault: "client";
1868
- message?: string;
1999
+ export declare class ResourceDependencyException extends __BaseException {
2000
+ readonly name: "ResourceDependencyException";
2001
+ readonly $fault: "client";
2002
+ /**
2003
+ * @internal
2004
+ */
2005
+ constructor(opts: __ExceptionOptionType<ResourceDependencyException, __BaseException>);
1869
2006
  }
1870
2007
  export interface DeleteContainerRecipeRequest {
1871
2008
  /**
@@ -2203,10 +2340,13 @@ export declare namespace GetComponentPolicyResponse {
2203
2340
  /**
2204
2341
  * <p>At least one of the resources referenced by your request does not exist.</p>
2205
2342
  */
2206
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
2207
- name: "ResourceNotFoundException";
2208
- $fault: "client";
2209
- message?: string;
2343
+ export declare class ResourceNotFoundException extends __BaseException {
2344
+ readonly name: "ResourceNotFoundException";
2345
+ readonly $fault: "client";
2346
+ /**
2347
+ * @internal
2348
+ */
2349
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
2210
2350
  }
2211
2351
  export interface GetContainerRecipeRequest {
2212
2352
  /**
@@ -3057,10 +3197,13 @@ export declare namespace ImportVmImageResponse {
3057
3197
  /**
3058
3198
  * <p>You have provided an invalid pagination token in your request.</p>
3059
3199
  */
3060
- export interface InvalidPaginationTokenException extends __SmithyException, $MetadataBearer {
3061
- name: "InvalidPaginationTokenException";
3062
- $fault: "client";
3063
- message?: string;
3200
+ export declare class InvalidPaginationTokenException extends __BaseException {
3201
+ readonly name: "InvalidPaginationTokenException";
3202
+ readonly $fault: "client";
3203
+ /**
3204
+ * @internal
3205
+ */
3206
+ constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
3064
3207
  }
3065
3208
  export interface ListComponentBuildVersionsRequest {
3066
3209
  /**
@@ -4055,10 +4198,13 @@ export declare namespace ListInfrastructureConfigurationsResponse {
4055
4198
  * <p>The specified parameter is invalid. Review the available parameters for the API
4056
4199
  * request.</p>
4057
4200
  */
4058
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
4059
- name: "InvalidParameterException";
4060
- $fault: "client";
4061
- message?: string;
4201
+ export declare class InvalidParameterException extends __BaseException {
4202
+ readonly name: "InvalidParameterException";
4203
+ readonly $fault: "client";
4204
+ /**
4205
+ * @internal
4206
+ */
4207
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
4062
4208
  }
4063
4209
  export interface ListTagsForResourceRequest {
4064
4210
  /**
@@ -4089,10 +4235,13 @@ export declare namespace ListTagsForResourceResponse {
4089
4235
  /**
4090
4236
  * <p>The value that you provided for the specified parameter is invalid.</p>
4091
4237
  */
4092
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
4093
- name: "InvalidParameterValueException";
4094
- $fault: "client";
4095
- message?: string;
4238
+ export declare class InvalidParameterValueException extends __BaseException {
4239
+ readonly name: "InvalidParameterValueException";
4240
+ readonly $fault: "client";
4241
+ /**
4242
+ * @internal
4243
+ */
4244
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
4096
4245
  }
4097
4246
  export interface PutComponentPolicyRequest {
4098
4247
  /**
@@ -3,3 +3,4 @@ export * from "./ImagebuilderClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ImagebuilderServiceException } from "./models/ImagebuilderServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ImagebuilderServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }