Class: AWSCDK::Scheduler::ScheduleTargetInput
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Scheduler::ScheduleTargetInput
- Defined in:
- scheduler/schedule_target_input.rb
Overview
The text or well-formed JSON input passed to the target of the schedule.
Tokens and ContextAttribute may be used in the input.
Class Method Summary collapse
-
.from_object(obj) ⇒ AWSCDK::Scheduler::ScheduleTargetInput
Pass a JSON object to the target.
-
.from_text(text) ⇒ AWSCDK::Scheduler::ScheduleTargetInput
Pass simple text to the target.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#bind(schedule) ⇒ String
Return the input properties for this input object.
-
#initialize ⇒ ScheduleTargetInput
constructor
A new instance of ScheduleTargetInput.
Constructor Details
#initialize ⇒ ScheduleTargetInput
Returns a new instance of ScheduleTargetInput.
10 11 12 |
# File 'scheduler/schedule_target_input.rb', line 10 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.from_object(obj) ⇒ AWSCDK::Scheduler::ScheduleTargetInput
Pass a JSON object to the target.
The object will be transformed into a well-formed JSON string in the final template.
26 27 28 29 |
# File 'scheduler/schedule_target_input.rb', line 26 def self.from_object(obj) Jsii::Type.check_type(obj, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "obj") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_scheduler.ScheduleTargetInput", "fromObject", [obj]) end |
.from_text(text) ⇒ AWSCDK::Scheduler::ScheduleTargetInput
Pass simple text to the target.
For passing complex values like JSON object to a target use method
ScheduleTargetInput.fromObject() instead.
38 39 40 41 |
# File 'scheduler/schedule_target_input.rb', line 38 def self.from_text(text) Jsii::Type.check_type(text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_scheduler.ScheduleTargetInput", "fromText", [text]) end |
.jsii_overridable_methods ⇒ Object
14 15 16 17 18 |
# File 'scheduler/schedule_target_input.rb', line 14 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(schedule) ⇒ String
Return the input properties for this input object.
47 48 49 50 |
# File 'scheduler/schedule_target_input.rb', line 47 def bind(schedule) Jsii::Type.check_type(schedule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyLklTY2hlZHVsZSJ9")), "schedule") jsii_call_method("bind", [schedule]) end |