@aws-sdk/client-ec2 3.234.0 → 3.236.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 (29) hide show
  1. package/dist-cjs/endpoint/ruleset.js +4 -331
  2. package/dist-cjs/pagination/DescribeImagesPaginator.js +36 -0
  3. package/dist-cjs/pagination/index.js +1 -0
  4. package/dist-cjs/protocols/Aws_ec2.js +10 -0
  5. package/dist-es/endpoint/ruleset.js +4 -331
  6. package/dist-es/pagination/DescribeImagesPaginator.js +32 -0
  7. package/dist-es/pagination/index.js +1 -0
  8. package/dist-es/protocols/Aws_ec2.js +10 -0
  9. package/dist-types/EC2.d.ts +15 -15
  10. package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +1 -1
  11. package/dist-types/commands/CopyImageCommand.d.ts +2 -2
  12. package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +2 -2
  13. package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +2 -2
  14. package/dist-types/commands/DeregisterImageCommand.d.ts +1 -1
  15. package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +2 -2
  16. package/dist-types/commands/DisableImageDeprecationCommand.d.ts +1 -1
  17. package/dist-types/commands/EnableImageDeprecationCommand.d.ts +1 -1
  18. package/dist-types/commands/ListImagesInRecycleBinCommand.d.ts +1 -1
  19. package/dist-types/commands/RegisterImageCommand.d.ts +1 -1
  20. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +1 -1
  21. package/dist-types/models/models_0.d.ts +2 -2
  22. package/dist-types/models/models_3.d.ts +19 -6
  23. package/dist-types/models/models_6.d.ts +14 -10
  24. package/dist-types/pagination/DescribeImagesPaginator.d.ts +4 -0
  25. package/dist-types/pagination/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/models_3.d.ts +3 -0
  27. package/dist-types/ts3.4/pagination/DescribeImagesPaginator.d.ts +11 -0
  28. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  29. package/package.json +4 -4
@@ -8,7 +8,7 @@ export interface RestoreImageFromRecycleBinCommandInput extends RestoreImageFrom
8
8
  export interface RestoreImageFromRecycleBinCommandOutput extends RestoreImageFromRecycleBinResult, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Restores an AMI from the Recycle Bin. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in the Amazon Elastic Compute Cloud User Guide.</p>
11
+ * <p>Restores an AMI from the Recycle Bin. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in the <i>Amazon EC2 User Guide</i>.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -4554,7 +4554,7 @@ export interface CopyImageRequest {
4554
4554
  * can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted copy of an
4555
4555
  * encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default
4556
4556
  * Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS encryption</a> in the
4557
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4557
+ * <i>Amazon EC2 User Guide</i>.</p>
4558
4558
  */
4559
4559
  Encrypted?: boolean;
4560
4560
  /**
@@ -4601,7 +4601,7 @@ export interface CopyImageRequest {
4601
4601
  * AMI from an Outpost to a Region, from one Outpost to another, or within the same
4602
4602
  * Outpost.</p>
4603
4603
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-amis"> Copy AMIs from an Amazon Web Services
4604
- * Region to an Outpost</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4604
+ * Region to an Outpost</a> in the <i>Amazon EC2 User Guide</i>.</p>
4605
4605
  */
4606
4606
  DestinationOutpostArn?: string;
4607
4607
  /**
@@ -5024,7 +5024,7 @@ export interface ImageAttribute {
5024
5024
  * use the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData">GetInstanceUefiData</a> command. You can inspect and modify the UEFI data by using the
5025
5025
  * <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a> on
5026
5026
  * GitHub. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">UEFI Secure Boot</a> in the
5027
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5027
+ * <i>Amazon EC2 User Guide</i>.</p>
5028
5028
  */
5029
5029
  UefiData?: AttributeValue;
5030
5030
  /**
@@ -5043,7 +5043,7 @@ export interface ImageAttribute {
5043
5043
  * that, by default, the instance requires that IMDSv2 is used when requesting instance metadata.
5044
5044
  * In addition, <code>HttpPutResponseHopLimit</code> is set to <code>2</code>. For more
5045
5045
  * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration">Configure
5046
- * the AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5046
+ * the AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
5047
5047
  */
5048
5048
  ImdsSupport?: AttributeValue;
5049
5049
  }
@@ -5253,6 +5253,15 @@ export interface DescribeImagesRequest {
5253
5253
  * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
5254
5254
  */
5255
5255
  DryRun?: boolean;
5256
+ /**
5257
+ * <p>The maximum number of results to return with a single call.
5258
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
5259
+ */
5260
+ MaxResults?: number;
5261
+ /**
5262
+ * <p>The token for the next page of results.</p>
5263
+ */
5264
+ NextToken?: string;
5256
5265
  }
5257
5266
  export declare enum ArchitectureValues {
5258
5267
  arm64 = "arm64",
@@ -5342,7 +5351,7 @@ export interface Image {
5342
5351
  /**
5343
5352
  * <p>The platform details associated with the billing code of the AMI. For more information,
5344
5353
  * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understand
5345
- * AMI billing information</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5354
+ * AMI billing information</a> in the <i>Amazon EC2 User Guide</i>.</p>
5346
5355
  */
5347
5356
  PlatformDetails?: string;
5348
5357
  /**
@@ -5418,13 +5427,13 @@ export interface Image {
5418
5427
  VirtualizationType?: VirtualizationType | string;
5419
5428
  /**
5420
5429
  * <p>The boot mode of the image. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html">Boot modes</a> in the
5421
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5430
+ * <i>Amazon EC2 User Guide</i>.</p>
5422
5431
  */
5423
5432
  BootMode?: BootModeValues | string;
5424
5433
  /**
5425
5434
  * <p>If the image is configured for NitroTPM support, the value is <code>v2.0</code>.
5426
5435
  * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html">NitroTPM</a> in the
5427
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5436
+ * <i>Amazon EC2 User Guide</i>.</p>
5428
5437
  */
5429
5438
  TpmSupport?: TpmSupportValues | string;
5430
5439
  /**
@@ -5440,7 +5449,7 @@ export interface Image {
5440
5449
  * that, by default, the instance requires that IMDSv2 is used when requesting instance metadata.
5441
5450
  * In addition, <code>HttpPutResponseHopLimit</code> is set to <code>2</code>. For more
5442
5451
  * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration">Configure
5443
- * the AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5452
+ * the AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
5444
5453
  */
5445
5454
  ImdsSupport?: ImdsSupportValues | string;
5446
5455
  }
@@ -5449,6 +5458,10 @@ export interface DescribeImagesResult {
5449
5458
  * <p>Information about the images.</p>
5450
5459
  */
5451
5460
  Images?: Image[];
5461
+ /**
5462
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
5463
+ */
5464
+ NextToken?: string;
5452
5465
  }
5453
5466
  export interface DescribeImportImageTasksRequest {
5454
5467
  /**
@@ -2781,10 +2781,10 @@ export interface RegisterImageRequest {
2781
2781
  /**
2782
2782
  * <p>The block device mapping entries.</p>
2783
2783
  * <p>If you specify an Amazon EBS volume using the ID of an Amazon EBS snapshot, you can't specify the encryption state of the volume.</p>
2784
- * <p>If you create an AMI on an Outpost, then all backing snapshots must be on the same Outpost or in the Region
2785
- * of that Outpost. AMIs on an Outpost that include local snapshots can be used to launch instances on the same Outpost
2786
- * only. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami">
2787
- * Amazon EBS local snapshots on Outposts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
2784
+ * <p>If you create an AMI on an Outpost, then all backing snapshots must be on the same
2785
+ * Outpost or in the Region of that Outpost. AMIs on an Outpost that include local snapshots can
2786
+ * be used to launch instances on the same Outpost only. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami">Amazon EBS local
2787
+ * snapshots on Outposts</a> in the <i>Amazon EC2 User Guide</i>.</p>
2788
2788
  */
2789
2789
  BlockDeviceMappings?: BlockDeviceMapping[];
2790
2790
  /**
@@ -2812,8 +2812,12 @@ export interface RegisterImageRequest {
2812
2812
  */
2813
2813
  Name: string | undefined;
2814
2814
  /**
2815
- * <p>The billing product codes. Your account must be authorized to specify billing product codes. Otherwise,
2816
- * you can use the Amazon Web Services Marketplace to bill for the use of an AMI.</p>
2815
+ * <p>The billing product codes. Your account must be authorized to specify billing product codes.</p>
2816
+ * <p>If your account is not authorized to specify billing product codes, you can publish AMIs
2817
+ * that include billable software and list them on the Amazon Web Services Marketplace. You must first register as a seller
2818
+ * on the Amazon Web Services Marketplace. For more information, see <a href="https://docs.aws.amazon.com/marketplace/latest/userguide/user-guide-for-sellers.html">Getting started as a
2819
+ * seller</a> and <a href="https://docs.aws.amazon.com/marketplace/latest/userguide/ami-products.html">AMI-based
2820
+ * products</a> in the <i>Amazon Web Services Marketplace Seller Guide</i>.</p>
2817
2821
  */
2818
2822
  BillingProducts?: string[];
2819
2823
  /**
@@ -2838,12 +2842,12 @@ export interface RegisterImageRequest {
2838
2842
  VirtualizationType?: string;
2839
2843
  /**
2840
2844
  * <p>The boot mode of the AMI. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html">Boot modes</a> in the
2841
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
2845
+ * <i>Amazon EC2 User Guide</i>.</p>
2842
2846
  */
2843
2847
  BootMode?: BootModeValues | string;
2844
2848
  /**
2845
2849
  * <p>Set to <code>v2.0</code> to enable Trusted Platform Module (TPM) support. For more
2846
- * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html">NitroTPM</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
2850
+ * information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html">NitroTPM</a> in the <i>Amazon EC2 User Guide</i>.</p>
2847
2851
  */
2848
2852
  TpmSupport?: TpmSupportValues | string;
2849
2853
  /**
@@ -2851,7 +2855,7 @@ export interface RegisterImageRequest {
2851
2855
  * use the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData">GetInstanceUefiData</a> command. You can inspect and modify the UEFI data by using the
2852
2856
  * <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a> on
2853
2857
  * GitHub. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">UEFI Secure Boot</a> in the
2854
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
2858
+ * <i>Amazon EC2 User Guide</i>.</p>
2855
2859
  */
2856
2860
  UefiData?: string;
2857
2861
  /**
@@ -2860,7 +2864,7 @@ export interface RegisterImageRequest {
2860
2864
  * <code>required</code> so that, by default, the instance requires that IMDSv2 is used when
2861
2865
  * requesting instance metadata. In addition, <code>HttpPutResponseHopLimit</code> is set to
2862
2866
  * <code>2</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration">Configure
2863
- * the AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
2867
+ * the AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
2864
2868
  * <note>
2865
2869
  * <p>If you set the value to <code>v2.0</code>, make sure that your AMI software can support IMDSv2.</p>
2866
2870
  * </note>
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "../commands/DescribeImagesCommand";
3
+ import { EC2PaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeImages(config: EC2PaginationConfiguration, input: DescribeImagesCommandInput, ...additionalArguments: any): Paginator<DescribeImagesCommandOutput>;
@@ -25,6 +25,7 @@ export * from "./DescribeHostReservationOfferingsPaginator";
25
25
  export * from "./DescribeHostReservationsPaginator";
26
26
  export * from "./DescribeHostsPaginator";
27
27
  export * from "./DescribeIamInstanceProfileAssociationsPaginator";
28
+ export * from "./DescribeImagesPaginator";
28
29
  export * from "./DescribeImportImageTasksPaginator";
29
30
  export * from "./DescribeImportSnapshotTasksPaginator";
30
31
  export * from "./DescribeInstanceCreditSpecificationsPaginator";
@@ -1318,6 +1318,8 @@ export interface DescribeImagesRequest {
1318
1318
  Owners?: string[];
1319
1319
  IncludeDeprecated?: boolean;
1320
1320
  DryRun?: boolean;
1321
+ MaxResults?: number;
1322
+ NextToken?: string;
1321
1323
  }
1322
1324
  export declare enum ArchitectureValues {
1323
1325
  arm64 = "arm64",
@@ -1396,6 +1398,7 @@ export interface Image {
1396
1398
  }
1397
1399
  export interface DescribeImagesResult {
1398
1400
  Images?: Image[];
1401
+ NextToken?: string;
1399
1402
  }
1400
1403
  export interface DescribeImportImageTasksRequest {
1401
1404
  DryRun?: boolean;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ DescribeImagesCommandInput,
4
+ DescribeImagesCommandOutput,
5
+ } from "../commands/DescribeImagesCommand";
6
+ import { EC2PaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateDescribeImages(
8
+ config: EC2PaginationConfiguration,
9
+ input: DescribeImagesCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<DescribeImagesCommandOutput>;
@@ -25,6 +25,7 @@ export * from "./DescribeHostReservationOfferingsPaginator";
25
25
  export * from "./DescribeHostReservationsPaginator";
26
26
  export * from "./DescribeHostsPaginator";
27
27
  export * from "./DescribeIamInstanceProfileAssociationsPaginator";
28
+ export * from "./DescribeImagesPaginator";
28
29
  export * from "./DescribeImportImageTasksPaginator";
29
30
  export * from "./DescribeImportSnapshotTasksPaginator";
30
31
  export * from "./DescribeInstanceCreditSpecificationsPaginator";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.234.0",
4
+ "version": "3.236.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.234.0",
22
+ "@aws-sdk/client-sts": "3.236.0",
23
23
  "@aws-sdk/config-resolver": "3.234.0",
24
- "@aws-sdk/credential-provider-node": "3.234.0",
24
+ "@aws-sdk/credential-provider-node": "3.236.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -30,7 +30,7 @@
30
30
  "@aws-sdk/middleware-host-header": "3.226.0",
31
31
  "@aws-sdk/middleware-logger": "3.226.0",
32
32
  "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
- "@aws-sdk/middleware-retry": "3.229.0",
33
+ "@aws-sdk/middleware-retry": "3.235.0",
34
34
  "@aws-sdk/middleware-sdk-ec2": "3.226.0",
35
35
  "@aws-sdk/middleware-serde": "3.226.0",
36
36
  "@aws-sdk/middleware-signing": "3.226.0",