bin/check-sqs-messages.rb in sensu-plugins-aws-0.0.2 vs bin/check-sqs-messages.rb in sensu-plugins-aws-0.0.3

- old
+ new

@@ -26,26 +26,24 @@ # Released under the same terms as Sensu (the MIT license); see LICENSE # for details. # require 'sensu-plugin/check/cli' -require 'aws-sdk' +require 'aws-sdk-v1' # # Check SQS Messages # class SQSMsgs < Sensu::Plugin::Check::CLI option :aws_access_key, short: '-a AWS_ACCESS_KEY', long: '--aws-access-key AWS_ACCESS_KEY', - description: "AWS Access Key. Either set ENV['AWS_ACCESS_KEY_ID'] or provide it as an option", - required: true + description: "AWS Access Key. Either set ENV['AWS_ACCESS_KEY_ID'] or provide it as an option" option :aws_secret_access_key, short: '-s AWS_SECRET_ACCESS_KEY', long: '--aws-secret-access-key AWS_SECRET_ACCESS_KEY', - description: "AWS Secret Access Key. Either set ENV['AWS_SECRET_ACCESS_KEY'] or provide it as an option", - required: true + description: "AWS Secret Access Key. Either set ENV['AWS_SECRET_ACCESS_KEY'] or provide it as an option" option :aws_region, description: 'AWS Region (such as us-east-1)', short: '-r AWS_REGION', long: '--aws-region AWS_REGION',