Module: Awspec::Helper::Finder::AutoScaling

Included in:
Awspec::Helper::Finder
Defined in:
lib/awspec/helper/finder/auto_scaling.rb

Instance Method Summary collapse

Instance Method Details

#find_auto_scaling_group(id) ⇒ Object



4
5
6
7
8
9
# File 'lib/awspec/helper/finder/auto_scaling.rb', line 4

def find_auto_scaling_group(id)
  res = @auto_scaling_client.describe_auto_scaling_groups({
                                                            auto_scaling_group_names: [id]
                                                          })
  res[:auto_scaling_groups].first if res[:auto_scaling_groups].count == 1
end