Class EksOptimizedImage

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.eks.EksOptimizedImage
All Implemented Interfaces:
IMachineImage, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-23T05:56:16.489Z") @Stability(Stable) public class EksOptimizedImage extends software.amazon.jsii.JsiiObject implements IMachineImage
Construct an Amazon Linux 2 image from the latest EKS Optimized AMI published in SSM.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.eks.*;
 EksOptimizedImage eksOptimizedImage = EksOptimizedImage.Builder.create()
         .cpuArch(CpuArch.ARM_64)
         .kubernetesVersion("kubernetesVersion")
         .nodeType(NodeType.STANDARD)
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for EksOptimizedImage.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IMachineImage

    IMachineImage.Jsii$Default, IMachineImage.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Constructs a new instance of the EcsOptimizedAmi class.
     
    Constructs a new instance of the EcsOptimizedAmi class.
    protected
    EksOptimizedImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    EksOptimizedImage(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getImage(software.constructs.Construct scope)
    Return the correct image.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • EksOptimizedImage

      protected EksOptimizedImage(software.amazon.jsii.JsiiObjectRef objRef)
    • EksOptimizedImage

      protected EksOptimizedImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • EksOptimizedImage

      @Stability(Stable) public EksOptimizedImage(@Nullable EksOptimizedImageProps props)
      Constructs a new instance of the EcsOptimizedAmi class.

      Parameters:
      props -
    • EksOptimizedImage

      @Stability(Stable) public EksOptimizedImage()
      Constructs a new instance of the EcsOptimizedAmi class.
  • Method Details

    • getImage

      @Stability(Stable) @NotNull public MachineImageConfig getImage(@NotNull software.constructs.Construct scope)
      Return the correct image.

      Specified by:
      getImage in interface IMachineImage
      Parameters:
      scope - This parameter is required.