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

tencentcloud.MpsSampleSnapshotTemplate

Explore with Pulumi AI

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

    Provides a resource to create a mps sample_snapshot_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const sampleSnapshotTemplate = new tencentcloud.MpsSampleSnapshotTemplate("sampleSnapshotTemplate", {
        fillType: "stretch",
        format: "jpg",
        height: 128,
        resolutionAdaptive: "open",
        sampleInterval: 10,
        sampleType: "Percent",
        width: 140,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    sample_snapshot_template = tencentcloud.MpsSampleSnapshotTemplate("sampleSnapshotTemplate",
        fill_type="stretch",
        format="jpg",
        height=128,
        resolution_adaptive="open",
        sample_interval=10,
        sample_type="Percent",
        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.NewMpsSampleSnapshotTemplate(ctx, "sampleSnapshotTemplate", &tencentcloud.MpsSampleSnapshotTemplateArgs{
    			FillType:           pulumi.String("stretch"),
    			Format:             pulumi.String("jpg"),
    			Height:             pulumi.Float64(128),
    			ResolutionAdaptive: pulumi.String("open"),
    			SampleInterval:     pulumi.Float64(10),
    			SampleType:         pulumi.String("Percent"),
    			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 sampleSnapshotTemplate = new Tencentcloud.MpsSampleSnapshotTemplate("sampleSnapshotTemplate", new()
        {
            FillType = "stretch",
            Format = "jpg",
            Height = 128,
            ResolutionAdaptive = "open",
            SampleInterval = 10,
            SampleType = "Percent",
            Width = 140,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MpsSampleSnapshotTemplate;
    import com.pulumi.tencentcloud.MpsSampleSnapshotTemplateArgs;
    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 sampleSnapshotTemplate = new MpsSampleSnapshotTemplate("sampleSnapshotTemplate", MpsSampleSnapshotTemplateArgs.builder()
                .fillType("stretch")
                .format("jpg")
                .height(128)
                .resolutionAdaptive("open")
                .sampleInterval(10)
                .sampleType("Percent")
                .width(140)
                .build());
    
        }
    }
    
    resources:
      sampleSnapshotTemplate:
        type: tencentcloud:MpsSampleSnapshotTemplate
        properties:
          fillType: stretch
          format: jpg
          height: 128
          resolutionAdaptive: open
          sampleInterval: 10
          sampleType: Percent
          width: 140
    

    Create MpsSampleSnapshotTemplate Resource

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

    Constructor syntax

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

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

    SampleInterval double
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    SampleType string
    Sampling snapshot type, optional value:Percent/Time.
    Comment string
    Template description information, length limit: 256 characters.
    FillType 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.
    MpsSampleSnapshotTemplateId string
    ID of the resource.
    Name string
    Sample snapshot template name, length limit: 64 characters.
    ResolutionAdaptive 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.
    SampleInterval float64
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    SampleType string
    Sampling snapshot type, optional value:Percent/Time.
    Comment string
    Template description information, length limit: 256 characters.
    FillType 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.
    MpsSampleSnapshotTemplateId string
    ID of the resource.
    Name string
    Sample snapshot template name, length limit: 64 characters.
    ResolutionAdaptive 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.
    sampleInterval Double
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sampleType String
    Sampling snapshot type, optional value:Percent/Time.
    comment String
    Template description information, length limit: 256 characters.
    fillType 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.
    mpsSampleSnapshotTemplateId String
    ID of the resource.
    name String
    Sample snapshot template name, length limit: 64 characters.
    resolutionAdaptive 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.
    sampleInterval number
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sampleType string
    Sampling snapshot type, optional value:Percent/Time.
    comment string
    Template description information, length limit: 256 characters.
    fillType 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.
    mpsSampleSnapshotTemplateId string
    ID of the resource.
    name string
    Sample snapshot template name, length limit: 64 characters.
    resolutionAdaptive 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.
    sample_interval float
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sample_type str
    Sampling snapshot type, optional value:Percent/Time.
    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_sample_snapshot_template_id str
    ID of the resource.
    name str
    Sample snapshot 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.
    sampleInterval Number
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sampleType String
    Sampling snapshot type, optional value:Percent/Time.
    comment String
    Template description information, length limit: 256 characters.
    fillType 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.
    mpsSampleSnapshotTemplateId String
    ID of the resource.
    name String
    Sample snapshot template name, length limit: 64 characters.
    resolutionAdaptive 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 MpsSampleSnapshotTemplate 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 MpsSampleSnapshotTemplate Resource

    Get an existing MpsSampleSnapshotTemplate 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?: MpsSampleSnapshotTemplateState, opts?: CustomResourceOptions): MpsSampleSnapshotTemplate
    @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_sample_snapshot_template_id: Optional[str] = None,
            name: Optional[str] = None,
            resolution_adaptive: Optional[str] = None,
            sample_interval: Optional[float] = None,
            sample_type: Optional[str] = None,
            width: Optional[float] = None) -> MpsSampleSnapshotTemplate
    func GetMpsSampleSnapshotTemplate(ctx *Context, name string, id IDInput, state *MpsSampleSnapshotTemplateState, opts ...ResourceOption) (*MpsSampleSnapshotTemplate, error)
    public static MpsSampleSnapshotTemplate Get(string name, Input<string> id, MpsSampleSnapshotTemplateState? state, CustomResourceOptions? opts = null)
    public static MpsSampleSnapshotTemplate get(String name, Output<String> id, MpsSampleSnapshotTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MpsSampleSnapshotTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Comment string
    Template description information, length limit: 256 characters.
    FillType 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.
    MpsSampleSnapshotTemplateId string
    ID of the resource.
    Name string
    Sample snapshot template name, length limit: 64 characters.
    ResolutionAdaptive 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.
    SampleInterval double
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    SampleType string
    Sampling snapshot type, optional value:Percent/Time.
    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.
    FillType 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.
    MpsSampleSnapshotTemplateId string
    ID of the resource.
    Name string
    Sample snapshot template name, length limit: 64 characters.
    ResolutionAdaptive 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.
    SampleInterval float64
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    SampleType string
    Sampling snapshot type, optional value:Percent/Time.
    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.
    fillType 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.
    mpsSampleSnapshotTemplateId String
    ID of the resource.
    name String
    Sample snapshot template name, length limit: 64 characters.
    resolutionAdaptive 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.
    sampleInterval Double
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sampleType String
    Sampling snapshot type, optional value:Percent/Time.
    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.
    fillType 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.
    mpsSampleSnapshotTemplateId string
    ID of the resource.
    name string
    Sample snapshot template name, length limit: 64 characters.
    resolutionAdaptive 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.
    sampleInterval number
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sampleType string
    Sampling snapshot type, optional value:Percent/Time.
    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_sample_snapshot_template_id str
    ID of the resource.
    name str
    Sample snapshot 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.
    sample_interval float
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sample_type str
    Sampling snapshot type, optional value:Percent/Time.
    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.
    fillType 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.
    mpsSampleSnapshotTemplateId String
    ID of the resource.
    name String
    Sample snapshot template name, length limit: 64 characters.
    resolutionAdaptive 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.
    sampleInterval Number
    Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
    sampleType String
    Sampling snapshot type, optional value:Percent/Time.
    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 sample_snapshot_template can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/mpsSampleSnapshotTemplate:MpsSampleSnapshotTemplate sample_snapshot_template sample_snapshot_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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack