interface KubectlProviderProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EKS.KubectlProviderProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseks#KubectlProviderProps |
Java | software.amazon.awscdk.services.eks.KubectlProviderProps |
Python | aws_cdk.aws_eks.KubectlProviderProps |
TypeScript (source) | aws-cdk-lib » aws_eks » KubectlProviderProps |
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 * as cdk from 'aws-cdk-lib';
import { aws_eks as eks } from 'aws-cdk-lib';
declare const cluster: eks.Cluster;
const kubectlProviderProps: eks.KubectlProviderProps = {
cluster: cluster,
// the properties below are optional
removalPolicy: cdk.RemovalPolicy.DESTROY,
};
Properties
| Name | Type | Description |
|---|---|---|
| cluster | ICluster | The cluster to control. |
| removal | Removal | The removal policy applied to the custom resource that provides kubectl. |
cluster
Type:
ICluster
The cluster to control.
removalPolicy?
Type:
Removal
(optional, default: RemovalPolicy.DESTROY)
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

.NET
Go
Java
Python
TypeScript (