@@ -7,15 +7,15 @@ import * as nls from 'vscode-nls'
77const localize = nls . loadMessageBundle ( )
88
99import * as vscode from 'vscode'
10- import { ECS } from 'aws-sdk'
10+ import { Cluster as SdkCluster , ContainerDefinition , Service as SdkService , Task } from '@ aws-sdk/client-ecs '
1111import { DefaultEcsClient } from '../../shared/clients/ecsClient'
1212import { ResourceTreeNode } from '../../shared/treeview/resource'
1313import { getIcon } from '../../shared/icons'
1414import { AsyncCollection } from '../../shared/utilities/asyncCollection'
1515import { prepareCommand } from './util'
1616
1717function createValidTaskFilter ( containerName : string ) {
18- return function ( t : ECS . Task ) : t is ECS . Task & { taskArn : string } {
18+ return function ( t : Task ) : t is Task & { taskArn : string } {
1919 const managed = ! ! t . containers ?. find (
2020 ( c ) => c ?. name === containerName && c . managedAgents ?. find ( ( a ) => a . name === 'ExecuteCommandAgent' )
2121 )
@@ -24,7 +24,7 @@ function createValidTaskFilter(containerName: string) {
2424 }
2525}
2626
27- interface ContainerDescription extends ECS . ContainerDefinition {
27+ interface ContainerDescription extends ContainerDefinition {
2828 readonly clusterArn : string
2929 readonly taskRoleArn : string
3030 readonly enableExecuteCommand ?: boolean
@@ -82,7 +82,7 @@ export class Service {
8282
8383 public constructor (
8484 private readonly client : DefaultEcsClient ,
85- public readonly description : ECS . Service
85+ public readonly description : SdkService
8686 ) { }
8787
8888 public async listContainers ( ) : Promise < Container [ ] > {
@@ -154,7 +154,7 @@ export class Cluster {
154154
155155 public constructor (
156156 private readonly client : DefaultEcsClient ,
157- private readonly cluster : ECS . Cluster
157+ private readonly cluster : SdkCluster
158158 ) { }
159159
160160 public listServices ( ) : AsyncCollection < Service [ ] > {
0 commit comments