文档

ALIYUN::EdsUser::User

更新时间:

ALIYUN::EdsUser::User类型用于创建便捷账号用户。

语法

{
  "Type": "ALIYUN::EdsUser::User",
  "Properties": {
    "OrgId": String,
    "OwnerType": String,
    "EndUserId": String,
    "Email": String,
    "Phone": String,
    "Remark": String,
    "Password": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

OrgId

String

用户所属的组织。

OwnerType

String

账号归属类型。

取值:

  • Normal:用户激活。

  • CreateFromManager:管理员激活。

EndUserId

String

用户名。

自定义设置,由小写字母、数字和下划线组成,长度为3~24个字符。

Email

String

邮箱。

用于接收相关邮件,如分配桌面通知邮件。邮箱和手机号二选一必填。

Phone

String

手机号。

用于接收相关短信,如分配桌面通知短信。邮箱和手机号二选一必填。

Remark

String

用户备注。

Password

String

用户密码。

返回值

Fn::GetAtt

EndUserId:用户名。

示例

YAML格式

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

JSON格式

{
  "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"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈