# IKubectlProvider

Imported KubectlProvider that can be used in place of the default one created by CDK.

Extends: [IConstruct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IConstruct.html)
Implemented by: [KubectlProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.KubectlProvider.html)
Obtainable from: [KubectlProvider.fromKubectlProviderAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.KubectlProvider.html#fromkubectlproviderattributes), [KubectlProvider.getOrCreate](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.KubectlProvider.html#getorcreate)

- Source: [`aws-eks/lib/kubectl-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-eks/lib/kubectl-provider.ts#L60)
- Type last changed: v2.4.0 · 6 Jan 2022

## Properties

- `handlerRole`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM execution role of the handler.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `roleArn`: string — The IAM role to assume in order to perform kubectl operations against this cluster.

- `serviceToken`: string — The custom resource provider's service token.

## Methods

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
