From b25f0b06188e1ad01e2515f080ead4b0e9f070d2 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 15 Nov 2024 19:12:00 +0000 Subject: [PATCH] feat(client-ec2): Remove non-functional enum variants for FleetCapacityReservationUsageStrategy --- .../client-ec2/src/commands/CreateFleetCommand.ts | 2 +- .../client-ec2/src/commands/DescribeFleetsCommand.ts | 2 +- clients/client-ec2/src/models/models_1.ts | 2 -- codegen/sdk-codegen/aws-models/ec2.json | 12 ------------ 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/clients/client-ec2/src/commands/CreateFleetCommand.ts b/clients/client-ec2/src/commands/CreateFleetCommand.ts index 6fce8b58713f3..5e627dba53e87 100644 --- a/clients/client-ec2/src/commands/CreateFleetCommand.ts +++ b/clients/client-ec2/src/commands/CreateFleetCommand.ts @@ -60,7 +60,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB * OnDemandOptions: { // OnDemandOptionsRequest * AllocationStrategy: "lowest-price" || "prioritized", * CapacityReservationOptions: { // CapacityReservationOptionsRequest - * UsageStrategy: "use-capacity-reservations-first" || "use-capacity-reservations-only" || "none", + * UsageStrategy: "use-capacity-reservations-first", * }, * SingleInstanceType: true || false, * SingleAvailabilityZone: true || false, diff --git a/clients/client-ec2/src/commands/DescribeFleetsCommand.ts b/clients/client-ec2/src/commands/DescribeFleetsCommand.ts index 0251eab9a682a..e571f9138f6a2 100644 --- a/clients/client-ec2/src/commands/DescribeFleetsCommand.ts +++ b/clients/client-ec2/src/commands/DescribeFleetsCommand.ts @@ -193,7 +193,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met * // OnDemandOptions: { // OnDemandOptions * // AllocationStrategy: "lowest-price" || "prioritized", * // CapacityReservationOptions: { // CapacityReservationOptions - * // UsageStrategy: "use-capacity-reservations-first" || "use-capacity-reservations-only" || "none", + * // UsageStrategy: "use-capacity-reservations-first", * // }, * // SingleInstanceType: true || false, * // SingleAvailabilityZone: true || false, diff --git a/clients/client-ec2/src/models/models_1.ts b/clients/client-ec2/src/models/models_1.ts index 782d74f8ceff0..fac0356a62204 100644 --- a/clients/client-ec2/src/models/models_1.ts +++ b/clients/client-ec2/src/models/models_1.ts @@ -4045,9 +4045,7 @@ export type FleetOnDemandAllocationStrategy = * @enum */ export const FleetCapacityReservationUsageStrategy = { - NONE: "none", USE_CAPACITY_RESERVATIONS_FIRST: "use-capacity-reservations-first", - USE_CAPACITY_RESERVATIONS_ONLY: "use-capacity-reservations-only", } as const; /** diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index dc9c4de6089bf..df9bd051a2e94 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -50631,18 +50631,6 @@ "traits": { "smithy.api#enumValue": "use-capacity-reservations-first" } - }, - "USE_CAPACITY_RESERVATIONS_ONLY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "use-capacity-reservations-only" - } - }, - "NONE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "none" - } } } },