Module: Awspec::Helper::Finder::Autoscaling
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/autoscaling.rb
Instance Method Summary collapse
Instance Method Details
#find_autoscaling_group(id) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/awspec/helper/finder/autoscaling.rb', line 4 def find_autoscaling_group(id) res = autoscaling_client.describe_auto_scaling_groups({ auto_scaling_group_names: [id] }) res[:auto_scaling_groups].first if res[:auto_scaling_groups].count == 1 end |
#find_launch_configuration(id) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/awspec/helper/finder/autoscaling.rb', line 11 def find_launch_configuration(id) res = autoscaling_client.describe_launch_configurations({ launch_configuration_names: [id] }) res[:launch_configurations].first if res[:launch_configurations].count == 1 end |