java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.eks.v2.alpha.Addon
All Implemented Interfaces:
IEnvironmentAware, IResource, IAddon, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-12T17:54:26.823Z") @Stability(Experimental) public class Addon extends Resource implements IAddon
(experimental) Represents an Amazon EKS Add-On.

Example:

 Cluster cluster;
 Addon.Builder.create(this, "Addon")
         .cluster(cluster)
         .addonName("coredns")
         .addonVersion("v1.11.4-eksbuild.2")
         // whether to preserve the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.
         .preserveOnDelete(false)
         .configurationValues(Map.of(
                 "replicaCount", 2))
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    (experimental) A fluent builder for Addon.

    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.eks.v2.alpha.IAddon

    IAddon.Jsii$Default, IAddon.Jsii$Proxy

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default

    Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource

    IResource.Jsii$Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    (experimental) Uniquely identifies this class.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Addon(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Addon(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    Addon(software.constructs.Construct scope, String id, AddonProps props)
    (experimental) Creates a new Amazon EKS Add-On.
  • Method Summary

    Modifier and Type
    Method
    Description
    static IAddon
    fromAddonArn(software.constructs.Construct scope, String id, String addonArn)
    (experimental) Creates an IAddon from an existing addon ARN.
    static IAddon
    fromAddonAttributes(software.constructs.Construct scope, String id, AddonAttributes attrs)
    (experimental) Creates an IAddon instance from the given addon attributes.
    (experimental) Arn of the addon.
    (experimental) Name of the addon.

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, toString

    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, wait, wait, wait

    Methods inherited from interface software.constructs.IConstruct

    getNode

    Methods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware

    getEnv

    Methods inherited from interface software.amazon.awscdk.IResource

    applyRemovalPolicy, getStack

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String PROPERTY_INJECTION_ID
      (experimental) Uniquely identifies this class.
  • Constructor Details

    • Addon

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

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

      @Stability(Experimental) public Addon(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AddonProps props)
      (experimental) Creates a new Amazon EKS Add-On.

      Parameters:
      scope - The parent construct. This parameter is required.
      id - The construct ID. This parameter is required.
      props - The properties for the Add-On. This parameter is required.
  • Method Details

    • fromAddonArn

      @Stability(Experimental) @NotNull public static IAddon fromAddonArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String addonArn)
      (experimental) Creates an IAddon from an existing addon ARN.

      Parameters:
      scope -
      • The parent construct.
      This parameter is required.
      id -
      • The ID of the construct.
      This parameter is required.
      addonArn -
      • The ARN of the addon.
      This parameter is required.
      Returns:
      An IAddon implementation.
    • fromAddonAttributes

      @Stability(Experimental) @NotNull public static IAddon fromAddonAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AddonAttributes attrs)
      (experimental) Creates an IAddon instance from the given addon attributes.

      Parameters:
      scope -
      • The parent construct.
      This parameter is required.
      id -
      • The construct ID.
      This parameter is required.
      attrs -
      • The attributes of the addon, including the addon name and the cluster name.
      This parameter is required.
      Returns:
      An IAddon instance.
    • getAddonArn

      @Stability(Experimental) @NotNull public String getAddonArn()
      (experimental) Arn of the addon.
      Specified by:
      getAddonArn in interface IAddon
    • getAddonName

      @Stability(Experimental) @NotNull public String getAddonName()
      (experimental) Name of the addon.
      Specified by:
      getAddonName in interface IAddon