Class: AwsSqsMoniter::Aws::Arns
- Inherits:
-
Object
- Object
- AwsSqsMoniter::Aws::Arns
- Defined in:
- lib/aws_sqs_moniter/aws/arns.rb
Instance Method Summary collapse
Instance Method Details
#sns_arn ⇒ Object
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.aws_account_id}" else "arn:aws:sns:#{AwsSqsMoniter.configuration.aws_region}:#{AwsSqsMoniter.configuration.aws_account_id}" 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_arn ⇒ Object
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.aws_account_id}" else "arn:aws:sqs:#{AwsSqsMoniter.configuration.aws_region}:#{AwsSqsMoniter.configuration.aws_account_id}" 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 |