diff --git a/packages/aws-cdk-lib/aws-ecs/README.md b/packages/aws-cdk-lib/aws-ecs/README.md index cee6d7cd0da3c..9ea2e52cd0959 100644 --- a/packages/aws-cdk-lib/aws-ecs/README.md +++ b/packages/aws-cdk-lib/aws-ecs/README.md @@ -189,7 +189,7 @@ cluster.addAsgCapacityProvider(capacityProvider); The following code retrieve the Amazon Resource Names (ARNs) of tasks that are a part of a specified ECS cluster. It's useful when you want to grant permissions to a task to access other AWS resources. -```typescript +```ts declare cluster: Cluster; declare taskDefinition: TaskDefinition; const taskARNs = cluster.arnForTasks('*'); // arn:aws:ecs:::task//* @@ -203,7 +203,6 @@ taskDefinition.addToTaskRolePolicy( ) ``` - ### Bottlerocket [Bottlerocket](https://aws.amazon.com/bottlerocket/) is a Linux-based open source operating system that is