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 Details

    • Builder

      public Builder()
  • Method Details

    • addonName

      @Stability(Stable) public AddonProps.Builder addonName(String addonName)
      Sets the value of AddonProps.getAddonName()
      Parameters:
      addonName - Name of the Add-On. This parameter is required.
      Returns:
      this
    • cluster

      @Stability(Stable) public AddonProps.Builder cluster(ICluster cluster)
      Sets the value of AddonProps.getCluster()
      Parameters:
      cluster - The EKS cluster the Add-On is associated with. This parameter is required.
      Returns:
      this
    • addonVersion

      @Stability(Stable) public AddonProps.Builder addonVersion(String addonVersion)
      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 the eks-pod-identity-agent addon: $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ --query 'addons[].addonVersions[].addonVersion'
      Returns:
      this
    • preserveOnDelete

      @Stability(Stable) public AddonProps.Builder preserveOnDelete(Boolean preserveOnDelete)
      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

      @Stability(Stable) public AddonProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<AddonProps>
      Returns:
      a new instance of AddonProps
      Throws:
      NullPointerException - if any required attribute was not provided