Class: AWSCDK::EKS::CfnNodegroup::TaintProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_nodegroup.rb

Overview

A property that allows a node to repel a Pod .

For more information, see Node taints on managed node groups in the Amazon EKS User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TaintProperty.

Parameters:

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

    The effect of the taint.

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

    The key of the taint.

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

    The value of the taint.



1136
1137
1138
1139
1140
1141
1142
1143
# File 'eks/cfn_nodegroup.rb', line 1136

def initialize(effect: nil, key: nil, value: nil)
  @effect = effect
  Jsii::Type.check_type(@effect, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "effect") unless @effect.nil?
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil?
  @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.



1149
1150
1151
# File 'eks/cfn_nodegroup.rb', line 1149

def effect
  @effect
end

#keyString? (readonly)

The key of the taint.



1154
1155
1156
# File 'eks/cfn_nodegroup.rb', line 1154

def key
  @key
end

#valueString? (readonly)

The value of the taint.



1159
1160
1161
# File 'eks/cfn_nodegroup.rb', line 1159

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1161
1162
1163
1164
1165
1166
1167
# File 'eks/cfn_nodegroup.rb', line 1161

def self.jsii_properties
  {
    :effect => "effect",
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1169
1170
1171
1172
1173
1174
1175
1176
1177
# File 'eks/cfn_nodegroup.rb', line 1169

def to_jsii
  result = {}
  result.merge!({
    "effect" => @effect,
    "key" => @key,
    "value" => @value,
  })
  result.compact
end