Skip to content
v2.277.0

AuthenticationModeProperty Struct ​

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

Used in output responses.

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

passwordsoptionalstring[]passwordsoptionaltyping.List[str]passwordsoptionalList<String>Passwordsoptionalstring[]Passwordsoptional*[]*string#
The password(s) used for authentication.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string#
Indicates whether the user requires a password to authenticate.

All newly-created users require a password.