Class: AWSCDK::RoboMaker::CfnRobotProps

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

Overview

Properties for defining a CfnRobot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(architecture:, greengrass_group_id:, fleet: nil, name: nil, tags: nil) ⇒ CfnRobotProps

Returns a new instance of CfnRobotProps.

Parameters:

  • architecture (String)

    The architecture of the robot.

  • greengrass_group_id (String)

    The Greengrass group associated with the robot.

  • fleet (String, AWSCDK::Interfaces::AWSRobomaker::IFleetRef, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the fleet to which the robot will be registered.

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

    The name of the robot.

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

    A map that contains tag keys and tag values that are attached to the robot.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'robo_maker/cfn_robot_props.rb', line 14

def initialize(architecture:, greengrass_group_id:, fleet: nil, name: nil, tags: nil)
  @architecture = architecture
  Jsii::Type.check_type(@architecture, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "architecture")
  @greengrass_group_id = greengrass_group_id
  Jsii::Type.check_type(@greengrass_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "greengrassGroupId")
  @fleet = fleet
  Jsii::Type.check_type(@fleet, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yb2JvbWFrZXIuSUZsZWV0UmVmIn1dfX0=")), "fleet") unless @fleet.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

#architectureString (readonly)

The architecture of the robot.



31
32
33
# File 'robo_maker/cfn_robot_props.rb', line 31

def architecture
  @architecture
end

#fleetString, ... (readonly)

The Amazon Resource Name (ARN) of the fleet to which the robot will be registered.



41
42
43
# File 'robo_maker/cfn_robot_props.rb', line 41

def fleet
  @fleet
end

#greengrass_group_idString (readonly)

The Greengrass group associated with the robot.



36
37
38
# File 'robo_maker/cfn_robot_props.rb', line 36

def greengrass_group_id
  @greengrass_group_id
end

#nameString? (readonly)

The name of the robot.



46
47
48
# File 'robo_maker/cfn_robot_props.rb', line 46

def name
  @name
end

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

A map that contains tag keys and tag values that are attached to the robot.



51
52
53
# File 'robo_maker/cfn_robot_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'robo_maker/cfn_robot_props.rb', line 53

def self.jsii_properties
  {
    :architecture => "architecture",
    :greengrass_group_id => "greengrassGroupId",
    :fleet => "fleet",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'robo_maker/cfn_robot_props.rb', line 63

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