Class: AWSCDK::Omics::CfnRunGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Omics::CfnRunGroupProps
- Defined in:
- omics/cfn_run_group_props.rb
Overview
Properties for defining a CfnRunGroup.
Instance Attribute Summary collapse
-
#max_cpus ⇒ Numeric?
readonly
The group's maximum CPU count setting.
-
#max_duration ⇒ Numeric?
readonly
The group's maximum duration setting in minutes.
-
#max_gpus ⇒ Numeric?
readonly
The maximum GPUs that can be used by a run group.
-
#max_runs ⇒ Numeric?
readonly
The group's maximum concurrent run setting.
-
#name ⇒ String?
readonly
The group's name.
-
#tags ⇒ Hash{String => String}?
readonly
Tags for the group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_cpus: nil, max_duration: nil, max_gpus: nil, max_runs: nil, name: nil, tags: nil) ⇒ CfnRunGroupProps
constructor
A new instance of CfnRunGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_cpus: nil, max_duration: nil, max_gpus: nil, max_runs: nil, name: nil, tags: nil) ⇒ CfnRunGroupProps
Returns a new instance of CfnRunGroupProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'omics/cfn_run_group_props.rb', line 15 def initialize(max_cpus: nil, max_duration: nil, max_gpus: nil, max_runs: nil, name: nil, tags: nil) @max_cpus = max_cpus Jsii::Type.check_type(@max_cpus, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxCpus") unless @max_cpus.nil? @max_duration = max_duration Jsii::Type.check_type(@max_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxDuration") unless @max_duration.nil? @max_gpus = max_gpus Jsii::Type.check_type(@max_gpus, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxGpus") unless @max_gpus.nil? @max_runs = max_runs Jsii::Type.check_type(@max_runs, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxRuns") unless @max_runs.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
#max_cpus ⇒ Numeric? (readonly)
The group's maximum CPU count setting.
34 35 36 |
# File 'omics/cfn_run_group_props.rb', line 34 def max_cpus @max_cpus end |
#max_duration ⇒ Numeric? (readonly)
The group's maximum duration setting in minutes.
39 40 41 |
# File 'omics/cfn_run_group_props.rb', line 39 def max_duration @max_duration end |
#max_gpus ⇒ Numeric? (readonly)
The maximum GPUs that can be used by a run group.
44 45 46 |
# File 'omics/cfn_run_group_props.rb', line 44 def max_gpus @max_gpus end |
#max_runs ⇒ Numeric? (readonly)
The group's maximum concurrent run setting.
49 50 51 |
# File 'omics/cfn_run_group_props.rb', line 49 def max_runs @max_runs end |
#name ⇒ String? (readonly)
The group's name.
54 55 56 |
# File 'omics/cfn_run_group_props.rb', line 54 def name @name end |
#tags ⇒ Hash{String => String}? (readonly)
Tags for the group.
59 60 61 |
# File 'omics/cfn_run_group_props.rb', line 59 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'omics/cfn_run_group_props.rb', line 61 def self.jsii_properties { :max_cpus => "maxCpus", :max_duration => "maxDuration", :max_gpus => "maxGpus", :max_runs => "maxRuns", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'omics/cfn_run_group_props.rb', line 72 def to_jsii result = {} result.merge!({ "maxCpus" => @max_cpus, "maxDuration" => @max_duration, "maxGpus" => @max_gpus, "maxRuns" => @max_runs, "name" => @name, "tags" => @tags, }) result.compact end |