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

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-12T12:32:02.475Z") @Stability(Stable) public class Addon extends Resource implements IAddon
Represents an Amazon EKS Add-On.

Example:

 Cluster cluster;
 Addon.Builder.create(this, "Addon")
         .cluster(cluster)
         .addonName("aws-guardduty-agent")
         .addonVersion("v1.6.1")
         // whether to preserve the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.
         .preserveOnDelete(false)
         .build();
 
  • Constructor Details

    • Addon

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

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

      @Stability(Stable) public Addon(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AddonProps props)
      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(Stable) @NotNull public static IAddon fromAddonArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String addonArn)
      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(Stable) @NotNull public static IAddon fromAddonAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AddonAttributes attrs)
      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(Stable) @NotNull public String getAddonArn()
      Arn of the addon.
      Specified by:
      getAddonArn in interface IAddon
    • getAddonName

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