Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ecs): mark TaskDefinition inferenceAccelerators as deprecated #33248

Merged
merged 6 commits into from
Feb 3, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export interface TaskDefinitionProps extends CommonTaskDefinitionProps {
* Not supported in Fargate.
*
* @default - No inference accelerators.
* @deprecated ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
*/
readonly inferenceAccelerators?: InferenceAccelerator[];

Expand Down Expand Up @@ -721,6 +722,7 @@ export class TaskDefinition extends TaskDefinitionBase {

/**
* Adds an inference accelerator to the task definition.
* @deprecated ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
*/
public addInferenceAccelerator(inferenceAccelerator: InferenceAccelerator) {
if (isFargateCompatible(this.compatibility)) {
Expand Down