Describes the AMI that was used to launch an instance, even if the AMI is deprecated, + * deregistered, or made private (no longer public or shared with your account).
+ *If you specify instance IDs, the output includes information for only the specified + * instances. If you specify filters, the output includes information for only those instances + * that meet the filter criteria. If you do not specify instance IDs or filters, the output + * includes information for all instances, which can affect performance.
+ *If you specify an instance ID that is not valid, an instance that doesn't exist, or an
+ * instance that you do not own, an error (InvalidInstanceID.NotFound
) is
+ * returned.
Recently terminated instances might appear in the returned results. This interval is + * usually less than one hour.
+ *In the rare case where an Availability Zone is experiencing a service disruption and you + * specify instance IDs that are in the affected Availability Zone, or do not specify any + * instance IDs at all, the call fails. If you specify only instance IDs that are in an + * unaffected Availability Zone, the call works normally.
+ *The order of the elements in the response, including those within nested structures, + * might vary. Applications should not assume the elements appear in a particular order.
+ *Base exception class for all service exceptions from EC2 service.
+ * + * @public + */ +export class DescribeInstanceImageMetadataCommand extends $Command + .classBuilder< + DescribeInstanceImageMetadataCommandInput, + DescribeInstanceImageMetadataCommandOutput, + EC2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonEC2", "DescribeInstanceImageMetadata", {}) + .n("EC2Client", "DescribeInstanceImageMetadataCommand") + .f(void 0, void 0) + .ser(se_DescribeInstanceImageMetadataCommand) + .de(de_DescribeInstanceImageMetadataCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DescribeInstanceImageMetadataRequest; + output: DescribeInstanceImageMetadataResult; + }; + sdk: { + input: DescribeInstanceImageMetadataCommandInput; + output: DescribeInstanceImageMetadataCommandOutput; + }; + }; +} diff --git a/clients/client-ec2/src/commands/DescribeSpotFleetRequestHistoryCommand.ts b/clients/client-ec2/src/commands/DescribeSpotFleetRequestHistoryCommand.ts index 04afe1d5e2de..76173f800b8a 100644 --- a/clients/client-ec2/src/commands/DescribeSpotFleetRequestHistoryCommand.ts +++ b/clients/client-ec2/src/commands/DescribeSpotFleetRequestHistoryCommand.ts @@ -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, diff --git a/clients/client-ec2/src/commands/DescribeSpotFleetRequestsCommand.ts b/clients/client-ec2/src/commands/DescribeSpotFleetRequestsCommand.ts index 87ebd864cbba..90a6c095d19c 100644 --- a/clients/client-ec2/src/commands/DescribeSpotFleetRequestsCommand.ts +++ b/clients/client-ec2/src/commands/DescribeSpotFleetRequestsCommand.ts @@ -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"; diff --git a/clients/client-ec2/src/commands/GetEbsDefaultKmsKeyIdCommand.ts b/clients/client-ec2/src/commands/GetEbsDefaultKmsKeyIdCommand.ts index 8e919664fa11..22b1a6bee5a8 100644 --- a/clients/client-ec2/src/commands/GetEbsDefaultKmsKeyIdCommand.ts +++ b/clients/client-ec2/src/commands/GetEbsDefaultKmsKeyIdCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/commands/GetEbsEncryptionByDefaultCommand.ts b/clients/client-ec2/src/commands/GetEbsEncryptionByDefaultCommand.ts index 4f879010e9d7..d7009f18cbd5 100644 --- a/clients/client-ec2/src/commands/GetEbsEncryptionByDefaultCommand.ts +++ b/clients/client-ec2/src/commands/GetEbsEncryptionByDefaultCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/commands/ModifyVpcEndpointConnectionNotificationCommand.ts b/clients/client-ec2/src/commands/ModifyVpcEndpointConnectionNotificationCommand.ts index 2ff332934522..176116716fad 100644 --- a/clients/client-ec2/src/commands/ModifyVpcEndpointConnectionNotificationCommand.ts +++ b/clients/client-ec2/src/commands/ModifyVpcEndpointConnectionNotificationCommand.ts @@ -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, diff --git a/clients/client-ec2/src/commands/ModifyVpcEndpointServiceConfigurationCommand.ts b/clients/client-ec2/src/commands/ModifyVpcEndpointServiceConfigurationCommand.ts index f2076929a9fa..409daa285cc0 100644 --- a/clients/client-ec2/src/commands/ModifyVpcEndpointServiceConfigurationCommand.ts +++ b/clients/client-ec2/src/commands/ModifyVpcEndpointServiceConfigurationCommand.ts @@ -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, diff --git a/clients/client-ec2/src/commands/index.ts b/clients/client-ec2/src/commands/index.ts index f86df1e3571c..d0db6d8c2d0c 100644 --- a/clients/client-ec2/src/commands/index.ts +++ b/clients/client-ec2/src/commands/index.ts @@ -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"; diff --git a/clients/client-ec2/src/models/models_1.ts b/clients/client-ec2/src/models/models_1.ts index 2e79d4d1ad3b..e79df9ad051a 100644 --- a/clients/client-ec2/src/models/models_1.ts +++ b/clients/client-ec2/src/models/models_1.ts @@ -6999,7 +6999,6 @@ export interface CreateIpamPoolRequest { *The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (supported Local Zones). This option is only available for IPAM IPv4 pools in the public scope.
* * - *If you do not choose a locale, resources in Regions others than the IPAM's home region cannot use CIDRs from this pool.
*Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is none
and means any locale.
Determines if the pool is publicly advertisable. This option is not available for pools with AddressFamily set to ipv4
.
Determines if the pool is publicly advertisable. The request can only contain PubliclyAdvertisable
if AddressFamily
is ipv6
and PublicIpSource
is byoip
.
The ARN of the symmetric Key Management Service (KMS) CMK used for encryption.
+ *Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key + * to use for EBS encryption.
* @public */ KmsKeyId?: string; @@ -8099,7 +8099,7 @@ export interface ElasticGpuSpecification { *Amazon Elastic Inference is no longer available.
*Describes an elastic inference accelerator.
+ *Describes an elastic inference accelerator.
* @public */ export interface LaunchTemplateElasticInferenceAccelerator { @@ -9099,17 +9099,31 @@ export interface RequestLaunchTemplateData { /** *Deprecated.
*Amazon Elastic Graphics reached end of life on January 8, 2024.
+ *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.
*Deprecated.
- *Amazon Elastic Inference is no longer available.
*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.
+ *You cannot specify accelerators from different generations in the same request.
+ *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.
+ *The ARN of the Key Management Service (KMS) CMK used for encryption.
+ *Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key + * to use for EBS encryption.
* @public */ KmsKeyId?: string; @@ -9650,15 +9665,22 @@ export interface CreditSpecification { } /** - *Amazon Elastic Graphics reached end of life on January 8, 2024.
+ *Deprecated.
+ *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.
*Describes an elastic GPU.
* @public */ export interface ElasticGpuSpecificationResponse { /** - *The elastic GPU type.
+ *Deprecated.
+ *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.
+ *Deprecated.
*Amazon Elastic Graphics reached end of life on January 8, 2024.
+ *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.
*Deprecated.
- *Amazon Elastic Inference is no longer available.
*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.
+ *You cannot specify accelerators from different generations in the same request.
+ *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.
+ *The filters.
+ *
+ * availability-zone
- The name of the Availability Zone (for example,
+ * us-west-2a
) or Local Zone (for example, us-west-2-lax-1b
) of
+ * the instance.
+ * instance-id
- The ID of the instance.
+ * instance-state-name
- The state of the instance (pending
|
+ * running
| shutting-down
| terminated
|
+ * stopping
| stopped
).
+ * instance-type
- The type of instance (for example,
+ * t3.micro
).
+ * launch-time
- The time when the instance was launched, in the ISO 8601
+ * format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,
+ * 2023-09-29T11:04:43.305Z
. You can use a wildcard (*
), for
+ * example, 2023-09-29T*
, which matches an entire day.
+ * tag:
- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.
+ * For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
+ * tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
+ * zone-id
- The ID of the Availability Zone (for example,
+ * usw2-az2
) or Local Zone (for example, usw2-lax1-az1
) of the
+ * instance.
The instance IDs.
+ *If you don't specify an instance ID or filters, the output includes information for all + * instances.
+ * @public + */ + InstanceIds?: string[]; + + /** + *The maximum number of items to return for this request. + * To get the next page of items, make another request with the token returned in the output. + * For more information, see Pagination.
+ *Default: 1000
+ * @public + */ + MaxResults?: number; + + /** + *The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
+ * @public + */ + NextToken?: string; + + /** + *Checks whether you have the required permissions for the action, without actually making the request,
+ * and provides an error response. If you have the required permissions, the error response is
+ * DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Information about the AMI.
+ * @public + */ +export interface ImageMetadata { + /** + *The ID of the AMI.
+ * @public + */ + ImageId?: string; + + /** + *The name of the AMI.
+ * @public + */ + Name?: string; + + /** + *The ID of the Amazon Web Services account that owns the AMI.
+ * @public + */ + OwnerId?: string; + + /** + *The current state of the AMI. If the state is available
, the AMI
+ * is successfully registered and can be used to launch an instance.
The alias of the AMI owner.
+ *Valid values: amazon
| aws-marketplace
+ *
The date and time the AMI was created.
+ * @public + */ + CreationDate?: string; + + /** + *The deprecation date and time of the AMI, in UTC, in the following format: + * YYYY-MM-DDTHH:MM:SSZ.
+ * @public + */ + DeprecationTime?: string; + + /** + *Indicates whether the AMI has public launch permissions. A value of true
+ * means this AMI has public launch permissions, while false
means it has only
+ * implicit (AMI owner) or explicit (shared with your account) launch permissions.
Describes the current state of an instance.
+ * @public + */ +export interface InstanceState { + /** + *The state of the instance as a 16-bit unsigned integer.
+ *The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values + * between 256 and 65,535. These numerical values are used for internal purposes and should + * be ignored.
+ *The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values + * between 0 and 255.
+ *The valid values for instance-state-code will all be in the range of the low byte and + * they are:
+ *
+ * 0
: pending
+ *
+ * 16
: running
+ *
+ * 32
: shutting-down
+ *
+ * 48
: terminated
+ *
+ * 64
: stopping
+ *
+ * 80
: stopped
+ *
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in + * decimal.
+ * @public + */ + Code?: number; + + /** + *The current state of the instance.
+ * @public + */ + Name?: InstanceStateName; +} + +/** + *Information about the instance and the AMI used to launch the instance.
+ * @public + */ +export interface InstanceImageMetadata { + /** + *The ID of the instance.
+ * @public + */ + InstanceId?: string; + + /** + *The instance type.
+ * @public + */ + InstanceType?: _InstanceType; + + /** + *The time the instance was launched.
+ * @public + */ + LaunchTime?: Date; + + /** + *The Availability Zone or Local Zone of the instance.
+ * @public + */ + AvailabilityZone?: string; + + /** + *The ID of the Availability Zone or Local Zone of the instance.
+ * @public + */ + ZoneId?: string; + + /** + *The current state of the instance.
+ * @public + */ + State?: InstanceState; + + /** + *The ID of the Amazon Web Services account that owns the instance.
+ * @public + */ + OwnerId?: string; + + /** + *Any tags assigned to the instance.
+ * @public + */ + Tags?: Tag[]; + + /** + *Information about the AMI used to launch the instance.
+ * @public + */ + ImageMetadata?: ImageMetadata; +} + +/** + * @public + */ +export interface DescribeInstanceImageMetadataResult { + /** + *Information about the instance and the AMI used to launch the instance.
+ * @public + */ + InstanceImageMetadata?: InstanceImageMetadata[]; + + /** + *The token to include in another request to get the next page of items. This value is null
when there
+ * are no more items to return.
Describes the current state of an instance.
- * @public - */ -export interface InstanceState { - /** - *The state of the instance as a 16-bit unsigned integer.
- *The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values - * between 256 and 65,535. These numerical values are used for internal purposes and should - * be ignored.
- *The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values - * between 0 and 255.
- *The valid values for instance-state-code will all be in the range of the low byte and - * they are:
- *
- * 0
: pending
- *
- * 16
: running
- *
- * 32
: shutting-down
- *
- * 48
: terminated
- *
- * 64
: stopping
- *
- * 80
: stopped
- *
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in - * decimal.
- * @public - */ - Code?: number; - - /** - *The current state of the instance.
- * @public - */ - Name?: InstanceStateName; -} - /** *Describes an instance.
* @public @@ -12240,113 +12465,6 @@ export interface HistoryRecord { Timestamp?: Date; } -/** - *Contains the output of DescribeSpotFleetRequestHistory.
- * @public - */ -export interface DescribeSpotFleetRequestHistoryResponse { - /** - *Information about the events in the history of the Spot Fleet request.
- * @public - */ - HistoryRecords?: HistoryRecord[]; - - /** - *The last date and time for the events, in UTC format (for example, - * YYYY-MM-DDTHH:MM:SSZ). - * All records up to this time were retrieved.
- *If nextToken
indicates that there are more items, this value is not
- * present.
The token to include in another request to get the next page of items. This value is null
when there
- * are no more items to return.
The ID of the Spot Fleet request.
- * @public - */ - SpotFleetRequestId?: string; - - /** - *The starting date and time for the events, in UTC format (for example, - * YYYY-MM-DDTHH:MM:SSZ).
- * @public - */ - StartTime?: Date; -} - -/** - *Contains the parameters for DescribeSpotFleetRequests.
- * @public - */ -export interface DescribeSpotFleetRequestsRequest { - /** - *Checks whether you have the required permissions for the action, without actually
- * making the request, and provides an error response. If you have the required
- * permissions, the error response is DryRunOperation
. Otherwise, it is
- * UnauthorizedOperation
.
The IDs of the Spot Fleet requests.
- * @public - */ - SpotFleetRequestIds?: string[]; - - /** - *The token to include in another request to get the next page of items. This value is null
when there
- * are no more items to return.
The maximum number of items to return for this request. - * To get the next page of items, make another request with the token returned in the output. - * For more information, see Pagination.
- * @public - */ - MaxResults?: number; -} - -/** - * @public - * @enum - */ -export const ExcessCapacityTerminationPolicy = { - DEFAULT: "default", - NO_TERMINATION: "noTermination", -} as const; - -/** - * @public - */ -export type ExcessCapacityTerminationPolicy = - (typeof ExcessCapacityTerminationPolicy)[keyof typeof ExcessCapacityTerminationPolicy]; - -/** - *Describes whether monitoring is enabled.
- * @public - */ -export interface SpotFleetMonitoring { - /** - *Enables monitoring for the instance.
- *Default: false
- *
Contains the output of DescribeSpotFleetRequestHistory.
+ * @public + */ +export interface DescribeSpotFleetRequestHistoryResponse { + /** + *Information about the events in the history of the Spot Fleet request.
+ * @public + */ + HistoryRecords?: HistoryRecord[]; + + /** + *The last date and time for the events, in UTC format (for example, + * YYYY-MM-DDTHH:MM:SSZ). + * All records up to this time were retrieved.
+ *If nextToken
indicates that there are more items, this value is not
+ * present.
The token to include in another request to get the next page of items. This value is null
when there
+ * are no more items to return.
The ID of the Spot Fleet request.
+ * @public + */ + SpotFleetRequestId?: string; + + /** + *The starting date and time for the events, in UTC format (for example, + * YYYY-MM-DDTHH:MM:SSZ).
+ * @public + */ + StartTime?: Date; +} + +/** + *Contains the parameters for DescribeSpotFleetRequests.
+ * @public + */ +export interface DescribeSpotFleetRequestsRequest { + /** + *Checks whether you have the required permissions for the action, without actually
+ * making the request, and provides an error response. If you have the required
+ * permissions, the error response is DryRunOperation
. Otherwise, it is
+ * UnauthorizedOperation
.
The IDs of the Spot Fleet requests.
+ * @public + */ + SpotFleetRequestIds?: string[]; + + /** + *The token to include in another request to get the next page of items. This value is null
when there
+ * are no more items to return.
The maximum number of items to return for this request. + * To get the next page of items, make another request with the token returned in the output. + * For more information, see Pagination.
+ * @public + */ + MaxResults?: number; +} + +/** + * @public + * @enum + */ +export const ExcessCapacityTerminationPolicy = { + DEFAULT: "default", + NO_TERMINATION: "noTermination", +} as const; + +/** + * @public + */ +export type ExcessCapacityTerminationPolicy = + (typeof ExcessCapacityTerminationPolicy)[keyof typeof ExcessCapacityTerminationPolicy]; + +/** + *Describes whether monitoring is enabled.
+ * @public + */ +export interface SpotFleetMonitoring { + /** + *Enables monitoring for the instance.
+ *Default: false
+ *
Describes a network interface.
@@ -9694,63 +9795,6 @@ export interface GetEbsDefaultKmsKeyIdRequest { DryRun?: boolean; } -/** - * @public - */ -export interface GetEbsDefaultKmsKeyIdResult { - /** - *The Amazon Resource Name (ARN) of the default KMS key for encryption by default.
- * @public - */ - KmsKeyId?: string; -} - -/** - * @public - */ -export interface GetEbsEncryptionByDefaultRequest { - /** - *Checks whether you have the required permissions for the action, without actually making the request,
- * and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
- * Otherwise, it is UnauthorizedOperation
.
Indicates whether encryption by default is enabled.
- * @public - */ - EbsEncryptionByDefault?: boolean; - - /** - *Reserved for future use.
- * @public - */ - SseType?: SSEType; -} - -/** - * @public - * @enum - */ -export const PartitionLoadFrequency = { - DAILY: "daily", - MONTHLY: "monthly", - NONE: "none", - WEEKLY: "weekly", -} as const; - -/** - * @public - */ -export type PartitionLoadFrequency = (typeof PartitionLoadFrequency)[keyof typeof PartitionLoadFrequency]; - /** * @internal */ diff --git a/clients/client-ec2/src/models/models_6.ts b/clients/client-ec2/src/models/models_6.ts index bdd634bbb22f..b82f51d3582b 100644 --- a/clients/client-ec2/src/models/models_6.ts +++ b/clients/client-ec2/src/models/models_6.ts @@ -78,6 +78,7 @@ import { DefaultRouteTablePropagationValue, DnsOptionsSpecification, IpAddressType, + SSEType, SubnetCidrReservation, SubnetConfiguration, TrafficDirection, @@ -114,7 +115,6 @@ import { AttributeBooleanValue, BootModeValues, CreateVolumePermission, - ExcessCapacityTerminationPolicy, HttpTokensState, ImportImageLicenseConfigurationResponse, InstanceAttributeName, @@ -136,9 +136,9 @@ import { } from "./models_4"; import { + ExcessCapacityTerminationPolicy, InstanceFamilyCreditSpecification, LaunchTemplateConfig, - PartitionLoadFrequency, SnapshotBlockPublicAccessState, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, @@ -146,6 +146,63 @@ import { VolumeModification, } from "./models_5"; +/** + * @public + */ +export interface GetEbsDefaultKmsKeyIdResult { + /** + *The Amazon Resource Name (ARN) of the default KMS key for encryption by default.
+ * @public + */ + KmsKeyId?: string; +} + +/** + * @public + */ +export interface GetEbsEncryptionByDefaultRequest { + /** + *Checks whether you have the required permissions for the action, without actually making the request,
+ * and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
+ * Otherwise, it is UnauthorizedOperation
.
Indicates whether encryption by default is enabled.
+ * @public + */ + EbsEncryptionByDefault?: boolean; + + /** + *Reserved for future use.
+ * @public + */ + SseType?: SSEType; +} + +/** + * @public + * @enum + */ +export const PartitionLoadFrequency = { + DAILY: "daily", + MONTHLY: "monthly", + NONE: "none", + WEEKLY: "weekly", +} as const; + +/** + * @public + */ +export type PartitionLoadFrequency = (typeof PartitionLoadFrequency)[keyof typeof PartitionLoadFrequency]; + /** *Describes integration options for Amazon Athena.
* @public @@ -9368,137 +9425,6 @@ export interface ModifyVpcEndpointResult { Return?: boolean; } -/** - * @public - */ -export interface ModifyVpcEndpointConnectionNotificationRequest { - /** - *Checks whether you have the required permissions for the action, without actually making the request,
- * and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
- * Otherwise, it is UnauthorizedOperation
.
The ID of the notification.
- * @public - */ - ConnectionNotificationId: string | undefined; - - /** - *The ARN for the SNS topic for the notification.
- * @public - */ - ConnectionNotificationArn?: string; - - /** - *The events for the endpoint. Valid values are Accept
,
- * Connect
, Delete
, and Reject
.
Returns true
if the request succeeds; otherwise, it returns an error.
Checks whether you have the required permissions for the action, without actually making the request,
- * and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
- * Otherwise, it is UnauthorizedOperation
.
The ID of the service.
- * @public - */ - ServiceId: string | undefined; - - /** - *(Interface endpoint configuration) The private DNS name to assign to the endpoint service.
- * @public - */ - PrivateDnsName?: string; - - /** - *(Interface endpoint configuration) Removes the private DNS name of the endpoint service.
- * @public - */ - RemovePrivateDnsName?: boolean; - - /** - *Indicates whether requests to create an endpoint to your service must be accepted.
- * @public - */ - AcceptanceRequired?: boolean; - - /** - *The Amazon Resource Names (ARNs) of Network Load Balancers to add to your service - * configuration.
- * @public - */ - AddNetworkLoadBalancerArns?: string[]; - - /** - *The Amazon Resource Names (ARNs) of Network Load Balancers to remove from your service - * configuration.
- * @public - */ - RemoveNetworkLoadBalancerArns?: string[]; - - /** - *The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your service - * configuration.
- * @public - */ - AddGatewayLoadBalancerArns?: string[]; - - /** - *The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from your service - * configuration.
- * @public - */ - RemoveGatewayLoadBalancerArns?: string[]; - - /** - *The IP address types to add to your service configuration.
- * @public - */ - AddSupportedIpAddressTypes?: string[]; - - /** - *The IP address types to remove from your service configuration.
- * @public - */ - RemoveSupportedIpAddressTypes?: string[]; -} - -/** - * @public - */ -export interface ModifyVpcEndpointServiceConfigurationResult { - /** - *Returns true
if the request succeeds; otherwise, it returns an error.
Checks whether you have the required permissions for the action, without actually making the request,
+ * and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
+ * Otherwise, it is UnauthorizedOperation
.
The ID of the notification.
+ * @public + */ + ConnectionNotificationId: string | undefined; + + /** + *The ARN for the SNS topic for the notification.
+ * @public + */ + ConnectionNotificationArn?: string; + + /** + *The events for the endpoint. Valid values are Accept
,
+ * Connect
, Delete
, and Reject
.
Returns true
if the request succeeds; otherwise, it returns an error.
Checks whether you have the required permissions for the action, without actually making the request,
+ * and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
+ * Otherwise, it is UnauthorizedOperation
.
The ID of the service.
+ * @public + */ + ServiceId: string | undefined; + + /** + *(Interface endpoint configuration) The private DNS name to assign to the endpoint service.
+ * @public + */ + PrivateDnsName?: string; + + /** + *(Interface endpoint configuration) Removes the private DNS name of the endpoint service.
+ * @public + */ + RemovePrivateDnsName?: boolean; + + /** + *Indicates whether requests to create an endpoint to your service must be accepted.
+ * @public + */ + AcceptanceRequired?: boolean; + + /** + *The Amazon Resource Names (ARNs) of Network Load Balancers to add to your service + * configuration.
+ * @public + */ + AddNetworkLoadBalancerArns?: string[]; + + /** + *The Amazon Resource Names (ARNs) of Network Load Balancers to remove from your service + * configuration.
+ * @public + */ + RemoveNetworkLoadBalancerArns?: string[]; + + /** + *The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your service + * configuration.
+ * @public + */ + AddGatewayLoadBalancerArns?: string[]; + + /** + *The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from your service + * configuration.
+ * @public + */ + RemoveGatewayLoadBalancerArns?: string[]; + + /** + *The IP address types to add to your service configuration.
+ * @public + */ + AddSupportedIpAddressTypes?: string[]; + + /** + *The IP address types to remove from your service configuration.
+ * @public + */ + RemoveSupportedIpAddressTypes?: string[]; +} + +/** + * @public + */ +export interface ModifyVpcEndpointServiceConfigurationResult { + /** + *Returns true
if the request succeeds; otherwise, it returns an error.
The locale for the pool should be one of the following:
\nAn Amazon Web Services Region where you want this IPAM pool to be available for allocations.
\nThe network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (supported Local Zones). This option is only available for IPAM IPv4 pools in the public scope.
\nIf you do not choose a locale, resources in Regions others than the IPAM's home region cannot use CIDRs from this pool.
\nPossible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is none
and means any locale.
The locale for the pool should be one of the following:
\nAn Amazon Web Services Region where you want this IPAM pool to be available for allocations.
\nThe network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (supported Local Zones). This option is only available for IPAM IPv4 pools in the public scope.
\nPossible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is none
and means any locale.
Determines if the pool is publicly advertisable. This option is not available for pools with AddressFamily set to ipv4
.
Determines if the pool is publicly advertisable. The request can only contain PubliclyAdvertisable
if AddressFamily
is ipv6
and PublicIpSource
is byoip
.
Describes the AMI that was used to launch an instance, even if the AMI is deprecated,\n deregistered, or made private (no longer public or shared with your account).
\nIf you specify instance IDs, the output includes information for only the specified\n instances. If you specify filters, the output includes information for only those instances\n that meet the filter criteria. If you do not specify instance IDs or filters, the output\n includes information for all instances, which can affect performance.
\nIf you specify an instance ID that is not valid, an instance that doesn't exist, or an\n instance that you do not own, an error (InvalidInstanceID.NotFound
) is\n returned.
Recently terminated instances might appear in the returned results. This interval is\n usually less than one hour.
\nIn the rare case where an Availability Zone is experiencing a service disruption and you\n specify instance IDs that are in the affected Availability Zone, or do not specify any\n instance IDs at all, the call fails. If you specify only instance IDs that are in an\n unaffected Availability Zone, the call works normally.
\nThe order of the elements in the response, including those within nested structures,\n might vary. Applications should not assume the elements appear in a particular order.
\nThe filters.
\n\n availability-zone
- The name of the Availability Zone (for example,\n us-west-2a
) or Local Zone (for example, us-west-2-lax-1b
) of\n the instance.
\n instance-id
- The ID of the instance.
\n instance-state-name
- The state of the instance (pending
|\n running
| shutting-down
| terminated
|\n stopping
| stopped
).
\n instance-type
- The type of instance (for example,\n t3.micro
).
\n launch-time
- The time when the instance was launched, in the ISO 8601\n format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,\n 2023-09-29T11:04:43.305Z
. You can use a wildcard (*
), for\n example, 2023-09-29T*
, which matches an entire day.
\n tag:
- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
\n tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
\n zone-id
- The ID of the Availability Zone (for example,\n usw2-az2
) or Local Zone (for example, usw2-lax1-az1
) of the\n instance.
The instance IDs.
\nIf you don't specify an instance ID or filters, the output includes information for all\n instances.
", + "smithy.api#xmlName": "InstanceId" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#DescribeInstanceImageMetadataMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of items to return for this request.\n To get the next page of items, make another request with the token returned in the output.\n\t For more information, see Pagination.
\nDefault: 1000
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n\t\t\tand provides an error response. If you have the required permissions, the error response is \n\t\t\tDryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Information about the instance and the AMI used to launch the instance.
", + "smithy.api#xmlName": "instanceImageMetadataSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to include in another request to get the next page of items. This value is null
when there\n are no more items to return.
The elastic GPU type.
", + "smithy.api#documentation": "Deprecated.
\nAmazon Elastic Graphics reached end of life on January 8, 2024. For \n workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, \n G4dn, or G5 instances.
\nAmazon Elastic Graphics reached end of life on January 8, 2024.
\nDescribes an elastic GPU.
" + "smithy.api#documentation": "Deprecated.
\nAmazon Elastic Graphics reached end of life on January 8, 2024. For \n workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, \n G4dn, or G5 instances.
\nThe ID of the AMI.
", + "smithy.api#xmlName": "imageId" + } + }, + "Name": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Name", + "smithy.api#documentation": "The name of the AMI.
", + "smithy.api#xmlName": "name" + } + }, + "OwnerId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ImageOwnerId", + "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the AMI.
", + "smithy.api#xmlName": "imageOwnerId" + } + }, + "State": { + "target": "com.amazonaws.ec2#ImageState", + "traits": { + "aws.protocols#ec2QueryName": "ImageState", + "smithy.api#documentation": "The current state of the AMI. If the state is available
, the AMI \n is successfully registered and can be used to launch an instance.
The alias of the AMI owner.
\nValid values: amazon
| aws-marketplace
\n
The date and time the AMI was created.
", + "smithy.api#xmlName": "creationDate" + } + }, + "DeprecationTime": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "DeprecationTime", + "smithy.api#documentation": "The deprecation date and time of the AMI, in UTC, in the following format:\n YYYY-MM-DDTHH:MM:SSZ.
", + "smithy.api#xmlName": "deprecationTime" + } + }, + "IsPublic": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "IsPublic", + "smithy.api#documentation": "Indicates whether the AMI has public launch permissions. A value of true
\n means this AMI has public launch permissions, while false
means it has only\n implicit (AMI owner) or explicit (shared with your account) launch permissions.
Information about the AMI.
" + } + }, "com.amazonaws.ec2#ImageRecycleBinInfo": { "type": "structure", "members": { @@ -60228,6 +60394,95 @@ } } }, + "com.amazonaws.ec2#InstanceImageMetadata": { + "type": "structure", + "members": { + "InstanceId": { + "target": "com.amazonaws.ec2#InstanceId", + "traits": { + "aws.protocols#ec2QueryName": "InstanceId", + "smithy.api#documentation": "The ID of the instance.
", + "smithy.api#xmlName": "instanceId" + } + }, + "InstanceType": { + "target": "com.amazonaws.ec2#InstanceType", + "traits": { + "aws.protocols#ec2QueryName": "InstanceType", + "smithy.api#documentation": "The instance type.
", + "smithy.api#xmlName": "instanceType" + } + }, + "LaunchTime": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "LaunchTime", + "smithy.api#documentation": "The time the instance was launched.
", + "smithy.api#xmlName": "launchTime" + } + }, + "AvailabilityZone": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "AvailabilityZone", + "smithy.api#documentation": "The Availability Zone or Local Zone of the instance.
", + "smithy.api#xmlName": "availabilityZone" + } + }, + "ZoneId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ZoneId", + "smithy.api#documentation": "The ID of the Availability Zone or Local Zone of the instance.
", + "smithy.api#xmlName": "zoneId" + } + }, + "State": { + "target": "com.amazonaws.ec2#InstanceState", + "traits": { + "aws.protocols#ec2QueryName": "InstanceState", + "smithy.api#documentation": "The current state of the instance.
", + "smithy.api#xmlName": "instanceState" + } + }, + "OwnerId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "InstanceOwnerId", + "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the instance.
", + "smithy.api#xmlName": "instanceOwnerId" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "Any tags assigned to the instance.
", + "smithy.api#xmlName": "tagSet" + } + }, + "ImageMetadata": { + "target": "com.amazonaws.ec2#ImageMetadata", + "traits": { + "aws.protocols#ec2QueryName": "ImageMetadata", + "smithy.api#documentation": "Information about the AMI used to launch the instance.
", + "smithy.api#xmlName": "imageMetadata" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about the instance and the AMI used to launch the instance.
" + } + }, + "com.amazonaws.ec2#InstanceImageMetadataList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceImageMetadata", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#InstanceInterruptionBehavior": { "type": "enum", "members": { @@ -71982,7 +72237,7 @@ "target": "com.amazonaws.ec2#KmsKeyId", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "The ARN of the Key Management Service (KMS) CMK used for encryption.
", + "smithy.api#documentation": "Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key \n to use for EBS encryption.
", "smithy.api#xmlName": "kmsKeyId" } }, @@ -72047,7 +72302,7 @@ "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "The ARN of the symmetric Key Management Service (KMS) CMK used for encryption.
" + "smithy.api#documentation": "Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key \n to use for EBS encryption.
" } }, "SnapshotId": { @@ -72098,7 +72353,7 @@ } }, "traits": { - "smithy.api#documentation": "Amazon Elastic Inference is no longer available.
\nDescribes an elastic inference accelerator.
" + "smithy.api#documentation": "Amazon Elastic Inference is no longer available.
\nDescribes an elastic inference accelerator.
" } }, "com.amazonaws.ec2#LaunchTemplateElasticInferenceAcceleratorCount": { @@ -89734,14 +89989,14 @@ "ElasticGpuSpecifications": { "target": "com.amazonaws.ec2#ElasticGpuSpecificationList", "traits": { - "smithy.api#documentation": "Deprecated.
\nAmazon Elastic Graphics reached end of life on January 8, 2024.
\nDeprecated.
\nAmazon Elastic Graphics reached end of life on January 8, 2024. For \n workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, \n G4dn, or G5 instances.
\nDeprecated.
\nAmazon Elastic Inference is no longer available.
\nAmazon Elastic Inference is no longer available.
\nAn elastic inference accelerator to associate with the instance. Elastic inference\n accelerators are a resource you can attach to your Amazon EC2 instances to accelerate\n your Deep Learning (DL) inference workloads.
\nYou cannot specify accelerators from different generations in the same request.
\nStarting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon\n Elastic Inference (EI), and will help current customers migrate their workloads to\n options that offer better price and performance. After April 15, 2023, new customers\n will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,\n Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during\n the past 30-day period are considered current customers and will be able to continue\n using the service.
\nDeprecated.
\nAmazon Elastic Graphics reached end of life on January 8, 2024.
\nDeprecated.
\nAmazon Elastic Graphics reached end of life on January 8, 2024. For \n workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, \n G4dn, or G5 instances.
\nDeprecated.
\nAmazon Elastic Inference is no longer available.
\nAmazon Elastic Inference is no longer available.
\nAn elastic inference accelerator to associate with the instance. Elastic inference\n accelerators are a resource you can attach to your Amazon EC2 instances to accelerate\n your Deep Learning (DL) inference workloads.
\nYou cannot specify accelerators from different generations in the same request.
\nStarting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon\n Elastic Inference (EI), and will help current customers migrate their workloads to\n options that offer better price and performance. After April 15, 2023, new customers\n will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,\n Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during\n the past 30-day period are considered current customers and will be able to continue\n using the service.
\n