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

tencentcloud.CssTimeshiftTemplate

Explore with Pulumi AI

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

    Provides a resource to create a css timeshift_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const timeshiftTemplate = new tencentcloud.CssTimeshiftTemplate("timeshiftTemplate", {
        area: "Mainland",
        description: "timeshift template",
        duration: 604800,
        itemDuration: 5,
        removeWatermark: true,
        templateName: "tf-test",
        transcodeTemplateIds: [],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    timeshift_template = tencentcloud.CssTimeshiftTemplate("timeshiftTemplate",
        area="Mainland",
        description="timeshift template",
        duration=604800,
        item_duration=5,
        remove_watermark=True,
        template_name="tf-test",
        transcode_template_ids=[])
    
    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.NewCssTimeshiftTemplate(ctx, "timeshiftTemplate", &tencentcloud.CssTimeshiftTemplateArgs{
    			Area:                 pulumi.String("Mainland"),
    			Description:          pulumi.String("timeshift template"),
    			Duration:             pulumi.Float64(604800),
    			ItemDuration:         pulumi.Float64(5),
    			RemoveWatermark:      pulumi.Bool(true),
    			TemplateName:         pulumi.String("tf-test"),
    			TranscodeTemplateIds: pulumi.Float64Array{},
    		})
    		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 timeshiftTemplate = new Tencentcloud.CssTimeshiftTemplate("timeshiftTemplate", new()
        {
            Area = "Mainland",
            Description = "timeshift template",
            Duration = 604800,
            ItemDuration = 5,
            RemoveWatermark = true,
            TemplateName = "tf-test",
            TranscodeTemplateIds = new[] {},
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CssTimeshiftTemplate;
    import com.pulumi.tencentcloud.CssTimeshiftTemplateArgs;
    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 timeshiftTemplate = new CssTimeshiftTemplate("timeshiftTemplate", CssTimeshiftTemplateArgs.builder()
                .area("Mainland")
                .description("timeshift template")
                .duration(604800)
                .itemDuration(5)
                .removeWatermark(true)
                .templateName("tf-test")
                .transcodeTemplateIds()
                .build());
    
        }
    }
    
    resources:
      timeshiftTemplate:
        type: tencentcloud:CssTimeshiftTemplate
        properties:
          area: Mainland
          description: timeshift template
          duration: 604800
          itemDuration: 5
          removeWatermark: true
          templateName: tf-test
          transcodeTemplateIds: []
    

    Create CssTimeshiftTemplate Resource

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

    Constructor syntax

    new CssTimeshiftTemplate(name: string, args: CssTimeshiftTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CssTimeshiftTemplate(resource_name: str,
                             args: CssTimeshiftTemplateArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def CssTimeshiftTemplate(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             duration: Optional[float] = None,
                             template_name: Optional[str] = None,
                             area: Optional[str] = None,
                             css_timeshift_template_id: Optional[str] = None,
                             description: Optional[str] = None,
                             item_duration: Optional[float] = None,
                             remove_watermark: Optional[bool] = None,
                             transcode_template_ids: Optional[Sequence[float]] = None)
    func NewCssTimeshiftTemplate(ctx *Context, name string, args CssTimeshiftTemplateArgs, opts ...ResourceOption) (*CssTimeshiftTemplate, error)
    public CssTimeshiftTemplate(string name, CssTimeshiftTemplateArgs args, CustomResourceOptions? opts = null)
    public CssTimeshiftTemplate(String name, CssTimeshiftTemplateArgs args)
    public CssTimeshiftTemplate(String name, CssTimeshiftTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CssTimeshiftTemplate
    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 CssTimeshiftTemplateArgs
    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 CssTimeshiftTemplateArgs
    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 CssTimeshiftTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CssTimeshiftTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CssTimeshiftTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Duration double
    The time shifting duration.Unit: Second.
    TemplateName string
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    Area string
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    CssTimeshiftTemplateId string
    ID of the resource.
    Description string
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    ItemDuration double
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    RemoveWatermark bool
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    TranscodeTemplateIds List<double>
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    Duration float64
    The time shifting duration.Unit: Second.
    TemplateName string
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    Area string
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    CssTimeshiftTemplateId string
    ID of the resource.
    Description string
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    ItemDuration float64
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    RemoveWatermark bool
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    TranscodeTemplateIds []float64
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    duration Double
    The time shifting duration.Unit: Second.
    templateName String
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    area String
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    cssTimeshiftTemplateId String
    ID of the resource.
    description String
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    itemDuration Double
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    removeWatermark Boolean
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    transcodeTemplateIds List<Double>
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    duration number
    The time shifting duration.Unit: Second.
    templateName string
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    area string
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    cssTimeshiftTemplateId string
    ID of the resource.
    description string
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    itemDuration number
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    removeWatermark boolean
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    transcodeTemplateIds number[]
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    duration float
    The time shifting duration.Unit: Second.
    template_name str
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    area str
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    css_timeshift_template_id str
    ID of the resource.
    description str
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    item_duration float
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    remove_watermark bool
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    transcode_template_ids Sequence[float]
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    duration Number
    The time shifting duration.Unit: Second.
    templateName String
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    area String
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    cssTimeshiftTemplateId String
    ID of the resource.
    description String
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    itemDuration Number
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    removeWatermark Boolean
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    transcodeTemplateIds List<Number>
    The transcoding template IDs.This API works only if RemoveWatermark is false.

    Outputs

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

    Get an existing CssTimeshiftTemplate 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?: CssTimeshiftTemplateState, opts?: CustomResourceOptions): CssTimeshiftTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            area: Optional[str] = None,
            css_timeshift_template_id: Optional[str] = None,
            description: Optional[str] = None,
            duration: Optional[float] = None,
            item_duration: Optional[float] = None,
            remove_watermark: Optional[bool] = None,
            template_name: Optional[str] = None,
            transcode_template_ids: Optional[Sequence[float]] = None) -> CssTimeshiftTemplate
    func GetCssTimeshiftTemplate(ctx *Context, name string, id IDInput, state *CssTimeshiftTemplateState, opts ...ResourceOption) (*CssTimeshiftTemplate, error)
    public static CssTimeshiftTemplate Get(string name, Input<string> id, CssTimeshiftTemplateState? state, CustomResourceOptions? opts = null)
    public static CssTimeshiftTemplate get(String name, Output<String> id, CssTimeshiftTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CssTimeshiftTemplate    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:
    Area string
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    CssTimeshiftTemplateId string
    ID of the resource.
    Description string
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    Duration double
    The time shifting duration.Unit: Second.
    ItemDuration double
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    RemoveWatermark bool
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    TemplateName string
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    TranscodeTemplateIds List<double>
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    Area string
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    CssTimeshiftTemplateId string
    ID of the resource.
    Description string
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    Duration float64
    The time shifting duration.Unit: Second.
    ItemDuration float64
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    RemoveWatermark bool
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    TemplateName string
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    TranscodeTemplateIds []float64
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    area String
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    cssTimeshiftTemplateId String
    ID of the resource.
    description String
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    duration Double
    The time shifting duration.Unit: Second.
    itemDuration Double
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    removeWatermark Boolean
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    templateName String
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    transcodeTemplateIds List<Double>
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    area string
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    cssTimeshiftTemplateId string
    ID of the resource.
    description string
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    duration number
    The time shifting duration.Unit: Second.
    itemDuration number
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    removeWatermark boolean
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    templateName string
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    transcodeTemplateIds number[]
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    area str
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    css_timeshift_template_id str
    ID of the resource.
    description str
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    duration float
    The time shifting duration.Unit: Second.
    item_duration float
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    remove_watermark bool
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    template_name str
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    transcode_template_ids Sequence[float]
    The transcoding template IDs.This API works only if RemoveWatermark is false.
    area String
    The region.Mainland: The Chinese mainland.Overseas: Outside the Chinese mainland.Default value: Mainland.
    cssTimeshiftTemplateId String
    ID of the resource.
    description String
    The template description.Only letters, numbers, underscores, and hyphens are supported.
    duration Number
    The time shifting duration.Unit: Second.
    itemDuration Number
    The segment size.Value range: 3-10.Unit: Second.Default value: 5.
    removeWatermark Boolean
    Whether to remove watermarks.If you pass in true, the original stream will be recorded.Default value: false.
    templateName String
    The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
    transcodeTemplateIds List<Number>
    The transcoding template IDs.This API works only if RemoveWatermark is false.

    Import

    css timeshift_template can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cssTimeshiftTemplate:CssTimeshiftTemplate timeshift_template templateId
    

    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