class Aws::EC2::Instance

Public Instance Methods

running?() click to toggle source
# File lib/aws-sdk/enhanced/ec2.rb, line 7
def running?
  state.name == 'running'
rescue Aws::EC2::Errors::InvalidInstanceIDNotFound
  false
end