# IAccessPolicy

Represents an access policy that defines the permissions and scope for a user or role to access an Amazon EKS cluster.

Implemented by: [AccessPolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.AccessPolicy.html)
Obtainable from: [AccessPolicy.fromAccessPolicyName](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.AccessPolicy.html#fromaccesspolicyname)
Used as argument in: [AccessEntry.addAccessPolicies](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.AccessEntry.html#addaccesspolicies), [Cluster.grantAccess](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.Cluster.html#grantaccess)

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

## Properties

- `accessScope`: [AccessScope](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.AccessScope.html) — The scope of the access policy, which determines the level of access granted.

- `policy`: string — The access policy itself, which defines the specific permissions.
