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.BuilderThe Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.removalPolicy(RemovalPolicy removalPolicy) The removal policy applied to the access entry.
-
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
-
removalPolicy
The removal policy applied to the access entry.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
Default: RemovalPolicy.DESTROY
- Parameters:
removalPolicy- The removal policy applied to the access entry. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessEntry>- Returns:
- a newly built instance of
AccessEntry.
-