Interface GrantAccessOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GrantAccessOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:10.753Z")
@Stability(Stable)
public interface GrantAccessOptions
extends software.amazon.jsii.JsiiSerializable
Options for granting access to a cluster.
Example:
Cluster cluster;
Role nodeRole;
// For EKS Auto Mode node roles
cluster.grantAccess("NodeAccess", nodeRole.getRoleArn(), List.of(), GrantAccessOptions.builder().accessEntryType(AccessEntryType.EC2).build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGrantAccessOptionsstatic final classAn implementation forGrantAccessOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic GrantAccessOptions.Builderbuilder()default AccessEntryTypeThe type of the access entry.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessEntryType
The type of the access entry.Specify
AccessEntryType.EC2for EKS Auto Mode node roles,AccessEntryType.HYBRID_LINUXfor EKS Hybrid Nodes, orAccessEntryType.HYPERPOD_LINUXfor SageMaker HyperPod.Note that EC2, HYBRID_LINUX, and HYPERPOD_LINUX types cannot have access policies attached per AWS EKS API constraints.
Default: AccessEntryType.STANDARD - Standard access entry type that supports access policies
-
builder
- Returns:
- a
GrantAccessOptions.BuilderofGrantAccessOptions
-