1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CiMediaVideoProcessTemplate
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CiMediaVideoProcessTemplate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a ci media_video_process_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mediaVideoProcessTemplate = new tencentcloud.CiMediaVideoProcessTemplate("mediaVideoProcessTemplate", {
        bucket: "terraform-ci-xxxxxx",
        colorEnhance: {
            contrast: "",
            correction: "",
            enable: "true",
            saturation: "",
        },
        msSharpen: {
            enable: "false",
            sharpenLevel: "",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    media_video_process_template = tencentcloud.CiMediaVideoProcessTemplate("mediaVideoProcessTemplate",
        bucket="terraform-ci-xxxxxx",
        color_enhance={
            "contrast": "",
            "correction": "",
            "enable": "true",
            "saturation": "",
        },
        ms_sharpen={
            "enable": "false",
            "sharpen_level": "",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewCiMediaVideoProcessTemplate(ctx, "mediaVideoProcessTemplate", &tencentcloud.CiMediaVideoProcessTemplateArgs{
    			Bucket: pulumi.String("terraform-ci-xxxxxx"),
    			ColorEnhance: &tencentcloud.CiMediaVideoProcessTemplateColorEnhanceArgs{
    				Contrast:   pulumi.String(""),
    				Correction: pulumi.String(""),
    				Enable:     pulumi.String("true"),
    				Saturation: pulumi.String(""),
    			},
    			MsSharpen: &tencentcloud.CiMediaVideoProcessTemplateMsSharpenArgs{
    				Enable:       pulumi.String("false"),
    				SharpenLevel: pulumi.String(""),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var mediaVideoProcessTemplate = new Tencentcloud.CiMediaVideoProcessTemplate("mediaVideoProcessTemplate", new()
        {
            Bucket = "terraform-ci-xxxxxx",
            ColorEnhance = new Tencentcloud.Inputs.CiMediaVideoProcessTemplateColorEnhanceArgs
            {
                Contrast = "",
                Correction = "",
                Enable = "true",
                Saturation = "",
            },
            MsSharpen = new Tencentcloud.Inputs.CiMediaVideoProcessTemplateMsSharpenArgs
            {
                Enable = "false",
                SharpenLevel = "",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CiMediaVideoProcessTemplate;
    import com.pulumi.tencentcloud.CiMediaVideoProcessTemplateArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaVideoProcessTemplateColorEnhanceArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaVideoProcessTemplateMsSharpenArgs;
    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) {
            var mediaVideoProcessTemplate = new CiMediaVideoProcessTemplate("mediaVideoProcessTemplate", CiMediaVideoProcessTemplateArgs.builder()
                .bucket("terraform-ci-xxxxxx")
                .colorEnhance(CiMediaVideoProcessTemplateColorEnhanceArgs.builder()
                    .contrast("")
                    .correction("")
                    .enable("true")
                    .saturation("")
                    .build())
                .msSharpen(CiMediaVideoProcessTemplateMsSharpenArgs.builder()
                    .enable("false")
                    .sharpenLevel("")
                    .build())
                .build());
    
        }
    }
    
    resources:
      mediaVideoProcessTemplate:
        type: tencentcloud:CiMediaVideoProcessTemplate
        properties:
          bucket: terraform-ci-xxxxxx
          colorEnhance:
            contrast: ""
            correction: ""
            enable: 'true'
            saturation: ""
          msSharpen:
            enable: 'false'
            sharpenLevel: ""
    

    Create CiMediaVideoProcessTemplate Resource

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

    Constructor syntax

    new CiMediaVideoProcessTemplate(name: string, args: CiMediaVideoProcessTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CiMediaVideoProcessTemplate(resource_name: str,
                                    args: CiMediaVideoProcessTemplateArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CiMediaVideoProcessTemplate(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    bucket: Optional[str] = None,
                                    ci_media_video_process_template_id: Optional[str] = None,
                                    color_enhance: Optional[CiMediaVideoProcessTemplateColorEnhanceArgs] = None,
                                    ms_sharpen: Optional[CiMediaVideoProcessTemplateMsSharpenArgs] = None,
                                    name: Optional[str] = None)
    func NewCiMediaVideoProcessTemplate(ctx *Context, name string, args CiMediaVideoProcessTemplateArgs, opts ...ResourceOption) (*CiMediaVideoProcessTemplate, error)
    public CiMediaVideoProcessTemplate(string name, CiMediaVideoProcessTemplateArgs args, CustomResourceOptions? opts = null)
    public CiMediaVideoProcessTemplate(String name, CiMediaVideoProcessTemplateArgs args)
    public CiMediaVideoProcessTemplate(String name, CiMediaVideoProcessTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CiMediaVideoProcessTemplate
    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 CiMediaVideoProcessTemplateArgs
    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 CiMediaVideoProcessTemplateArgs
    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 CiMediaVideoProcessTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CiMediaVideoProcessTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CiMediaVideoProcessTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CiMediaVideoProcessTemplate Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CiMediaVideoProcessTemplate resource accepts the following input properties:

    Bucket string
    bucket name.
    CiMediaVideoProcessTemplateId string
    ID of the resource.
    ColorEnhance CiMediaVideoProcessTemplateColorEnhance
    color enhancement.
    MsSharpen CiMediaVideoProcessTemplateMsSharpen
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    Bucket string
    bucket name.
    CiMediaVideoProcessTemplateId string
    ID of the resource.
    ColorEnhance CiMediaVideoProcessTemplateColorEnhanceArgs
    color enhancement.
    MsSharpen CiMediaVideoProcessTemplateMsSharpenArgs
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket String
    bucket name.
    ciMediaVideoProcessTemplateId String
    ID of the resource.
    colorEnhance CiMediaVideoProcessTemplateColorEnhance
    color enhancement.
    msSharpen CiMediaVideoProcessTemplateMsSharpen
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket string
    bucket name.
    ciMediaVideoProcessTemplateId string
    ID of the resource.
    colorEnhance CiMediaVideoProcessTemplateColorEnhance
    color enhancement.
    msSharpen CiMediaVideoProcessTemplateMsSharpen
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket str
    bucket name.
    ci_media_video_process_template_id str
    ID of the resource.
    color_enhance CiMediaVideoProcessTemplateColorEnhanceArgs
    color enhancement.
    ms_sharpen CiMediaVideoProcessTemplateMsSharpenArgs
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket String
    bucket name.
    ciMediaVideoProcessTemplateId String
    ID of the resource.
    colorEnhance Property Map
    color enhancement.
    msSharpen Property Map
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.

    Outputs

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

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

    Look up Existing CiMediaVideoProcessTemplate Resource

    Get an existing CiMediaVideoProcessTemplate 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?: CiMediaVideoProcessTemplateState, opts?: CustomResourceOptions): CiMediaVideoProcessTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            ci_media_video_process_template_id: Optional[str] = None,
            color_enhance: Optional[CiMediaVideoProcessTemplateColorEnhanceArgs] = None,
            ms_sharpen: Optional[CiMediaVideoProcessTemplateMsSharpenArgs] = None,
            name: Optional[str] = None) -> CiMediaVideoProcessTemplate
    func GetCiMediaVideoProcessTemplate(ctx *Context, name string, id IDInput, state *CiMediaVideoProcessTemplateState, opts ...ResourceOption) (*CiMediaVideoProcessTemplate, error)
    public static CiMediaVideoProcessTemplate Get(string name, Input<string> id, CiMediaVideoProcessTemplateState? state, CustomResourceOptions? opts = null)
    public static CiMediaVideoProcessTemplate get(String name, Output<String> id, CiMediaVideoProcessTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CiMediaVideoProcessTemplate    get:      id: ${id}
    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:
    Bucket string
    bucket name.
    CiMediaVideoProcessTemplateId string
    ID of the resource.
    ColorEnhance CiMediaVideoProcessTemplateColorEnhance
    color enhancement.
    MsSharpen CiMediaVideoProcessTemplateMsSharpen
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    Bucket string
    bucket name.
    CiMediaVideoProcessTemplateId string
    ID of the resource.
    ColorEnhance CiMediaVideoProcessTemplateColorEnhanceArgs
    color enhancement.
    MsSharpen CiMediaVideoProcessTemplateMsSharpenArgs
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket String
    bucket name.
    ciMediaVideoProcessTemplateId String
    ID of the resource.
    colorEnhance CiMediaVideoProcessTemplateColorEnhance
    color enhancement.
    msSharpen CiMediaVideoProcessTemplateMsSharpen
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket string
    bucket name.
    ciMediaVideoProcessTemplateId string
    ID of the resource.
    colorEnhance CiMediaVideoProcessTemplateColorEnhance
    color enhancement.
    msSharpen CiMediaVideoProcessTemplateMsSharpen
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket str
    bucket name.
    ci_media_video_process_template_id str
    ID of the resource.
    color_enhance CiMediaVideoProcessTemplateColorEnhanceArgs
    color enhancement.
    ms_sharpen CiMediaVideoProcessTemplateMsSharpenArgs
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    bucket String
    bucket name.
    ciMediaVideoProcessTemplateId String
    ID of the resource.
    colorEnhance Property Map
    color enhancement.
    msSharpen Property Map
    detail enhancement, ColorEnhance and MsSharpen cannot both be empty.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.

    Supporting Types

    CiMediaVideoProcessTemplateColorEnhance, CiMediaVideoProcessTemplateColorEnhanceArgs

    Contrast string
    Contrast, value range: [0, 100], empty string (indicates automatic analysis).
    Correction string
    colorcorrection, value range: [0, 100], empty string (indicating automatic analysis).
    Enable string
    Whether color enhancement is turned on.
    Saturation string
    Saturation, value range: [0, 100], empty string (indicating automatic analysis).
    Contrast string
    Contrast, value range: [0, 100], empty string (indicates automatic analysis).
    Correction string
    colorcorrection, value range: [0, 100], empty string (indicating automatic analysis).
    Enable string
    Whether color enhancement is turned on.
    Saturation string
    Saturation, value range: [0, 100], empty string (indicating automatic analysis).
    contrast String
    Contrast, value range: [0, 100], empty string (indicates automatic analysis).
    correction String
    colorcorrection, value range: [0, 100], empty string (indicating automatic analysis).
    enable String
    Whether color enhancement is turned on.
    saturation String
    Saturation, value range: [0, 100], empty string (indicating automatic analysis).
    contrast string
    Contrast, value range: [0, 100], empty string (indicates automatic analysis).
    correction string
    colorcorrection, value range: [0, 100], empty string (indicating automatic analysis).
    enable string
    Whether color enhancement is turned on.
    saturation string
    Saturation, value range: [0, 100], empty string (indicating automatic analysis).
    contrast str
    Contrast, value range: [0, 100], empty string (indicates automatic analysis).
    correction str
    colorcorrection, value range: [0, 100], empty string (indicating automatic analysis).
    enable str
    Whether color enhancement is turned on.
    saturation str
    Saturation, value range: [0, 100], empty string (indicating automatic analysis).
    contrast String
    Contrast, value range: [0, 100], empty string (indicates automatic analysis).
    correction String
    colorcorrection, value range: [0, 100], empty string (indicating automatic analysis).
    enable String
    Whether color enhancement is turned on.
    saturation String
    Saturation, value range: [0, 100], empty string (indicating automatic analysis).

    CiMediaVideoProcessTemplateMsSharpen, CiMediaVideoProcessTemplateMsSharpenArgs

    Enable string
    Whether detail enhancement is enabled.
    SharpenLevel string
    Enhancement level, value range: [0, 10], empty string (indicates automatic analysis).
    Enable string
    Whether detail enhancement is enabled.
    SharpenLevel string
    Enhancement level, value range: [0, 10], empty string (indicates automatic analysis).
    enable String
    Whether detail enhancement is enabled.
    sharpenLevel String
    Enhancement level, value range: [0, 10], empty string (indicates automatic analysis).
    enable string
    Whether detail enhancement is enabled.
    sharpenLevel string
    Enhancement level, value range: [0, 10], empty string (indicates automatic analysis).
    enable str
    Whether detail enhancement is enabled.
    sharpen_level str
    Enhancement level, value range: [0, 10], empty string (indicates automatic analysis).
    enable String
    Whether detail enhancement is enabled.
    sharpenLevel String
    Enhancement level, value range: [0, 10], empty string (indicates automatic analysis).

    Import

    ci media_video_process_template can be imported using the bucket#templateId, e.g.

    $ pulumi import tencentcloud:index/ciMediaVideoProcessTemplate:CiMediaVideoProcessTemplate media_video_process_template terraform-ci-xxxxxx#t1d5694d87639a4593a9fd7e9025d26f52
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack