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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAccessPolicyNameOptionsstatic final classAn implementation forAccessPolicyNameOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The scope of the access policy.An optional array of Kubernetes namespaces to which the access policy applies.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessScopeType
The scope of the access policy.This determines the level of access granted by the policy.
-
getNamespaces
An optional array of Kubernetes namespaces to which the access policy applies.Default: - no specific namespaces for this scope
-
builder
- Returns:
- a
AccessPolicyNameOptions.BuilderofAccessPolicyNameOptions
-