Class KubectlProviderAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.eks.KubectlProviderAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubectlProviderAttributes>
- Enclosing interface:
KubectlProviderAttributes
@Stability(Stable)
public static final class KubectlProviderAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<KubectlProviderAttributes>
A builder for
KubectlProviderAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.functionArn(String functionArn) Sets the value ofKubectlProviderAttributes.getFunctionArn()handlerRole(IRole handlerRole) Sets the value ofKubectlProviderAttributes.getHandlerRole()kubectlRoleArn(String kubectlRoleArn) Sets the value ofKubectlProviderAttributes.getKubectlRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
Sets the value ofKubectlProviderAttributes.getFunctionArn()- Parameters:
functionArn- The custom resource provider's service token. This parameter is required.- Returns:
this
-
handlerRole
Sets the value ofKubectlProviderAttributes.getHandlerRole()- Parameters:
handlerRole- The IAM execution role of the handler. This parameter is required. This role must be able to assume kubectlRoleArn- Returns:
this
-
kubectlRoleArn
Sets the value ofKubectlProviderAttributes.getKubectlRoleArn()- Parameters:
kubectlRoleArn- The IAM role to assume in order to perform kubectl operations against this cluster. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubectlProviderAttributes>- Returns:
- a new instance of
KubectlProviderAttributes - Throws:
NullPointerException- if any required attribute was not provided
-