Class: AWSCDK::RoboMaker::CfnRobotApplicationProps

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

Overview

Properties for defining a CfnRobotApplication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(robot_software_suite:, current_revision_id: nil, environment: nil, name: nil, sources: nil, tags: nil) ⇒ CfnRobotApplicationProps

Returns a new instance of CfnRobotApplicationProps.

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'robo_maker/cfn_robot_application_props.rb', line 15

def initialize(robot_software_suite:, current_revision_id: nil, environment: nil, name: nil, sources: nil, tags: nil)
  @robot_software_suite = robot_software_suite.is_a?(Hash) ? ::AWSCDK::RoboMaker::CfnRobotApplication::RobotSoftwareSuiteProperty.new(**robot_software_suite.transform_keys(&:to_sym)) : robot_software_suite
  Jsii::Type.check_type(@robot_software_suite, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb2JvbWFrZXIuQ2ZuUm9ib3RBcHBsaWNhdGlvbi5Sb2JvdFNvZnR3YXJlU3VpdGVQcm9wZXJ0eSJ9XX19")), "robotSoftwareSuite")
  @current_revision_id = current_revision_id
  Jsii::Type.check_type(@current_revision_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "currentRevisionId") unless @current_revision_id.nil?
  @environment = environment
  Jsii::Type.check_type(@environment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environment") unless @environment.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @sources = sources
  Jsii::Type.check_type(@sources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm9ib21ha2VyLkNmblJvYm90QXBwbGljYXRpb24uU291cmNlQ29uZmlnUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "sources") unless @sources.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#current_revision_idString? (readonly)

The current revision id.



39
40
41
# File 'robo_maker/cfn_robot_application_props.rb', line 39

def current_revision_id
  @current_revision_id
end

#environmentString? (readonly)

The environment of the robot application.



44
45
46
# File 'robo_maker/cfn_robot_application_props.rb', line 44

def environment
  @environment
end

#nameString? (readonly)

The name of the robot application.



49
50
51
# File 'robo_maker/cfn_robot_application_props.rb', line 49

def name
  @name
end

#robot_software_suiteAWSCDK::IResolvable, AWSCDK::RoboMaker::CfnRobotApplication::RobotSoftwareSuiteProperty (readonly)

The robot software suite used by the robot application.



34
35
36
# File 'robo_maker/cfn_robot_application_props.rb', line 34

def robot_software_suite
  @robot_software_suite
end

#sourcesAWSCDK::IResolvable, ... (readonly)

The sources of the robot application.



54
55
56
# File 'robo_maker/cfn_robot_application_props.rb', line 54

def sources
  @sources
end

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

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



59
60
61
# File 'robo_maker/cfn_robot_application_props.rb', line 59

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
# File 'robo_maker/cfn_robot_application_props.rb', line 61

def self.jsii_properties
  {
    :robot_software_suite => "robotSoftwareSuite",
    :current_revision_id => "currentRevisionId",
    :environment => "environment",
    :name => "name",
    :sources => "sources",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'robo_maker/cfn_robot_application_props.rb', line 72

def to_jsii
  result = {}
  result.merge!({
    "robotSoftwareSuite" => @robot_software_suite,
    "currentRevisionId" => @current_revision_id,
    "environment" => @environment,
    "name" => @name,
    "sources" => @sources,
    "tags" => @tags,
  })
  result.compact
end