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 | 否 | 否 | 管道类型。 | 取值: 
 | 
| SpeedLevel | Integer | 否 | 否 | 管道级别。 | 无 | 
| State | String | 否 | 是 | 管道状态。 | 取值: 
 | 
| 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"
        ]
      }
    }
  }
}该文章对您有帮助吗?