Class: AWSCDK::Sagemaker::CfnCluster::ClusterKubernetesTaintProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_cluster.rb

Overview

A Kubernetes taint that can be applied to cluster nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(effect:, key:, value: nil) ⇒ ClusterKubernetesTaintProperty

Returns a new instance of ClusterKubernetesTaintProperty.

Parameters:

  • effect (String)

    The effect of the taint.

  • key (String)

    The key of the taint.

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

    The value of the taint.



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

#effectString (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

#keyString (readonly)

The key of the taint.



1368
1369
1370
# File 'sagemaker/cfn_cluster.rb', line 1368

def key
  @key
end

#valueString? (readonly)

The value of the taint.



1373
1374
1375
# File 'sagemaker/cfn_cluster.rb', line 1373

def value
  @value
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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