ALIYUN::MOBI::App类型用于创建应用。
语法
{
"Type": "ALIYUN::MOBI::App",
"Properties": {
"AppIcon": String,
"AppWorkspaceId": String,
"AppName": String,
"Template": Map,
"AppDescription": String,
"AppType": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
AppIcon | String | 是 | 是 | 应用图标标号。 | 系统默认提供了图标,以标号的形式给出,默认值为-1。 |
AppWorkspaceId | String | 是 | 否 | 工作空间编号。 | 应用是归属在工作空间下的。 |
AppName | String | 是 | 是 | 应用名称。 | 无 |
Template | Map | 是 | 否 | 应用模板。 | 更多信息,请参见Template属性。 |
AppDescription | String | 否 | 是 | 应用描述。 | 无 |
AppType | String | 否 | 否 | 应用类型, | 取值:
|
Template语法
"Template": {
"ActualParameters": String,
"ConnectionsContent": String,
"TemplateId": String
}
Template属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ConnectionsContent | String | 是 | 否 | 连接器配置。 | 应用创建的时候需要依赖连接器,用于集成外部系统和服务。 |
TemplateId | String | 是 | 否 | 应用模板编号。 | 具体的模板可以到产品控制台上模板市场查看所有模板。 |
ActualParameters | String | 否 | 否 | 真实参数。 | 无 |
返回值
Fn::GetAtt
AppDescription:应用描述。
ModifiedTime:应用修改时间。
AppId:应用编号。
CreateTime:应用创建时间。
AppIcon:应用图标标号。系统默认提供了图标,以标号的形式给出,默认值为-1。
AppWorkspaceId:工作空间编号。应用是归属在工作空间下的。
AppType:应用类型,支持Web 应用和Copilot 应用。
AppName:应用名称。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AppDescription:
Type: String
Description:
en: Description of application.
Required: false
Default: demo72973
AppIcon:
Type: String
Description:
en: Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1.
Required: true
Default: '-1'
AppWorkspaceId:
Type: String
Description:
en: Workspace ID of application, The application belongs to the workspace.
Required: true
AppType:
Type: String
Description:
en: |-
The application type. Web applications and Copilot applications are supported.
- **Web**:Web application.
- **Copilot**:Copilot application.
AllowedValues:
- Web
- Copilot
Required: false
AppName:
Type: String
Description:
en: The application name.
Required: true
Default: test123
Resources:
ExtensionResource:
Type: ALIYUN::MOBI::App
Properties:
AppDescription:
Ref: AppDescription
AppIcon:
Ref: AppIcon
AppWorkspaceId:
Ref: AppWorkspaceId
AppType:
Ref: AppType
AppName:
Ref: AppName
Template:
ConnectionsContent:
- name: '273971'
description: ''
connectorType:
kind: mysql
name: mysql
folderId: /
resourceObject:
version: '1.0'
id: a3908e03-0c28-4040-8d1c-xxxx
name: 企业官网模板_20241120112036
description: ''
type: sql
subType: mysql
connectionTemplates:
dev:
host: 192.168.1.1
port: 3306
database: admin
username: root
password: password
production:
host: 192.168.1.1
port: 3306
database: admin
username: root
password: password
resourceRequirementId: a3908e03-0c28-4040-8d1c-xxxxx
TemplateId: 8bd986cc-8e58-42d4-9cc6-xxxxx
Outputs:
AppDescription:
Description: Description of application.
Value:
Fn::GetAtt:
- ExtensionResource
- AppDescription
ModifiedTime:
Description: Modified time of application.
Value:
Fn::GetAtt:
- ExtensionResource
- ModifiedTime
AppId:
Description: Application ID.
Value:
Fn::GetAtt:
- ExtensionResource
- AppId
CreateTime:
Description: Create time of application.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
AppIcon:
Description: Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1.
Value:
Fn::GetAtt:
- ExtensionResource
- AppIcon
AppWorkspaceId:
Description: Workspace ID of application, The application belongs to the workspace.
Value:
Fn::GetAtt:
- ExtensionResource
- AppWorkspaceId
AppType:
Description: The application type. Web applications and Copilot applications are supported.
Value:
Fn::GetAtt:
- ExtensionResource
- AppType
AppName:
Description: The application name.
Value:
Fn::GetAtt:
- ExtensionResource
- AppName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AppDescription": {
"Type": "String",
"Description": {
"en": "Description of application."
},
"Required": false,
"Default": "demo72973"
},
"AppIcon": {
"Type": "String",
"Description": {
"en": "Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1."
},
"Required": true,
"Default": "-1"
},
"AppWorkspaceId": {
"Type": "String",
"Description": {
"en": "Workspace ID of application, The application belongs to the workspace."
},
"Required": true
},
"AppType": {
"Type": "String",
"Description": {
"en": "The application type. Web applications and Copilot applications are supported.\n- **Web**:Web application.\n- **Copilot**:Copilot application."
},
"AllowedValues": [
"Web",
"Copilot"
],
"Required": false
},
"AppName": {
"Type": "String",
"Description": {
"en": "The application name."
},
"Required": true,
"Default": "test123"
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::MOBI::App",
"Properties": {
"AppDescription": {
"Ref": "AppDescription"
},
"AppIcon": {
"Ref": "AppIcon"
},
"AppWorkspaceId": {
"Ref": "AppWorkspaceId"
},
"AppType": {
"Ref": "AppType"
},
"AppName": {
"Ref": "AppName"
},
"Template": {
"ConnectionsContent": [
{
"name": "273971",
"description": "",
"connectorType": {
"kind": "mysql",
"name": "mysql"
},
"folderId": "/",
"resourceObject": {
"version": "1.0",
"id": "a3908e03-0c28-4040-8d1c-xxxx",
"name": "企业官网模板_20241120112036",
"description": "",
"type": "sql",
"subType": "mysql",
"connectionTemplates": {
"dev": {
"host": "192.168.1.1",
"port": 3306,
"database": "admin",
"username": "root",
"password": "password"
},
"production": {
"host": "192.168.1.1",
"port": 3306,
"database": "admin",
"username": "root",
"password": "password"
}
}
},
"resourceRequirementId": "a3908e03-0c28-4040-8d1c-xxxxx"
}
],
"TemplateId": "8bd986cc-8e58-42d4-9cc6-xxxxx"
}
}
}
},
"Outputs": {
"AppDescription": {
"Description": "Description of application.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppDescription"
]
}
},
"ModifiedTime": {
"Description": "Modified time of application.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ModifiedTime"
]
}
},
"AppId": {
"Description": "Application ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppId"
]
}
},
"CreateTime": {
"Description": "Create time of application.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"AppIcon": {
"Description": "Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppIcon"
]
}
},
"AppWorkspaceId": {
"Description": "Workspace ID of application, The application belongs to the workspace.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppWorkspaceId"
]
}
},
"AppType": {
"Description": "The application type. Web applications and Copilot applications are supported.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppType"
]
}
},
"AppName": {
"Description": "The application name.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppName"
]
}
}
}
}
文档内容是否对您有帮助?