Class KubectlProviderAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.eks_v2.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.Sets the value ofKubectlProviderAttributes.getRole()serviceToken(String serviceToken) Sets the value ofKubectlProviderAttributes.getServiceToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serviceToken
Sets the value ofKubectlProviderAttributes.getServiceToken()- Parameters:
serviceToken- The kubectl provider lambda arn. This parameter is required.- Returns:
this
-
role
Sets the value ofKubectlProviderAttributes.getRole()- Parameters:
role- The role of the provider lambda function. Only required if you deploy helm charts using this imported provider.- 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
-