Method: NewRelic::Agent::Aws.create_arn
- Defined in:
- lib/new_relic/agent/aws.rb
.create_arn(service, resource, region, account_id) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/new_relic/agent/aws.rb', line 11 def self.create_arn(service, resource, region, account_id) # if any of the values are nil, we can't create an ARN return unless service && resource && region && account_id "arn:aws:#{service}:#{region}:#{account_id}:#{resource}" rescue => e NewRelic::Agent.logger.warn("Failed to create ARN: #{e}") end |