Class: AWSCDK::EKS::CfnNodegroup::TaintProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnNodegroup::TaintProperty
- 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
-
#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: nil, key: nil, value: nil) ⇒ TaintProperty
constructor
A new instance of TaintProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(effect: nil, key: nil, value: nil) ⇒ TaintProperty
Returns a new instance of TaintProperty.
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
#effect ⇒ String? (readonly)
The effect of the taint.
1149 1150 1151 |
# File 'eks/cfn_nodegroup.rb', line 1149 def effect @effect end |
#key ⇒ String? (readonly)
The key of the taint.
1154 1155 1156 |
# File 'eks/cfn_nodegroup.rb', line 1154 def key @key end |
#value ⇒ String? (readonly)
The value of the taint.
1159 1160 1161 |
# File 'eks/cfn_nodegroup.rb', line 1159 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |