Class: AWSCDK::EKS::CfnFargateProfile::LabelProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnFargateProfile::LabelProperty
- Defined in:
- eks/cfn_fargate_profile.rb
Overview
A key-value pair.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
Enter a key.
-
#value ⇒ String
readonly
Enter a value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ LabelProperty
constructor
A new instance of LabelProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ LabelProperty
Returns a new instance of LabelProperty.
595 596 597 598 599 600 |
# File 'eks/cfn_fargate_profile.rb', line 595 def initialize(key:, value:) @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") end |
Instance Attribute Details
#key ⇒ String (readonly)
Enter a key.
606 607 608 |
# File 'eks/cfn_fargate_profile.rb', line 606 def key @key end |
#value ⇒ String (readonly)
Enter a value.
611 612 613 |
# File 'eks/cfn_fargate_profile.rb', line 611 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
613 614 615 616 617 618 |
# File 'eks/cfn_fargate_profile.rb', line 613 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
620 621 622 623 624 625 626 627 |
# File 'eks/cfn_fargate_profile.rb', line 620 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |