ALIYUN::SAG::AppUser类型用于创建智能接入网关App用户。
语法
{
  "Type": "ALIYUN::SAG::AppUser",
  "Properties": {
    "UserName": String,
    "UserMail": String,
    "Bandwidth": Integer,
    "SmartAGId": String,
    "ClientIp": String,
    "Disable": Boolean,
    "Password": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| UserName | String | 否 | 否 | 用户名。 | 同一个智能接入网关App实例下的用户名不可以重复。
                               名称长度为7~33个字符,必须以大小写字母或数字开头,可以包含下划线(_) 、at(@)、半角句号(.)和短划线(-)。 说明 用户名和密码相互依赖,如果指定用户名则必须指定密码。反之,如果指定密码则必须指定用户名。
                                  
                               | 
                        
| UserMail | String | 是 | 是 | 普通用户的邮箱地址。 | 管理员向普通用户发送登录App的账号信息。 | 
| Bandwidth | Integer | 是 | 是 | 带宽峰值。 | 单位:Kbps。
                               取值范围:1 Kbps~20000 Kbps。 默认值:2000 Kbps。  | 
                        
| SmartAGId | String | 是 | 否 | 智能接入网关App实例ID。 | 无 | 
| ClientIp | String | 否 | 否 | 网关App的IP地址。 | 
                              
  | 
                        
| Disable | Boolean | 否 | 是 | 是否禁用用户。 | 取值:
                              
  | 
                        
| Password | String | 否 | 否 | 登录智能接入网关App的密码。 | 密码命名规则: 8~32位字符,以(A-Za-z0-9)开头,可包含数字、英文大小写、下划线(_)、at(@)、短划线(-)。 | 
返回值
Fn::GetAtt
- UserName:用户名。
 - SmartAGId:智能接入网关App实例ID。
 
示例
JSON格式
                  
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "UserMail": {
      "Type": "String",
      "Description": "The email address of the user. The username and password are sent to the specified\nemail address."
    },
    "Bandwidth": {
      "Type": "Number",
      "Description": "The bandwidth. Unit: Kbit/s. Maximum bandwidth: 2,000 Kbit/s."
    },
    "SmartAGId": {
      "Type": "String",
      "Description": "The ID of the SAG APP instance."
    }
  },
  "Resources": {
    "AppUser": {
      "Type": "ALIYUN::SAG::AppUser",
      "Properties": {
        "UserMail": {
          "Ref": "UserMail"
        },
        "Bandwidth": {
          "Ref": "Bandwidth"
        },
        "SmartAGId": {
          "Ref": "SmartAGId"
        }
      }
    }
  },
  "Outputs": {
    "UserName": {
      "Description": "",
      "Value": {
        "Fn::GetAtt": [
          "AppUser",
          "UserName"
        ]
      }
    },
    "SmartAGId": {
      "Description": "The ID of the SAG APP instance.",
      "Value": {
        "Fn::GetAtt": [
          "AppUser",
          "SmartAGId"
        ]
      }
    }
  }
}