Class: Jets::Cfn::TemplateMappers::EventsRuleMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/cfn/template_mappers/events_rule_mapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(task) ⇒ EventsRuleMapper

task is a Jets::Job::Task



4
5
6
# File 'lib/jets/cfn/template_mappers/events_rule_mapper.rb', line 4

def initialize(task)
  @task = task
end

Instance Method Details

#lambda_function_logical_idObject

Example: “HardJobDigLambdaFunction”



14
15
16
# File 'lib/jets/cfn/template_mappers/events_rule_mapper.rb', line 14

def lambda_function_logical_id
  "#{full_task_name}LambdaFunction"
end

#logical_idObject

Example: “HardJobDigScheduledEvent”



9
10
11
# File 'lib/jets/cfn/template_mappers/events_rule_mapper.rb', line 9

def logical_id
  "#{full_task_name}ScheduledEvent"
end

#permission_logical_idObject

Example: HardJobDigEventsRulePermission



26
27
28
# File 'lib/jets/cfn/template_mappers/events_rule_mapper.rb', line 26

def permission_logical_id
  "#{full_task_name}EventsRulePermission"
end

#rule_target_idObject

Target Id: A unique, user-defined identifier for the target. Acceptable values include alphanumeric characters, periods (.), hyphens (-), and underscores (_).

Example: RuleTargetHardJobDig



21
22
23
# File 'lib/jets/cfn/template_mappers/events_rule_mapper.rb', line 21

def rule_target_id
  "#{full_task_name}RuleTarget"
end