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()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofAccessEntryProps.getRemovalPolicy()
-
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
-
removalPolicy
Sets the value ofAccessEntryProps.getRemovalPolicy()- Parameters:
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
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessEntryProps>- Returns:
- a new instance of
AccessEntryProps - Throws:
NullPointerException- if any required attribute was not provided
-