tencentcloud.MpsSnapshotByTimeoffsetTemplate
Explore with Pulumi AI
Provides a resource to create a mps snapshot_by_timeoffset_template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const snapshotByTimeoffsetTemplate = new tencentcloud.MpsSnapshotByTimeoffsetTemplate("snapshotByTimeoffsetTemplate", {
fillType: "stretch",
format: "jpg",
height: 128,
resolutionAdaptive: "open",
width: 140,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
snapshot_by_timeoffset_template = tencentcloud.MpsSnapshotByTimeoffsetTemplate("snapshotByTimeoffsetTemplate",
fill_type="stretch",
format="jpg",
height=128,
resolution_adaptive="open",
width=140)
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.NewMpsSnapshotByTimeoffsetTemplate(ctx, "snapshotByTimeoffsetTemplate", &tencentcloud.MpsSnapshotByTimeoffsetTemplateArgs{
FillType: pulumi.String("stretch"),
Format: pulumi.String("jpg"),
Height: pulumi.Float64(128),
ResolutionAdaptive: pulumi.String("open"),
Width: pulumi.Float64(140),
})
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 snapshotByTimeoffsetTemplate = new Tencentcloud.MpsSnapshotByTimeoffsetTemplate("snapshotByTimeoffsetTemplate", new()
{
FillType = "stretch",
Format = "jpg",
Height = 128,
ResolutionAdaptive = "open",
Width = 140,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MpsSnapshotByTimeoffsetTemplate;
import com.pulumi.tencentcloud.MpsSnapshotByTimeoffsetTemplateArgs;
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 snapshotByTimeoffsetTemplate = new MpsSnapshotByTimeoffsetTemplate("snapshotByTimeoffsetTemplate", MpsSnapshotByTimeoffsetTemplateArgs.builder()
.fillType("stretch")
.format("jpg")
.height(128)
.resolutionAdaptive("open")
.width(140)
.build());
}
}
resources:
snapshotByTimeoffsetTemplate:
type: tencentcloud:MpsSnapshotByTimeoffsetTemplate
properties:
fillType: stretch
format: jpg
height: 128
resolutionAdaptive: open
width: 140
Create MpsSnapshotByTimeoffsetTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MpsSnapshotByTimeoffsetTemplate(name: string, args?: MpsSnapshotByTimeoffsetTemplateArgs, opts?: CustomResourceOptions);
@overload
def MpsSnapshotByTimeoffsetTemplate(resource_name: str,
args: Optional[MpsSnapshotByTimeoffsetTemplateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def MpsSnapshotByTimeoffsetTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
fill_type: Optional[str] = None,
format: Optional[str] = None,
height: Optional[float] = None,
mps_snapshot_by_timeoffset_template_id: Optional[str] = None,
name: Optional[str] = None,
resolution_adaptive: Optional[str] = None,
width: Optional[float] = None)
func NewMpsSnapshotByTimeoffsetTemplate(ctx *Context, name string, args *MpsSnapshotByTimeoffsetTemplateArgs, opts ...ResourceOption) (*MpsSnapshotByTimeoffsetTemplate, error)
public MpsSnapshotByTimeoffsetTemplate(string name, MpsSnapshotByTimeoffsetTemplateArgs? args = null, CustomResourceOptions? opts = null)
public MpsSnapshotByTimeoffsetTemplate(String name, MpsSnapshotByTimeoffsetTemplateArgs args)
public MpsSnapshotByTimeoffsetTemplate(String name, MpsSnapshotByTimeoffsetTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:MpsSnapshotByTimeoffsetTemplate
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 MpsSnapshotByTimeoffsetTemplateArgs
- 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 MpsSnapshotByTimeoffsetTemplateArgs
- 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 MpsSnapshotByTimeoffsetTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MpsSnapshotByTimeoffsetTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MpsSnapshotByTimeoffsetTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MpsSnapshotByTimeoffsetTemplate 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 MpsSnapshotByTimeoffsetTemplate resource accepts the following input properties:
- Comment string
- Template description information, length limit: 256 characters.
- Fill
Type string - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- Format string
- Image format, the value can be jpg, png, webp. Default is jpg.
- Height double
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- Mps
Snapshot stringBy Timeoffset Template Id - ID of the resource.
- Name string
- Snapshot by timeoffset template name, length limit: 64 characters.
- Resolution
Adaptive string - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- Width double
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- Comment string
- Template description information, length limit: 256 characters.
- Fill
Type string - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- Format string
- Image format, the value can be jpg, png, webp. Default is jpg.
- Height float64
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- Mps
Snapshot stringBy Timeoffset Template Id - ID of the resource.
- Name string
- Snapshot by timeoffset template name, length limit: 64 characters.
- Resolution
Adaptive string - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- Width float64
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment String
- Template description information, length limit: 256 characters.
- fill
Type String - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format String
- Image format, the value can be jpg, png, webp. Default is jpg.
- height Double
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps
Snapshot StringBy Timeoffset Template Id - ID of the resource.
- name String
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution
Adaptive String - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width Double
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment string
- Template description information, length limit: 256 characters.
- fill
Type string - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format string
- Image format, the value can be jpg, png, webp. Default is jpg.
- height number
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps
Snapshot stringBy Timeoffset Template Id - ID of the resource.
- name string
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution
Adaptive string - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width number
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment str
- Template description information, length limit: 256 characters.
- fill_
type str - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format str
- Image format, the value can be jpg, png, webp. Default is jpg.
- height float
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps_
snapshot_ strby_ timeoffset_ template_ id - ID of the resource.
- name str
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution_
adaptive str - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width float
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment String
- Template description information, length limit: 256 characters.
- fill
Type String - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format String
- Image format, the value can be jpg, png, webp. Default is jpg.
- height Number
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps
Snapshot StringBy Timeoffset Template Id - ID of the resource.
- name String
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution
Adaptive String - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width Number
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
Outputs
All input properties are implicitly available as output properties. Additionally, the MpsSnapshotByTimeoffsetTemplate 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 MpsSnapshotByTimeoffsetTemplate Resource
Get an existing MpsSnapshotByTimeoffsetTemplate 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?: MpsSnapshotByTimeoffsetTemplateState, opts?: CustomResourceOptions): MpsSnapshotByTimeoffsetTemplate
@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,
mps_snapshot_by_timeoffset_template_id: Optional[str] = None,
name: Optional[str] = None,
resolution_adaptive: Optional[str] = None,
width: Optional[float] = None) -> MpsSnapshotByTimeoffsetTemplate
func GetMpsSnapshotByTimeoffsetTemplate(ctx *Context, name string, id IDInput, state *MpsSnapshotByTimeoffsetTemplateState, opts ...ResourceOption) (*MpsSnapshotByTimeoffsetTemplate, error)
public static MpsSnapshotByTimeoffsetTemplate Get(string name, Input<string> id, MpsSnapshotByTimeoffsetTemplateState? state, CustomResourceOptions? opts = null)
public static MpsSnapshotByTimeoffsetTemplate get(String name, Output<String> id, MpsSnapshotByTimeoffsetTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MpsSnapshotByTimeoffsetTemplate 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 information, length limit: 256 characters.
- Fill
Type string - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- Format string
- Image format, the value can be jpg, png, webp. Default is jpg.
- Height double
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- Mps
Snapshot stringBy Timeoffset Template Id - ID of the resource.
- Name string
- Snapshot by timeoffset template name, length limit: 64 characters.
- Resolution
Adaptive string - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- Width double
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- Comment string
- Template description information, length limit: 256 characters.
- Fill
Type string - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- Format string
- Image format, the value can be jpg, png, webp. Default is jpg.
- Height float64
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- Mps
Snapshot stringBy Timeoffset Template Id - ID of the resource.
- Name string
- Snapshot by timeoffset template name, length limit: 64 characters.
- Resolution
Adaptive string - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- Width float64
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment String
- Template description information, length limit: 256 characters.
- fill
Type String - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format String
- Image format, the value can be jpg, png, webp. Default is jpg.
- height Double
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps
Snapshot StringBy Timeoffset Template Id - ID of the resource.
- name String
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution
Adaptive String - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width Double
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment string
- Template description information, length limit: 256 characters.
- fill
Type string - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format string
- Image format, the value can be jpg, png, webp. Default is jpg.
- height number
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps
Snapshot stringBy Timeoffset Template Id - ID of the resource.
- name string
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution
Adaptive string - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width number
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment str
- Template description information, length limit: 256 characters.
- fill_
type str - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format str
- Image format, the value can be jpg, png, webp. Default is jpg.
- height float
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps_
snapshot_ strby_ timeoffset_ template_ id - ID of the resource.
- name str
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution_
adaptive str - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width float
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- comment String
- Template description information, length limit: 256 characters.
- fill
Type String - Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
- format String
- Image format, the value can be jpg, png, webp. Default is jpg.
- height Number
- The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
- mps
Snapshot StringBy Timeoffset Template Id - ID of the resource.
- name String
- Snapshot by timeoffset template name, length limit: 64 characters.
- resolution
Adaptive String - Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
- width Number
- The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
Import
mps snapshot_by_timeoffset_template can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mpsSnapshotByTimeoffsetTemplate:MpsSnapshotByTimeoffsetTemplate snapshot_by_timeoffset_template snapshot_by_timeoffset_template_id
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.