Module: Awspec::Helper::Finder::Kinesis
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/kinesis.rb
Instance Method Summary collapse
Instance Method Details
#find_kinesis_by_stream_name(name) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/awspec/helper/finder/kinesis.rb', line 4 def find_kinesis_by_stream_name(name) kinesis_client.list_streams.stream_names.each do |stream| if stream == name return kinesis_client.describe_stream_summary({ stream_name: name }).stream_description_summary end end nil end |