Skip to content

Commit

Permalink
feat(client-ec2): Remove non-functional enum variants for FleetCapaci…
Browse files Browse the repository at this point in the history
…tyReservationUsageStrategy
  • Loading branch information
awstools committed Nov 15, 2024
1 parent 1b3160a commit b25f0b0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/CreateFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/DescribeFleetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
12 changes: 0 additions & 12 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
},
Expand Down

0 comments on commit b25f0b0

Please sign in to comment.