ALIYUN::EdsUser::User类型用于创建便捷账号用户。
语法
{
"Type": "ALIYUN::EdsUser::User",
"Properties": {
"OrgId": String,
"OwnerType": String,
"EndUserId": String,
"Email": String,
"Phone": String,
"Remark": String,
"Password": String,
"PasswordExpireDays": String,
"AutoLockTime": String,
"BusinessChannel": String,
"IsLocalAdmin": Boolean,
"RealNickName": String
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
AutoLockTime | String | 否 | 否 | 自动锁定账号的日期。 | 无 |
BusinessChannel | String | 否 | 否 | 渠道。 | 无 |
IsLocalAdmin | Boolean | 否 | 否 | 是否将该便捷账号设为本地管理员。 | 无 |
PasswordExpireDays | String | 否 | 否 | 用户账号的密码默认为永久有效。 | 可通过此参数设置 30~365 天的密码有效期,当密码到期后,终端用户必须先修改密码才能继续登录。 |
RealNickName | String | 否 | 否 | ||
OrgId | String | 否 | 否 | 用户所属的组织。 | 无 |
OwnerType | String | 否 | 否 | 账号归属类型。 | 取值:
|
EndUserId | String | 是 | 否 | 用户名。 | 自定义设置,由小写字母、数字和下划线组成,长度为3~24个字符。 |
String | 否 | 是 | 邮箱。 | 用于接收相关邮件,如分配桌面通知邮件。邮箱和手机号二选一必填。 | |
Phone | String | 否 | 是 | 手机号。 | 用于接收相关短信,如分配桌面通知短信。邮箱和手机号二选一必填。 |
Remark | String | 否 | 否 | 用户备注。 | 无 |
Password | String | 否 | 否 | 用户密码。 | 无 |
返回值
Fn::GetAtt
EndUserId:用户名。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
EndUserId:
Type: String
Description: The name of the end user. The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).
Default: test123
Phone:
Type: String
Description: Mobile numbers are not supported on the international site (alibabacloud.com).
Default: '********'
Resources:
User:
Type: ALIYUN::EdsUser::User
Properties:
EndUserId:
Ref: EndUserId
Phone:
Ref: Phone
Outputs:
EndUserId:
Description: The name of the end user.
Value:
Fn::GetAtt:
- User
- EndUserId{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"EndUserId": {
"Type": "String",
"Description": "The name of the end user. The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).",
"Default": "test123"
},
"Phone": {
"Type": "String",
"Description": "Mobile numbers are not supported on the international site (alibabacloud.com).",
"Default": "********"
}
},
"Resources": {
"User": {
"Type": "ALIYUN::EdsUser::User",
"Properties": {
"EndUserId": {
"Ref": "EndUserId"
},
"Phone": {
"Ref": "Phone"
}
}
}
},
"Outputs": {
"EndUserId": {
"Description": "The name of the end user.",
"Value": {
"Fn::GetAtt": [
"User",
"EndUserId"
]
}
}
}
}该文章对您有帮助吗?