Sha256: f8a73bd35b05b64cb6cc59e34271d4ee81d13d95962cd2306681d1b6d70f5fe9
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'configatron' class AwsSms module Config def self.set_credentials(aws_default_region:, aws_access_key_id: , aws_secret_access_key:) configatron.aws_default_region = aws_default_region configatron.aws_access_key_id = aws_access_key_id configatron.aws_secret_access_key = aws_secret_access_key end def self.set_sms_attributes(attributes) configatron.sms_attributes = attributes end def self.access_key ENV['AWS_ACCESS_KEY_ID'] || configatron.aws_access_key_id end def self.region ENV['AWS_DEFAULT_REGION'] || configatron.aws_default_region end def self.secret_key ENV['AWS_SECRET_ACCESS_KEY'] || configatron.aws_secret_access_key end def self.sms_attributes unless configatron.has_key?(:sms_attributes) configatron.sms_attributes = { "DefaultSMSType" => 'Transactional' } end configatron.sms_attributes end def self.sms_type configatron.default_sms_type end def self.default_sender_id configatron.default_sender_id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws_sms-0.3.1 | lib/aws_sms/config.rb |