ALIYUN::DMS::User類型用于錄入本企業的新用戶。
語法
{
"Type": "ALIYUN::DMS::User",
"Properties": {
"Status": String,
"Uid": String,
"UserName": String,
"RoleNames": List,
"Mobile": String,
"Tid": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Status | String | 否 | 是 | 用戶狀態 | 取值:
|
Uid | String | 是 | 否 | 阿里云UID | 無 |
UserName | String | 否 | 是 | 用戶名 | 無 |
RoleNames | List | 否 | 是 | 用戶角色 | 取值:
說明 可以設置多個用戶角色。 |
Mobile | String | 否 | 是 | 電話 | 無 |
Tid | String | 否 | 否 | 租戶ID | 無 |
返回值
Fn::GetAtt
- Uid:阿里云UID。
- UserName:用戶名。
- RoleNames:用戶角色。
- UserId:用戶ID。
- RoleIds:用戶角色ID。
- Mobile:電話。
- ParentUid:主賬號阿里云UID。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Status": {
"Type": "String",
"Description": "UserStatus"
},
"Uid": {
"Type": "String",
"Description": "UserAliYunUid"
},
"UserName": {
"Type": "String",
"Description": "UserNickName"
},
"RoleNames": {
"Type": "Json",
"Description": "UserRole"
},
"Mobile": {
"Type": "String",
"Description": "UserMobile"
},
"Tid": {
"Type": "String",
"Description": ""
}
},
"Resources": {
"DMSEnterpriseUser": {
"Type": "ALIYUN::DMS::User",
"Properties": {
"Status": {
"Ref": "Status"
},
"Uid": {
"Ref": "Uid"
},
"UserName": {
"Ref": "UserName"
},
"RoleNames": {
"Ref": "RoleNames"
},
"Mobile": {
"Ref": "Mobile"
},
"Tid": {
"Ref": "Tid"
}
}
}
},
"Outputs": {
"Uid": {
"Description": "UserAliYunUid",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"Uid"
]
}
},
"UserName": {
"Description": "UserNickName",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"UserName"
]
}
},
"RoleNames": {
"Description": "UserRole",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"RoleNames"
]
}
},
"UserId": {
"Description": "UserId",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"UserId"
]
}
},
"RoleIds": {
"Description": "UserRoleId",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"RoleIds"
]
}
},
"Mobile": {
"Description": "UserMobile",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"Mobile"
]
}
},
"ParentUid": {
"Description": "ParentAliYunUid",
"Value": {
"Fn::GetAtt": [
"DMSEnterpriseUser",
"ParentUid"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Status:
Type: String
Description: UserStatus
Uid:
Type: String
Description: UserAliYunUid
UserName:
Type: String
Description: UserNickName
RoleNames:
Type: Json
Description: UserRole
Mobile:
Type: String
Description: UserMobile
Tid:
Type: String
Description: ''
Resources:
DMSEnterpriseUser:
Type: 'ALIYUN::DMS::User'
Properties:
Status:
Ref: Status
Uid:
Ref: Uid
UserName:
Ref: UserName
RoleNames:
Ref: RoleNames
Mobile:
Ref: Mobile
Tid:
Ref: Tid
Outputs:
Uid:
Description: UserAliYunUid
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- Uid
UserName:
Description: UserNickName
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- UserName
RoleNames:
Description: UserRole
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- RoleNames
UserId:
Description: UserId
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- UserId
RoleIds:
Description: UserRoleId
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- RoleIds
Mobile:
Description: UserMobile
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- Mobile
ParentUid:
Description: ParentAliYunUid
Value:
'Fn::GetAtt':
- DMSEnterpriseUser
- ParentUid
文檔內容是否對您有幫助?