Class: AWSCDK::Sagemaker::CfnCluster::ClusterKubernetesTaintProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::ClusterKubernetesTaintProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
A Kubernetes taint that can be applied to cluster nodes.
Instance Attribute Summary collapse
-
#effect ⇒ String
readonly
The effect of the taint.
-
#key ⇒ String
readonly
The key of the taint.
-
#value ⇒ String?
readonly
The value of the taint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(effect:, key:, value: nil) ⇒ ClusterKubernetesTaintProperty
constructor
A new instance of ClusterKubernetesTaintProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(effect:, key:, value: nil) ⇒ ClusterKubernetesTaintProperty
Returns a new instance of ClusterKubernetesTaintProperty.
1348 1349 1350 1351 1352 1353 1354 1355 |
# File 'sagemaker/cfn_cluster.rb', line 1348 def initialize(effect:, key:, value: nil) @effect = effect Jsii::Type.check_type(@effect, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "effect") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#effect ⇒ String (readonly)
The effect of the taint.
Valid values are NoSchedule , PreferNoSchedule , and NoExecute .
1363 1364 1365 |
# File 'sagemaker/cfn_cluster.rb', line 1363 def effect @effect end |
#key ⇒ String (readonly)
The key of the taint.
1368 1369 1370 |
# File 'sagemaker/cfn_cluster.rb', line 1368 def key @key end |
#value ⇒ String? (readonly)
The value of the taint.
1373 1374 1375 |
# File 'sagemaker/cfn_cluster.rb', line 1373 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1375 1376 1377 1378 1379 1380 1381 |
# File 'sagemaker/cfn_cluster.rb', line 1375 def self.jsii_properties { :effect => "effect", :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1383 1384 1385 1386 1387 1388 1389 1390 1391 |
# File 'sagemaker/cfn_cluster.rb', line 1383 def to_jsii result = {} result.merge!({ "effect" => @effect, "key" => @key, "value" => @value, }) result.compact end |