Instance Event
Lists the information available for each running instance.
Syntax
[VB.NET] Public Event OnInstance As OnInstanceHandler
[C#] public event OnInstanceHandler OnInstance; public delegate void OnInstanceHandler(object sender, Ec2InstanceEventArgs e); class Ec2InstanceEventArgs : EventArgs { string ReservationId {get;} string OwnerId {get;} string AmiLaunchIndex {get;} string InstanceId {get;} string PublicDnsName {get;} string ImageId {get;} int StateCode {get;} string StateName {get;} string InstanceType {get;} string KeyName {get;} string LaunchTime {get;} string Placement {get;} string PrivateDnsName {get;} string Reason {get;} string KernelId {get;} string ProductCodes {get;} string RamDiskId {get;} string GroupSet {get;} }
Remarks
This event is fired by calling the method ListInstances.
State codes:
0 | Pending |
16 | Running |
32 | Shutting Down |
48 | Terminated |