Class: AWSCDK::Batch::CfnJobDefinition::NodePropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::NodePropertiesProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
An object that represents the node properties of a multi-node parallel job.
Node properties can't be specified for Amazon EKS based job definitions.
Instance Attribute Summary collapse
-
#main_node ⇒ Numeric
readonly
Specifies the node index for the main node of a multi-node parallel job.
-
#node_range_properties ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Batch::CfnJobDefinition::NodeRangePropertyProperty>
readonly
A list of node ranges and their properties that are associated with a multi-node parallel job.
-
#num_nodes ⇒ Numeric
readonly
The number of nodes that are associated with a multi-node parallel job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(main_node:, node_range_properties:, num_nodes:) ⇒ NodePropertiesProperty
constructor
A new instance of NodePropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(main_node:, node_range_properties:, num_nodes:) ⇒ NodePropertiesProperty
Returns a new instance of NodePropertiesProperty.
2822 2823 2824 2825 2826 2827 2828 2829 |
# File 'batch/cfn_job_definition.rb', line 2822 def initialize(main_node:, node_range_properties:, num_nodes:) @main_node = main_node Jsii::Type.check_type(@main_node, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "mainNode") @node_range_properties = node_range_properties Jsii::Type.check_type(@node_range_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmF0Y2guQ2ZuSm9iRGVmaW5pdGlvbi5Ob2RlUmFuZ2VQcm9wZXJ0eVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "nodeRangeProperties") @num_nodes = num_nodes Jsii::Type.check_type(@num_nodes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numNodes") end |
Instance Attribute Details
#main_node ⇒ Numeric (readonly)
Specifies the node index for the main node of a multi-node parallel job.
This node index value must be fewer than the number of nodes.
2837 2838 2839 |
# File 'batch/cfn_job_definition.rb', line 2837 def main_node @main_node end |
#node_range_properties ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Batch::CfnJobDefinition::NodeRangePropertyProperty> (readonly)
A list of node ranges and their properties that are associated with a multi-node parallel job.
2842 2843 2844 |
# File 'batch/cfn_job_definition.rb', line 2842 def node_range_properties @node_range_properties end |
#num_nodes ⇒ Numeric (readonly)
The number of nodes that are associated with a multi-node parallel job.
2847 2848 2849 |
# File 'batch/cfn_job_definition.rb', line 2847 def num_nodes @num_nodes end |
Class Method Details
.jsii_properties ⇒ Object
2849 2850 2851 2852 2853 2854 2855 |
# File 'batch/cfn_job_definition.rb', line 2849 def self.jsii_properties { :main_node => "mainNode", :node_range_properties => "nodeRangeProperties", :num_nodes => "numNodes", } end |
Instance Method Details
#to_jsii ⇒ Object
2857 2858 2859 2860 2861 2862 2863 2864 2865 |
# File 'batch/cfn_job_definition.rb', line 2857 def to_jsii result = {} result.merge!({ "mainNode" => @main_node, "nodeRangeProperties" => @node_range_properties, "numNodes" => @num_nodes, }) result.compact end |