interface CfnUserProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ElastiCache.CfnUserProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticache#CfnUserProps |
Java | software.amazon.awscdk.services.elasticache.CfnUserProps |
Python | aws_cdk.aws_elasticache.CfnUserProps |
TypeScript | aws-cdk-lib » aws_elasticache » CfnUserProps |
Properties for defining a CfnUser
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html
Example
// 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';
declare const authenticationMode: any;
const cfnUserProps: elasticache.CfnUserProps = {
engine: 'engine',
userId: 'userId',
userName: 'userName',
// the properties below are optional
accessString: 'accessString',
authenticationMode: authenticationMode,
noPasswordRequired: false,
passwords: ['passwords'],
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
engine | string | The current supported value is redis. |
user | string | The ID of the user. |
user | string | The username of the user. |
access | string | Access permissions string used for this user. |
authentication | any | Specifies the authentication mode to use. Below is an example of the possible JSON values:. |
no | boolean | IResolvable | Indicates a password is not required for this user. |
passwords? | string[] | Passwords used for this user. |
tags? | Cfn [] | The list of tags. |
engine
Type:
string
The current supported value is redis.
userId
Type:
string
The ID of the user.
userName
Type:
string
The username of the user.
accessString?
Type:
string
(optional)
Access permissions string used for this user.
authenticationMode?
Type:
any
(optional)
Specifies the authentication mode to use. Below is an example of the possible JSON values:.
{ Passwords: ["*****", "******"] // If Type is password.
}
noPasswordRequired?
Type:
boolean |
IResolvable
(optional)
Indicates a password is not required for this user.
passwords?
Type:
string[]
(optional)
Passwords used for this user.
You can create up to two passwords for each user.
tags?
Type:
Cfn
[]
(optional)
The list of tags.