Instance Event
Lists the information available for each running instance.
Syntax
ec2.on('Instance', [callback])
Callback
The 'callback' is called when the 'Instance' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.reservationId e.ownerId e.amiLaunchIndex e.instanceId e.publicDnsName e.imageId e.stateCode e.stateName e.instanceType e.keyName e.launchTime e.placement e.privateDnsName e.reason e.kernelId e.productCodes e.ramDiskId e.groupSet
Remarks
This event is fired by calling the method ListInstances.
State codes:
0 | Pending |
16 | Running |
32 | Shutting Down |
48 | Terminated |