Class: AWSCDK::EKS::AddonAttributes

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

Overview

Represents the attributes of an addon for an Amazon EKS cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(addon_name:, cluster_name:) ⇒ AddonAttributes

Returns a new instance of AddonAttributes.

Parameters:

  • addon_name (String)

    The name of the addon.

  • cluster_name (String)

    The name of the Amazon EKS cluster the addon is associated with.



9
10
11
12
13
14
# File 'eks/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_nameString (readonly)

The name of the addon.

Returns:

  • (String)


19
20
21
# File 'eks/addon_attributes.rb', line 19

def addon_name
  @addon_name
end

#cluster_nameString (readonly)

The name of the Amazon EKS cluster the addon is associated with.

Returns:

  • (String)


23
24
25
# File 'eks/addon_attributes.rb', line 23

def cluster_name
  @cluster_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'eks/addon_attributes.rb', line 25

def self.jsii_properties
  {
    :addon_name => "addonName",
    :cluster_name => "clusterName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'eks/addon_attributes.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "addonName" => @addon_name,
    "clusterName" => @cluster_name,
  })
  result.compact
end