Class: Jets::Cfn::TemplateMappers::EventsRuleMapper
- Inherits:
-
Object
- Object
- Jets::Cfn::TemplateMappers::EventsRuleMapper
- Defined in:
- lib/jets/cfn/template_mappers/events_rule_mapper.rb
Instance Method Summary collapse
-
#initialize(task) ⇒ EventsRuleMapper
constructor
task is a Jets::Job::Task.
-
#lambda_function_logical_id ⇒ Object
Example: “HardJobDigLambdaFunction”.
-
#logical_id ⇒ Object
Example: “HardJobDigScheduledEvent”.
-
#permission_logical_id ⇒ Object
Example: HardJobDigEventsRulePermission.
-
#rule_target_id ⇒ Object
Target Id: A unique, user-defined identifier for the target.
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_id ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
Example: HardJobDigEventsRulePermission
26 27 28 |
# File 'lib/jets/cfn/template_mappers/events_rule_mapper.rb', line 26 def "#{full_task_name}EventsRulePermission" end |
#rule_target_id ⇒ Object
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 |