# CfnUserGroupProps

Properties for defining a `CfnUserGroup`.

Extends: CfnUserGroupProps
Used as props by: CfnUserGroup

- Source: Generated code
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as elasticache } from 'aws-cdk-lib';
const cfnUserGroupProps: elasticache.CfnUserGroupProps = {
  engine: 'engine',
  userGroupId: 'userGroupId',
  userIds: ['userIds'],

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `engine`: string (required) — The current supported values are valkey and redis.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The list of tags.

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

- `userIds`: string[] (required) — The list of user IDs that belong to the user group.

  A user named `default` must be included.
