# AuthenticationModeProperty

Denotes the user's authentication properties, such as whether it requires a password to authenticate.

Used in output responses.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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';
const authenticationModeProperty: memorydb.CfnUser.AuthenticationModeProperty = {
  passwords: ['passwords'],
  type: 'type',
};
```

Python:

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

authentication_mode_property = memorydb.CfnUser.AuthenticationModeProperty(
    passwords=["passwords"],
    type="type"
)
```

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.memorydb.*;

AuthenticationModeProperty authenticationModeProperty = AuthenticationModeProperty.builder()
        .passwords(List.of("passwords"))
        .type("type")
        .build();
```

C# / .NET:

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

var authenticationModeProperty = new AuthenticationModeProperty {
    Passwords = new [] { "passwords" },
    Type = "type"
};
```

Golang:

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

authenticationModeProperty := &AuthenticationModeProperty{
	Passwords: []*string{
		jsii.String("passwords"),
	},
	Type: jsii.String("type"),
}
```

## Properties

- `passwords`: string[] — The password(s) used for authentication.

- `type`: string — Indicates whether the user requires a password to authenticate.

  All newly-created users require a password.
