ALIYUN::ARMS::Rum

更新时间:
复制为 MD 格式

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

应用类型。

取值:

  • web:Web&H5。

  • miniapp:小程序。

  • ios:iOS。

  • android:Android。

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"
        ]
      }
    }
  }
}