Skip to content

Commit

Permalink
feat(client-ec2): With this release, customers can express their desi…
Browse files Browse the repository at this point in the history
…re to launch instances only in an ODCR or ODCR group rather than OnDemand capacity. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family.
  • Loading branch information
awstools committed Nov 20, 2024
1 parent 3d12b74 commit 7cf2a36
Show file tree
Hide file tree
Showing 39 changed files with 2,258 additions and 1,486 deletions.
33 changes: 30 additions & 3 deletions clients/client-ec2/src/commands/CreateFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* Max: Number("int"),
* },
* CpuManufacturers: [ // CpuManufacturerSet
* "intel" || "amd" || "amazon-web-services",
* "intel" || "amd" || "amazon-web-services" || "apple",
* ],
* MemoryGiBPerVCpu: { // MemoryGiBPerVCpuRequest
* Min: Number("double"),
Expand Down Expand Up @@ -162,6 +162,15 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* BaselinePerformanceFactors: { // BaselinePerformanceFactorsRequest
* Cpu: { // CpuPerformanceFactorRequest
* References: [ // PerformanceFactorReferenceSetRequest
* { // PerformanceFactorReferenceRequest
* InstanceFamily: "STRING_VALUE",
* },
* ],
* },
* },
* },
* ImageId: "STRING_VALUE",
* },
Expand Down Expand Up @@ -225,7 +234,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // Max: Number("int"),
* // },
* // CpuManufacturers: [ // CpuManufacturerSet
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: { // MemoryGiBPerVCpu
* // Min: Number("double"),
Expand Down Expand Up @@ -283,6 +292,15 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: { // BaselinePerformanceFactors
* // Cpu: { // CpuPerformanceFactor
* // References: [ // PerformanceFactorReferenceSet
* // { // PerformanceFactorReference
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -320,7 +338,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // Max: Number("int"),
* // },
* // CpuManufacturers: [
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: {
* // Min: Number("double"),
Expand Down Expand Up @@ -378,6 +396,15 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: {
* // Cpu: {
* // References: [
* // {
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down
13 changes: 11 additions & 2 deletions clients/client-ec2/src/commands/CreateLaunchTemplateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
* AmdSevSnp: "enabled" || "disabled",
* },
* CapacityReservationSpecification: { // LaunchTemplateCapacityReservationSpecificationRequest
* CapacityReservationPreference: "open" || "none",
* CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
* CapacityReservationTarget: { // CapacityReservationTarget
* CapacityReservationId: "STRING_VALUE",
* CapacityReservationResourceGroupArn: "STRING_VALUE",
Expand Down Expand Up @@ -233,7 +233,7 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
* Max: Number("int"),
* },
* CpuManufacturers: [ // CpuManufacturerSet
* "intel" || "amd" || "amazon-web-services",
* "intel" || "amd" || "amazon-web-services" || "apple",
* ],
* MemoryGiBPerVCpu: { // MemoryGiBPerVCpuRequest
* Min: Number("double"),
Expand Down Expand Up @@ -291,6 +291,15 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* BaselinePerformanceFactors: { // BaselinePerformanceFactorsRequest
* Cpu: { // CpuPerformanceFactorRequest
* References: [ // PerformanceFactorReferenceSetRequest
* { // PerformanceFactorReferenceRequest
* InstanceFamily: "STRING_VALUE",
* },
* ],
* },
* },
* },
* PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptionsRequest
* HostnameType: "ip-name" || "resource-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* AmdSevSnp: "enabled" || "disabled",
* },
* CapacityReservationSpecification: { // LaunchTemplateCapacityReservationSpecificationRequest
* CapacityReservationPreference: "open" || "none",
* CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
* CapacityReservationTarget: { // CapacityReservationTarget
* CapacityReservationId: "STRING_VALUE",
* CapacityReservationResourceGroupArn: "STRING_VALUE",
Expand Down Expand Up @@ -236,7 +236,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* Max: Number("int"),
* },
* CpuManufacturers: [ // CpuManufacturerSet
* "intel" || "amd" || "amazon-web-services",
* "intel" || "amd" || "amazon-web-services" || "apple",
* ],
* MemoryGiBPerVCpu: { // MemoryGiBPerVCpuRequest
* Min: Number("double"),
Expand Down Expand Up @@ -294,6 +294,15 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* BaselinePerformanceFactors: { // BaselinePerformanceFactorsRequest
* Cpu: { // CpuPerformanceFactorRequest
* References: [ // PerformanceFactorReferenceSetRequest
* { // PerformanceFactorReferenceRequest
* InstanceFamily: "STRING_VALUE",
* },
* ],
* },
* },
* },
* PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptionsRequest
* HostnameType: "ip-name" || "resource-name",
Expand Down Expand Up @@ -468,7 +477,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* // AmdSevSnp: "enabled" || "disabled",
* // },
* // CapacityReservationSpecification: { // LaunchTemplateCapacityReservationSpecificationResponse
* // CapacityReservationPreference: "open" || "none",
* // CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
* // CapacityReservationTarget: { // CapacityReservationTargetResponse
* // CapacityReservationId: "STRING_VALUE",
* // CapacityReservationResourceGroupArn: "STRING_VALUE",
Expand Down Expand Up @@ -503,7 +512,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* // Max: Number("int"),
* // },
* // CpuManufacturers: [ // CpuManufacturerSet
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: { // MemoryGiBPerVCpu
* // Min: Number("double"),
Expand Down Expand Up @@ -561,6 +570,15 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: { // BaselinePerformanceFactors
* // Cpu: { // CpuPerformanceFactor
* // References: [ // PerformanceFactorReferenceSet
* // { // PerformanceFactorReference
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptions
* // HostnameType: "ip-name" || "resource-name",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-ec2/src/commands/CreateNetworkAclCommand.ts
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 { CreateNetworkAclRequest, CreateNetworkAclResult } from "../models/models_1";
import { CreateNetworkAclRequest } from "../models/models_1";
import { CreateNetworkAclResult } from "../models/models_2";
import { de_CreateNetworkAclCommand, se_CreateNetworkAclCommand } 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 { CreateNetworkAclEntryRequest } from "../models/models_1";
import { CreateNetworkAclEntryRequest } from "../models/models_2";
import { de_CreateNetworkAclEntryCommand, se_CreateNetworkAclEntryCommand } from "../protocols/Aws_ec2";

/**
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 { DeleteInstanceEventWindowRequest, DeleteInstanceEventWindowResult } from "../models/models_2";
import { DeleteInstanceEventWindowRequest } from "../models/models_2";
import { DeleteInstanceEventWindowResult } from "../models/models_3";
import { de_DeleteInstanceEventWindowCommand, se_DeleteInstanceEventWindowCommand } 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 { DeleteInternetGatewayRequest } from "../models/models_2";
import { DeleteInternetGatewayRequest } from "../models/models_3";
import { de_DeleteInternetGatewayCommand, se_DeleteInternetGatewayCommand } from "../protocols/Aws_ec2";

/**
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/DeleteIpamCommand.ts
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 { DeleteIpamRequest, DeleteIpamResult } from "../models/models_2";
import { DeleteIpamRequest, DeleteIpamResult } from "../models/models_3";
import { de_DeleteIpamCommand, se_DeleteIpamCommand } from "../protocols/Aws_ec2";

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

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteIpamExternalResourceVerificationTokenRequest } from "../models/models_2";
import { DeleteIpamExternalResourceVerificationTokenResult } from "../models/models_3";
import {
DeleteIpamExternalResourceVerificationTokenRequest,
DeleteIpamExternalResourceVerificationTokenResult,
} from "../models/models_3";
import {
de_DeleteIpamExternalResourceVerificationTokenCommand,
se_DeleteIpamExternalResourceVerificationTokenCommand,
Expand Down
33 changes: 30 additions & 3 deletions clients/client-ec2/src/commands/DescribeFleetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // Max: Number("int"),
* // },
* // CpuManufacturers: [ // CpuManufacturerSet
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: { // MemoryGiBPerVCpu
* // Min: Number("double"),
Expand Down Expand Up @@ -157,6 +157,15 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: { // BaselinePerformanceFactors
* // Cpu: { // CpuPerformanceFactor
* // References: [ // PerformanceFactorReferenceSet
* // { // PerformanceFactorReference
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -234,7 +243,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // Max: Number("int"),
* // },
* // CpuManufacturers: [
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: {
* // Min: Number("double"),
Expand Down Expand Up @@ -292,6 +301,15 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: {
* // Cpu: {
* // References: [
* // {
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -329,7 +347,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // Max: Number("int"),
* // },
* // CpuManufacturers: [
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: {
* // Min: Number("double"),
Expand Down Expand Up @@ -387,6 +405,15 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: {
* // Cpu: {
* // References: [
* // {
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // ImageId: "STRING_VALUE",
* // },
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 { DescribeHostReservationOfferingsRequest, DescribeHostReservationOfferingsResult } from "../models/models_3";
import { DescribeHostReservationOfferingsRequest } from "../models/models_3";
import { DescribeHostReservationOfferingsResult } from "../models/models_4";
import {
de_DescribeHostReservationOfferingsCommand,
se_DescribeHostReservationOfferingsCommand,
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 { DescribeHostReservationsRequest, DescribeHostReservationsResult } from "../models/models_3";
import { DescribeHostReservationsRequest, DescribeHostReservationsResult } from "../models/models_4";
import { de_DescribeHostReservationsCommand, se_DescribeHostReservationsCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export interface DescribeInstancesCommandOutput extends DescribeInstancesResult,
* // },
* // CapacityReservationId: "STRING_VALUE",
* // CapacityReservationSpecification: { // CapacityReservationSpecificationResponse
* // CapacityReservationPreference: "open" || "none",
* // CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
* // CapacityReservationTarget: { // CapacityReservationTargetResponse
* // CapacityReservationId: "STRING_VALUE",
* // CapacityReservationResourceGroupArn: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export interface DescribeLaunchTemplateVersionsCommandOutput
* // AmdSevSnp: "enabled" || "disabled",
* // },
* // CapacityReservationSpecification: { // LaunchTemplateCapacityReservationSpecificationResponse
* // CapacityReservationPreference: "open" || "none",
* // CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
* // CapacityReservationTarget: { // CapacityReservationTargetResponse
* // CapacityReservationId: "STRING_VALUE",
* // CapacityReservationResourceGroupArn: "STRING_VALUE",
Expand Down Expand Up @@ -262,7 +262,7 @@ export interface DescribeLaunchTemplateVersionsCommandOutput
* // Max: Number("int"),
* // },
* // CpuManufacturers: [ // CpuManufacturerSet
* // "intel" || "amd" || "amazon-web-services",
* // "intel" || "amd" || "amazon-web-services" || "apple",
* // ],
* // MemoryGiBPerVCpu: { // MemoryGiBPerVCpu
* // Min: Number("double"),
Expand Down Expand Up @@ -320,6 +320,15 @@ export interface DescribeLaunchTemplateVersionsCommandOutput
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // BaselinePerformanceFactors: { // BaselinePerformanceFactors
* // Cpu: { // CpuPerformanceFactor
* // References: [ // PerformanceFactorReferenceSet
* // { // PerformanceFactorReference
* // InstanceFamily: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptions
* // HostnameType: "ip-name" || "resource-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { commonParams } from "../endpoint/EndpointParameters";
import {
DescribeSecurityGroupVpcAssociationsRequest,
DescribeSecurityGroupVpcAssociationsResult,
} from "../models/models_4";
} from "../models/models_5";
import {
de_DescribeSecurityGroupVpcAssociationsCommand,
se_DescribeSecurityGroupVpcAssociationsCommand,
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 { DescribeSecurityGroupsRequest, DescribeSecurityGroupsResult } from "../models/models_4";
import { DescribeSecurityGroupsRequest, DescribeSecurityGroupsResult } from "../models/models_5";
import { de_DescribeSecurityGroupsCommand, se_DescribeSecurityGroupsCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Loading

0 comments on commit 7cf2a36

Please sign in to comment.