Skip to content

Commit

Permalink
feat(client-ec2): This release adds the source AMI details in Describ…
Browse files Browse the repository at this point in the history
…eImages API
  • Loading branch information
awstools committed Nov 13, 2024
1 parent 0ca3c21 commit 67fa666
Show file tree
Hide file tree
Showing 12 changed files with 85 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface CreateCapacityReservationBySplittingCommandOutput

/**
* <p>
* Create a new Capacity Reservation by splitting the available capacity of the source Capacity Reservation. The new Capacity Reservation will have the same attributes as the source Capacity Reservation except for tags. The source Capacity Reservation must be <code>active</code> and owned by your Amazon Web Services account.
* Create a new Capacity Reservation by splitting the capacity of the source Capacity Reservation. The new Capacity Reservation will have the same attributes as the source Capacity Reservation except for tags. The source Capacity Reservation must be <code>active</code> and owned by your Amazon Web Services account.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ec2/src/commands/CreateKeyPairCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface CreateKeyPairCommandOutput extends KeyPair, __MetadataBearer {}

/**
* <p>Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the
* specified PEM or PPK format. Amazon EC2 stores the public key and displays the private
* specified format. Amazon EC2 stores the public key and displays the private
* key for you to save to a file. The private key is returned as an unencrypted PEM encoded
* PKCS#1 private key or an unencrypted PPK formatted private key for use with PuTTY. If a
* key with the specified name already exists, Amazon EC2 returns an error.</p>
Expand All @@ -38,7 +38,7 @@ export interface CreateKeyPairCommandOutput extends KeyPair, __MetadataBearer {}
* to any Region using <a>ImportKeyPair</a>.</p>
* <p>You can have up to 5,000 key pairs per Amazon Web Services Region.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html">Amazon EC2 key pairs</a> in the
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* <i>Amazon EC2 User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ec2/src/commands/CreateSecurityGroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export interface CreateSecurityGroupCommandOutput extends CreateSecurityGroupRes
* <p>A security group acts as a virtual firewall for your instance to control inbound and outbound traffic.
* For more information, see
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html">Amazon EC2 security groups</a> in
* the <i>Amazon Elastic Compute Cloud User Guide</i> and
* the <i>Amazon EC2 User Guide</i> and
* <a href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html">Security groups for your VPC</a> in the
* <i>Amazon Virtual Private Cloud User Guide</i>.</p>
* <i>Amazon VPC User Guide</i>.</p>
* <p>When you create a security group, you specify a friendly name of your choice.
* You can't have two security groups for the same VPC with the same name.</p>
* <p>You have a default security group for use in your VPC. If you don't specify a security group
Expand Down
2 changes: 2 additions & 0 deletions clients/client-ec2/src/commands/DescribeImagesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResult, __Met
* // SourceInstanceId: "STRING_VALUE",
* // DeregistrationProtection: "STRING_VALUE",
* // LastLaunchedTime: "STRING_VALUE",
* // SourceImageId: "STRING_VALUE",
* // SourceImageRegion: "STRING_VALUE",
* // ImageId: "STRING_VALUE",
* // ImageLocation: "STRING_VALUE",
* // State: "pending" || "available" || "invalid" || "deregistered" || "transient" || "failed" || "error" || "disabled",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/DescribeKeyPairsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DescribeKeyPairsCommandOutput extends DescribeKeyPairsResult, _
/**
* <p>Describes the specified key pairs or all of your key pairs.</p>
* <p>For more information about key pairs, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html">Amazon EC2 key pairs</a>
* in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* in the <i>Amazon EC2 User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
9 changes: 3 additions & 6 deletions clients/client-ec2/src/commands/ImportKeyPairCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ export interface ImportKeyPairCommandInput extends ImportKeyPairRequest {}
export interface ImportKeyPairCommandOutput extends ImportKeyPairResult, __MetadataBearer {}

/**
* <p>Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool.
* Compare this with <a>CreateKeyPair</a>, in which Amazon Web Services creates the key pair and gives the keys to you
* (Amazon Web Services keeps a copy of the public key). With ImportKeyPair, you create the key pair and give Amazon Web Services just the public key.
* The private key is never transferred between you and Amazon Web Services.</p>
* <p>For more information about key pairs, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html">Amazon EC2 key pairs</a>
* in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* <p>Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool.
* You give Amazon Web Services only the public key. The private key is never transferred between you and Amazon Web Services.</p>
* <p>For more information about the requirements for importing a key pair, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws">Create a key pair and import the public key to Amazon EC2</a> in the <i>Amazon EC2 User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export interface CreateCapacityReservationBySplittingRequest {

/**
* <p>
* The ID of the Capacity Reservation from which you want to split the available capacity.
* The ID of the Capacity Reservation from which you want to split the capacity.
* </p>
* @public
*/
Expand Down
37 changes: 31 additions & 6 deletions clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export interface DescribeImagesRequest {

/**
* <p>Scopes the results to images with the specified owners. You can specify a combination of
* Amazon Web Services account IDs, <code>self</code>, <code>amazon</code>, and <code>aws-marketplace</code>.
* Amazon Web Services account IDs, <code>self</code>, <code>amazon</code>, <code>aws-backup-vault</code>, and <code>aws-marketplace</code>.
* If you omit this parameter, the results include all images for which you have launch permissions,
* regardless of ownership.</p>
* @public
Expand Down Expand Up @@ -463,7 +463,7 @@ export interface DescribeImagesRequest {
* </li>
* <li>
* <p>
* <code>owner-alias</code> - The owner alias (<code>amazon</code> | <code>aws-marketplace</code>).
* <code>owner-alias</code> - The owner alias (<code>amazon</code> | <code>aws-backup-vault</code> | <code>aws-marketplace</code>).
* The valid aliases are defined in an Amazon-maintained list. This is not the Amazon Web Services account alias that can be
* set using the IAM console. We recommend that you use the <b>Owner</b>
* request parameter instead of this filter.</p>
Expand Down Expand Up @@ -728,7 +728,7 @@ export interface Image {
Hypervisor?: HypervisorType | undefined;

/**
* <p>The owner alias (<code>amazon</code> | <code>aws-marketplace</code>).</p>
* <p>The owner alias (<code>amazon</code> | <code>aws-backup-vault</code> | <code>aws-marketplace</code>).</p>
* @public
*/
ImageOwnerAlias?: string | undefined;
Expand Down Expand Up @@ -835,6 +835,28 @@ export interface Image {
*/
LastLaunchedTime?: string | undefined;

/**
* <p>The ID of the source AMI from which the AMI was created.</p>
* <p>The ID only appears if the AMI was created using <a>CreateImage</a>, <a>CopyImage</a>, or <a>CreateRestoreImageTask</a>. The ID does not appear
* if the AMI was created using any other API. For some older AMIs, the ID might not be
* available. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify-source-ami-used-to-create-new-ami.html">Identify the
* source AMI used to create a new AMI</a> in the
* <i>Amazon EC2 User Guide</i>.</p>
* @public
*/
SourceImageId?: string | undefined;

/**
* <p>The Region of the source AMI. </p>
* <p>The Region only appears if the AMI was created using <a>CreateImage</a>, <a>CopyImage</a>, or <a>CreateRestoreImageTask</a>. The Region does not
* appear if the AMI was created using any other API. For some older AMIs, the Region might not
* be available. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify-source-ami-used-to-create-new-ami.html">Identify the
* source AMI used to create a new AMI</a> in the
* <i>Amazon EC2 User Guide</i>.</p>
* @public
*/
SourceImageRegion?: string | undefined;

/**
* <p>The ID of the AMI.</p>
* @public
Expand Down Expand Up @@ -2047,7 +2069,7 @@ export interface ImageMetadata {

/**
* <p>The alias of the AMI owner.</p>
* <p>Valid values: <code>amazon</code> | <code>aws-marketplace</code>
* <p>Valid values: <code>amazon</code> | <code>aws-backup-vault</code> | <code>aws-marketplace</code>
* </p>
* @public
*/
Expand Down Expand Up @@ -4034,7 +4056,8 @@ export interface Instance {
InstanceType?: _InstanceType | undefined;

/**
* <p>The time the instance was launched.</p>
* <p>The time that the instance was last launched. To determine the time that instance was first launched,
* see the attachment time for the primary network interface.</p>
* @public
*/
LaunchTime?: Date | undefined;
Expand Down Expand Up @@ -11583,7 +11606,9 @@ export interface SecurityGroupReference {
ReferencingVpcId?: string | undefined;

/**
* <p>The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see <a href="https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html">Update your security groups to reference peer security groups</a> in the <i>VPC Peering Guide</i>.</p>
* <p>The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see
* <a href="https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html">Update your security groups to reference peer security groups</a>
* in the <i>VPC Peering Guide</i>.</p>
* @public
*/
VpcPeeringConnectionId?: string | undefined;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/models/models_6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4581,7 +4581,7 @@ export interface ImportKeyPairRequest {
KeyName: string | undefined;

/**
* <p>The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.</p>
* <p>The public key.</p>
* @public
*/
PublicKeyMaterial: Uint8Array | undefined;
Expand Down
3 changes: 2 additions & 1 deletion clients/client-ec2/src/models/models_7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4026,7 +4026,8 @@ export interface RevokeClientVpnIngressRequest {
AccessGroupId?: string | undefined;

/**
* <p>Indicates whether access should be revoked for all clients.</p>
* <p>Indicates whether access should be revoked for all groups for a single <code>TargetNetworkCidr</code> that earlier authorized ingress for all groups using <code>AuthorizeAllGroups</code>.
* This does not impact other authorization rules that allowed ingress to the same <code>TargetNetworkCidr</code> with a specific <code>AccessGroupId</code>.</p>
* @public
*/
RevokeAllGroups?: boolean | undefined;
Expand Down
9 changes: 9 additions & 0 deletions clients/client-ec2/src/protocols/Aws_ec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67752,6 +67752,12 @@ const de_Image = (output: any, context: __SerdeContext): Image => {
if (output[_lLT] != null) {
contents[_LLT] = __expectString(output[_lLT]);
}
if (output[_sIIo] != null) {
contents[_SII] = __expectString(output[_sIIo]);
}
if (output[_sIR] != null) {
contents[_SIRo] = __expectString(output[_sIR]);
}
if (output[_iIma] != null) {
contents[_IIma] = __expectString(output[_iIma]);
}
Expand Down Expand Up @@ -85815,6 +85821,7 @@ const _SIPI = "SourceIpamPoolId";
const _SIR = "SpotInstanceRequests";
const _SIRI = "SpotInstanceRequestIds";
const _SIRIp = "SpotInstanceRequestId";
const _SIRo = "SourceImageRegion";
const _SIS = "ScheduledInstanceSet";
const _SIT = "SpotInstanceType";
const _SITR = "StoreImageTaskResults";
Expand Down Expand Up @@ -87541,10 +87548,12 @@ const _sICSS = "successfulInstanceCreditSpecificationSet";
const _sIGB = "sizeInGB";
const _sII = "sourceInstanceId";
const _sIIc = "scheduledInstanceId";
const _sIIo = "sourceImageId";
const _sIMB = "sizeInMiB";
const _sIP = "staleIpPermissions";
const _sIPE = "staleIpPermissionsEgress";
const _sIPI = "sourceIpamPoolId";
const _sIR = "sourceImageRegion";
const _sIRI = "spotInstanceRequestId";
const _sIRS = "spotInstanceRequestSet";
const _sIS = "scheduledInstanceSet";
Expand Down
Loading

0 comments on commit 67fa666

Please sign in to comment.