Method: AWS::AutoScaling::Instance#exists?

Defined in:
lib/aws/auto_scaling/instance.rb

#exists?Boolean

Returns true if there exists an Auto Scaling instance with this instance id.

Returns:

  • (Boolean)

    Returns true if there exists an Auto Scaling instance with this instance id.



147
148
149
# File 'lib/aws/auto_scaling/instance.rb', line 147

def exists?
  !get_resource.auto_scaling_instances.empty?
end