Class: AWSCDK::Sagemaker::CfnCluster::ClusterKubernetesConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::ClusterKubernetesConfigProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
Kubernetes configuration that specifies labels and taints to be applied to cluster nodes in an instance group.
Instance Attribute Summary collapse
-
#labels ⇒ AWSCDK::IResolvable, ...
readonly
Key-value pairs of labels to be applied to cluster nodes.
-
#taints ⇒ AWSCDK::IResolvable, ...
readonly
List of taints to be applied to cluster nodes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(labels: nil, taints: nil) ⇒ ClusterKubernetesConfigProperty
constructor
A new instance of ClusterKubernetesConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(labels: nil, taints: nil) ⇒ ClusterKubernetesConfigProperty
Returns a new instance of ClusterKubernetesConfigProperty.
1304 1305 1306 1307 1308 1309 |
# File 'sagemaker/cfn_cluster.rb', line 1304 def initialize(labels: nil, taints: nil) @labels = labels Jsii::Type.check_type(@labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "labels") unless @labels.nil? @taints = taints Jsii::Type.check_type(@taints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbkNsdXN0ZXIuQ2x1c3Rlckt1YmVybmV0ZXNUYWludFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "taints") unless @taints.nil? end |
Instance Attribute Details
#labels ⇒ AWSCDK::IResolvable, ... (readonly)
Key-value pairs of labels to be applied to cluster nodes.
1315 1316 1317 |
# File 'sagemaker/cfn_cluster.rb', line 1315 def labels @labels end |
#taints ⇒ AWSCDK::IResolvable, ... (readonly)
List of taints to be applied to cluster nodes.
1320 1321 1322 |
# File 'sagemaker/cfn_cluster.rb', line 1320 def taints @taints end |
Class Method Details
.jsii_properties ⇒ Object
1322 1323 1324 1325 1326 1327 |
# File 'sagemaker/cfn_cluster.rb', line 1322 def self.jsii_properties { :labels => "labels", :taints => "taints", } end |
Instance Method Details
#to_jsii ⇒ Object
1329 1330 1331 1332 1333 1334 1335 1336 |
# File 'sagemaker/cfn_cluster.rb', line 1329 def to_jsii result = {} result.merge!({ "labels" => @labels, "taints" => @taints, }) result.compact end |