Class: AWSCDK::Batch::CfnJobDefinition::ConsumableResourcePropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::ConsumableResourcePropertiesProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
Contains a list of consumable resources required by a job.
Instance Attribute Summary collapse
-
#consumable_resource_list ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Batch::CfnJobDefinition::ConsumableResourceRequirementProperty>
readonly
The list of consumable resources required by a job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(consumable_resource_list:) ⇒ ConsumableResourcePropertiesProperty
constructor
A new instance of ConsumableResourcePropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(consumable_resource_list:) ⇒ ConsumableResourcePropertiesProperty
Returns a new instance of ConsumableResourcePropertiesProperty.
745 746 747 748 |
# File 'batch/cfn_job_definition.rb', line 745 def initialize(consumable_resource_list:) @consumable_resource_list = consumable_resource_list Jsii::Type.check_type(@consumable_resource_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmF0Y2guQ2ZuSm9iRGVmaW5pdGlvbi5Db25zdW1hYmxlUmVzb3VyY2VSZXF1aXJlbWVudFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "consumableResourceList") end |
Instance Attribute Details
#consumable_resource_list ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Batch::CfnJobDefinition::ConsumableResourceRequirementProperty> (readonly)
The list of consumable resources required by a job.
754 755 756 |
# File 'batch/cfn_job_definition.rb', line 754 def consumable_resource_list @consumable_resource_list end |
Class Method Details
.jsii_properties ⇒ Object
756 757 758 759 760 |
# File 'batch/cfn_job_definition.rb', line 756 def self.jsii_properties { :consumable_resource_list => "consumableResourceList", } end |
Instance Method Details
#to_jsii ⇒ Object
762 763 764 765 766 767 768 |
# File 'batch/cfn_job_definition.rb', line 762 def to_jsii result = {} result.merge!({ "consumableResourceList" => @consumable_resource_list, }) result.compact end |