Skip to content

Commit

Permalink
feat(client-ec2): DescribeInstanceStatus now returns health informati…
Browse files Browse the repository at this point in the history
…on on EBS volumes attached to Nitro instances
  • Loading branch information
awstools committed Aug 21, 2024
1 parent 614d98e commit 1baa7ea
Show file tree
Hide file tree
Showing 17 changed files with 462 additions and 262 deletions.
29 changes: 10 additions & 19 deletions clients/client-ec2/src/commands/CopyImageCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,16 @@ export interface CopyImageCommandInput extends CopyImageRequest {}
export interface CopyImageCommandOutput extends CopyImageResult, __MetadataBearer {}

/**
* <p>Initiates the copy of an AMI. You can copy an AMI from one Region to another, or from a
* Region to an Outpost. You can't copy an AMI from an Outpost to a Region, from one Outpost
* to another, or within the same Outpost. To copy an AMI to another partition, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a>.</p>
* <p>To copy an AMI from one Region to another, specify the source Region using the
* <b>SourceRegion</b> parameter, and specify the
* destination Region using its endpoint. Copies of encrypted backing snapshots for
* the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted,
* unless you set <code>Encrypted</code> during the copy operation. You cannot
* create an unencrypted copy of an encrypted backing snapshot.</p>
* <p>To copy an AMI from a Region to an Outpost, specify the source Region using the
* <b>SourceRegion</b> parameter, and specify the
* ARN of the destination Outpost using <b>DestinationOutpostArn</b>.
* Backing snapshots copied to an Outpost are encrypted by default using the default
* encryption key for the Region, or a different key that you specify in the request using
* <b>KmsKeyId</b>. Outposts do not support unencrypted
* snapshots. For more information, <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
* <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</a> in the
* <i>Amazon EC2 User Guide</i>.</p>
* <p>Initiates an AMI copy operation. You can copy an AMI from one Region to another, or from a
* Region to an Outpost. You can't copy an AMI from an Outpost to a Region, from one Outpost to
* another, or within the same Outpost. To copy an AMI to another partition, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a>.</p>
* <p>When you copy an AMI from one Region to another, the destination Region is the
* current Region.</p>
* <p>When you copy an AMI from a Region to an Outpost, specify the ARN of the Outpost as
* the destination. Backing snapshots copied to an Outpost are encrypted by default using
* the default encryption key for the Region or the key that you specify. Outposts do not
* support unencrypted snapshots.</p>
* <p>For information about the prerequisites when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DeleteSecurityGroupCommandOutput extends __MetadataBearer {}
/**
* <p>Deletes a security group.</p>
* <p>If you attempt to delete a security group that is associated with an instance or network interface or is
* referenced by another security group, the operation fails with
* referenced by another security group in the same VPC, the operation fails with
* <code>DependencyViolation</code>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
10 changes: 10 additions & 0 deletions clients/client-ec2/src/commands/DescribeInstanceStatusCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ export interface DescribeInstanceStatusCommandOutput extends DescribeInstanceSta
* // ],
* // Status: "ok" || "impaired" || "insufficient-data" || "not-applicable" || "initializing",
* // },
* // AttachedEbsStatus: { // EbsStatusSummary
* // Details: [ // EbsStatusDetailsList
* // { // EbsStatusDetails
* // ImpairedSince: new Date("TIMESTAMP"),
* // Name: "reachability",
* // Status: "passed" || "failed" || "insufficient-data" || "initializing",
* // },
* // ],
* // Status: "ok" || "impaired" || "insufficient-data" || "not-applicable" || "initializing",
* // },
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface DescribeStaleSecurityGroupsCommandOutput extends DescribeStaleS

/**
* <p>Describes the stale security group rules for security groups in a specified VPC.
* Rules are stale when they reference a deleted security group in the same VPC or peered VPC. Rules can also be stale if they reference a security group in a peer VPC for which the VPC peering connection has
* Rules are stale when they reference a deleted security group in a peered VPC. Rules can also be stale if they reference a security group in a peer VPC for which the VPC peering connection has
* been deleted.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ export interface DisableSnapshotBlockPublicAccessCommandOutput
* <p>Disables the <i>block public access for snapshots</i> setting at
* the account level for the specified Amazon Web Services Region. After you disable block public
* access for snapshots in a Region, users can publicly share snapshots in that Region.</p>
* <p>If block public access is enabled in <code>block-all-sharing</code> mode, and
* you disable block public access, all snapshots that were previously publicly shared
* are no longer treated as private and they become publicly accessible again.</p>
* <important>
* <p>Enabling block public access for snapshots in <i>block-all-sharing</i>
* mode does not change the permissions for snapshots that are already publicly shared.
* Instead, it prevents these snapshots from be publicly visible and publicly accessible.
* Therefore, the attributes for these snapshots still indicate that they are publicly
* shared, even though they are not publicly available.</p>
* <p>If you disable block public access , these snapshots will become publicly available
* again.</p>
* </important>
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/block-public-access-snapshots.html">
* Block public access for snapshots</a> in the <i>Amazon EBS User Guide</i> .</p>
* <p></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ export interface EnableSnapshotBlockPublicAccessCommandOutput
* for snapshots in that Region. Snapshots that are already publicly shared are either
* treated as private or they remain publicly shared, depending on the
* <b>State</b> that you specify.</p>
* <p>If block public access is enabled in <code>block-all-sharing</code> mode, and
* you change the mode to <code>block-new-sharing</code>, all snapshots that were
* previously publicly shared are no longer treated as private and they become publicly
* accessible again.</p>
* <important>
* <p>Enabling block public access for snapshots in <i>block all sharing</i>
* mode does not change the permissions for snapshots that are already publicly shared.
* Instead, it prevents these snapshots from be publicly visible and publicly accessible.
* Therefore, the attributes for these snapshots still indicate that they are publicly
* shared, even though they are not publicly available.</p>
* <p>If you later disable block public access or change the mode to <i>block new
* sharing</i>, these snapshots will become publicly available again.</p>
* </important>
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/block-public-access-snapshots.html">
* Block public access for snapshots</a> in the <i>Amazon EBS User Guide</i>.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetInstanceMetadataDefaultsRequest } from "../models/models_5";
import { GetInstanceMetadataDefaultsResult } from "../models/models_6";
import { GetInstanceMetadataDefaultsRequest, GetInstanceMetadataDefaultsResult } from "../models/models_6";
import { de_GetInstanceMetadataDefaultsCommand, se_GetInstanceMetadataDefaultsCommand } from "../protocols/Aws_ec2";

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

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ModifyVpnConnectionOptionsRequest } from "../models/models_6";
import {
ModifyVpnConnectionOptionsRequest,
ModifyVpnConnectionOptionsResult,
ModifyVpnConnectionOptionsResultFilterSensitiveLog,
} from "../models/models_6";
} from "../models/models_7";
import { de_ModifyVpnConnectionOptionsCommand, se_ModifyVpnConnectionOptionsCommand } from "../protocols/Aws_ec2";

/**
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 { ModifyVpnTunnelCertificateRequest } from "../models/models_6";
import {
ModifyVpnTunnelCertificateRequest,
ModifyVpnTunnelCertificateResult,
ModifyVpnTunnelCertificateResultFilterSensitiveLog,
} from "../models/models_7";
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7935,8 +7935,8 @@ export interface CopyImageRequest {
* <p>Specifies whether the destination snapshots of the copied image should be encrypted. You
* can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted copy of an
* encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default
* Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html">Amazon EBS encryption</a> in the
* <i>Amazon EBS User Guide</i>.</p>
* Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html">Use encryption with
* EBS-backed AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
* @public
*/
Encrypted?: boolean;
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 @@ -7968,7 +7968,7 @@ export interface RequestLaunchTemplateData {
NetworkInterfaces?: LaunchTemplateInstanceNetworkInterfaceSpecificationRequest[];

/**
* <p>The ID of the AMI in the format <code>ami-17characters00000</code>.</p>
* <p>The ID of the AMI in the format <code>ami-0ac394d6a3example</code>.</p>
* <p>Alternatively, you can specify a Systems Manager parameter, using one of the following
* formats. The Systems Manager parameter will resolve to an AMI ID on launch.</p>
* <p>To reference a public parameter:</p>
Expand Down
Loading

0 comments on commit 1baa7ea

Please sign in to comment.