Home Reference Source Repository
import EC2 from 'node-jungle/src/ec2.js'
public class | source

EC2

Extends:

Service → EC2

EC2

Method Summary

Public Methods
public

getInstances(name: string, stateName: string, rawFilters: Object): Promise

Return Instance list

public

parseFilterOptions(name: string, stateName: string, rawFilters: Object): Object[]

Parse filter options

public

startInstances(instanceIds: string[], dryRun: boolean): Promise

Start instance

public

stopInstances(instanceIds: string[], dryRun: boolean): Promise

Stop instance

Public Methods

public getInstances(name: string, stateName: string, rawFilters: Object): Promise source

Return Instance list

Params:

NameTypeAttributeDescription
name string
  • optional

name for filter

stateName string
  • optional

state for filter

rawFilters Object
  • optional

filter

Return:

Promise

public parseFilterOptions(name: string, stateName: string, rawFilters: Object): Object[] source

Parse filter options

Params:

NameTypeAttributeDescription
name string

name for filter

stateName string

state for filter

rawFilters Object

filter

Return:

Object[]

public startInstances(instanceIds: string[], dryRun: boolean): Promise source

Start instance

Params:

NameTypeAttributeDescription
instanceIds string[]

instance id list

dryRun boolean
  • optional

flag for dryRun

Return:

Promise

public stopInstances(instanceIds: string[], dryRun: boolean): Promise source

Stop instance

Params:

NameTypeAttributeDescription
instanceIds string[]

instance id list

dryRun boolean
  • optional

flag for dryRun

Return:

Promise