Class: AWSCDK::Scheduler::ScheduleGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Scheduler::ScheduleGroupProps
- Defined in:
- scheduler/schedule_group_props.rb
Overview
Properties for a Schedule Group.
Instance Attribute Summary collapse
-
#removal_policy ⇒ AWSCDK::RemovalPolicy?
readonly
The removal policy for the group.
-
#schedule_group_name ⇒ String?
readonly
The name of the schedule group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(removal_policy: nil, schedule_group_name: nil) ⇒ ScheduleGroupProps
constructor
A new instance of ScheduleGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(removal_policy: nil, schedule_group_name: nil) ⇒ ScheduleGroupProps
Returns a new instance of ScheduleGroupProps.
9 10 11 12 13 14 |
# File 'scheduler/schedule_group_props.rb', line 9 def initialize(removal_policy: nil, schedule_group_name: nil) @removal_policy = removal_policy Jsii::Type.check_type(@removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") unless @removal_policy.nil? @schedule_group_name = schedule_group_name Jsii::Type.check_type(@schedule_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scheduleGroupName") unless @schedule_group_name.nil? end |
Instance Attribute Details
#removal_policy ⇒ AWSCDK::RemovalPolicy? (readonly)
Note:
Default: RemovalPolicy.RETAIN
The removal policy for the group.
If the group is removed also all schedules are removed.
22 23 24 |
# File 'scheduler/schedule_group_props.rb', line 22 def removal_policy @removal_policy end |
#schedule_group_name ⇒ String? (readonly)
Note:
Default: - A unique name will be generated
The name of the schedule group.
Up to 64 letters (uppercase and lowercase), numbers, hyphens, underscores and dots are allowed.
29 30 31 |
# File 'scheduler/schedule_group_props.rb', line 29 def schedule_group_name @schedule_group_name end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'scheduler/schedule_group_props.rb', line 31 def self.jsii_properties { :removal_policy => "removalPolicy", :schedule_group_name => "scheduleGroupName", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'scheduler/schedule_group_props.rb', line 38 def to_jsii result = {} result.merge!({ "removalPolicy" => @removal_policy, "scheduleGroupName" => @schedule_group_name, }) result.compact end |