Skip to content

Commit

Permalink
feat(client-ec2): This release includes a new API to describe some de…
Browse files Browse the repository at this point in the history
…tails of the Amazon Machine Images (AMIs) that were used to launch EC2 instances, even if those AMIs are no longer available for use.
  • Loading branch information
awstools committed Oct 24, 2024
1 parent eba29d1 commit f624638
Show file tree
Hide file tree
Showing 20 changed files with 1,340 additions and 425 deletions.
8 changes: 8 additions & 0 deletions clients/client-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,14 @@ DescribeInstanceEventWindows

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeInstanceEventWindowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeInstanceEventWindowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeInstanceEventWindowsCommandOutput/)

</details>
<details>
<summary>
DescribeInstanceImageMetadata
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeInstanceImageMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeInstanceImageMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeInstanceImageMetadataCommandOutput/)

</details>
<details>
<summary>
Expand Down
24 changes: 24 additions & 0 deletions clients/client-ec2/src/EC2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,11 @@ import {
DescribeInstanceEventWindowsCommandInput,
DescribeInstanceEventWindowsCommandOutput,
} from "./commands/DescribeInstanceEventWindowsCommand";
import {
DescribeInstanceImageMetadataCommand,
DescribeInstanceImageMetadataCommandInput,
DescribeInstanceImageMetadataCommandOutput,
} from "./commands/DescribeInstanceImageMetadataCommand";
import {
DescribeInstancesCommand,
DescribeInstancesCommandInput,
Expand Down Expand Up @@ -3377,6 +3382,7 @@ const commands = {
DescribeInstanceCreditSpecificationsCommand,
DescribeInstanceEventNotificationAttributesCommand,
DescribeInstanceEventWindowsCommand,
DescribeInstanceImageMetadataCommand,
DescribeInstancesCommand,
DescribeInstanceStatusCommand,
DescribeInstanceTopologyCommand,
Expand Down Expand Up @@ -8277,6 +8283,24 @@ export interface EC2 {
cb: (err: any, data?: DescribeInstanceEventWindowsCommandOutput) => void
): void;

/**
* @see {@link DescribeInstanceImageMetadataCommand}
*/
describeInstanceImageMetadata(): Promise<DescribeInstanceImageMetadataCommandOutput>;
describeInstanceImageMetadata(
args: DescribeInstanceImageMetadataCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeInstanceImageMetadataCommandOutput>;
describeInstanceImageMetadata(
args: DescribeInstanceImageMetadataCommandInput,
cb: (err: any, data?: DescribeInstanceImageMetadataCommandOutput) => void
): void;
describeInstanceImageMetadata(
args: DescribeInstanceImageMetadataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeInstanceImageMetadataCommandOutput) => void
): void;

/**
* @see {@link DescribeInstancesCommand}
*/
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ec2/src/EC2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,10 @@ import {
DescribeInstanceEventWindowsCommandInput,
DescribeInstanceEventWindowsCommandOutput,
} from "./commands/DescribeInstanceEventWindowsCommand";
import {
DescribeInstanceImageMetadataCommandInput,
DescribeInstanceImageMetadataCommandOutput,
} from "./commands/DescribeInstanceImageMetadataCommand";
import { DescribeInstancesCommandInput, DescribeInstancesCommandOutput } from "./commands/DescribeInstancesCommand";
import {
DescribeInstanceStatusCommandInput,
Expand Down Expand Up @@ -2491,6 +2495,7 @@ export type ServiceInputTypes =
| DescribeInstanceCreditSpecificationsCommandInput
| DescribeInstanceEventNotificationAttributesCommandInput
| DescribeInstanceEventWindowsCommandInput
| DescribeInstanceImageMetadataCommandInput
| DescribeInstanceStatusCommandInput
| DescribeInstanceTopologyCommandInput
| DescribeInstanceTypeOfferingsCommandInput
Expand Down Expand Up @@ -3129,6 +3134,7 @@ export type ServiceOutputTypes =
| DescribeInstanceCreditSpecificationsCommandOutput
| DescribeInstanceEventNotificationAttributesCommandOutput
| DescribeInstanceEventWindowsCommandOutput
| DescribeInstanceImageMetadataCommandOutput
| DescribeInstanceStatusCommandOutput
| DescribeInstanceTopologyCommandOutput
| DescribeInstanceTypeOfferingsCommandOutput
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeSpotFleetRequestHistoryRequest, DescribeSpotFleetRequestHistoryResponse } from "../models/models_4";
import { DescribeSpotFleetRequestHistoryRequest } from "../models/models_4";
import { DescribeSpotFleetRequestHistoryResponse } from "../models/models_5";
import {
de_DescribeSpotFleetRequestHistoryCommand,
se_DescribeSpotFleetRequestHistoryCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeSpotFleetRequestsRequest } from "../models/models_4";
import {
DescribeSpotFleetRequestsRequest,
DescribeSpotFleetRequestsResponse,
DescribeSpotFleetRequestsResponseFilterSensitiveLog,
} from "../models/models_5";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetEbsDefaultKmsKeyIdRequest, GetEbsDefaultKmsKeyIdResult } from "../models/models_5";
import { GetEbsDefaultKmsKeyIdRequest } from "../models/models_5";
import { GetEbsDefaultKmsKeyIdResult } from "../models/models_6";
import { de_GetEbsDefaultKmsKeyIdCommand, se_GetEbsDefaultKmsKeyIdCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetEbsEncryptionByDefaultRequest, GetEbsEncryptionByDefaultResult } from "../models/models_5";
import { GetEbsEncryptionByDefaultRequest, GetEbsEncryptionByDefaultResult } from "../models/models_6";
import { de_GetEbsEncryptionByDefaultCommand, se_GetEbsEncryptionByDefaultCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { commonParams } from "../endpoint/EndpointParameters";
import {
ModifyVpcEndpointConnectionNotificationRequest,
ModifyVpcEndpointConnectionNotificationResult,
} from "../models/models_6";
} from "../models/models_7";
import {
de_ModifyVpcEndpointConnectionNotificationCommand,
se_ModifyVpcEndpointConnectionNotificationCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { commonParams } from "../endpoint/EndpointParameters";
import {
ModifyVpcEndpointServiceConfigurationRequest,
ModifyVpcEndpointServiceConfigurationResult,
} from "../models/models_6";
} from "../models/models_7";
import {
de_ModifyVpcEndpointServiceConfigurationCommand,
se_ModifyVpcEndpointServiceConfigurationCommand,
Expand Down
1 change: 1 addition & 0 deletions clients/client-ec2/src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export * from "./DescribeInstanceConnectEndpointsCommand";
export * from "./DescribeInstanceCreditSpecificationsCommand";
export * from "./DescribeInstanceEventNotificationAttributesCommand";
export * from "./DescribeInstanceEventWindowsCommand";
export * from "./DescribeInstanceImageMetadataCommand";
export * from "./DescribeInstanceStatusCommand";
export * from "./DescribeInstanceTopologyCommand";
export * from "./DescribeInstanceTypeOfferingsCommand";
Expand Down
66 changes: 51 additions & 15 deletions clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6999,7 +6999,6 @@ export interface CreateIpamPoolRequest {
* <p>The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail">supported Local Zones</a>). This option is only available for IPAM IPv4 pools in the public scope.</p>
* </li>
* </ul>
* <p>If you do not choose a locale, resources in Regions others than the IPAM's home region cannot use CIDRs from this pool.</p>
* <p>Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is <code>none</code> and means any locale.</p>
* @public
*/
Expand Down Expand Up @@ -7037,7 +7036,7 @@ export interface CreateIpamPoolRequest {
AutoImport?: boolean;

/**
* <p>Determines if the pool is publicly advertisable. This option is not available for pools with AddressFamily set to <code>ipv4</code>.</p>
* <p>Determines if the pool is publicly advertisable. The request can only contain <code>PubliclyAdvertisable</code> if <code>AddressFamily</code> is <code>ipv6</code> and <code>PublicIpSource</code> is <code>byoip</code>.</p>
* @public
*/
PubliclyAdvertisable?: boolean;
Expand Down Expand Up @@ -7862,7 +7861,8 @@ export interface LaunchTemplateEbsBlockDeviceRequest {
Iops?: number;

/**
* <p>The ARN of the symmetric Key Management Service (KMS) CMK used for encryption.</p>
* <p>Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key
* to use for EBS encryption.</p>
* @public
*/
KmsKeyId?: string;
Expand Down Expand Up @@ -8099,7 +8099,7 @@ export interface ElasticGpuSpecification {
* <note>
* <p>Amazon Elastic Inference is no longer available.</p>
* </note>
* <p> Describes an elastic inference accelerator.</p>
* <p> Describes an elastic inference accelerator. </p>
* @public
*/
export interface LaunchTemplateElasticInferenceAccelerator {
Expand Down Expand Up @@ -9099,17 +9099,31 @@ export interface RequestLaunchTemplateData {
/**
* <p>Deprecated.</p>
* <note>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024. For
* workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad,
* G4dn, or G5 instances.</p>
* </note>
* @public
*/
ElasticGpuSpecifications?: ElasticGpuSpecification[];

/**
* <p>Deprecated.</p>
* <note>
* <note>
* <p>Amazon Elastic Inference is no longer available.</p>
* </note>
* <p>An elastic inference accelerator to associate with the instance. Elastic inference
* accelerators are a resource you can attach to your Amazon EC2 instances to accelerate
* your Deep Learning (DL) inference workloads.</p>
* <p>You cannot specify accelerators from different generations in the same request.</p>
* <note>
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
* Elastic Inference (EI), and will help current customers migrate their workloads to
* options that offer better price and performance. After April 15, 2023, new customers
* will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,
* Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during
* the past 30-day period are considered current customers and will be able to continue
* using the service.</p>
* </note>
* @public
*/
ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAccelerator[];
Expand Down Expand Up @@ -9499,7 +9513,8 @@ export interface LaunchTemplateEbsBlockDevice {
Iops?: number;

/**
* <p>The ARN of the Key Management Service (KMS) CMK used for encryption.</p>
* <p>Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key
* to use for EBS encryption.</p>
* @public
*/
KmsKeyId?: string;
Expand Down Expand Up @@ -9650,15 +9665,22 @@ export interface CreditSpecification {
}

/**
* <note>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
* <p>Deprecated.</p>
* <note>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024. For
* workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad,
* G4dn, or G5 instances.</p>
* </note>
* <p>Describes an elastic GPU.</p>
* @public
*/
export interface ElasticGpuSpecificationResponse {
/**
* <p>The elastic GPU type.</p>
* <p>Deprecated.</p>
* <note>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024. For
* workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad,
* G4dn, or G5 instances.</p>
* </note>
* @public
*/
Type?: string;
Expand Down Expand Up @@ -10425,17 +10447,31 @@ export interface ResponseLaunchTemplateData {
/**
* <p>Deprecated.</p>
* <note>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
* <p>Amazon Elastic Graphics reached end of life on January 8, 2024. For
* workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad,
* G4dn, or G5 instances.</p>
* </note>
* @public
*/
ElasticGpuSpecifications?: ElasticGpuSpecificationResponse[];

/**
* <p>Deprecated.</p>
* <note>
* <note>
* <p>Amazon Elastic Inference is no longer available.</p>
* </note>
* <p>An elastic inference accelerator to associate with the instance. Elastic inference
* accelerators are a resource you can attach to your Amazon EC2 instances to accelerate
* your Deep Learning (DL) inference workloads.</p>
* <p>You cannot specify accelerators from different generations in the same request.</p>
* <note>
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
* Elastic Inference (EI), and will help current customers migrate their workloads to
* options that offer better price and performance. After April 15, 2023, new customers
* will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,
* Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during
* the past 30-day period are considered current customers and will be able to continue
* using the service.</p>
* </note>
* @public
*/
ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAcceleratorResponse[];
Expand Down
Loading

0 comments on commit f624638

Please sign in to comment.