Class KubectlProviderProps.Builder

java.lang.Object
software.amazon.awscdk.services.eks.KubectlProviderProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<KubectlProviderProps>
Enclosing interface:
KubectlProviderProps

@Stability(Stable) public static final class KubectlProviderProps.Builder extends Object implements software.amazon.jsii.Builder<KubectlProviderProps>
A builder for KubectlProviderProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • cluster

      @Stability(Stable) public KubectlProviderProps.Builder cluster(ICluster cluster)
      Parameters:
      cluster - The cluster to control. This parameter is required.
      Returns:
      this
    • removalPolicy

      @Stability(Stable) public KubectlProviderProps.Builder removalPolicy(RemovalPolicy removalPolicy)
      Parameters:
      removalPolicy - The removal policy applied to the custom resource that provides kubectl. 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
      Returns:
      this
    • build

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