Class: AWSCDK::EKS::LaunchTemplateSpec

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

Overview

Launch template property specification.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, version: nil) ⇒ LaunchTemplateSpec

Returns a new instance of LaunchTemplateSpec.

Parameters:

  • id (String)

    The Launch template ID.

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

    The launch template version to be used (optional).



9
10
11
12
13
14
# File 'eks/launch_template_spec.rb', line 9

def initialize(id:, version: nil)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#idString (readonly)

The Launch template ID.

Returns:

  • (String)


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

def id
  @id
end

#versionString? (readonly)

Note:

Default: - the default version of the launch template

The launch template version to be used (optional).

Returns:

  • (String, nil)


24
25
26
# File 'eks/launch_template_spec.rb', line 24

def version
  @version
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'eks/launch_template_spec.rb', line 26

def self.jsii_properties
  {
    :id => "id",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "version" => @version,
  })
  result.compact
end