ALIYUN::ESA::VideoProcessing

更新时间:
复制为 MD 格式

ALIYUN::ESA::VideoProcessing类型用于新增站点视频处理配置。

语法

{
  "Type": "ALIYUN::ESA::VideoProcessing",
  "Properties": {
    "SiteId": Integer,
    "FlvVideoSeekMode": String,
    "FlvSeekStart": String,
    "FlvSeekEnd": String,
    "Mp4SeekEnd": String,
    "Mp4SeekStart": String,
    "RuleEnable": String,
    "Rule": String,
    "RuleName": String,
    "Sequence": Integer,
    "SiteVersion": Integer,
    "VideoSeekEnable": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

SiteId

Integer

站点ID。

FlvSeekEnd

String

自定义FLV结束参数。

FlvSeekStart

String

自定义FLV开始参数。

FlvVideoSeekMode

String

FLV拖拽模式。

取值范围:

  • by_byte: 按字节拖拽。

  • by_time: 按时间拖拽。

Mp4SeekEnd

String

自定义mp4结束参数。

Mp4SeekStart

String

自定义mp4开始参数。

Rule

String

规则内容。

使用条件表达式来匹配用户请求。添加全局配置的时候不需要设置该参数。存在两种使用场景:

  • 匹配所有传入请求:值设置为 true

  • 匹配指定请求:值设置为自定义表达式,例如:(http.host eq "video.example.com")

RuleEnable

String

规则开关。

添加全局配置时,无需设置此参数。取值范围:

  • on: 开启。

  • off: 关闭。

RuleName

String

规则名称。

添加全局配置时,无需设置此参数。

Sequence

Integer

规则执行顺序。

数值越小优先级越高。仅在设置或修改单个规则配置顺序时适用。

SiteVersion

Integer

站点配置的版本号。

对于已启用配置版本管理的站点,可使用此参数指定配置站点的生效版本,默认为版本0。

VideoSeekEnable

String

拖拽播放功能开关。

取值范围:

  • on: 开启。

  • off: 关闭。

返回值

Fn::GetAtt

  • VideoSeekEnable:拖拽播放功能开关。

  • RuleEnable:规则开关。添加全局配置时,无需设置此参数。

  • FlvVideoSeekMode:FLV拖拽模式。

  • Sequence:规则执行顺序,数值越小优先级越高。仅在设置或修改单个规则配置顺序时适用。

  • FlvSeekEnd:自定义FLV结束参数。

  • Mp4SeekEnd:自定义mp4结束参数。

  • FlvSeekStart:自定义FLV开始参数。

  • Rule:规则内容,使用条件表达式匹配用户请求。添加全局配置时,无需设置此参数。

  • ConfigId:配置ID。

  • Mp4SeekStart:自定义mp4开始参数。

  • SiteVersion:站点配置的版本号。对于已启用配置版本管理的站点,可使用此参数指定配置站点的生效版本,默认为版本0。

  • ConfigType:配置类型。

  • RuleName:规则名称。添加全局配置时,无需设置此参数。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VideoSeekEnable:
    Type: String
    Description:
      en: |-
        Drag and drop the play function switch. Value range:
        - `on`: open.
        - `off`: close.
    AllowedValues:
      - 'on'
      - 'off'
    Required: false
  SiteId:
    Type: Number
    Description:
      en: The site ID, which can be obtained by calling the ListSites API.
    Required: true
  RuleEnable:
    Type: String
    Description:
      en: |-
        Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
        - `on`: open.
        - `off`: close.
    AllowedValues:
      - 'on'
      - 'off'
    Required: false
  FlvVideoSeekMode:
    Type: String
    Description:
      en: |-
        FLV drag mode. Value range:
        - `by_byte`: Drag by byte.
        - `by_time`: Drag by time.
    AllowedValues:
      - by_byte
      - by_time
    Required: false
  Mp4SeekEnd:
    Type: String
    Description:
      en: Custom mp4 end parameters.
    Required: false
  FlvSeekStart:
    Type: String
    Description:
      en: Custom FLV start parameters.
    Required: false
  Sequence:
    Type: Number
    Description:
      en: The rule execution order prioritizes lower numerical values. It is only applicable when setting or modifying the order of individual rule configurations.
    Required: false
  Rule:
    Type: String
    Description:
      en: |-
        Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:
        - Match all incoming requests: value set to true
        - Match specified request: Set the value to a custom expression, for example: (http.host eq \"video.example.com\").
    Required: false
  Mp4SeekStart:
    Type: String
    Description:
      en: Custom mp4 start parameters.
    Required: false
  SiteVersion:
    Type: Number
    Description:
      en: The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
    Required: false
  FlvSeekEnd:
    Type: String
    Description:
      en: Custom FLV end parameters.
    Required: false
  RuleName:
    Type: String
    Description:
      en: Rule name. When adding global configuration, this parameter does not need to be set.
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::ESA::VideoProcessing
    Properties:
      VideoSeekEnable:
        Ref: VideoSeekEnable
      SiteId:
        Ref: SiteId
      RuleEnable:
        Ref: RuleEnable
      FlvVideoSeekMode:
        Ref: FlvVideoSeekMode
      Mp4SeekEnd:
        Ref: Mp4SeekEnd
      FlvSeekStart:
        Ref: FlvSeekStart
      Sequence:
        Ref: Sequence
      Rule:
        Ref: Rule
      Mp4SeekStart:
        Ref: Mp4SeekStart
      SiteVersion:
        Ref: SiteVersion
      FlvSeekEnd:
        Ref: FlvSeekEnd
      RuleName:
        Ref: RuleName
Outputs:
  VideoSeekEnable:
    Description: Drag and drop the play function switch.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - VideoSeekEnable
  RuleEnable:
    Description: Rule switch. When adding global configuration, this parameter does not need to be set.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleEnable
  FlvVideoSeekMode:
    Description: FLV drag mode.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - FlvVideoSeekMode
  Sequence:
    Description: The rule execution order prioritizes lower numerical values. It is only applicable when setting or modifying the order of individual rule configurations.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Sequence
  FlvSeekEnd:
    Description: Custom FLV end parameters.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - FlvSeekEnd
  Mp4SeekEnd:
    Description: Custom mp4 end parameters.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Mp4SeekEnd
  FlvSeekStart:
    Description: Custom FLV start parameters.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - FlvSeekStart
  Rule:
    Description: Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Rule
  ConfigId:
    Description: Config Id.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigId
  Mp4SeekStart:
    Description: Custom mp4 start parameters.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Mp4SeekStart
  SiteVersion:
    Description: The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SiteVersion
  ConfigType:
    Description: The configuration type.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigType
  RuleName:
    Description: Rule name. When adding global configuration, this parameter does not need to be set.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VideoSeekEnable": {
      "Type": "String",
      "Description": {
        "en": "Drag and drop the play function switch. Value range:\n- `on`: open.\n- `off`: close."
      },
      "AllowedValues": [
        "on",
        "off"
      ],
      "Required": false
    },
    "SiteId": {
      "Type": "Number",
      "Description": {
        "en": "The site ID, which can be obtained by calling the ListSites API."
      },
      "Required": true
    },
    "RuleEnable": {
      "Type": "String",
      "Description": {
        "en": "Rule switch. When adding global configuration, this parameter does not need to be set. Value range:\n- `on`: open.\n- `off`: close."
      },
      "AllowedValues": [
        "on",
        "off"
      ],
      "Required": false
    },
    "FlvVideoSeekMode": {
      "Type": "String",
      "Description": {
        "en": "FLV drag mode. Value range:\n- `by_byte`: Drag by byte.\n- `by_time`: Drag by time."
      },
      "AllowedValues": [
        "by_byte",
        "by_time"
      ],
      "Required": false
    },
    "Mp4SeekEnd": {
      "Type": "String",
      "Description": {
        "en": "Custom mp4 end parameters."
      },
      "Required": false
    },
    "FlvSeekStart": {
      "Type": "String",
      "Description": {
        "en": "Custom FLV start parameters."
      },
      "Required": false
    },
    "Sequence": {
      "Type": "Number",
      "Description": {
        "en": "The rule execution order prioritizes lower numerical values. It is only applicable when setting or modifying the order of individual rule configurations."
      },
      "Required": false
    },
    "Rule": {
      "Type": "String",
      "Description": {
        "en": "Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:\n- Match all incoming requests: value set to true\n- Match specified request: Set the value to a custom expression, for example: (http.host eq \\\"video.example.com\\\")."
      },
      "Required": false
    },
    "Mp4SeekStart": {
      "Type": "String",
      "Description": {
        "en": "Custom mp4 start parameters."
      },
      "Required": false
    },
    "SiteVersion": {
      "Type": "Number",
      "Description": {
        "en": "The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0."
      },
      "Required": false
    },
    "FlvSeekEnd": {
      "Type": "String",
      "Description": {
        "en": "Custom FLV end parameters."
      },
      "Required": false
    },
    "RuleName": {
      "Type": "String",
      "Description": {
        "en": "Rule name. When adding global configuration, this parameter does not need to be set."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ESA::VideoProcessing",
      "Properties": {
        "VideoSeekEnable": {
          "Ref": "VideoSeekEnable"
        },
        "SiteId": {
          "Ref": "SiteId"
        },
        "RuleEnable": {
          "Ref": "RuleEnable"
        },
        "FlvVideoSeekMode": {
          "Ref": "FlvVideoSeekMode"
        },
        "Mp4SeekEnd": {
          "Ref": "Mp4SeekEnd"
        },
        "FlvSeekStart": {
          "Ref": "FlvSeekStart"
        },
        "Sequence": {
          "Ref": "Sequence"
        },
        "Rule": {
          "Ref": "Rule"
        },
        "Mp4SeekStart": {
          "Ref": "Mp4SeekStart"
        },
        "SiteVersion": {
          "Ref": "SiteVersion"
        },
        "FlvSeekEnd": {
          "Ref": "FlvSeekEnd"
        },
        "RuleName": {
          "Ref": "RuleName"
        }
      }
    }
  },
  "Outputs": {
    "VideoSeekEnable": {
      "Description": "Drag and drop the play function switch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "VideoSeekEnable"
        ]
      }
    },
    "RuleEnable": {
      "Description": "Rule switch. When adding global configuration, this parameter does not need to be set.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleEnable"
        ]
      }
    },
    "FlvVideoSeekMode": {
      "Description": "FLV drag mode.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "FlvVideoSeekMode"
        ]
      }
    },
    "Sequence": {
      "Description": "The rule execution order prioritizes lower numerical values. It is only applicable when setting or modifying the order of individual rule configurations.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Sequence"
        ]
      }
    },
    "FlvSeekEnd": {
      "Description": "Custom FLV end parameters.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "FlvSeekEnd"
        ]
      }
    },
    "Mp4SeekEnd": {
      "Description": "Custom mp4 end parameters.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Mp4SeekEnd"
        ]
      }
    },
    "FlvSeekStart": {
      "Description": "Custom FLV start parameters.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "FlvSeekStart"
        ]
      }
    },
    "Rule": {
      "Description": "Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Rule"
        ]
      }
    },
    "ConfigId": {
      "Description": "Config Id.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigId"
        ]
      }
    },
    "Mp4SeekStart": {
      "Description": "Custom mp4 start parameters.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Mp4SeekStart"
        ]
      }
    },
    "SiteVersion": {
      "Description": "The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SiteVersion"
        ]
      }
    },
    "ConfigType": {
      "Description": "The configuration type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigType"
        ]
      }
    },
    "RuleName": {
      "Description": "Rule name. When adding global configuration, this parameter does not need to be set.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleName"
        ]
      }
    }
  }
}