Class Addon
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.116.0 (build 0eddcff)",
date="2025-10-29T11:15:39.503Z")
@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("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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.eks.IAddon
IAddon.Jsii$Default, IAddon.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAddon(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAddon(software.amazon.jsii.JsiiObjectRef objRef) Addon(software.constructs.Construct scope, String id, AddonProps props) Creates a new Amazon EKS Add-On. -
Method Summary
Modifier and TypeMethodDescriptionstatic IAddonfromAddonArn(software.constructs.Construct scope, String id, String addonArn) Creates anIAddonfrom an existing addon ARN.static IAddonfromAddonAttributes(software.constructs.Construct scope, String id, AddonAttributes attrs) Creates anIAddoninstance from the given addon attributes.Arn of the addon.Name of the addon.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
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(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 anIAddonfrom an existing addon ARN.- Parameters:
scope-- The parent construct.
id-- The ID of the construct.
addonArn-- The ARN of the addon.
- Returns:
- An
IAddonimplementation.
-
fromAddonAttributes
@Stability(Stable) @NotNull public static IAddon fromAddonAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AddonAttributes attrs) Creates anIAddoninstance from the given addon attributes.- Parameters:
scope-- The parent construct.
id-- The construct ID.
attrs-- The attributes of the addon, including the addon name and the cluster name.
- Returns:
- An
IAddoninstance.
-
getAddonArn
Arn of the addon.- Specified by:
getAddonArnin interfaceIAddon
-
getAddonName
Name of the addon.- Specified by:
getAddonNamein interfaceIAddon
-