44 */
55import { Ec2InstanceNode } from './explorer/ec2InstanceNode'
66import { Ec2Node } from './explorer/ec2ParentNode'
7- import { SafeEc2Instance , Ec2Client } from '../../shared/clients/ec2Client '
7+ import { SafeEc2Instance , Ec2Wrapper } from '../../shared/clients/ec2Wrapper '
88import { copyToClipboard } from '../../shared/utilities/messages'
99import { ec2LogSchema } from './ec2LogDocumentProvider'
1010import { getAwsConsoleUrl } from '../../shared/awsConsole'
@@ -29,20 +29,20 @@ export async function openRemoteConnection(connectionManagers: Ec2ConnecterMap,
2929export async function startInstance ( node ?: Ec2Node ) {
3030 const prompterFilter = ( instance : SafeEc2Instance ) => instance . LastSeenStatus !== 'running'
3131 const selection = await getSelection ( node , prompterFilter )
32- const client = new Ec2Client ( selection . region )
32+ const client = new Ec2Wrapper ( selection . region )
3333 await client . startInstanceWithCancel ( selection . instanceId )
3434}
3535
3636export async function stopInstance ( node ?: Ec2Node ) {
3737 const prompterFilter = ( instance : SafeEc2Instance ) => instance . LastSeenStatus !== 'stopped'
3838 const selection = await getSelection ( node , prompterFilter )
39- const client = new Ec2Client ( selection . region )
39+ const client = new Ec2Wrapper ( selection . region )
4040 await client . stopInstanceWithCancel ( selection . instanceId )
4141}
4242
4343export async function rebootInstance ( node ?: Ec2Node ) {
4444 const selection = await getSelection ( node )
45- const client = new Ec2Client ( selection . region )
45+ const client = new Ec2Wrapper ( selection . region )
4646 await client . rebootInstanceWithCancel ( selection . instanceId )
4747}
4848
0 commit comments