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

Properties for defining an ElastiCache base user.

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

## Example

TypeScript:

```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,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_elasticache_alpha as elasticache_alpha

# access_control: elasticache_alpha.AccessControl
# user_engine: elasticache_alpha.UserEngine

user_base_props = elasticache_alpha.UserBaseProps(
    access_control=access_control,
    user_id="userId",

    # the properties below are optional
    engine=user_engine
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticache.alpha.*;

AccessControl accessControl;
UserEngine userEngine;

UserBaseProps userBaseProps = UserBaseProps.builder()
        .accessControl(accessControl)
        .userId("userId")

        // the properties below are optional
        .engine(userEngine)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.ElastiCache.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElastiCache.Alpha;

AccessControl accessControl;
UserEngine userEngine;

var userBaseProps = new UserBaseProps {
    AccessControl = accessControl,
    UserId = "userId",

    // the properties below are optional
    Engine = userEngine
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import elasticache_alpha "github.com/aws/aws-cdk-go/awscdkelasticachealpha"

var accessControl AccessControl
var userEngine UserEngine

userBaseProps := &UserBaseProps{
	AccessControl: accessControl,
	UserId: jsii.String("userId"),

	// the properties below are optional
	Engine: userEngine,
}
```

## Properties

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

- `engine`: [UserEngine](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-elasticache-alpha.UserEngine.html) — The engine type for the user.

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

  Enum options: UserEngine.VALKEY, UserEngine.REDIS.

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