Skip to content
v2.275.0

AccessScopeType Enum ​

Represents the scope type of an access policy.

The scope type determines the level of access granted by the policy.

Example ​

ts
// AmazonEKSClusterAdminPolicy with `cluster` scope
eks.AccessPolicy.fromAccessPolicyName('AmazonEKSClusterAdminPolicy', {
  accessScopeType: eks.AccessScopeType.CLUSTER,
});
// AmazonEKSAdminPolicy with `namespace` scope
eks.AccessPolicy.fromAccessPolicyName('AmazonEKSAdminPolicy', {
  accessScopeType: eks.AccessScopeType.NAMESPACE,
  namespaces: ['foo', 'bar'] } );

Members ​

MemberDescription
NAMESPACEThe policy applies to a specific namespace within the cluster.
CLUSTERThe policy applies to the entire cluster.

Referenced by ​