Class AccessPolicy.Builder

java.lang.Object
software.amazon.awscdk.services.eks.AccessPolicy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPolicy>
Enclosing class:
AccessPolicy

@Stability(Stable) public static final class AccessPolicy.Builder extends Object implements software.amazon.jsii.Builder<AccessPolicy>
A fluent builder for AccessPolicy.
  • Method Details

    • create

      @Stability(Stable) public static AccessPolicy.Builder create()
      Returns:
      a new instance of AccessPolicy.Builder.
    • accessScope

      @Stability(Stable) public AccessPolicy.Builder accessScope(AccessScope accessScope)
      The scope of the access policy, which determines the level of access granted.

      Parameters:
      accessScope - The scope of the access policy, which determines the level of access granted. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public AccessPolicy.Builder policy(AccessPolicyArn policy)
      The access policy itself, which defines the specific permissions.

      Parameters:
      policy - The access policy itself, which defines the specific permissions. This parameter is required.
      Returns:
      this
    • build

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