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

tencentcloud.VodSnapshotByTimeOffsetTemplate

Explore with Pulumi AI

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

    Provide a resource to create a VOD snapshot by time offset template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.VodSnapshotByTimeOffsetTemplate("foo", {
        comment: "test",
        fillType: "white",
        format: "png",
        height: 128,
        resolutionAdaptive: false,
        width: 130,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.VodSnapshotByTimeOffsetTemplate("foo",
        comment="test",
        fill_type="white",
        format="png",
        height=128,
        resolution_adaptive=False,
        width=130)
    
    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.NewVodSnapshotByTimeOffsetTemplate(ctx, "foo", &tencentcloud.VodSnapshotByTimeOffsetTemplateArgs{
    			Comment:            pulumi.String("test"),
    			FillType:           pulumi.String("white"),
    			Format:             pulumi.String("png"),
    			Height:             pulumi.Float64(128),
    			ResolutionAdaptive: pulumi.Bool(false),
    			Width:              pulumi.Float64(130),
    		})
    		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 foo = new Tencentcloud.VodSnapshotByTimeOffsetTemplate("foo", new()
        {
            Comment = "test",
            FillType = "white",
            Format = "png",
            Height = 128,
            ResolutionAdaptive = false,
            Width = 130,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VodSnapshotByTimeOffsetTemplate;
    import com.pulumi.tencentcloud.VodSnapshotByTimeOffsetTemplateArgs;
    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 foo = new VodSnapshotByTimeOffsetTemplate("foo", VodSnapshotByTimeOffsetTemplateArgs.builder()
                .comment("test")
                .fillType("white")
                .format("png")
                .height(128)
                .resolutionAdaptive(false)
                .width(130)
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:VodSnapshotByTimeOffsetTemplate
        properties:
          comment: test
          fillType: white
          format: png
          height: 128
          resolutionAdaptive: false
          width: 130
    

    Create VodSnapshotByTimeOffsetTemplate Resource

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

    Constructor syntax

    new VodSnapshotByTimeOffsetTemplate(name: string, args?: VodSnapshotByTimeOffsetTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def VodSnapshotByTimeOffsetTemplate(resource_name: str,
                                        args: Optional[VodSnapshotByTimeOffsetTemplateArgs] = None,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VodSnapshotByTimeOffsetTemplate(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        comment: Optional[str] = None,
                                        fill_type: Optional[str] = None,
                                        format: Optional[str] = None,
                                        height: Optional[float] = None,
                                        name: Optional[str] = None,
                                        resolution_adaptive: Optional[bool] = None,
                                        sub_app_id: Optional[float] = None,
                                        vod_snapshot_by_time_offset_template_id: Optional[str] = None,
                                        width: Optional[float] = None)
    func NewVodSnapshotByTimeOffsetTemplate(ctx *Context, name string, args *VodSnapshotByTimeOffsetTemplateArgs, opts ...ResourceOption) (*VodSnapshotByTimeOffsetTemplate, error)
    public VodSnapshotByTimeOffsetTemplate(string name, VodSnapshotByTimeOffsetTemplateArgs? args = null, CustomResourceOptions? opts = null)
    public VodSnapshotByTimeOffsetTemplate(String name, VodSnapshotByTimeOffsetTemplateArgs args)
    public VodSnapshotByTimeOffsetTemplate(String name, VodSnapshotByTimeOffsetTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VodSnapshotByTimeOffsetTemplate
    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 VodSnapshotByTimeOffsetTemplateArgs
    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 VodSnapshotByTimeOffsetTemplateArgs
    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 VodSnapshotByTimeOffsetTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VodSnapshotByTimeOffsetTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VodSnapshotByTimeOffsetTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Comment string
    Template description. Length limit: 256 characters.
    FillType string
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    Format string
    Image format. Valid values: jpg, png. Default value: jpg.
    Height double
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    Name string
    Name of a time point screen capturing template. Length limit: 64 characters.
    ResolutionAdaptive bool
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    SubAppId double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    VodSnapshotByTimeOffsetTemplateId string
    ID of the resource.
    Width double
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    Comment string
    Template description. Length limit: 256 characters.
    FillType string
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    Format string
    Image format. Valid values: jpg, png. Default value: jpg.
    Height float64
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    Name string
    Name of a time point screen capturing template. Length limit: 64 characters.
    ResolutionAdaptive bool
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    SubAppId float64
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    VodSnapshotByTimeOffsetTemplateId string
    ID of the resource.
    Width float64
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment String
    Template description. Length limit: 256 characters.
    fillType String
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format String
    Image format. Valid values: jpg, png. Default value: jpg.
    height Double
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name String
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolutionAdaptive Boolean
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    subAppId Double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    vodSnapshotByTimeOffsetTemplateId String
    ID of the resource.
    width Double
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment string
    Template description. Length limit: 256 characters.
    fillType string
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format string
    Image format. Valid values: jpg, png. Default value: jpg.
    height number
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name string
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolutionAdaptive boolean
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    subAppId number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    vodSnapshotByTimeOffsetTemplateId string
    ID of the resource.
    width number
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment str
    Template description. Length limit: 256 characters.
    fill_type str
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format str
    Image format. Valid values: jpg, png. Default value: jpg.
    height float
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name str
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolution_adaptive bool
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    sub_app_id float
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    vod_snapshot_by_time_offset_template_id str
    ID of the resource.
    width float
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment String
    Template description. Length limit: 256 characters.
    fillType String
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format String
    Image format. Valid values: jpg, png. Default value: jpg.
    height Number
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name String
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolutionAdaptive Boolean
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    subAppId Number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    vodSnapshotByTimeOffsetTemplateId String
    ID of the resource.
    width Number
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.

    Outputs

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

    CreateTime string
    Creation time of template in ISO date format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    UpdateTime string
    Last modified time of template in ISO date format.
    CreateTime string
    Creation time of template in ISO date format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    UpdateTime string
    Last modified time of template in ISO date format.
    createTime String
    Creation time of template in ISO date format.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    updateTime String
    Last modified time of template in ISO date format.
    createTime string
    Creation time of template in ISO date format.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    updateTime string
    Last modified time of template in ISO date format.
    create_time str
    Creation time of template in ISO date format.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    update_time str
    Last modified time of template in ISO date format.
    createTime String
    Creation time of template in ISO date format.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    updateTime String
    Last modified time of template in ISO date format.

    Look up Existing VodSnapshotByTimeOffsetTemplate Resource

    Get an existing VodSnapshotByTimeOffsetTemplate 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?: VodSnapshotByTimeOffsetTemplateState, opts?: CustomResourceOptions): VodSnapshotByTimeOffsetTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            create_time: Optional[str] = None,
            fill_type: Optional[str] = None,
            format: Optional[str] = None,
            height: Optional[float] = None,
            name: Optional[str] = None,
            resolution_adaptive: Optional[bool] = None,
            sub_app_id: Optional[float] = None,
            type: Optional[str] = None,
            update_time: Optional[str] = None,
            vod_snapshot_by_time_offset_template_id: Optional[str] = None,
            width: Optional[float] = None) -> VodSnapshotByTimeOffsetTemplate
    func GetVodSnapshotByTimeOffsetTemplate(ctx *Context, name string, id IDInput, state *VodSnapshotByTimeOffsetTemplateState, opts ...ResourceOption) (*VodSnapshotByTimeOffsetTemplate, error)
    public static VodSnapshotByTimeOffsetTemplate Get(string name, Input<string> id, VodSnapshotByTimeOffsetTemplateState? state, CustomResourceOptions? opts = null)
    public static VodSnapshotByTimeOffsetTemplate get(String name, Output<String> id, VodSnapshotByTimeOffsetTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VodSnapshotByTimeOffsetTemplate    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:
    Comment string
    Template description. Length limit: 256 characters.
    CreateTime string
    Creation time of template in ISO date format.
    FillType string
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    Format string
    Image format. Valid values: jpg, png. Default value: jpg.
    Height double
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    Name string
    Name of a time point screen capturing template. Length limit: 64 characters.
    ResolutionAdaptive bool
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    SubAppId double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    Type string
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    UpdateTime string
    Last modified time of template in ISO date format.
    VodSnapshotByTimeOffsetTemplateId string
    ID of the resource.
    Width double
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    Comment string
    Template description. Length limit: 256 characters.
    CreateTime string
    Creation time of template in ISO date format.
    FillType string
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    Format string
    Image format. Valid values: jpg, png. Default value: jpg.
    Height float64
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    Name string
    Name of a time point screen capturing template. Length limit: 64 characters.
    ResolutionAdaptive bool
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    SubAppId float64
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    Type string
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    UpdateTime string
    Last modified time of template in ISO date format.
    VodSnapshotByTimeOffsetTemplateId string
    ID of the resource.
    Width float64
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment String
    Template description. Length limit: 256 characters.
    createTime String
    Creation time of template in ISO date format.
    fillType String
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format String
    Image format. Valid values: jpg, png. Default value: jpg.
    height Double
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name String
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolutionAdaptive Boolean
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    subAppId Double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    type String
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    updateTime String
    Last modified time of template in ISO date format.
    vodSnapshotByTimeOffsetTemplateId String
    ID of the resource.
    width Double
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment string
    Template description. Length limit: 256 characters.
    createTime string
    Creation time of template in ISO date format.
    fillType string
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format string
    Image format. Valid values: jpg, png. Default value: jpg.
    height number
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name string
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolutionAdaptive boolean
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    subAppId number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    type string
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    updateTime string
    Last modified time of template in ISO date format.
    vodSnapshotByTimeOffsetTemplateId string
    ID of the resource.
    width number
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment str
    Template description. Length limit: 256 characters.
    create_time str
    Creation time of template in ISO date format.
    fill_type str
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format str
    Image format. Valid values: jpg, png. Default value: jpg.
    height float
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name str
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolution_adaptive bool
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    sub_app_id float
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    type str
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    update_time str
    Last modified time of template in ISO date format.
    vod_snapshot_by_time_offset_template_id str
    ID of the resource.
    width float
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    comment String
    Template description. Length limit: 256 characters.
    createTime String
    Creation time of template in ISO date format.
    fillType String
    Fill refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported: stretch: stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot shorter or longer; black: fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks. white: fill with white. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with white color blocks. gauss: fill with Gaussian blur. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with Gaussian blur. Default value: black.
    format String
    Image format. Valid values: jpg, png. Default value: jpg.
    height Number
    Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.
    name String
    Name of a time point screen capturing template. Length limit: 64 characters.
    resolutionAdaptive Boolean
    Resolution adaption. Valid values: true,false. true: enabled. In this case, width represents the long side of a video, while height the short side; false: disabled. In this case, width represents the width of a video, while height the height. Default value: true.
    subAppId Number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    type String
    Template type, value range:

    • Preset: system preset template;
    • Custom: user-defined templates.
    updateTime String
    Last modified time of template in ISO date format.
    vodSnapshotByTimeOffsetTemplateId String
    ID of the resource.
    width Number
    Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096]. If both width and height are 0, the resolution will be the same as that of the source video; If width is 0, but height is not 0, width will be proportionally scaled; If width is not 0, but height is 0, height will be proportionally scaled; If both width and height are not 0, the custom resolution will be used. Default value: 0.

    Import

    VOD snapshot by time offset template can be imported using the id($subAppId#$templateId), e.g.

    $ pulumi import tencentcloud:index/vodSnapshotByTimeOffsetTemplate:VodSnapshotByTimeOffsetTemplate foo $subAppId#$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