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"
]
}
}
}
}