Class: AWSCDK::RoboMaker::CfnRobotProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RoboMaker::CfnRobotProps
- Defined in:
- robo_maker/cfn_robot_props.rb
Overview
Properties for defining a CfnRobot.
Instance Attribute Summary collapse
-
#architecture ⇒ String
readonly
The architecture of the robot.
-
#fleet ⇒ String, ...
readonly
The Amazon Resource Name (ARN) of the fleet to which the robot will be registered.
-
#greengrass_group_id ⇒ String
readonly
The Greengrass group associated with the robot.
-
#name ⇒ String?
readonly
The name of the robot.
-
#tags ⇒ Hash{String => String}?
readonly
A map that contains tag keys and tag values that are attached to the robot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(architecture:, greengrass_group_id:, fleet: nil, name: nil, tags: nil) ⇒ CfnRobotProps
constructor
A new instance of CfnRobotProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(architecture:, greengrass_group_id:, fleet: nil, name: nil, tags: nil) ⇒ CfnRobotProps
Returns a new instance of CfnRobotProps.
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 = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#architecture ⇒ String (readonly)
The architecture of the robot.
31 32 33 |
# File 'robo_maker/cfn_robot_props.rb', line 31 def architecture @architecture end |
#fleet ⇒ String, ... (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_id ⇒ String (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 |
#name ⇒ String? (readonly)
The name of the robot.
46 47 48 |
# File 'robo_maker/cfn_robot_props.rb', line 46 def name @name end |
#tags ⇒ Hash{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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |