lib/fluent/plugin/in_cloudwatch_logs.rb in fluent-plugin-cloudwatch-logs-0.0.3 vs lib/fluent/plugin/in_cloudwatch_logs.rb in fluent-plugin-cloudwatch-logs-0.0.4
- old
+ new
@@ -19,10 +19,10 @@
def start
options = {}
options[:credentials] = Aws::Credentials.new(@aws_key_id, @aws_sec_key) if @aws_key_id && @aws_sec_key
options[:region] = @region if @region
- @logs = Aws::CloudWatchLogs.new(options)
+ @logs = Aws::CloudWatchLogs::Client.new(options)
@finished = false
@thread = Thread.new(&method(:run))
end