Completed
Pull Request — master (#372)
by
unknown
03:48
created

Firehose.find_delivery_stream()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
1
module Awspec::Helper
2
  module Finder
3
    module Firehose
4
      def find_delivery_stream(name)
5
        puts "name: #{name}"
6
        res = firehose_client.describe_delivery_stream({
7
                                                         delivery_stream_name: name,
8
                                                         limit: 1
9
                                                       })
10
        res.delivery_stream_description
11
      end
12
    end
13
  end
14
end