Class AccessEntry.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AccessEntry.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessEntry>
- Enclosing class:
- AccessEntry
@Stability(Stable)
public static final class AccessEntry.Builder
extends Object
implements software.amazon.jsii.Builder<AccessEntry>
A fluent builder for
AccessEntry
.-
Method Summary
Modifier and TypeMethodDescriptionaccessEntryName
(String accessEntryName) The name of the AccessEntry.accessEntryType
(AccessEntryType accessEntryType) The type of the AccessEntry.accessPolicies
(List<? extends IAccessPolicy> accessPolicies) The access policies that define the permissions and scope for the access entry.build()
The Amazon EKS cluster to which the access entry applies.static AccessEntry.Builder
The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.
-
Method Details
-
create
@Stability(Stable) public static AccessEntry.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
AccessEntry.Builder
.
-
accessPolicies
@Stability(Stable) public AccessEntry.Builder accessPolicies(List<? extends IAccessPolicy> accessPolicies) The access policies that define the permissions and scope for the access entry.- Parameters:
accessPolicies
- The access policies that define the permissions and scope for the access entry. This parameter is required.- Returns:
this
-
cluster
The Amazon EKS cluster to which the access entry applies.- Parameters:
cluster
- The Amazon EKS cluster to which the access entry applies. This parameter is required.- Returns:
this
-
principal
The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.- 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
The name of the AccessEntry.Default: - No access entry name is provided
- Parameters:
accessEntryName
- The name of the AccessEntry. This parameter is required.- Returns:
this
-
accessEntryType
The type of the AccessEntry.Default: STANDARD
- Parameters:
accessEntryType
- The type of the AccessEntry. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccessEntry>
- Returns:
- a newly built instance of
AccessEntry
.
-