Class AddonProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AddonProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddonProps>
- Enclosing interface:
AddonProps
@Stability(Stable)
public static final class AddonProps.Builder
extends Object
implements software.amazon.jsii.Builder<AddonProps>
A builder for
AddonProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAddonProps.getAddonName()
addonVersion
(String addonVersion) Sets the value ofAddonProps.getAddonVersion()
build()
Builds the configured instance.Sets the value ofAddonProps.getCluster()
preserveOnDelete
(Boolean preserveOnDelete) Sets the value ofAddonProps.getPreserveOnDelete()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addonName
Sets the value ofAddonProps.getAddonName()
- Parameters:
addonName
- Name of the Add-On. This parameter is required.- Returns:
this
-
cluster
Sets the value ofAddonProps.getCluster()
- Parameters:
cluster
- The EKS cluster the Add-On is associated with. This parameter is required.- Returns:
this
-
addonVersion
Sets the value ofAddonProps.getAddonVersion()
- Parameters:
addonVersion
- Version of the Add-On. You can check all available versions with describe-addon-versons. For example, this lists all available versions for theeks-pod-identity-agent
addon: $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ --query 'addons[].addonVersions[].addonVersion'- Returns:
this
-
preserveOnDelete
Sets the value ofAddonProps.getPreserveOnDelete()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AddonProps>
- Returns:
- a new instance of
AddonProps
- Throws:
NullPointerException
- if any required attribute was not provided
-