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

tencentcloud.CiMediaSuperResolutionTemplate

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_super_resolution_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mediaSuperResolutionTemplate = new tencentcloud.CiMediaSuperResolutionTemplate("mediaSuperResolutionTemplate", {
        bucket: "terraform-ci-1308919341",
        enableScaleUp: "true",
        resolution: "sdtohd",
        version: "Enhance",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    media_super_resolution_template = tencentcloud.CiMediaSuperResolutionTemplate("mediaSuperResolutionTemplate",
        bucket="terraform-ci-1308919341",
        enable_scale_up="true",
        resolution="sdtohd",
        version="Enhance")
    
    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.NewCiMediaSuperResolutionTemplate(ctx, "mediaSuperResolutionTemplate", &tencentcloud.CiMediaSuperResolutionTemplateArgs{
    			Bucket:        pulumi.String("terraform-ci-1308919341"),
    			EnableScaleUp: pulumi.String("true"),
    			Resolution:    pulumi.String("sdtohd"),
    			Version:       pulumi.String("Enhance"),
    		})
    		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 mediaSuperResolutionTemplate = new Tencentcloud.CiMediaSuperResolutionTemplate("mediaSuperResolutionTemplate", new()
        {
            Bucket = "terraform-ci-1308919341",
            EnableScaleUp = "true",
            Resolution = "sdtohd",
            Version = "Enhance",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CiMediaSuperResolutionTemplate;
    import com.pulumi.tencentcloud.CiMediaSuperResolutionTemplateArgs;
    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 mediaSuperResolutionTemplate = new CiMediaSuperResolutionTemplate("mediaSuperResolutionTemplate", CiMediaSuperResolutionTemplateArgs.builder()
                .bucket("terraform-ci-1308919341")
                .enableScaleUp("true")
                .resolution("sdtohd")
                .version("Enhance")
                .build());
    
        }
    }
    
    resources:
      mediaSuperResolutionTemplate:
        type: tencentcloud:CiMediaSuperResolutionTemplate
        properties:
          bucket: terraform-ci-1308919341
          enableScaleUp: 'true'
          resolution: sdtohd
          version: Enhance
    

    Create CiMediaSuperResolutionTemplate Resource

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

    Constructor syntax

    new CiMediaSuperResolutionTemplate(name: string, args: CiMediaSuperResolutionTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CiMediaSuperResolutionTemplate(resource_name: str,
                                       args: CiMediaSuperResolutionTemplateArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CiMediaSuperResolutionTemplate(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       bucket: Optional[str] = None,
                                       resolution: Optional[str] = None,
                                       ci_media_super_resolution_template_id: Optional[str] = None,
                                       enable_scale_up: Optional[str] = None,
                                       name: Optional[str] = None,
                                       version: Optional[str] = None)
    func NewCiMediaSuperResolutionTemplate(ctx *Context, name string, args CiMediaSuperResolutionTemplateArgs, opts ...ResourceOption) (*CiMediaSuperResolutionTemplate, error)
    public CiMediaSuperResolutionTemplate(string name, CiMediaSuperResolutionTemplateArgs args, CustomResourceOptions? opts = null)
    public CiMediaSuperResolutionTemplate(String name, CiMediaSuperResolutionTemplateArgs args)
    public CiMediaSuperResolutionTemplate(String name, CiMediaSuperResolutionTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CiMediaSuperResolutionTemplate
    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 CiMediaSuperResolutionTemplateArgs
    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 CiMediaSuperResolutionTemplateArgs
    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 CiMediaSuperResolutionTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CiMediaSuperResolutionTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CiMediaSuperResolutionTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CiMediaSuperResolutionTemplate 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 CiMediaSuperResolutionTemplate resource accepts the following input properties:

    Bucket string
    bucket name.
    Resolution string
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    CiMediaSuperResolutionTemplateId string
    ID of the resource.
    EnableScaleUp string
    Auto scaling switch, off by default.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    Version string
    version, default value Base, Base: basic version, Enhance: enhanced version.
    Bucket string
    bucket name.
    Resolution string
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    CiMediaSuperResolutionTemplateId string
    ID of the resource.
    EnableScaleUp string
    Auto scaling switch, off by default.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    Version string
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket String
    bucket name.
    resolution String
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    ciMediaSuperResolutionTemplateId String
    ID of the resource.
    enableScaleUp String
    Auto scaling switch, off by default.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    version String
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket string
    bucket name.
    resolution string
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    ciMediaSuperResolutionTemplateId string
    ID of the resource.
    enableScaleUp string
    Auto scaling switch, off by default.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    version string
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket str
    bucket name.
    resolution str
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    ci_media_super_resolution_template_id str
    ID of the resource.
    enable_scale_up str
    Auto scaling switch, off by default.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    version str
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket String
    bucket name.
    resolution String
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    ciMediaSuperResolutionTemplateId String
    ID of the resource.
    enableScaleUp String
    Auto scaling switch, off by default.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    version String
    version, default value Base, Base: basic version, Enhance: enhanced version.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CiMediaSuperResolutionTemplate 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 CiMediaSuperResolutionTemplate Resource

    Get an existing CiMediaSuperResolutionTemplate 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?: CiMediaSuperResolutionTemplateState, opts?: CustomResourceOptions): CiMediaSuperResolutionTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            ci_media_super_resolution_template_id: Optional[str] = None,
            enable_scale_up: Optional[str] = None,
            name: Optional[str] = None,
            resolution: Optional[str] = None,
            version: Optional[str] = None) -> CiMediaSuperResolutionTemplate
    func GetCiMediaSuperResolutionTemplate(ctx *Context, name string, id IDInput, state *CiMediaSuperResolutionTemplateState, opts ...ResourceOption) (*CiMediaSuperResolutionTemplate, error)
    public static CiMediaSuperResolutionTemplate Get(string name, Input<string> id, CiMediaSuperResolutionTemplateState? state, CustomResourceOptions? opts = null)
    public static CiMediaSuperResolutionTemplate get(String name, Output<String> id, CiMediaSuperResolutionTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CiMediaSuperResolutionTemplate    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.
    CiMediaSuperResolutionTemplateId string
    ID of the resource.
    EnableScaleUp string
    Auto scaling switch, off by default.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    Resolution string
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    Version string
    version, default value Base, Base: basic version, Enhance: enhanced version.
    Bucket string
    bucket name.
    CiMediaSuperResolutionTemplateId string
    ID of the resource.
    EnableScaleUp string
    Auto scaling switch, off by default.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    Resolution string
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    Version string
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket String
    bucket name.
    ciMediaSuperResolutionTemplateId String
    ID of the resource.
    enableScaleUp String
    Auto scaling switch, off by default.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    resolution String
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    version String
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket string
    bucket name.
    ciMediaSuperResolutionTemplateId string
    ID of the resource.
    enableScaleUp string
    Auto scaling switch, off by default.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    resolution string
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    version string
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket str
    bucket name.
    ci_media_super_resolution_template_id str
    ID of the resource.
    enable_scale_up str
    Auto scaling switch, off by default.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    resolution str
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    version str
    version, default value Base, Base: basic version, Enhance: enhanced version.
    bucket String
    bucket name.
    ciMediaSuperResolutionTemplateId String
    ID of the resource.
    enableScaleUp String
    Auto scaling switch, off by default.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    resolution String
    Resolution Options sdtohd: Standard Definition to Ultra Definition, hdto4k: HD to 4K.
    version String
    version, default value Base, Base: basic version, Enhance: enhanced version.

    Import

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

    $ pulumi import tencentcloud:index/ciMediaSuperResolutionTemplate:CiMediaSuperResolutionTemplate media_super_resolution_template terraform-ci-xxxxxx#t1d707eb2be3294e22b47123894f85cb8f
    

    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