module Serverkit::Aws::ClientOptionsGeneratable

Private Instance Methods

client_options() click to toggle source

@return [Hash{Symbol => Object}]

# File lib/serverkit/aws/client_options_generatable.rb, line 7
def client_options
  options = { region: aws_region }
  if aws_access_key_id || aws_secret_access_key
    options[:credentials] = ::Aws::Credentials.new(aws_access_key_id, aws_secret_access_key)
  end
  options
end