ALIYUN::CR::UserInfo is used to create the information about a user.
Syntax
{
"Type": "ALIYUN::CR::UserInfo",
"Properties": {
"User": Map
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
User | Map | Yes | Yes | The information about the user. | If the information exists, you can specify this parameter to update the information. For more information, see User syntax and User properties. |
User syntax
"User": {
"Password": String
}
User properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Password | String | Yes | Yes | The password of the user account. | The password must be 8 to 32 characters in length. The password must contain at least
two of the following character types: letters, digits, and special characters. Special
characters include () ' ~ ! @ # $ % ^ & ∗ - + = | {} [] : ; <> , . ? / -
|
Response parameters
Fn::GetAtt
- LoginName: the username of the account that is used for logon.
- UserId: the ID of the user.
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"User": {
"Type": "Json",
"Description": "User info. If user exists, will update user info.",
"Default": "{\"Password\": \"Admin****\"}"
}
},
"Resources": {
"UserInfo": {
"Type": "ALIYUN::CR::UserInfo",
"Properties": {
"User": {
"Ref": "User"
}
}
}
},
"Outputs": {
"LoginName": {
"Description": "Login name.",
"Value": {
"Fn::GetAtt": [
"UserInfo",
"LoginName"
]
}
},
"UserId": {
"Description": "User ID.",
"Value": {
"Fn::GetAtt": [
"UserInfo",
"UserId"
]
}
}
}
}