# CfnUserProps

Properties for defining a `CfnUser`.

Extends: CfnUserProps
Used as props by: CfnUser

- Source: Generated code
- Type last changed: v2.78.0 · 4 May 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_memorydb as memorydb } from 'aws-cdk-lib';

declare const authenticationMode: any;
const cfnUserProps: memorydb.CfnUserProps = {
  userName: 'userName',

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

## Properties

- `accessString`: string — Access permissions string used for this user.

- `authenticationMode`: any — Denotes whether the user requires a password to authenticate.

  *Example:*

  `mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }`

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

- `userName`: string (required) — The name of the user.
