# AccessPolicyProps

Properties for configuring an Amazon EKS Access Policy.

Extends: AccessPolicyProps
Used as props by: AccessPolicy

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';

declare const accessPolicyArn: eks.AccessPolicyArn;
const accessPolicyProps: eks.AccessPolicyProps = {
  accessScope: {
    type: eks.AccessScopeType.NAMESPACE,

    // the properties below are optional
    namespaces: ['namespaces'],
  },
  policy: accessPolicyArn,
};
```

## Properties

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

- `policy`: [AccessPolicyArn](/cdk/api/v2/docs/aws-cdk-lib.aws_eks.AccessPolicyArn.html) (required) — The access policy itself, which defines the specific permissions.
