Class: AWSCDK::EKSv2::EKSOptimizedImageProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKSv2::EKSOptimizedImageProps
- Defined in:
- ek_sv2/eks_optimized_image_props.rb
Overview
Properties for EksOptimizedImage.
Instance Attribute Summary collapse
-
#cpu_arch ⇒ AWSCDK::EKSv2::CpuArch?
readonly
What cpu architecture to retrieve the image for (arm64 or x86_64).
-
#kubernetes_version ⇒ String?
readonly
The Kubernetes version to use.
-
#node_type ⇒ AWSCDK::EKSv2::NodeType?
readonly
What instance type to retrieve the image for (standard or GPU-optimized).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cpu_arch: nil, kubernetes_version: nil, node_type: nil) ⇒ EKSOptimizedImageProps
constructor
A new instance of EKSOptimizedImageProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cpu_arch: nil, kubernetes_version: nil, node_type: nil) ⇒ EKSOptimizedImageProps
Returns a new instance of EKSOptimizedImageProps.
10 11 12 13 14 15 16 17 |
# File 'ek_sv2/eks_optimized_image_props.rb', line 10 def initialize(cpu_arch: nil, kubernetes_version: nil, node_type: nil) @cpu_arch = cpu_arch Jsii::Type.check_type(@cpu_arch, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzX3YyLkNwdUFyY2gifQ==")), "cpuArch") unless @cpu_arch.nil? @kubernetes_version = kubernetes_version Jsii::Type.check_type(@kubernetes_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kubernetesVersion") unless @kubernetes_version.nil? @node_type = node_type Jsii::Type.check_type(@node_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzX3YyLk5vZGVUeXBlIn0=")), "nodeType") unless @node_type.nil? end |
Instance Attribute Details
#cpu_arch ⇒ AWSCDK::EKSv2::CpuArch? (readonly)
Note:
Default: CpuArch.X86_64
What cpu architecture to retrieve the image for (arm64 or x86_64).
23 24 25 |
# File 'ek_sv2/eks_optimized_image_props.rb', line 23 def cpu_arch @cpu_arch end |
#kubernetes_version ⇒ String? (readonly)
Note:
Default: - The latest version
The Kubernetes version to use.
28 29 30 |
# File 'ek_sv2/eks_optimized_image_props.rb', line 28 def kubernetes_version @kubernetes_version end |
#node_type ⇒ AWSCDK::EKSv2::NodeType? (readonly)
Note:
Default: NodeType.STANDARD
What instance type to retrieve the image for (standard or GPU-optimized).
33 34 35 |
# File 'ek_sv2/eks_optimized_image_props.rb', line 33 def node_type @node_type end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'ek_sv2/eks_optimized_image_props.rb', line 35 def self.jsii_properties { :cpu_arch => "cpuArch", :kubernetes_version => "kubernetesVersion", :node_type => "nodeType", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'ek_sv2/eks_optimized_image_props.rb', line 43 def to_jsii result = {} result.merge!({ "cpuArch" => @cpu_arch, "kubernetesVersion" => @kubernetes_version, "nodeType" => @node_type, }) result.compact end |