Interface KubectlProviderOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
KubectlProviderProps
- All Known Implementing Classes:
KubectlProviderOptions.Jsii$Proxy
,KubectlProviderProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-16T11:43:25.306Z")
@Stability(Experimental)
public interface KubectlProviderOptions
extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.cdk.lambdalayer.kubectl.v32.KubectlV32Layer; Cluster cluster = Cluster.Builder.create(this, "hello-eks") .version(KubernetesVersion.V1_32) .kubectlProviderOptions(KubectlProviderOptions.builder() .kubectlLayer(new KubectlV32Layer(this, "kubectl")) .environment(Map.of( "http_proxy", "http://proxy.myproxy.com")) .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forKubectlProviderOptions
static final class
An implementation forKubectlProviderOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default ILayerVersion
(experimental) An AWS Lambda layer that contains theaws
CLI.(experimental) Custom environment variables when runningkubectl
against this cluster.(experimental) An AWS Lambda layer that includeskubectl
andhelm
.default Size
(experimental) The amount of memory allocated to the kubectl provider's lambda function.(experimental) Subnets to host thekubectl
compute resources.default IRole
getRole()
(experimental) An IAM role that can perform kubectl operations against this cluster.default ISecurityGroup
(experimental) A security group to use forkubectl
execution.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKubectlLayer
(experimental) An AWS Lambda layer that includeskubectl
andhelm
. -
getAwscliLayer
(experimental) An AWS Lambda layer that contains theaws
CLI.If not defined, a default layer will be used containing the AWS CLI 2.x.
-
getEnvironment
(experimental) Custom environment variables when runningkubectl
against this cluster. -
getMemory
(experimental) The amount of memory allocated to the kubectl provider's lambda function. -
getPrivateSubnets
(experimental) Subnets to host thekubectl
compute resources.If not specified, the k8s endpoint is expected to be accessible publicly.
-
getRole
(experimental) An IAM role that can perform kubectl operations against this cluster.The role should be mapped to the
system:masters
Kubernetes RBAC role.This role is directly passed to the lambda handler that sends Kube Ctl commands to the cluster.
Default: - if not specified, the default role created by a lambda function will be used.
-
getSecurityGroup
(experimental) A security group to use forkubectl
execution.Default: - If not specified, the k8s endpoint is expected to be accessible publicly.
-
builder
- Returns:
- a
KubectlProviderOptions.Builder
ofKubectlProviderOptions
-