Class: AWSCDK::RoboMaker::CfnFleetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
robo_maker/cfn_fleet_props.rb

Overview

Properties for defining a CfnFleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CfnFleetProps.

Parameters:

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

    The name of the fleet.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    The list of all tags added to the fleet.



11
12
13
14
15
16
# File 'robo_maker/cfn_fleet_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
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the fleet.



22
23
24
# File 'robo_maker/cfn_fleet_props.rb', line 22

def name
  @name
end

#tagsHash{String => String}? (readonly)

The list of all tags added to the fleet.



27
28
29
# File 'robo_maker/cfn_fleet_props.rb', line 27

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'robo_maker/cfn_fleet_props.rb', line 29

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

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'robo_maker/cfn_fleet_props.rb', line 36

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