AccessScopeType
- class aws_cdk.aws_eks.AccessScopeType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Represents the scope type of an access policy.
The scope type determines the level of access granted by the policy.
- Enum:
true
- Export:
true
- ExampleMetadata:
infused
Example:
# AmazonEKSClusterAdminPolicy with `cluster` scope eks.AccessPolicy.from_access_policy_name("AmazonEKSClusterAdminPolicy", access_scope_type=eks.AccessScopeType.CLUSTER ) # AmazonEKSAdminPolicy with `namespace` scope eks.AccessPolicy.from_access_policy_name("AmazonEKSAdminPolicy", access_scope_type=eks.AccessScopeType.NAMESPACE, namespaces=["foo", "bar"] )
Attributes
- CLUSTER
The policy applies to the entire cluster.
- NAMESPACE
The policy applies to a specific namespace within the cluster.