Class: AWSCDK::Interfaces::AWSScheduler::ScheduleReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSScheduler::ScheduleReference
- Defined in:
- interfaces/aws_scheduler/schedule_reference.rb
Overview
A reference to a Schedule resource.
Instance Attribute Summary collapse
-
#schedule_arn ⇒ String
readonly
The ARN of the Schedule resource.
-
#schedule_name ⇒ String
readonly
The Name of the Schedule resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schedule_arn:, schedule_name:) ⇒ ScheduleReference
constructor
A new instance of ScheduleReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(schedule_arn:, schedule_name:) ⇒ ScheduleReference
Returns a new instance of ScheduleReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_scheduler/schedule_reference.rb', line 9 def initialize(schedule_arn:, schedule_name:) @schedule_arn = schedule_arn Jsii::Type.check_type(@schedule_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scheduleArn") @schedule_name = schedule_name Jsii::Type.check_type(@schedule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scheduleName") end |
Instance Attribute Details
#schedule_arn ⇒ String (readonly)
The ARN of the Schedule resource.
19 20 21 |
# File 'interfaces/aws_scheduler/schedule_reference.rb', line 19 def schedule_arn @schedule_arn end |
#schedule_name ⇒ String (readonly)
The Name of the Schedule resource.
23 24 25 |
# File 'interfaces/aws_scheduler/schedule_reference.rb', line 23 def schedule_name @schedule_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_scheduler/schedule_reference.rb', line 25 def self.jsii_properties { :schedule_arn => "scheduleArn", :schedule_name => "scheduleName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_scheduler/schedule_reference.rb', line 32 def to_jsii result = {} result.merge!({ "scheduleArn" => @schedule_arn, "scheduleName" => @schedule_name, }) result.compact end |