Class: Aws::EC2::Instance

Inherits:
Object
  • Object
show all
Includes:
Aws::Enhanced::TagHashable
Defined in:
lib/aws-sdk/enhanced/ec2.rb

Instance Method Summary collapse

Methods included from Aws::Enhanced::TagHashable

#tag_hash

Instance Method Details

#running?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/aws-sdk/enhanced/ec2.rb', line 7

def running?
  state.name == 'running'
rescue Aws::EC2::Errors::InvalidInstanceIDNotFound
  false
end