Class: AWSCDK::SchedulerTargets::ScheduleTargetBase
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::SchedulerTargets::ScheduleTargetBase
- Defined in:
- scheduler_targets/schedule_target_base.rb
Overview
Base class for Schedule Targets.
Direct Known Subclasses
CodeBuildStartBuild, CodePipelineStartPipelineExecution, ECSRunTask, EventBridgePutEvents, FirehosePutRecord, InspectorStartAssessmentRun, KinesisStreamPutRecord, LambdaInvoke, SNSPublish, SQSSendMessage, SageMakerStartPipelineExecution, StepFunctionsStartExecution, Universal
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(base_props, target_arn) ⇒ ScheduleTargetBase
constructor
A new instance of ScheduleTargetBase.
- #target_arn ⇒ String
Constructor Details
#initialize(base_props, target_arn) ⇒ ScheduleTargetBase
Returns a new instance of ScheduleTargetBase.
10 11 12 13 14 15 |
# File 'scheduler_targets/schedule_target_base.rb', line 10 def initialize(base_props, target_arn) base_props = base_props.is_a?(Hash) ? ::AWSCDK::SchedulerTargets::ScheduleTargetBaseProps.new(**base_props.transform_keys(&:to_sym)) : base_props Jsii::Type.check_type(base_props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyX3RhcmdldHMuU2NoZWR1bGVUYXJnZXRCYXNlUHJvcHMifQ==")), "baseProps") Jsii::Type.check_type(target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetArn") Jsii::Object.instance_method(:initialize).bind(self).call(base_props, target_arn) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'scheduler_targets/schedule_target_base.rb', line 17 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.
33 34 35 36 |
# File 'scheduler_targets/schedule_target_base.rb', line 33 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.
42 43 44 45 |
# File 'scheduler_targets/schedule_target_base.rb', line 42 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
49 50 51 52 |
# File 'scheduler_targets/schedule_target_base.rb', line 49 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
27 28 29 |
# File 'scheduler_targets/schedule_target_base.rb', line 27 def target_arn() jsii_get_property("targetArn") end |