Module: Awspec::Helper::Finder::Msk

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

Instance Method Summary collapse

Instance Method Details

#find_msk_cluster_by_name(cluster_name) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/awspec/helper/finder/msk.rb', line 6

def find_msk_cluster_by_name(cluster_name)
  res = msk_client.list_clusters(
    {
      cluster_name_filter: cluster_name,
      max_results: 1
    }
  )
  res.cluster_info_list[0]
end