# AwsAuthMapping

AwsAuth mapping.

- Source: [`aws-eks/lib/aws-auth-mapping.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks/lib/aws-auth-mapping.ts#L4)

## Example

```ts
declare const cluster: eks.Cluster;
const adminUser = new iam.User(this, 'Admin');
cluster.awsAuth.addUserMapping(adminUser, { groups: [ 'system:masters' ]});
```

## Properties

- `groups`: string[] (required) — A list of groups within Kubernetes to which the role is mapped.

- `username`: string — The user name within Kubernetes to map to the IAM role.

  **Default:** By default, the user name is the ARN of the IAM role.
