Class KubectlProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.v2.alpha.KubectlProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubectlProviderProps>
- Enclosing interface:
KubectlProviderProps
@Stability(Deprecated)
@Deprecated
public static final class KubectlProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<KubectlProviderProps>
Deprecated.
A builder for
KubectlProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawscliLayer(ILayerVersion awscliLayer) Deprecated.build()Deprecated.Deprecated.environment(Map<String, String> environment) Deprecated.kubectlLayer(ILayerVersion kubectlLayer) Deprecated.Deprecated.privateSubnets(List<? extends ISubnet> privateSubnets) Deprecated.removalPolicy(RemovalPolicy removalPolicy) Deprecated.Deprecated.securityGroup(ISecurityGroup securityGroup) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
cluster
Deprecated.Sets the value ofKubectlProviderProps.getCluster()- Parameters:
cluster- The cluster to control. This parameter is required.- Returns:
this
-
kubectlLayer
@Stability(Deprecated) @Deprecated public KubectlProviderProps.Builder kubectlLayer(ILayerVersion kubectlLayer) Deprecated.Sets the value ofKubectlProviderOptions.getKubectlLayer()- Parameters:
kubectlLayer- An AWS Lambda layer that includeskubectlandhelm. This parameter is required.- Returns:
this
-
awscliLayer
@Stability(Deprecated) @Deprecated public KubectlProviderProps.Builder awscliLayer(ILayerVersion awscliLayer) Deprecated.Sets the value ofKubectlProviderOptions.getAwscliLayer()- Parameters:
awscliLayer- An AWS Lambda layer that contains theawsCLI. If not defined, a default layer will be used containing the AWS CLI 2.x.- Returns:
this
-
environment
@Stability(Deprecated) @Deprecated public KubectlProviderProps.Builder environment(Map<String, String> environment) Deprecated.Sets the value ofKubectlProviderOptions.getEnvironment()- Parameters:
environment- Custom environment variables when runningkubectlagainst this cluster.- Returns:
this
-
memory
Deprecated.Sets the value ofKubectlProviderOptions.getMemory()- Parameters:
memory- The amount of memory allocated to the kubectl provider's lambda function.- Returns:
this
-
privateSubnets
@Stability(Deprecated) @Deprecated public KubectlProviderProps.Builder privateSubnets(List<? extends ISubnet> privateSubnets) Deprecated.Sets the value ofKubectlProviderOptions.getPrivateSubnets()- Parameters:
privateSubnets- Subnets to host thekubectlcompute resources. If not specified, the k8s endpoint is expected to be accessible publicly.- Returns:
this
-
removalPolicy
@Stability(Deprecated) @Deprecated public KubectlProviderProps.Builder removalPolicy(RemovalPolicy removalPolicy) Deprecated.Sets the value ofKubectlProviderOptions.getRemovalPolicy()- Parameters:
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
- Returns:
this
-
role
Deprecated.Sets the value ofKubectlProviderOptions.getRole()- Parameters:
role- An IAM role that can perform kubectl operations against this cluster. The role should be mapped to thesystem:mastersKubernetes RBAC role.This role is directly passed to the lambda handler that sends Kube Ctl commands to the cluster.
- Returns:
this
-
securityGroup
@Stability(Deprecated) @Deprecated public KubectlProviderProps.Builder securityGroup(ISecurityGroup securityGroup) Deprecated.Sets the value ofKubectlProviderOptions.getSecurityGroup()- Parameters:
securityGroup- A security group to use forkubectlexecution.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubectlProviderProps>- Returns:
- a new instance of
KubectlProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-