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

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