lib/fluent/plugin/out_grassland.rb in fluent-plugin-grassland-0.1.2 vs lib/fluent/plugin/out_grassland.rb in fluent-plugin-grassland-0.2.0

- old
+ new

@@ -6,11 +6,12 @@ attr_accessor :kinesis attr_accessor :id, :stream_name, :access_key_id, :secret_access_key, :region, :sessionToken, :partitionKeys def initialize super - require 'aws-sdk-v1' + # require 'aws-sdk-v1' + require 'aws-sdk' require 'base64' require 'json' require 'logger' require 'net/http' require 'uri' @@ -185,10 +186,10 @@ :log_level => :debug, #http_wire_trace => true ) end - @kinesis = AWS::Kinesis.new(options) + @kinesis = AWS::Kinesis::Client.new(options) # AWS.config(options) end end end