Interface KubectlProviderProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
KubectlProviderProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-09T14:39:10.760Z") @Stability(Stable) public interface KubectlProviderProps extends software.amazon.jsii.JsiiSerializable
Properties for a KubectlProvider.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.eks.*;
 Cluster cluster;
 KubectlProviderProps kubectlProviderProps = KubectlProviderProps.builder()
         .cluster(cluster)
         // the properties below are optional
         .removalPolicy(RemovalPolicy.DESTROY)
         .build();
 
  • Method Details

    • getCluster

      @Stability(Stable) @NotNull ICluster getCluster()
      The cluster to control.
    • getRemovalPolicy

      @Stability(Stable) @Nullable default RemovalPolicy getRemovalPolicy()
      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

      Default: RemovalPolicy.DESTROY

    • builder

      @Stability(Stable) static KubectlProviderProps.Builder builder()
      Returns:
      a KubectlProviderProps.Builder of KubectlProviderProps