Cria um fluxo de trabalho de mídia no ApsaraVideo Media Processing (MPS).
Sintaxe
{
"Type": "ALIYUN::MPS::MediaWorkflow",
"Properties": {
"Name": String,
"Topology": Map,
"TriggerMode": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Name |
String |
Sim |
Não |
Nome do fluxo de trabalho. |
|
|
Topology |
Map |
Sim |
Sim |
Topologia do fluxo de trabalho. |
Objeto JSON que define as atividades e suas dependências. Exemplo:
|
|
TriggerMode |
String |
Não |
Sim |
Modo de acionamento do fluxo de trabalho. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
State: estado do fluxo de trabalho.
MediaWorkflowId: ID do fluxo de trabalho.
CreationTime: hora de criação do fluxo de trabalho.
TriggerMode: modo de acionamento do fluxo de trabalho.
Topology: topologia do fluxo de trabalho.
Name: nome do fluxo de trabalho.
Exemplos
Substitua os valores mascarados (****) pelos valores reais.
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionResource:
Type: ALIYUN::MPS::MediaWorkflow
Properties:
Topology:
Activities:
mediaworkflow-example:
Parameters:
Outputs:
- OutputObject: examplebucket/output/{RunId}/TRANSCODE_165941222****/{FileName}
TemplateId: S00000001-200010
TemplateName: MP4-LD
OutputBucket: examplebucket
OutputLocation: oss-cn-shanghai
Type: Transcode
Act-Start:
Parameters:
PipelineId: a7d481f07d8c45da88c71853ce7d****
InputFile:
Bucket: example-input
Location: oss-cn-shanghai
ObjectPrefix: mps-test/input/
Type: Start
Act-Report:
Parameters:
PublishType: Manual
Type: Report
Dependencies:
mediaworkflow-example:
- Act-Report
Act-Start:
- mediaworkflow-example
Act-Report: []
Name: mediaworkflow-example
Outputs:
State:
Description: The state of the media workflow.
Value:
Fn::GetAtt:
- ExtensionResource
- State
MediaWorkflowId:
Description: The ID of the media workflow.
Value:
Fn::GetAtt:
- ExtensionResource
- MediaWorkflowId
CreationTime:
Description: The time when the media workflow was created.
Value:
Fn::GetAtt:
- ExtensionResource
- CreationTime
TriggerMode:
Description: The trigger mode of the media workflow.
Value:
Fn::GetAtt:
- ExtensionResource
- TriggerMode
Topology:
Description: The topology of the media workflow.
Value:
Fn::GetAtt:
- ExtensionResource
- Topology
Name:
Description: The name of the media workflow.
Value:
Fn::GetAtt:
- ExtensionResource
- Name
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::MPS::MediaWorkflow",
"Properties": {
"Topology": {
"Activities": {
"mediaworkflow-example": {
"Parameters": {
"Outputs": [
{
"OutputObject": "examplebucket/output/{RunId}/TRANSCODE_165941222****/{FileName}",
"TemplateId": "S00000001-200010",
"TemplateName": "MP4-LD"
}
],
"OutputBucket": "examplebucket",
"OutputLocation": "oss-cn-shanghai"
},
"Type": "Transcode"
},
"Act-Start": {
"Parameters": {
"PipelineId": "a7d481f07d8c45da88c71853ce7d****",
"InputFile": {
"Bucket": "example-input",
"Location": "oss-cn-shanghai",
"ObjectPrefix": "mps-test/input/"
}
},
"Type": "Start"
},
"Act-Report": {
"Parameters": {
"PublishType": "Manual"
},
"Type": "Report"
}
},
"Dependencies": {
"mediaworkflow-example": [
"Act-Report"
],
"Act-Start": [
"mediaworkflow-example"
],
"Act-Report": []
}
},
"Name": "mediaworkflow-example"
}
}
},
"Outputs": {
"State": {
"Description": "The state of the media workflow.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"State"
]
}
},
"MediaWorkflowId": {
"Description": "The ID of the media workflow.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"MediaWorkflowId"
]
}
},
"CreationTime": {
"Description": "The time when the media workflow was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreationTime"
]
}
},
"TriggerMode": {
"Description": "The trigger mode of the media workflow.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TriggerMode"
]
}
},
"Topology": {
"Description": "The topology of the media workflow.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Topology"
]
}
},
"Name": {
"Description": "The name of the media workflow.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Name"
]
}
}
}
}