ALIYUN::MPS::Pipeline类型用于创建媒体处理的管道。

语法

{
  "Type": "ALIYUN::MPS::Pipeline",
  "Properties": {
    "Role": String,
    "Speed": String,
    "SpeedLevel": Integer,
    "State": String,
    "NotifyConfig": Map,
    "Name": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Role String 当前RAM用户关联的角色。
Speed String 管道类型。 取值:
  • Boost:倍速转码管道。
  • Standard(默认值):标准管道。
  • NarrowBandHDV2:窄带高清2.0管道。
  • AIVideoCover:智能截图管道。
  • AIVideoFPShot:视频DNA管道。
  • AIVideoCensor:智能审核管道。
  • AIVideoMCU:智能标签管道。
  • AIVideoSummary:视频摘要管道。
  • AIVideoPorn:视频鉴黄管道。
  • AIAudioKWS:音频关键字识别管道。
  • AIAudioASR:语音转文字管道。
SpeedLevel Integer 管道级别。
State String 管道状态。 取值:
  • Active:管道开启。
  • Paused:管道暂停。
NotifyConfig Map 配置消息服务MNS通知。 更多信息,请参见NotifyConfig属性
Name String 管道名称。

NotifyConfig语法

"NotifyConfig": {
  "Topic": String,
  "QueueName": String
}

NotifyConfig属性

属性名称 类型 必须 允许更新 描述 约束
Topic String 消息服务MNS中创建的主题名称。
QueueName String 消息服务MNS中创建的队列名称。

返回值

Fn::GetAtt

PipelineId:管道ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Name": {
      "Type": "String",
      "Description": "The new name of the MPS queue. The value can contain letters, digits, and special\ncharacters such as hyphens (-) and can be up to 128 bytes in size. The value cannot\nstart with a special character."
    }
  },
  "Resources": {
    "Pipeline": {
      "Type": "ALIYUN::MPS::Pipeline",
      "Properties": {
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "PipelineId": {
      "Description": "The ID of the MPS queue.",
      "Value": {
        "Fn::GetAtt": [
          "Pipeline",
          "PipelineId"
        ]
      }
    }
  }
}