Class: AwsSqsMoniter::Aws::Arns

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_sqs_moniter/aws/arns.rb

Instance Method Summary collapse

Instance Method Details

#sns_arnObject



4
5
6
7
8
9
10
# File 'lib/aws_sqs_moniter/aws/arns.rb', line 4

def sns_arn
  if AwsSqsMoniter.configuration.sns_protocol == 'cqs'
    "arn:cmb:cns:ccp:#{AwsSqsMoniter.configuration.}"
  else
    "arn:aws:sns:#{AwsSqsMoniter.configuration.aws_region}:#{AwsSqsMoniter.configuration.}"
  end
end

#sns_topic_arn(topic) ⇒ Object



12
13
14
# File 'lib/aws_sqs_moniter/aws/arns.rb', line 12

def sns_topic_arn topic
  "#{sns_arn}:#{topic}"
end

#sqs_arnObject



16
17
18
19
20
21
22
# File 'lib/aws_sqs_moniter/aws/arns.rb', line 16

def sqs_arn
  if AwsSqsMoniter.configuration.sqs_protocol == 'cqs'
    "arn:cmb:cqs:ccp:#{AwsSqsMoniter.configuration.}"
  else
    "arn:aws:sqs:#{AwsSqsMoniter.configuration.aws_region}:#{AwsSqsMoniter.configuration.}"
  end
end

#sqs_queue_arn(queue) ⇒ Object



24
25
26
# File 'lib/aws_sqs_moniter/aws/arns.rb', line 24

def sqs_queue_arn queue
  "#{sqs_arn}:#{queue}"
end