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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofKubectlProviderProps.getCluster()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofKubectlProviderProps.getRemovalPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofKubectlProviderProps.getCluster()- Parameters:
cluster- The cluster to control. This parameter is required.- Returns:
this
-
removalPolicy
Sets the value ofKubectlProviderProps.getRemovalPolicy()- 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubectlProviderProps>- Returns:
- a new instance of
KubectlProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-