Interface AccessPolicyNameOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AccessPolicyNameOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-23T18:58:18.885Z") @Stability(Stable) public interface AccessPolicyNameOptions extends software.amazon.jsii.JsiiSerializable
Represents the options required to create an Amazon EKS Access Policy using the fromAccessPolicyName() method.

Example:

 Cluster cluster;
 Role nodeRole;
 // Grant access with EC2 type for Auto Mode node role
 cluster.grantAccess("nodeAccess", nodeRole.getRoleArn(), List.of(AccessPolicy.fromAccessPolicyName("AmazonEKSAutoNodePolicy", AccessPolicyNameOptions.builder()
         .accessScopeType(AccessScopeType.CLUSTER)
         .build())), GrantAccessOptions.builder().accessEntryType(AccessEntryType.EC2).build());
 
  • Method Details