Class AccessEntryProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AccessEntryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessEntryProps>
- Enclosing interface:
AccessEntryProps
@Stability(Stable)
public static final class AccessEntryProps.Builder
extends Object
implements software.amazon.jsii.Builder<AccessEntryProps>
A builder for
AccessEntryProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessEntryName
(String accessEntryName) Sets the value ofAccessEntryProps.getAccessEntryName()
accessEntryType
(AccessEntryType accessEntryType) Sets the value ofAccessEntryProps.getAccessEntryType()
accessPolicies
(List<? extends IAccessPolicy> accessPolicies) Sets the value ofAccessEntryProps.getAccessPolicies()
build()
Builds the configured instance.Sets the value ofAccessEntryProps.getCluster()
Sets the value ofAccessEntryProps.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPolicies
@Stability(Stable) public AccessEntryProps.Builder accessPolicies(List<? extends IAccessPolicy> accessPolicies) Sets the value ofAccessEntryProps.getAccessPolicies()
- Parameters:
accessPolicies
- The access policies that define the permissions and scope for the access entry. This parameter is required.- Returns:
this
-
cluster
Sets the value ofAccessEntryProps.getCluster()
- Parameters:
cluster
- The Amazon EKS cluster to which the access entry applies. This parameter is required.- Returns:
this
-
principal
Sets the value ofAccessEntryProps.getPrincipal()
- Parameters:
principal
- The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with. This parameter is required.- Returns:
this
-
accessEntryName
Sets the value ofAccessEntryProps.getAccessEntryName()
- Parameters:
accessEntryName
- The name of the AccessEntry.- Returns:
this
-
accessEntryType
Sets the value ofAccessEntryProps.getAccessEntryType()
- Parameters:
accessEntryType
- The type of the AccessEntry.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccessEntryProps>
- Returns:
- a new instance of
AccessEntryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-