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.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();
-
Nested Class Summary
Nested ClassesNested 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.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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Addon
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Addon
(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 IAddon
fromAddonArn
(software.constructs.Construct scope, String id, String addonArn) Creates anIAddon
from an existing addon ARN.static IAddon
fromAddonAttributes
(software.constructs.Construct scope, String id, AddonAttributes attrs) Creates anIAddon
instance 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, isResource
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.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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 anIAddon
from an existing addon ARN.- Parameters:
scope
-- The parent construct.
id
-- The ID of the construct.
addonArn
-- The ARN of the addon.
- Returns:
- An
IAddon
implementation.
-
fromAddonAttributes
@Stability(Stable) @NotNull public static IAddon fromAddonAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AddonAttributes attrs) Creates anIAddon
instance 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
IAddon
instance.
-
getAddonArn
Arn of the addon.- Specified by:
getAddonArn
in interfaceIAddon
-
getAddonName
Name of the addon.- Specified by:
getAddonName
in interfaceIAddon
-