Interface AddonProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddonProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:10.643Z")
@Stability(Stable)
public interface AddonProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating 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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAddonPropsstatic final classAn implementation forAddonProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AddonProps.Builderbuilder()Name of the Add-On.default StringVersion of the Add-On.The EKS cluster the Add-On is associated with.The configuration values for the Add-on.default BooleanSpecifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.default RemovalPolicyThe removal policy applied to the EKS add-on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAddonName
Name of the Add-On. -
getCluster
The EKS cluster the Add-On is associated with. -
getAddonVersion
Version of the Add-On.You can check all available versions with describe-addon-versions. For example, this lists all available versions for the
eks-pod-identity-agentaddon: $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ --query 'addons[].addonVersions[].addonVersion'Default: the latest version.
-
getConfigurationValues
The configuration values for the Add-on.Default: - Use default configuration.
-
getPreserveOnDelete
Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.If an IAM account is associated with the add-on, it isn't removed.
Default: true
-
getRemovalPolicy
The removal policy applied to the EKS add-on.The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:
- The resource is removed from the template, so CloudFormation stops managing it
- A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
- The stack is deleted, so CloudFormation stops managing all resources in it
Default: RemovalPolicy.DESTROY
-
builder
- Returns:
- a
AddonProps.BuilderofAddonProps
-