Class: AWSCDK::Scheduler::CfnScheduleGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
scheduler/cfn_schedule_group_props.rb

Overview

Properties for defining a CfnScheduleGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, tags: nil) ⇒ CfnScheduleGroupProps

Returns a new instance of CfnScheduleGroupProps.

Parameters:

  • name (String, nil) (defaults to: nil)

    The name of the schedule group.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



11
12
13
14
15
16
# File 'scheduler/cfn_schedule_group_props.rb', line 11

def initialize(name: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the schedule group.



22
23
24
# File 'scheduler/cfn_schedule_group_props.rb', line 22

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key-value pairs to apply to this resource.

For more information, see Tag .



29
30
31
# File 'scheduler/cfn_schedule_group_props.rb', line 29

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'scheduler/cfn_schedule_group_props.rb', line 31

def self.jsii_properties
  {
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'scheduler/cfn_schedule_group_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end