# AccessScopeType

Represents the scope type of an access policy.

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

- Source: [`aws-eks/lib/access-entry.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks/lib/access-entry.ts#L59)
- Type last changed: v2.146.0 · 13 Jun 2024

## 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

| Member | Description |
| --- | --- |
| `NAMESPACE` | The policy applies to a specific namespace within the cluster. |
| `CLUSTER` | The policy applies to the entire cluster. |

## Referenced by

- [`AccessPolicyNameOptions`](/v2/docs/aws-cdk-lib.aws_eks.AccessPolicyNameOptions).accessScopeType
- [`AccessScope`](/v2/docs/aws-cdk-lib.aws_eks.AccessScope).type
