Class: AWSCDK::EKSv2::AddonAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKSv2::AddonAttributes
- Defined in:
- ek_sv2/addon_attributes.rb
Overview
Represents the attributes of an addon for an Amazon EKS cluster.
Instance Attribute Summary collapse
-
#addon_name ⇒ String
readonly
The name of the addon.
-
#cluster_name ⇒ String
readonly
The name of the Amazon EKS cluster the addon is associated with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(addon_name:, cluster_name:) ⇒ AddonAttributes
constructor
A new instance of AddonAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(addon_name:, cluster_name:) ⇒ AddonAttributes
Returns a new instance of AddonAttributes.
9 10 11 12 13 14 |
# File 'ek_sv2/addon_attributes.rb', line 9 def initialize(addon_name:, cluster_name:) @addon_name = addon_name Jsii::Type.check_type(@addon_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addonName") @cluster_name = cluster_name Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName") end |
Instance Attribute Details
#addon_name ⇒ String (readonly)
The name of the addon.
19 20 21 |
# File 'ek_sv2/addon_attributes.rb', line 19 def addon_name @addon_name end |
#cluster_name ⇒ String (readonly)
The name of the Amazon EKS cluster the addon is associated with.
23 24 25 |
# File 'ek_sv2/addon_attributes.rb', line 23 def cluster_name @cluster_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'ek_sv2/addon_attributes.rb', line 25 def self.jsii_properties { :addon_name => "addonName", :cluster_name => "clusterName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ek_sv2/addon_attributes.rb', line 32 def to_jsii result = {} result.merge!({ "addonName" => @addon_name, "clusterName" => @cluster_name, }) result.compact end |