> **Experimental**
>
> `@aws-cdk/aws-elasticache-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# UserBaseProps

Properties for defining an ElastiCache base user.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/user-base.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-elasticache-alpha/lib/user-base.ts#L44)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as elasticache_alpha from '@aws-cdk/aws-elasticache-alpha';

declare const accessControl: elasticache_alpha.AccessControl;
declare const userEngine: elasticache_alpha.UserEngine;
const userBaseProps: elasticache_alpha.UserBaseProps = {
  accessControl: accessControl,
  userId: 'userId',

  // the properties below are optional
  engine: userEngine,
};
```

## Properties

- `accessControl`: [AccessControl](/cdk/api/v2/docs/@aws-cdk_aws-elasticache-alpha.AccessControl.html) (required) — Access control configuration for the user.

- `engine`: [UserEngine](/cdk/api/v2/docs/@aws-cdk_aws-elasticache-alpha.UserEngine.html) = UserEngine.REDIS for NoPasswordUser, UserEngine.VALKEY for all other user types. — The engine type for the user.

  Enum options: UserEngine.VALKEY, UserEngine.REDIS.

  **Default:** UserEngine.REDIS for NoPasswordUser, UserEngine.VALKEY for all other user types.

- `userId`: string (required) — The ID of the user.
