Class: AWSCDK::SchedulerTargets::EventBridgePutEvents
- Inherits:
-
ScheduleTargetBase
- Object
- ScheduleTargetBase
- AWSCDK::SchedulerTargets::EventBridgePutEvents
- Includes:
- AWSCDK::Scheduler::IScheduleTarget
- Defined in:
- scheduler_targets/event_bridge_put_events.rb
Overview
Send an event to an AWS EventBridge by AWS EventBridge Scheduler.
Class Method Summary collapse
Instance Method Summary collapse
- #add_target_action_to_role(role) ⇒ void
-
#bind(schedule) ⇒ AWSCDK::Scheduler::ScheduleTargetConfig
Create a return a Schedule Target Configuration for the given schedule.
- #bind_base_target_config(_schedule) ⇒ AWSCDK::Scheduler::ScheduleTargetConfig
-
#initialize(entry, props = nil) ⇒ EventBridgePutEvents
constructor
A new instance of EventBridgePutEvents.
- #target_arn ⇒ String
Constructor Details
#initialize(entry, props = nil) ⇒ EventBridgePutEvents
Returns a new instance of EventBridgePutEvents.
11 12 13 14 15 16 17 |
# File 'scheduler_targets/event_bridge_put_events.rb', line 11 def initialize(entry, props = nil) entry = entry.is_a?(Hash) ? ::AWSCDK::SchedulerTargets::EventBridgePutEventsEntry.new(**entry.transform_keys(&:to_sym)) : entry props = props.is_a?(Hash) ? ::AWSCDK::SchedulerTargets::ScheduleTargetBaseProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(entry, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyX3RhcmdldHMuRXZlbnRCcmlkZ2VQdXRFdmVudHNFbnRyeSJ9")), "entry") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyX3RhcmdldHMuU2NoZWR1bGVUYXJnZXRCYXNlUHJvcHMifQ==")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(entry, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'scheduler_targets/event_bridge_put_events.rb', line 19 def self.jsii_overridable_methods { :target_arn => { kind: :property, name: "targetArn", is_optional: false }, :add_target_action_to_role => { kind: :method, name: "addTargetActionToRole", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, :bind_base_target_config => { kind: :method, name: "bindBaseTargetConfig", is_optional: false }, } end |
Instance Method Details
#add_target_action_to_role(role) ⇒ void
This method returns an undefined value.
35 36 37 38 |
# File 'scheduler_targets/event_bridge_put_events.rb', line 35 def add_target_action_to_role(role) Jsii::Type.check_type(role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") jsii_call_method("addTargetActionToRole", [role]) end |
#bind(schedule) ⇒ AWSCDK::Scheduler::ScheduleTargetConfig
Create a return a Schedule Target Configuration for the given schedule.
44 45 46 47 |
# File 'scheduler_targets/event_bridge_put_events.rb', line 44 def bind(schedule) Jsii::Type.check_type(schedule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyLklTY2hlZHVsZSJ9")), "schedule") jsii_call_method("bind", [schedule]) end |
#bind_base_target_config(_schedule) ⇒ AWSCDK::Scheduler::ScheduleTargetConfig
51 52 53 54 |
# File 'scheduler_targets/event_bridge_put_events.rb', line 51 def bind_base_target_config(_schedule) Jsii::Type.check_type(_schedule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyLklTY2hlZHVsZSJ9")), "_schedule") jsii_call_method("bindBaseTargetConfig", [_schedule]) end |
#target_arn ⇒ String
29 30 31 |
# File 'scheduler_targets/event_bridge_put_events.rb', line 29 def target_arn() jsii_get_property("targetArn") end |