class Fog::AWS::AutoScaling::Instance
Public Class Methods
new(attributes={})
click to toggle source
Calls superclass method
Fog::Model::new
# File lib/fog/aws/models/auto_scaling/instance.rb, line 15 def initialize(attributes={}) super end
Public Instance Methods
configuration()
click to toggle source
# File lib/fog/aws/models/auto_scaling/instance.rb, line 23 def configuration service.configurations.get(attributes['LaunchConfigurationName']) end
group()
click to toggle source
# File lib/fog/aws/models/auto_scaling/instance.rb, line 19 def group service.groups.get(attributes['AutoScalingGroupName']) end
healthy?()
click to toggle source
# File lib/fog/aws/models/auto_scaling/instance.rb, line 39 def healthy? health_status == 'HEALTHY' end
ready?()
click to toggle source
# File lib/fog/aws/models/auto_scaling/instance.rb, line 43 def ready? life_cycle_state == 'InService' end
reload()
click to toggle source
Calls superclass method
Fog::Model#reload
# File lib/fog/aws/models/auto_scaling/instance.rb, line 47 def reload super self end
set_health(health_status, options)
click to toggle source
# File lib/fog/aws/models/auto_scaling/instance.rb, line 27 def set_health(health_status, options) requires :id service.set_instance_health(health_status, id, options) reload end
terminate(should_decrement_desired_capacity)
click to toggle source
# File lib/fog/aws/models/auto_scaling/instance.rb, line 33 def terminate(should_decrement_desired_capacity) requires :id service.terminate_instance_in_auto_scaling_group(id, should_decrement_desired_capacity) reload end