alicloud_vod_editing_project
更新時間:
Provides a VOD Editing Project resource.
For information about VOD Editing Project and how to use it, see What is Editing Project.
-> NOTE: Available since v1.187.0.
Example Usage
Basic Usage
variable "name" {
default = "tfexample"
}
data "alicloud_regions" "default" {
current = true
}
resource "alicloud_vod_editing_project" "example" {
editing_project_name = var.name
title = var.name
timeline = <<EOF
{
"VideoTracks":[
{
"VideoTrackClips":[
{
"MediaId":"0c60e6f02dae71edbfaa472190a90102",
"In":2811
}
]
}
]
}
EOF
cover_url = "https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png"
division = data.alicloud_regions.default.regions.0.id
}
Argument Reference
The following arguments are supported:
cover_url
- (Optional) The thumbnail URL of the online editing project. If you do not specify this parameter and the video track in the timeline has mezzanine files, the thumbnail of the first mezzanine file in the timeline is used.division
- (Optional) The region where you want to create the online editing project.editing_project_name
- (Optional, Computed) The description of the online editing project.timeline
- (Optional) The timeline of the online editing project, in JSON format. For more information about the structure, see Timeline. If you do not specify this parameter, an empty timeline is created and the duration of the online editing project is zero.title
- (Required) The title of the online editing project.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Editing Project.status
- The Status of the resource.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when create the Editing Project.update
- (Defaults to 1 mins) Used when update the Editing Project.delete
- (Defaults to 1 mins) Used when delete the Editing Project.
Import
VOD Editing Project can be imported using the id, e.g.
$ terraform import alicloud_vod_editing_project.example <id>
文檔內容是否對您有幫助?