Class KubectlProvider.Builder
java.lang.Object
software.amazon.awscdk.services.eks.KubectlProvider.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubectlProvider>
- Enclosing class:
KubectlProvider
@Stability(Stable)
public static final class KubectlProvider.Builder
extends Object
implements software.amazon.jsii.Builder<KubectlProvider>
A fluent builder for
KubectlProvider.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The cluster to control.static KubectlProvider.BuilderremovalPolicy(RemovalPolicy removalPolicy) The removal policy applied to the custom resource that provides kubectl.
-
Method Details
-
create
@Stability(Stable) public static KubectlProvider.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
KubectlProvider.Builder.
-
cluster
The cluster to control.- Parameters:
cluster- The cluster to control. This parameter is required.- Returns:
this
-
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
Default: RemovalPolicy.DESTROY
- Parameters:
removalPolicy- The removal policy applied to the custom resource that provides kubectl. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubectlProvider>- Returns:
- a newly built instance of
KubectlProvider.
-