Class: AWSCDK::Omics::CfnRunGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
omics/cfn_run_group_props.rb

Overview

Properties for defining a CfnRunGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • max_cpus (Numeric, nil) (defaults to: nil)

    The group's maximum CPU count setting.

  • max_duration (Numeric, nil) (defaults to: nil)

    The group's maximum duration setting in minutes.

  • max_gpus (Numeric, nil) (defaults to: nil)

    The maximum GPUs that can be used by a run group.

  • max_runs (Numeric, nil) (defaults to: nil)

    The group's maximum concurrent run setting.

  • name (String, nil) (defaults to: nil)

    The group's name.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Tags for the group.



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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#max_cpusNumeric? (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_durationNumeric? (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_gpusNumeric? (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_runsNumeric? (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

#nameString? (readonly)

The group's name.



54
55
56
# File 'omics/cfn_run_group_props.rb', line 54

def name
  @name
end

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

Tags for the group.



59
60
61
# File 'omics/cfn_run_group_props.rb', line 59

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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