# IdentityType

Enum representing the different identity types that can be used for a Kubernetes service account.

- Source: [`aws-eks/lib/service-account.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks/lib/service-account.ts#L16)
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

```ts
declare const cluster: eks.Cluster;

new eks.ServiceAccount(this, 'ServiceAccount', {
  cluster,
  name: 'test-sa',
  namespace: 'default',
  identityType: eks.IdentityType.POD_IDENTITY,
});
```

## Members

| Member | Description |
| --- | --- |
| `IRSA` | Use the IAM Roles for Service Accounts (IRSA) identity type. |
| `POD_IDENTITY` | Use the EKS Pod Identities identity type. |

## Referenced by

- [`ServiceAccountOptions`](/v2/docs/aws-cdk-lib.aws_eks.ServiceAccountOptions).identityType
