tencentcloud.VodSampleSnapshotTemplate
Explore with Pulumi AI
Provides a resource to create a vod snapshot template
Create VodSampleSnapshotTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VodSampleSnapshotTemplate(name: string, args: VodSampleSnapshotTemplateArgs, opts?: CustomResourceOptions);
@overload
def VodSampleSnapshotTemplate(resource_name: str,
args: VodSampleSnapshotTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VodSampleSnapshotTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
sample_interval: Optional[float] = None,
sample_type: Optional[str] = None,
sub_app_id: Optional[float] = 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[str] = None,
vod_sample_snapshot_template_id: Optional[str] = None,
width: Optional[float] = None)
func NewVodSampleSnapshotTemplate(ctx *Context, name string, args VodSampleSnapshotTemplateArgs, opts ...ResourceOption) (*VodSampleSnapshotTemplate, error)
public VodSampleSnapshotTemplate(string name, VodSampleSnapshotTemplateArgs args, CustomResourceOptions? opts = null)
public VodSampleSnapshotTemplate(String name, VodSampleSnapshotTemplateArgs args)
public VodSampleSnapshotTemplate(String name, VodSampleSnapshotTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:VodSampleSnapshotTemplate
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 VodSampleSnapshotTemplateArgs
- 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 VodSampleSnapshotTemplateArgs
- 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 VodSampleSnapshotTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VodSampleSnapshotTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VodSampleSnapshotTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VodSampleSnapshotTemplate 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 VodSampleSnapshotTemplate resource accepts the following input properties:
- Sample
Interval double - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - Sample
Type string - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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.
- Comment string
- Template description. Length limit: 256 characters.
- Fill
Type string - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - Name string
- Name of a sampled screencapturing template. Length limit: 64 characters.
- Resolution
Adaptive string - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - Vod
Sample stringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- Sample
Interval float64 - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - Sample
Type string - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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.
- Comment string
- Template description. Length limit: 256 characters.
- Fill
Type string - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - Name string
- Name of a sampled screencapturing template. Length limit: 64 characters.
- Resolution
Adaptive string - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - Vod
Sample stringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- sample
Interval Double - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample
Type String - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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.
- comment String
- Template description. Length limit: 256 characters.
- fill
Type String - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name String
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution
Adaptive String - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - vod
Sample StringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- sample
Interval number - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample
Type string - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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.
- comment string
- Template description. Length limit: 256 characters.
- fill
Type string - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name string
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution
Adaptive string - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - vod
Sample stringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- sample_
interval float - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample_
type str - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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.
- comment str
- Template description. Length limit: 256 characters.
- fill_
type str - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name str
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution_
adaptive str - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - vod_
sample_ strsnapshot_ 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- sample
Interval Number - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample
Type String - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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.
- comment String
- Template description. Length limit: 256 characters.
- fill
Type String - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name String
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution
Adaptive String - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - vod
Sample StringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
Outputs
All input properties are implicitly available as output properties. Additionally, the VodSampleSnapshotTemplate 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 VodSampleSnapshotTemplate Resource
Get an existing VodSampleSnapshotTemplate 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?: VodSampleSnapshotTemplateState, opts?: CustomResourceOptions): VodSampleSnapshotTemplate
@staticmethod
def get(resource_name: str,
id: 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[str] = None,
sample_interval: Optional[float] = None,
sample_type: Optional[str] = None,
sub_app_id: Optional[float] = None,
vod_sample_snapshot_template_id: Optional[str] = None,
width: Optional[float] = None) -> VodSampleSnapshotTemplate
func GetVodSampleSnapshotTemplate(ctx *Context, name string, id IDInput, state *VodSampleSnapshotTemplateState, opts ...ResourceOption) (*VodSampleSnapshotTemplate, error)
public static VodSampleSnapshotTemplate Get(string name, Input<string> id, VodSampleSnapshotTemplateState? state, CustomResourceOptions? opts = null)
public static VodSampleSnapshotTemplate get(String name, Output<String> id, VodSampleSnapshotTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VodSampleSnapshotTemplate 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.
- Fill
Type string - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - Name string
- Name of a sampled screencapturing template. Length limit: 64 characters.
- Resolution
Adaptive string - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - Sample
Interval double - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - Sample
Type string - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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
Sample stringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- Comment string
- Template description. Length limit: 256 characters.
- Fill
Type string - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - Name string
- Name of a sampled screencapturing template. Length limit: 64 characters.
- Resolution
Adaptive string - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - Sample
Interval float64 - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - Sample
Type string - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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
Sample stringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- comment String
- Template description. Length limit: 256 characters.
- fill
Type String - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name String
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution
Adaptive String - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - sample
Interval Double - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample
Type String - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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
Sample StringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- comment string
- Template description. Length limit: 256 characters.
- fill
Type string - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name string
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution
Adaptive string - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - sample
Interval number - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample
Type string - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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
Sample stringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- comment str
- Template description. Length limit: 256 characters.
- fill_
type str - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name str
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution_
adaptive str - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - sample_
interval float - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample_
type str - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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_
sample_ strsnapshot_ 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
- comment String
- Template description. Length limit: 256 characters.
- fill
Type String - Fill type. 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
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0. - name String
- Name of a sampled screencapturing template. Length limit: 64 characters.
- resolution
Adaptive String - Resolution adaption. Valid values: open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side; close: disabled. In this case,Width
represents the width of a video, whileHeight
the height.Default value: open. - sample
Interval Number - Sampling interval. If
SampleType
isPercent
, sampling will be performed at an interval of the specified percentage. IfSampleType
isTime
, sampling will be performed at the specified time interval in seconds. - sample
Type String - Sampled screencapturing type. Valid values: Percent: by percent. Time: by time interval.
- 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
Sample StringSnapshot 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 both
Width
andHeight
are 0, the resolution will be the same as that of the source video; IfWidth
is 0, butHeight
is not 0,Width
will be proportionally scaled; IfWidth
is not 0, butHeight
is 0,Height
will be proportionally scaled; If bothWidth
andHeight
are not 0, the custom resolution will be used.Default value: 0.
Import
vod snapshot template can be imported using the id($subAppId#$templateId), e.g.
$ pulumi import tencentcloud:index/vodSampleSnapshotTemplate:VodSampleSnapshotTemplate sample_snapshot_template $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.