tencentcloud.VodSnapshotByTimeOffsetTemplate
Explore with Pulumi AI
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.
- Fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - Name string
- 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, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - Sub
App doubleId - 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 stringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- Comment string
- Template description. Length limit: 256 characters.
- Fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - Name string
- 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, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - Sub
App float64Id - 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 stringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- comment String
- Template description. Length limit: 256 characters.
- fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - name String
- Name of a time point screen capturing template. Length limit: 64 characters.
- resolution
Adaptive Boolean - Resolution adaption. Valid values:
true
,false
.true
: enabled. In this case,width
represents the long side of a video, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub
App DoubleId - 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 StringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- comment string
- Template description. Length limit: 256 characters.
- fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - name string
- Name of a time point screen capturing template. Length limit: 64 characters.
- resolution
Adaptive boolean - Resolution adaption. Valid values:
true
,false
.true
: enabled. In this case,width
represents the long side of a video, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub
App numberId - 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 stringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, 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, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub_
app_ floatid - 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_ strby_ time_ offset_ template_ id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- comment String
- Template description. Length limit: 256 characters.
- fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - name String
- Name of a time point screen capturing template. Length limit: 64 characters.
- resolution
Adaptive Boolean - Resolution adaption. Valid values:
true
,false
.true
: enabled. In this case,width
represents the long side of a video, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub
App NumberId - 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 StringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, 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:
- Create
Time 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.
- Update
Time string - Last modified time of template in ISO date format.
- Create
Time 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.
- Update
Time string - Last modified time of template in ISO date format.
- create
Time 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.
- update
Time String - Last modified time of template in ISO date format.
- create
Time 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.
- update
Time 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.
- create
Time 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.
- update
Time 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.
- Comment string
- Template description. Length limit: 256 characters.
- Create
Time string - Creation time of template in ISO date format.
- Fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - Name string
- 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, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - Sub
App doubleId - 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.
- Update
Time string - Last modified time of template in ISO date format.
- Vod
Snapshot stringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- Comment string
- Template description. Length limit: 256 characters.
- Create
Time string - Creation time of template in ISO date format.
- Fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - Name string
- 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, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - Sub
App float64Id - 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.
- Update
Time string - Last modified time of template in ISO date format.
- Vod
Snapshot stringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- comment String
- Template description. Length limit: 256 characters.
- create
Time String - Creation time of template in ISO date format.
- fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - name String
- Name of a time point screen capturing template. Length limit: 64 characters.
- resolution
Adaptive Boolean - Resolution adaption. Valid values:
true
,false
.true
: enabled. In this case,width
represents the long side of a video, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub
App DoubleId - 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.
- update
Time String - Last modified time of template in ISO date format.
- vod
Snapshot StringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- comment string
- Template description. Length limit: 256 characters.
- create
Time string - Creation time of template in ISO date format.
- fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - name string
- Name of a time point screen capturing template. Length limit: 64 characters.
- resolution
Adaptive boolean - Resolution adaption. Valid values:
true
,false
.true
: enabled. In this case,width
represents the long side of a video, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub
App numberId - 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.
- update
Time string - Last modified time of template in ISO date format.
- vod
Snapshot stringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, 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, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub_
app_ floatid - 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_ strby_ time_ offset_ template_ id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
.
- comment String
- Template description. Length limit: 256 characters.
- create
Time String - Creation time of template in ISO date format.
- fill
Type 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 screenshotshorter
orlonger
;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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
,width
will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, the custom resolution will be used. Default value:0
. - name String
- Name of a time point screen capturing template. Length limit: 64 characters.
- resolution
Adaptive Boolean - Resolution adaption. Valid values:
true
,false
.true
: enabled. In this case,width
represents the long side of a video, whileheight
the short side;false
: disabled. In this case,width
represents the width of a video, whileheight
the height. Default value:true
. - sub
App NumberId - 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.
- update
Time String - Last modified time of template in ISO date format.
- vod
Snapshot StringBy Time Offset Template Id - 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 bothwidth
andheight
are0
, the resolution will be the same as that of the source video; Ifwidth
is0
, butheight
is not0
, width will be proportionally scaled; Ifwidth
is not0
, butheight
is0
,height
will be proportionally scaled; If bothwidth
andheight
are not0
, 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.