lib/aws_sms.rb in aws_sms-0.2.1 vs lib/aws_sms.rb in aws_sms-0.2.2

- old
+ new

@@ -27,9 +27,16 @@ private attr_reader :region, :access_key_id, :secret_key, :default_sender_id, :default_sms_type def client + ::Aws.config.update({ + region: region, + credentials: Aws::Credentials.new( + access_key_id, secret_key + ) + }) + sns = ::Aws::SNS::Client.new() sns.set_sms_attributes({ attributes: { "DefaultSMSType" => default_sms_type, "DefaultSenderID" => default_sender_id