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 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

      @Stability(Stable) public AccessEntry.Builder cluster(ICluster 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

      @Stability(Stable) public AccessEntry.Builder principal(String 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

      @Stability(Stable) public AccessEntry.Builder accessEntryName(String 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

      @Stability(Stable) public AccessEntry.Builder accessEntryType(AccessEntryType accessEntryType)
      The type of the AccessEntry.

      Default: STANDARD

      Parameters:
      accessEntryType - The type of the AccessEntry. This parameter is required.
      Returns:
      this
    • removalPolicy

      @Stability(Stable) public AccessEntry.Builder removalPolicy(RemovalPolicy 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

      @Stability(Stable) public AccessEntry build()
      Specified by:
      build in interface software.amazon.jsii.Builder<AccessEntry>
      Returns:
      a newly built instance of AccessEntry.