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 | はい | いいえ | ワークスペースの ID。 | アプリケーションはワークスペースに属します。 |
AppName | String | はい | はい | アプリケーションの名前。 | なし。 |
Template | Map | はい | いいえ | アプリケーションのテンプレート。 | 詳細については、このトピックの「テンプレートのプロパティ」セクションをご参照ください。 |
AppDescription | String | いいえ | はい | アプリケーションの説明。 | なし。 |
AppType | String | いいえ | いいえ | アプリケーションのタイプ。 | 有効な値:
|
テンプレート構文
"Template": {
"ActualParameters": String,
"ConnectionsContent": String,
"TemplateId": String
}テンプレートのプロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ConnectionsContent | String | はい | いいえ | コネクタ構成。 | アプリケーションを作成する場合、アプリケーションはコネクタに依存して外部システムとサービスを統合する必要があります。 |
TemplateId | String | はい | いいえ | アプリケーションのテンプレート ID。 | テンプレートの詳細については、サービスコンソールのテンプレートマーケットプレイスモジュールにアクセスして、すべてのテンプレートを表示できます。 |
ActualParameters | String | いいえ | いいえ | 実パラメータ。 | なし。 |
戻り値
Fn::GetAtt
AppDescription:アプリケーションの説明。
ModifiedTime:アプリケーションの変更時刻。
AppId:アプリケーションの ID。
CreateTime:アプリケーションの作成時刻。
AppIcon:アプリケーションアイコンの番号。デフォルトでは、システムは番号形式のアイコンを提供します。デフォルト値:-1。
AppWorkspaceId:ワークスペースの ID。アプリケーションはワークスペースに属します。
AppType:アプリケーションのタイプ。Web アプリケーションと Copilot アプリケーションがサポートされています。
AppName:アプリケーションの名前。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AppDescription:
Type: String
Description:
ja: アプリケーションの説明。
Required: false
Default: demo72973
AppIcon:
Type: String
Description:
ja: アプリケーションアイコンラベル。システムはデフォルトでアイコンを提供し、ラベルの形式で指定されます。デフォルト値は -1 です。
Required: true
Default: '-1'
AppWorkspaceId:
Type: String
Description:
ja: アプリケーションのワークスペース ID。アプリケーションはワークスペースに属します。
Required: true
AppType:
Type: String
Description:
ja: |-
アプリケーションタイプ。Web アプリケーションと Copilot アプリケーションがサポートされています。
- **Web**: Web アプリケーション。
- **Copilot**: Copilot アプリケーション。
AllowedValues:
- Web
- Copilot
Required: false
AppName:
Type: String
Description:
ja: アプリケーション名。
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: Enterprise Official Template_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: アプリケーションの説明。
Value:
Fn::GetAtt:
- ExtensionResource
- AppDescription
ModifiedTime:
Description: アプリケーションの変更時刻。
Value:
Fn::GetAtt:
- ExtensionResource
- ModifiedTime
AppId:
Description: アプリケーション ID。
Value:
Fn::GetAtt:
- ExtensionResource
- AppId
CreateTime:
Description: アプリケーションの作成時刻。
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
AppIcon:
Description: アプリケーションアイコンラベル。システムはデフォルトでアイコンを提供し、ラベルの形式で指定されます。デフォルト値は -1 です。
Value:
Fn::GetAtt:
- ExtensionResource
- AppIcon
AppWorkspaceId:
Description: アプリケーションのワークスペース ID。アプリケーションはワークスペースに属します。
Value:
Fn::GetAtt:
- ExtensionResource
- AppWorkspaceId
AppType:
Description: アプリケーションタイプ。 Web アプリケーションと Copilot アプリケーションがサポートされています。
Value:
Fn::GetAtt:
- ExtensionResource
- AppType
AppName:
Description: アプリケーション名。
Value:
Fn::GetAtt:
- ExtensionResource
- AppName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AppDescription": {
"Type": "String",
"Description": {
"ja": "アプリケーションの説明。"
},
"Required": false,
"Default": "demo72973"
},
"AppIcon": {
"Type": "String",
"Description": {
"ja": "アプリケーションアイコンラベル。システムはデフォルトでアイコンを提供し、ラベルの形式で指定されます。デフォルト値は -1 です。"
},
"Required": true,
"Default": "-1"
},
"AppWorkspaceId": {
"Type": "String",
"Description": {
"ja": "アプリケーションのワークスペース ID。アプリケーションはワークスペースに属します。"
},
"Required": true
},
"AppType": {
"Type": "String",
"Description": {
"ja": "アプリケーションタイプ。Web アプリケーションと Copilot アプリケーションがサポートされています。\n- **Web**: Web アプリケーション。\n- **Copilot**: Copilot アプリケーション。"
},
"AllowedValues": [
"Web",
"Copilot"
],
"Required": false
},
"AppName": {
"Type": "String",
"Description": {
"ja": "アプリケーション名。"
},
"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": "Enterprise Official Template_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": "アプリケーションの説明。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppDescription"
]
}
},
"ModifiedTime": {
"Description": "アプリケーションの変更時刻。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ModifiedTime"
]
}
},
"AppId": {
"Description": "アプリケーション ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppId"
]
}
},
"CreateTime": {
"Description": "アプリケーションの作成時刻。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"AppIcon": {
"Description": "アプリケーションアイコンラベル。システムはデフォルトでアイコンを提供し、ラベルの形式で指定されます。デフォルト値は -1 です。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppIcon"
]
}
},
"AppWorkspaceId": {
"Description": "アプリケーションのワークスペース ID。アプリケーションはワークスペースに属します。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppWorkspaceId"
]
}
},
"AppType": {
"Description": "アプリケーションタイプ。Web アプリケーションと Copilot アプリケーションがサポートされています。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppType"
]
}
},
"AppName": {
"Description": "アプリケーション名。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AppName"
]
}
}
}
}