GrantAccessOptions
- class aws_cdk.aws_eks.GrantAccessOptions(*, access_entry_type=None)
Bases:
objectOptions for granting access to a cluster.
- Parameters:
access_entry_type (
Optional[AccessEntryType]) – The type of the access entry. SpecifyAccessEntryType.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- ExampleMetadata:
infused
Example:
# cluster: eks.Cluster # node_role: iam.Role # For EKS Auto Mode node roles cluster.grant_access("NodeAccess", node_role.role_arn, [], access_entry_type=eks.AccessEntryType.EC2)
Attributes
- access_entry_type
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