Class KubectlProvider.Builder
java.lang.Object
software.amazon.awscdk.services.eks.v2.alpha.KubectlProvider.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubectlProvider>
- Enclosing class:
KubectlProvider
@Stability(Experimental)
public static final class KubectlProvider.Builder
extends Object
implements software.amazon.jsii.Builder<KubectlProvider>
(experimental) A fluent builder for
KubectlProvider
.-
Method Summary
Modifier and TypeMethodDescriptionawscliLayer
(ILayerVersion awscliLayer) (experimental) An AWS Lambda layer that contains theaws
CLI.build()
(experimental) The cluster to control.static KubectlProvider.Builder
environment
(Map<String, String> environment) (experimental) Custom environment variables when runningkubectl
against this cluster.kubectlLayer
(ILayerVersion kubectlLayer) (experimental) An AWS Lambda layer that includeskubectl
andhelm
.(experimental) The amount of memory allocated to the kubectl provider's lambda function.privateSubnets
(List<? extends ISubnet> privateSubnets) (experimental) Subnets to host thekubectl
compute resources.(experimental) An IAM role that can perform kubectl operations against this cluster.securityGroup
(ISecurityGroup securityGroup) (experimental) A security group to use forkubectl
execution.
-
Method Details
-
create
@Stability(Experimental) 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
.
-
kubectlLayer
(experimental) An AWS Lambda layer that includeskubectl
andhelm
.- Parameters:
kubectlLayer
- An AWS Lambda layer that includeskubectl
andhelm
. This parameter is required.- Returns:
this
-
awscliLayer
(experimental) An AWS Lambda layer that contains theaws
CLI.If not defined, a default layer will be used containing the AWS CLI 2.x.
- Parameters:
awscliLayer
- An AWS Lambda layer that contains theaws
CLI. This parameter is required.- Returns:
this
-
environment
(experimental) Custom environment variables when runningkubectl
against this cluster.- Parameters:
environment
- Custom environment variables when runningkubectl
against this cluster. This parameter is required.- Returns:
this
-
memory
(experimental) The amount of memory allocated to the kubectl provider's lambda function.- Parameters:
memory
- The amount of memory allocated to the kubectl provider's lambda function. This parameter is required.- Returns:
this
-
privateSubnets
@Stability(Experimental) public KubectlProvider.Builder privateSubnets(List<? extends ISubnet> privateSubnets) (experimental) Subnets to host thekubectl
compute resources.If not specified, the k8s endpoint is expected to be accessible publicly.
- Parameters:
privateSubnets
- Subnets to host thekubectl
compute resources. This parameter is required.- Returns:
this
-
role
(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.
- Parameters:
role
- An IAM role that can perform kubectl operations against this cluster. This parameter is required.- Returns:
this
-
securityGroup
(experimental) A security group to use forkubectl
execution.Default: - If not specified, the k8s endpoint is expected to be accessible publicly.
- Parameters:
securityGroup
- A security group to use forkubectl
execution. This parameter is required.- Returns:
this
-
cluster
(experimental) The cluster to control.- Parameters:
cluster
- The cluster to control. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubectlProvider>
- Returns:
- a newly built instance of
KubectlProvider
.
-