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

Attributes that can be specified when importing a UserGroup.

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

## Example

```ts
const stack = new Stack();

const importedIamUser = elasticache.IamUser.fromUserId(this, 'ImportedIamUser', 'my-iam-user-id');

const importedPasswordUser = elasticache.PasswordUser.fromUserAttributes(stack, 'ImportedPasswordUser', {
  userId: 'my-password-user-id',
});

const importedNoPasswordUser = elasticache.NoPasswordUser.fromUserAttributes(stack, 'ImportedNoPasswordUser', {
  userId: 'my-no-password-user-id',
});

const importedUserGroup = elasticache.UserGroup.fromUserGroupAttributes(this, 'ImportedUserGroup', {
  userGroupName: 'my-user-group-name'
});
```

## Properties

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

  **Default:** engine type is unknown

- `userGroupArn`: string — The ARN of the user group.

  **Default:** derived from userGroupName

  One of `userGroupName` or `userGroupArn` is required.

- `userGroupName`: string — The name of the user group.

  **Default:** derived from userGroupArn

  One of `userGroupName` or `userGroupArn` is required.

- `users`: [IUser](/cdk/api/v2/docs/@aws-cdk_aws-elasticache-alpha.IUser.html)[] — List of users in the user group.

  **Default:** users are unknown
