1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vod
  5. EditingProject
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.vod.EditingProject

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tfexample";
    const default = alicloud.getRegions({
        current: true,
    });
    const example = new alicloud.vod.EditingProject("example", {
        editingProjectName: name,
        title: name,
        timeline: `  {
        "VideoTracks":[
          {
            "VideoTrackClips":[
              {
              "MediaId":"0c60e6f02dae71edbfaa472190a90102",
              "In":2811
              }
            ]
          }
        ]
      }
    `,
        coverUrl: "https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png",
        division: _default.then(_default => _default.regions?.[0]?.id),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tfexample"
    default = alicloud.get_regions(current=True)
    example = alicloud.vod.EditingProject("example",
        editing_project_name=name,
        title=name,
        timeline="""  {
        "VideoTracks":[
          {
            "VideoTrackClips":[
              {
              "MediaId":"0c60e6f02dae71edbfaa472190a90102",
              "In":2811
              }
            ]
          }
        ]
      }
    """,
        cover_url="https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png",
        division=default.regions[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vod"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tfexample"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vod.NewEditingProject(ctx, "example", &vod.EditingProjectArgs{
    			EditingProjectName: pulumi.String(name),
    			Title:              pulumi.String(name),
    			Timeline: pulumi.String(`  {
        "VideoTracks":[
          {
            "VideoTrackClips":[
              {
              "MediaId":"0c60e6f02dae71edbfaa472190a90102",
              "In":2811
              }
            ]
          }
        ]
      }
    `),
    			CoverUrl: pulumi.String("https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png"),
    			Division: pulumi.String(_default.Regions[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tfexample";
        var @default = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var example = new AliCloud.Vod.EditingProject("example", new()
        {
            EditingProjectName = name,
            Title = name,
            Timeline = @"  {
        ""VideoTracks"":[
          {
            ""VideoTrackClips"":[
              {
              ""MediaId"":""0c60e6f02dae71edbfaa472190a90102"",
              ""In"":2811
              }
            ]
          }
        ]
      }
    ",
            CoverUrl = "https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png",
            Division = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.vod.EditingProject;
    import com.pulumi.alicloud.vod.EditingProjectArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tfexample");
            final var default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var example = new EditingProject("example", EditingProjectArgs.builder()        
                .editingProjectName(name)
                .title(name)
                .timeline("""
      {
        "VideoTracks":[
          {
            "VideoTrackClips":[
              {
              "MediaId":"0c60e6f02dae71edbfaa472190a90102",
              "In":2811
              }
            ]
          }
        ]
      }
                """)
                .coverUrl("https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png")
                .division(default_.regions()[0].id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tfexample
    resources:
      example:
        type: alicloud:vod:EditingProject
        properties:
          editingProjectName: ${name}
          title: ${name}
          timeline: |2
              {
                "VideoTracks":[
                  {
                    "VideoTrackClips":[
                      {
                      "MediaId":"0c60e6f02dae71edbfaa472190a90102",
                      "In":2811
                      }
                    ]
                  }
                ]
              }
          coverUrl: https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png
          division: ${default.regions[0].id}
    variables:
      default:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
    

    Create EditingProject Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EditingProject(name: string, args: EditingProjectArgs, opts?: CustomResourceOptions);
    @overload
    def EditingProject(resource_name: str,
                       args: EditingProjectArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EditingProject(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       title: Optional[str] = None,
                       cover_url: Optional[str] = None,
                       division: Optional[str] = None,
                       editing_project_name: Optional[str] = None,
                       timeline: Optional[str] = None)
    func NewEditingProject(ctx *Context, name string, args EditingProjectArgs, opts ...ResourceOption) (*EditingProject, error)
    public EditingProject(string name, EditingProjectArgs args, CustomResourceOptions? opts = null)
    public EditingProject(String name, EditingProjectArgs args)
    public EditingProject(String name, EditingProjectArgs args, CustomResourceOptions options)
    
    type: alicloud:vod:EditingProject
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EditingProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EditingProjectArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EditingProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EditingProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EditingProjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var editingProjectResource = new AliCloud.Vod.EditingProject("editingProjectResource", new()
    {
        Title = "string",
        CoverUrl = "string",
        Division = "string",
        EditingProjectName = "string",
        Timeline = "string",
    });
    
    example, err := vod.NewEditingProject(ctx, "editingProjectResource", &vod.EditingProjectArgs{
    	Title:              pulumi.String("string"),
    	CoverUrl:           pulumi.String("string"),
    	Division:           pulumi.String("string"),
    	EditingProjectName: pulumi.String("string"),
    	Timeline:           pulumi.String("string"),
    })
    
    var editingProjectResource = new EditingProject("editingProjectResource", EditingProjectArgs.builder()        
        .title("string")
        .coverUrl("string")
        .division("string")
        .editingProjectName("string")
        .timeline("string")
        .build());
    
    editing_project_resource = alicloud.vod.EditingProject("editingProjectResource",
        title="string",
        cover_url="string",
        division="string",
        editing_project_name="string",
        timeline="string")
    
    const editingProjectResource = new alicloud.vod.EditingProject("editingProjectResource", {
        title: "string",
        coverUrl: "string",
        division: "string",
        editingProjectName: "string",
        timeline: "string",
    });
    
    type: alicloud:vod:EditingProject
    properties:
        coverUrl: string
        division: string
        editingProjectName: string
        timeline: string
        title: string
    

    EditingProject Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The EditingProject resource accepts the following input properties:

    Title string
    The title of the online editing project.
    CoverUrl string
    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 string
    The region where you want to create the online editing project.
    EditingProjectName string
    The description of the online editing project.
    Timeline string
    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 string
    The title of the online editing project.
    CoverUrl string
    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 string
    The region where you want to create the online editing project.
    EditingProjectName string
    The description of the online editing project.
    Timeline string
    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 String
    The title of the online editing project.
    coverUrl String
    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 String
    The region where you want to create the online editing project.
    editingProjectName String
    The description of the online editing project.
    timeline String
    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 string
    The title of the online editing project.
    coverUrl string
    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 string
    The region where you want to create the online editing project.
    editingProjectName string
    The description of the online editing project.
    timeline string
    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 str
    The title of the online editing project.
    cover_url str
    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 str
    The region where you want to create the online editing project.
    editing_project_name str
    The description of the online editing project.
    timeline str
    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 String
    The title of the online editing project.
    coverUrl String
    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 String
    The region where you want to create the online editing project.
    editingProjectName String
    The description of the online editing project.
    timeline String
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EditingProject resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The Status of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The Status of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the resource.

    Look up Existing EditingProject Resource

    Get an existing EditingProject resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EditingProjectState, opts?: CustomResourceOptions): EditingProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cover_url: Optional[str] = None,
            division: Optional[str] = None,
            editing_project_name: Optional[str] = None,
            status: Optional[str] = None,
            timeline: Optional[str] = None,
            title: Optional[str] = None) -> EditingProject
    func GetEditingProject(ctx *Context, name string, id IDInput, state *EditingProjectState, opts ...ResourceOption) (*EditingProject, error)
    public static EditingProject Get(string name, Input<string> id, EditingProjectState? state, CustomResourceOptions? opts = null)
    public static EditingProject get(String name, Output<String> id, EditingProjectState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CoverUrl string
    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 string
    The region where you want to create the online editing project.
    EditingProjectName string
    The description of the online editing project.
    Status string
    The Status of the resource.
    Timeline string
    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 string
    The title of the online editing project.
    CoverUrl string
    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 string
    The region where you want to create the online editing project.
    EditingProjectName string
    The description of the online editing project.
    Status string
    The Status of the resource.
    Timeline string
    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 string
    The title of the online editing project.
    coverUrl String
    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 String
    The region where you want to create the online editing project.
    editingProjectName String
    The description of the online editing project.
    status String
    The Status of the resource.
    timeline String
    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 String
    The title of the online editing project.
    coverUrl string
    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 string
    The region where you want to create the online editing project.
    editingProjectName string
    The description of the online editing project.
    status string
    The Status of the resource.
    timeline string
    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 string
    The title of the online editing project.
    cover_url str
    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 str
    The region where you want to create the online editing project.
    editing_project_name str
    The description of the online editing project.
    status str
    The Status of the resource.
    timeline str
    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 str
    The title of the online editing project.
    coverUrl String
    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 String
    The region where you want to create the online editing project.
    editingProjectName String
    The description of the online editing project.
    status String
    The Status of the resource.
    timeline String
    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 String
    The title of the online editing project.

    Import

    VOD Editing Project can be imported using the id, e.g.

    $ pulumi import alicloud:vod/editingProject:EditingProject example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi