Class: AWSCDK::PCS::CfnQueueProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnQueueProps
- Defined in:
- pcs/cfn_queue_props.rb
Overview
Properties for defining a CfnQueue.
Instance Attribute Summary collapse
-
#cluster_id ⇒ String
readonly
The ID of the cluster of the queue.
-
#compute_node_group_configurations ⇒ AWSCDK::IResolvable, ...
readonly
The list of compute node group configurations associated with the queue.
-
#name ⇒ String?
readonly
The name that identifies the queue.
-
#slurm_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Additional options related to the Slurm scheduler.
-
#tags ⇒ Hash{String => String}?
readonly
1 or more tags added to the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_id:, compute_node_group_configurations: nil, name: nil, slurm_configuration: nil, tags: nil) ⇒ CfnQueueProps
constructor
A new instance of CfnQueueProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_id:, compute_node_group_configurations: nil, name: nil, slurm_configuration: nil, tags: nil) ⇒ CfnQueueProps
Returns a new instance of CfnQueueProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'pcs/cfn_queue_props.rb', line 14 def initialize(cluster_id:, compute_node_group_configurations: nil, name: nil, slurm_configuration: nil, tags: nil) @cluster_id = cluster_id Jsii::Type.check_type(@cluster_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterId") @compute_node_group_configurations = compute_node_group_configurations Jsii::Type.check_type(@compute_node_group_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcGNzLkNmblF1ZXVlLkNvbXB1dGVOb2RlR3JvdXBDb25maWd1cmF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "computeNodeGroupConfigurations") unless @compute_node_group_configurations.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @slurm_configuration = slurm_configuration.is_a?(Hash) ? ::AWSCDK::PCS::CfnQueue::SlurmConfigurationProperty.new(**slurm_configuration.transform_keys(&:to_sym)) : slurm_configuration Jsii::Type.check_type(@slurm_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY3MuQ2ZuUXVldWUuU2x1cm1Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "slurmConfiguration") unless @slurm_configuration.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#cluster_id ⇒ String (readonly)
The ID of the cluster of the queue.
31 32 33 |
# File 'pcs/cfn_queue_props.rb', line 31 def cluster_id @cluster_id end |
#compute_node_group_configurations ⇒ AWSCDK::IResolvable, ... (readonly)
The list of compute node group configurations associated with the queue.
Queues assign jobs to associated compute node groups.
38 39 40 |
# File 'pcs/cfn_queue_props.rb', line 38 def compute_node_group_configurations @compute_node_group_configurations end |
#name ⇒ String? (readonly)
The name that identifies the queue.
43 44 45 |
# File 'pcs/cfn_queue_props.rb', line 43 def name @name end |
#slurm_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Additional options related to the Slurm scheduler.
48 49 50 |
# File 'pcs/cfn_queue_props.rb', line 48 def slurm_configuration @slurm_configuration end |
#tags ⇒ Hash{String => String}? (readonly)
1 or more tags added to the resource.
Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
55 56 57 |
# File 'pcs/cfn_queue_props.rb', line 55 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'pcs/cfn_queue_props.rb', line 57 def self.jsii_properties { :cluster_id => "clusterId", :compute_node_group_configurations => "computeNodeGroupConfigurations", :name => "name", :slurm_configuration => "slurmConfiguration", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'pcs/cfn_queue_props.rb', line 67 def to_jsii result = {} result.merge!({ "clusterId" => @cluster_id, "computeNodeGroupConfigurations" => @compute_node_group_configurations, "name" => @name, "slurmConfiguration" => @slurm_configuration, "tags" => @tags, }) result.compact end |