ALIYUN::ARMS::Rum类型用于创建RUM应用。
语法
{
"Type": "ALIYUN::ARMS::Rum",
"Properties": {
"AppName": String,
"SiteType": String,
"AppGroup": String,
"Description": String,
"Language": String,
"NickName": String,
"PackageName": String,
"ResourceGroupId": String,
"RealRegionId": String,
"Source": String,
"Tags": List
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
AppName |
String |
是 |
否 |
应用名称。 |
无 |
|
SiteType |
String |
是 |
否 |
应用类型。 |
取值:
|
|
AppGroup |
String |
否 |
否 |
应用组。 |
无 |
|
Description |
String |
否 |
是 |
应用描述信息。 |
无 |
|
Language |
String |
否 |
否 |
客户端语言。 |
无 |
|
NickName |
String |
否 |
是 |
应用昵称。 |
无 |
|
PackageName |
String |
否 |
否 |
Android 应用包名。 |
创建 Android 应用时必填。 |
|
ResourceGroupId |
String |
否 |
是 |
资源组 ID。 |
无 |
|
RealRegionId |
String |
否 |
否 |
应用实际接入 Region。 |
仅上海金融云场景使用。 |
|
Source |
String |
否 |
否 |
RUM应用的来源。 |
无 |
|
Tags |
List |
否 |
否 |
标签列表。 |
更多信息,请参见Tags属性。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
Key |
String |
是 |
否 |
标签键。 |
无 |
|
Value |
String |
否 |
否 |
标签值。 |
无 |
返回值
Fn::GetAtt
-
Endpoint:应用数据的上报 endpoint。
-
CdnDomain:RUM应用的CDN域名。
-
Pid:应用 ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SiteType:
Type: String
Description:
en: The type of the website.
Required: true
AppName:
Type: String
Description:
en: |-
The name of the RUM application.
The value can be up to 64 characters in length.
Required: true
Resources:
Rum:
Type: ALIYUN::ARMS::Rum
Properties:
SiteType:
Ref: SiteType
AppName:
Ref: AppName
Outputs:
Endpoint:
Description: The endpoint of the RUM application.
Value:
Fn::GetAtt:
- Rum
- Endpoint
CdnDomain:
Description: The CDN domain of the RUM application.
Value:
Fn::GetAtt:
- Rum
- CdnDomain
Pid:
Description: The PID of the RUM application.
Value:
Fn::GetAtt:
- Rum
- Pid
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SiteType": {
"Type": "String",
"Description": {
"en": "The type of the website."
},
"Required": true
},
"AppName": {
"Type": "String",
"Description": {
"en": "The name of the RUM application.\nThe value can be up to 64 characters in length."
},
"Required": true
}
},
"Resources": {
"Rum": {
"Type": "ALIYUN::ARMS::Rum",
"Properties": {
"SiteType": {
"Ref": "SiteType"
},
"AppName": {
"Ref": "AppName"
}
}
}
},
"Outputs": {
"Endpoint": {
"Description": "The endpoint of the RUM application.",
"Value": {
"Fn::GetAtt": [
"Rum",
"Endpoint"
]
}
},
"CdnDomain": {
"Description": "The CDN domain of the RUM application.",
"Value": {
"Fn::GetAtt": [
"Rum",
"CdnDomain"
]
}
},
"Pid": {
"Description": "The PID of the RUM application.",
"Value": {
"Fn::GetAtt": [
"Rum",
"Pid"
]
}
}
}
}该文章对您有帮助吗?