Class Addon.Builder
java.lang.Object
software.amazon.awscdk.services.eks.Addon.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Addon>
- Enclosing class:
Addon
@Stability(Stable)
public static final class Addon.Builder
extends Object
implements software.amazon.jsii.Builder<Addon>
A fluent builder for
Addon.-
Method Summary
Modifier and TypeMethodDescriptionName of the Add-On.addonVersion(String addonVersion) Version of the Add-On.build()The EKS cluster the Add-On is associated with.configurationValues(Map<String, ? extends Object> configurationValues) The configuration values for the Add-on.static Addon.BuilderpreserveOnDelete(Boolean preserveOnDelete) Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.removalPolicy(RemovalPolicy removalPolicy) The removal policy applied to the EKS add-on.
-
Method Details
-
create
@Stability(Stable) public static Addon.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- The parent construct. This parameter is required.id- The construct ID. This parameter is required.- Returns:
- a new instance of
Addon.Builder.
-
addonName
Name of the Add-On.- Parameters:
addonName- Name of the Add-On. This parameter is required.- Returns:
this
-
cluster
The EKS cluster the Add-On is associated with.- Parameters:
cluster- The EKS cluster the Add-On is associated with. This parameter is required.- Returns:
this
-
addonVersion
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.
- Parameters:
addonVersion- Version of the Add-On. This parameter is required.- Returns:
this
-
configurationValues
@Stability(Stable) public Addon.Builder configurationValues(Map<String, ? extends Object> configurationValues) The configuration values for the Add-on.Default: - Use default configuration.
- Parameters:
configurationValues- The configuration values for the Add-on. This parameter is required.- Returns:
this
-
preserveOnDelete
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
- Parameters:
preserveOnDelete- Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on. This parameter is required.- Returns:
this
-
removalPolicy
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
- Parameters:
removalPolicy- The removal policy applied to the EKS add-on. This parameter is required.- Returns:
this
-
build
-