1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MpsWatermarkTemplate
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.MpsWatermarkTemplate

Explore with Pulumi AI

Provides a resource to create a mps watermark_template

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as tencentcloud from "@pulumi/tencentcloud";

const watermarkTemplate = new tencentcloud.MpsWatermarkTemplate("watermarkTemplate", {
    coordinateOrigin: "TopLeft",
    type: "image",
    xPos: "12%",
    yPos: "21%",
    imageTemplate: {
        height: "17px",
        imageContent: fs.readFileSync("./logo.png", { encoding: "base64" }),
        repeatType: "repeat",
        width: "12px",
    },
});
Copy
import pulumi
import base64
import pulumi_tencentcloud as tencentcloud

watermark_template = tencentcloud.MpsWatermarkTemplate("watermarkTemplate",
    coordinate_origin="TopLeft",
    type="image",
    x_pos="12%",
    y_pos="21%",
    image_template={
        "height": "17px",
        "image_content": (lambda path: base64.b64encode(open(path).read().encode()).decode())("./logo.png"),
        "repeat_type": "repeat",
        "width": "12px",
    })
Copy
package main

import (
	"encoding/base64"
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func filebase64OrPanic(path string) string {
	if fileData, err := os.ReadFile(path); err == nil {
		return base64.StdEncoding.EncodeToString(fileData[:])
	} else {
		panic(err.Error())
	}
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewMpsWatermarkTemplate(ctx, "watermarkTemplate", &tencentcloud.MpsWatermarkTemplateArgs{
			CoordinateOrigin: pulumi.String("TopLeft"),
			Type:             pulumi.String("image"),
			XPos:             pulumi.String("12%"),
			YPos:             pulumi.String("21%"),
			ImageTemplate: &tencentcloud.MpsWatermarkTemplateImageTemplateArgs{
				Height:       pulumi.String("17px"),
				ImageContent: pulumi.String(filebase64OrPanic("./logo.png")),
				RepeatType:   pulumi.String("repeat"),
				Width:        pulumi.String("12px"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

	
string ReadFileBase64(string path) 
{
    return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)));
}

return await Deployment.RunAsync(() => 
{
    var watermarkTemplate = new Tencentcloud.MpsWatermarkTemplate("watermarkTemplate", new()
    {
        CoordinateOrigin = "TopLeft",
        Type = "image",
        XPos = "12%",
        YPos = "21%",
        ImageTemplate = new Tencentcloud.Inputs.MpsWatermarkTemplateImageTemplateArgs
        {
            Height = "17px",
            ImageContent = ReadFileBase64("./logo.png"),
            RepeatType = "repeat",
            Width = "12px",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MpsWatermarkTemplate;
import com.pulumi.tencentcloud.MpsWatermarkTemplateArgs;
import com.pulumi.tencentcloud.inputs.MpsWatermarkTemplateImageTemplateArgs;
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 watermarkTemplate = new MpsWatermarkTemplate("watermarkTemplate", MpsWatermarkTemplateArgs.builder()
            .coordinateOrigin("TopLeft")
            .type("image")
            .xPos("12%")
            .yPos("21%")
            .imageTemplate(MpsWatermarkTemplateImageTemplateArgs.builder()
                .height("17px")
                .imageContent(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("./logo.png"))))
                .repeatType("repeat")
                .width("12px")
                .build())
            .build());

    }
}
Copy
Coming soon!

Create MpsWatermarkTemplate Resource

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

Constructor syntax

new MpsWatermarkTemplate(name: string, args: MpsWatermarkTemplateArgs, opts?: CustomResourceOptions);
@overload
def MpsWatermarkTemplate(resource_name: str,
                         args: MpsWatermarkTemplateArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def MpsWatermarkTemplate(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         type: Optional[str] = None,
                         comment: Optional[str] = None,
                         coordinate_origin: Optional[str] = None,
                         image_template: Optional[MpsWatermarkTemplateImageTemplateArgs] = None,
                         mps_watermark_template_id: Optional[str] = None,
                         name: Optional[str] = None,
                         svg_template: Optional[MpsWatermarkTemplateSvgTemplateArgs] = None,
                         text_template: Optional[MpsWatermarkTemplateTextTemplateArgs] = None,
                         x_pos: Optional[str] = None,
                         y_pos: Optional[str] = None)
func NewMpsWatermarkTemplate(ctx *Context, name string, args MpsWatermarkTemplateArgs, opts ...ResourceOption) (*MpsWatermarkTemplate, error)
public MpsWatermarkTemplate(string name, MpsWatermarkTemplateArgs args, CustomResourceOptions? opts = null)
public MpsWatermarkTemplate(String name, MpsWatermarkTemplateArgs args)
public MpsWatermarkTemplate(String name, MpsWatermarkTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:MpsWatermarkTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MpsWatermarkTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MpsWatermarkTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MpsWatermarkTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MpsWatermarkTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MpsWatermarkTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Type This property is required. string
Watermark type, optional value:image, text, svg.
Comment string
Template description information, length limit: 256 characters.
CoordinateOrigin string
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
ImageTemplate MpsWatermarkTemplateImageTemplate
Image watermark template, only when Type is image, this field is required and valid.
MpsWatermarkTemplateId string
ID of the resource.
Name string
Watermark template name, length limit: 64 characters.
SvgTemplate MpsWatermarkTemplateSvgTemplate
SVG watermark template, only when Type is svg, this field is required and valid.
TextTemplate MpsWatermarkTemplateTextTemplate
Text watermark template, only when Type is text, this field is required and valid.
XPos string
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
YPos string
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
Type This property is required. string
Watermark type, optional value:image, text, svg.
Comment string
Template description information, length limit: 256 characters.
CoordinateOrigin string
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
ImageTemplate MpsWatermarkTemplateImageTemplateArgs
Image watermark template, only when Type is image, this field is required and valid.
MpsWatermarkTemplateId string
ID of the resource.
Name string
Watermark template name, length limit: 64 characters.
SvgTemplate MpsWatermarkTemplateSvgTemplateArgs
SVG watermark template, only when Type is svg, this field is required and valid.
TextTemplate MpsWatermarkTemplateTextTemplateArgs
Text watermark template, only when Type is text, this field is required and valid.
XPos string
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
YPos string
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
type This property is required. String
Watermark type, optional value:image, text, svg.
comment String
Template description information, length limit: 256 characters.
coordinateOrigin String
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
imageTemplate MpsWatermarkTemplateImageTemplate
Image watermark template, only when Type is image, this field is required and valid.
mpsWatermarkTemplateId String
ID of the resource.
name String
Watermark template name, length limit: 64 characters.
svgTemplate MpsWatermarkTemplateSvgTemplate
SVG watermark template, only when Type is svg, this field is required and valid.
textTemplate MpsWatermarkTemplateTextTemplate
Text watermark template, only when Type is text, this field is required and valid.
xPos String
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
yPos String
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
type This property is required. string
Watermark type, optional value:image, text, svg.
comment string
Template description information, length limit: 256 characters.
coordinateOrigin string
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
imageTemplate MpsWatermarkTemplateImageTemplate
Image watermark template, only when Type is image, this field is required and valid.
mpsWatermarkTemplateId string
ID of the resource.
name string
Watermark template name, length limit: 64 characters.
svgTemplate MpsWatermarkTemplateSvgTemplate
SVG watermark template, only when Type is svg, this field is required and valid.
textTemplate MpsWatermarkTemplateTextTemplate
Text watermark template, only when Type is text, this field is required and valid.
xPos string
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
yPos string
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
type This property is required. str
Watermark type, optional value:image, text, svg.
comment str
Template description information, length limit: 256 characters.
coordinate_origin str
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
image_template MpsWatermarkTemplateImageTemplateArgs
Image watermark template, only when Type is image, this field is required and valid.
mps_watermark_template_id str
ID of the resource.
name str
Watermark template name, length limit: 64 characters.
svg_template MpsWatermarkTemplateSvgTemplateArgs
SVG watermark template, only when Type is svg, this field is required and valid.
text_template MpsWatermarkTemplateTextTemplateArgs
Text watermark template, only when Type is text, this field is required and valid.
x_pos str
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
y_pos str
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
type This property is required. String
Watermark type, optional value:image, text, svg.
comment String
Template description information, length limit: 256 characters.
coordinateOrigin String
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
imageTemplate Property Map
Image watermark template, only when Type is image, this field is required and valid.
mpsWatermarkTemplateId String
ID of the resource.
name String
Watermark template name, length limit: 64 characters.
svgTemplate Property Map
SVG watermark template, only when Type is svg, this field is required and valid.
textTemplate Property Map
Text watermark template, only when Type is text, this field is required and valid.
xPos String
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
yPos String
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.

Outputs

All input properties are implicitly available as output properties. Additionally, the MpsWatermarkTemplate 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 MpsWatermarkTemplate Resource

Get an existing MpsWatermarkTemplate 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?: MpsWatermarkTemplateState, opts?: CustomResourceOptions): MpsWatermarkTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        coordinate_origin: Optional[str] = None,
        image_template: Optional[MpsWatermarkTemplateImageTemplateArgs] = None,
        mps_watermark_template_id: Optional[str] = None,
        name: Optional[str] = None,
        svg_template: Optional[MpsWatermarkTemplateSvgTemplateArgs] = None,
        text_template: Optional[MpsWatermarkTemplateTextTemplateArgs] = None,
        type: Optional[str] = None,
        x_pos: Optional[str] = None,
        y_pos: Optional[str] = None) -> MpsWatermarkTemplate
func GetMpsWatermarkTemplate(ctx *Context, name string, id IDInput, state *MpsWatermarkTemplateState, opts ...ResourceOption) (*MpsWatermarkTemplate, error)
public static MpsWatermarkTemplate Get(string name, Input<string> id, MpsWatermarkTemplateState? state, CustomResourceOptions? opts = null)
public static MpsWatermarkTemplate get(String name, Output<String> id, MpsWatermarkTemplateState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:MpsWatermarkTemplate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
CoordinateOrigin string
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
ImageTemplate MpsWatermarkTemplateImageTemplate
Image watermark template, only when Type is image, this field is required and valid.
MpsWatermarkTemplateId string
ID of the resource.
Name string
Watermark template name, length limit: 64 characters.
SvgTemplate MpsWatermarkTemplateSvgTemplate
SVG watermark template, only when Type is svg, this field is required and valid.
TextTemplate MpsWatermarkTemplateTextTemplate
Text watermark template, only when Type is text, this field is required and valid.
Type string
Watermark type, optional value:image, text, svg.
XPos string
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
YPos string
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
Comment string
Template description information, length limit: 256 characters.
CoordinateOrigin string
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
ImageTemplate MpsWatermarkTemplateImageTemplateArgs
Image watermark template, only when Type is image, this field is required and valid.
MpsWatermarkTemplateId string
ID of the resource.
Name string
Watermark template name, length limit: 64 characters.
SvgTemplate MpsWatermarkTemplateSvgTemplateArgs
SVG watermark template, only when Type is svg, this field is required and valid.
TextTemplate MpsWatermarkTemplateTextTemplateArgs
Text watermark template, only when Type is text, this field is required and valid.
Type string
Watermark type, optional value:image, text, svg.
XPos string
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
YPos string
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
comment String
Template description information, length limit: 256 characters.
coordinateOrigin String
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
imageTemplate MpsWatermarkTemplateImageTemplate
Image watermark template, only when Type is image, this field is required and valid.
mpsWatermarkTemplateId String
ID of the resource.
name String
Watermark template name, length limit: 64 characters.
svgTemplate MpsWatermarkTemplateSvgTemplate
SVG watermark template, only when Type is svg, this field is required and valid.
textTemplate MpsWatermarkTemplateTextTemplate
Text watermark template, only when Type is text, this field is required and valid.
type String
Watermark type, optional value:image, text, svg.
xPos String
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
yPos String
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
comment string
Template description information, length limit: 256 characters.
coordinateOrigin string
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
imageTemplate MpsWatermarkTemplateImageTemplate
Image watermark template, only when Type is image, this field is required and valid.
mpsWatermarkTemplateId string
ID of the resource.
name string
Watermark template name, length limit: 64 characters.
svgTemplate MpsWatermarkTemplateSvgTemplate
SVG watermark template, only when Type is svg, this field is required and valid.
textTemplate MpsWatermarkTemplateTextTemplate
Text watermark template, only when Type is text, this field is required and valid.
type string
Watermark type, optional value:image, text, svg.
xPos string
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
yPos string
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
comment str
Template description information, length limit: 256 characters.
coordinate_origin str
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
image_template MpsWatermarkTemplateImageTemplateArgs
Image watermark template, only when Type is image, this field is required and valid.
mps_watermark_template_id str
ID of the resource.
name str
Watermark template name, length limit: 64 characters.
svg_template MpsWatermarkTemplateSvgTemplateArgs
SVG watermark template, only when Type is svg, this field is required and valid.
text_template MpsWatermarkTemplateTextTemplateArgs
Text watermark template, only when Type is text, this field is required and valid.
type str
Watermark type, optional value:image, text, svg.
x_pos str
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
y_pos str
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.
comment String
Template description information, length limit: 256 characters.
coordinateOrigin String
Origin position, optional value:TopLeft: Indicates that the origin of the coordinates is at the upper left corner of the video image, and the origin of the watermark is the upper left corner of the picture or text.TopRight: Indicates that the origin of the coordinates is at the upper right corner of the video image, and the origin of the watermark is at the upper right corner of the picture or text.BottomLeft: Indicates that the origin of the coordinates is at the lower left corner of the video image, and the origin of the watermark is the lower left corner of the picture or text.BottomRight: Indicates that the origin of the coordinates is at the lower right corner of the video image, and the origin of the watermark is at the lower right corner of the picture or text.Default value: TopLeft.
imageTemplate Property Map
Image watermark template, only when Type is image, this field is required and valid.
mpsWatermarkTemplateId String
ID of the resource.
name String
Watermark template name, length limit: 64 characters.
svgTemplate Property Map
SVG watermark template, only when Type is svg, this field is required and valid.
textTemplate Property Map
Text watermark template, only when Type is text, this field is required and valid.
type String
Watermark type, optional value:image, text, svg.
xPos String
The horizontal position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark XPos specifies a percentage for the video width, such as 10% means that XPos is 10% of the video width.When the string ends with px, it means that the watermark XPos is the specified pixel, such as 100px means that the XPos is 100 pixels.Default value: 0px.
yPos String
The vertical position of the origin of the watermark from the origin of the coordinates of the video image. Support %, px two formats.When the string ends with %, it means that the watermark YPos specifies a percentage for the video height, such as 10% means that YPos is 10% of the video height.When the string ends with px, it means that the watermark YPos is the specified pixel, such as 100px means that the YPos is 100 pixels.Default value: 0px.

Supporting Types

MpsWatermarkTemplateImageTemplate
, MpsWatermarkTemplateImageTemplateArgs

ImageContent This property is required. string
Watermark imageBase64 encoded string. Support jpeg, png image format.
Height string
The height of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Height is the percentage size of the video height, such as 10% means that the Height is 10% of the video height.When the string ends with px, it means that the watermark Height unit is pixel, such as 100px means that the Height is 100 pixels. The value range is 0 or [8, 4096].Default value: 0px. Indicates that Height is scaled according to the aspect ratio of the original watermark image.
RepeatType string
Watermark repeat type. Usage scenario: The watermark is a dynamic image. Ranges:once: After the dynamic watermark is played, it will no longer appear.repeat_last_frame: After the watermark is played, stay on the last frame.repeat: the watermark loops until the end of the video (default).
Width string
The width of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Width is a percentage of the video width, such as 10% means that the Width is 10% of the video width.When the string ends with px, it means that the watermark Width unit is pixel, such as 100px means that the Width is 100 pixels. The value range is [8, 4096].Default value: 10%.
ImageContent This property is required. string
Watermark imageBase64 encoded string. Support jpeg, png image format.
Height string
The height of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Height is the percentage size of the video height, such as 10% means that the Height is 10% of the video height.When the string ends with px, it means that the watermark Height unit is pixel, such as 100px means that the Height is 100 pixels. The value range is 0 or [8, 4096].Default value: 0px. Indicates that Height is scaled according to the aspect ratio of the original watermark image.
RepeatType string
Watermark repeat type. Usage scenario: The watermark is a dynamic image. Ranges:once: After the dynamic watermark is played, it will no longer appear.repeat_last_frame: After the watermark is played, stay on the last frame.repeat: the watermark loops until the end of the video (default).
Width string
The width of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Width is a percentage of the video width, such as 10% means that the Width is 10% of the video width.When the string ends with px, it means that the watermark Width unit is pixel, such as 100px means that the Width is 100 pixels. The value range is [8, 4096].Default value: 10%.
imageContent This property is required. String
Watermark imageBase64 encoded string. Support jpeg, png image format.
height String
The height of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Height is the percentage size of the video height, such as 10% means that the Height is 10% of the video height.When the string ends with px, it means that the watermark Height unit is pixel, such as 100px means that the Height is 100 pixels. The value range is 0 or [8, 4096].Default value: 0px. Indicates that Height is scaled according to the aspect ratio of the original watermark image.
repeatType String
Watermark repeat type. Usage scenario: The watermark is a dynamic image. Ranges:once: After the dynamic watermark is played, it will no longer appear.repeat_last_frame: After the watermark is played, stay on the last frame.repeat: the watermark loops until the end of the video (default).
width String
The width of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Width is a percentage of the video width, such as 10% means that the Width is 10% of the video width.When the string ends with px, it means that the watermark Width unit is pixel, such as 100px means that the Width is 100 pixels. The value range is [8, 4096].Default value: 10%.
imageContent This property is required. string
Watermark imageBase64 encoded string. Support jpeg, png image format.
height string
The height of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Height is the percentage size of the video height, such as 10% means that the Height is 10% of the video height.When the string ends with px, it means that the watermark Height unit is pixel, such as 100px means that the Height is 100 pixels. The value range is 0 or [8, 4096].Default value: 0px. Indicates that Height is scaled according to the aspect ratio of the original watermark image.
repeatType string
Watermark repeat type. Usage scenario: The watermark is a dynamic image. Ranges:once: After the dynamic watermark is played, it will no longer appear.repeat_last_frame: After the watermark is played, stay on the last frame.repeat: the watermark loops until the end of the video (default).
width string
The width of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Width is a percentage of the video width, such as 10% means that the Width is 10% of the video width.When the string ends with px, it means that the watermark Width unit is pixel, such as 100px means that the Width is 100 pixels. The value range is [8, 4096].Default value: 10%.
image_content This property is required. str
Watermark imageBase64 encoded string. Support jpeg, png image format.
height str
The height of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Height is the percentage size of the video height, such as 10% means that the Height is 10% of the video height.When the string ends with px, it means that the watermark Height unit is pixel, such as 100px means that the Height is 100 pixels. The value range is 0 or [8, 4096].Default value: 0px. Indicates that Height is scaled according to the aspect ratio of the original watermark image.
repeat_type str
Watermark repeat type. Usage scenario: The watermark is a dynamic image. Ranges:once: After the dynamic watermark is played, it will no longer appear.repeat_last_frame: After the watermark is played, stay on the last frame.repeat: the watermark loops until the end of the video (default).
width str
The width of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Width is a percentage of the video width, such as 10% means that the Width is 10% of the video width.When the string ends with px, it means that the watermark Width unit is pixel, such as 100px means that the Width is 100 pixels. The value range is [8, 4096].Default value: 10%.
imageContent This property is required. String
Watermark imageBase64 encoded string. Support jpeg, png image format.
height String
The height of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Height is the percentage size of the video height, such as 10% means that the Height is 10% of the video height.When the string ends with px, it means that the watermark Height unit is pixel, such as 100px means that the Height is 100 pixels. The value range is 0 or [8, 4096].Default value: 0px. Indicates that Height is scaled according to the aspect ratio of the original watermark image.
repeatType String
Watermark repeat type. Usage scenario: The watermark is a dynamic image. Ranges:once: After the dynamic watermark is played, it will no longer appear.repeat_last_frame: After the watermark is played, stay on the last frame.repeat: the watermark loops until the end of the video (default).
width String
The width of the watermark. Support %, px two formats:When the string ends with %, it means that the watermark Width is a percentage of the video width, such as 10% means that the Width is 10% of the video width.When the string ends with px, it means that the watermark Width unit is pixel, such as 100px means that the Width is 100 pixels. The value range is [8, 4096].Default value: 10%.

MpsWatermarkTemplateSvgTemplate
, MpsWatermarkTemplateSvgTemplateArgs

Height string
The height of the watermark, supports px, W%, H%, S%, L% six formats:When the string ends with px, it means that the watermark Height unit is pixels, such as 100px means that the Height is 100 pixels; when filling 0px and Width is not 0px, it means that the height of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the height of the watermark takes the height of the original SVG image.When the string ends with W%, it means that the watermark Height is a percentage of the video width, such as 10W% means that the Height is 10% of the video width.When the string ends with H%, it means that the watermark Height is the percentage size of the video height, such as 10H% means that the Height is 10% of the video height.When the string ends with S%, it means that the watermark Height is the percentage size of the short side of the video, such as 10S% means that the Height is 10% of the short side of the video.When the string ends with L%, it means that the watermark Height is the percentage size of the long side of the video, such as 10L% means that the Height is 10% of the long side of the video.When the string ends with %, the meaning is the same as H%.Default value: 0px.
Width string
The width of the watermark, supports px, %, W%, H%, S%, L% six formats.When the string ends with px, it means that the watermark Width unit is pixels, such as 100px means that the Width is 100 pixels; when filling 0px and the Height is not 0px, it means that the width of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the width of the watermark takes the width of the original SVG image.When the string ends with W%, it means that the watermark Width is a percentage of the video width, such as 10W% means that the Width is 10% of the video width.When the string ends with H%, it means that the watermark Width is a percentage of the video height, such as 10H% means that the Width is 10% of the video height.When the string ends with S%, it means that the watermark Width is the percentage size of the short side of the video, such as 10S% means that the Width is 10% of the short side of the video.When the string ends with L%, it means that the watermark Width is the percentage size of the long side of the video, such as 10L% means that the Width is 10% of the long side of the video.When the string ends with %, it has the same meaning as W%.Default value: 10W%.
Height string
The height of the watermark, supports px, W%, H%, S%, L% six formats:When the string ends with px, it means that the watermark Height unit is pixels, such as 100px means that the Height is 100 pixels; when filling 0px and Width is not 0px, it means that the height of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the height of the watermark takes the height of the original SVG image.When the string ends with W%, it means that the watermark Height is a percentage of the video width, such as 10W% means that the Height is 10% of the video width.When the string ends with H%, it means that the watermark Height is the percentage size of the video height, such as 10H% means that the Height is 10% of the video height.When the string ends with S%, it means that the watermark Height is the percentage size of the short side of the video, such as 10S% means that the Height is 10% of the short side of the video.When the string ends with L%, it means that the watermark Height is the percentage size of the long side of the video, such as 10L% means that the Height is 10% of the long side of the video.When the string ends with %, the meaning is the same as H%.Default value: 0px.
Width string
The width of the watermark, supports px, %, W%, H%, S%, L% six formats.When the string ends with px, it means that the watermark Width unit is pixels, such as 100px means that the Width is 100 pixels; when filling 0px and the Height is not 0px, it means that the width of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the width of the watermark takes the width of the original SVG image.When the string ends with W%, it means that the watermark Width is a percentage of the video width, such as 10W% means that the Width is 10% of the video width.When the string ends with H%, it means that the watermark Width is a percentage of the video height, such as 10H% means that the Width is 10% of the video height.When the string ends with S%, it means that the watermark Width is the percentage size of the short side of the video, such as 10S% means that the Width is 10% of the short side of the video.When the string ends with L%, it means that the watermark Width is the percentage size of the long side of the video, such as 10L% means that the Width is 10% of the long side of the video.When the string ends with %, it has the same meaning as W%.Default value: 10W%.
height String
The height of the watermark, supports px, W%, H%, S%, L% six formats:When the string ends with px, it means that the watermark Height unit is pixels, such as 100px means that the Height is 100 pixels; when filling 0px and Width is not 0px, it means that the height of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the height of the watermark takes the height of the original SVG image.When the string ends with W%, it means that the watermark Height is a percentage of the video width, such as 10W% means that the Height is 10% of the video width.When the string ends with H%, it means that the watermark Height is the percentage size of the video height, such as 10H% means that the Height is 10% of the video height.When the string ends with S%, it means that the watermark Height is the percentage size of the short side of the video, such as 10S% means that the Height is 10% of the short side of the video.When the string ends with L%, it means that the watermark Height is the percentage size of the long side of the video, such as 10L% means that the Height is 10% of the long side of the video.When the string ends with %, the meaning is the same as H%.Default value: 0px.
width String
The width of the watermark, supports px, %, W%, H%, S%, L% six formats.When the string ends with px, it means that the watermark Width unit is pixels, such as 100px means that the Width is 100 pixels; when filling 0px and the Height is not 0px, it means that the width of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the width of the watermark takes the width of the original SVG image.When the string ends with W%, it means that the watermark Width is a percentage of the video width, such as 10W% means that the Width is 10% of the video width.When the string ends with H%, it means that the watermark Width is a percentage of the video height, such as 10H% means that the Width is 10% of the video height.When the string ends with S%, it means that the watermark Width is the percentage size of the short side of the video, such as 10S% means that the Width is 10% of the short side of the video.When the string ends with L%, it means that the watermark Width is the percentage size of the long side of the video, such as 10L% means that the Width is 10% of the long side of the video.When the string ends with %, it has the same meaning as W%.Default value: 10W%.
height string
The height of the watermark, supports px, W%, H%, S%, L% six formats:When the string ends with px, it means that the watermark Height unit is pixels, such as 100px means that the Height is 100 pixels; when filling 0px and Width is not 0px, it means that the height of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the height of the watermark takes the height of the original SVG image.When the string ends with W%, it means that the watermark Height is a percentage of the video width, such as 10W% means that the Height is 10% of the video width.When the string ends with H%, it means that the watermark Height is the percentage size of the video height, such as 10H% means that the Height is 10% of the video height.When the string ends with S%, it means that the watermark Height is the percentage size of the short side of the video, such as 10S% means that the Height is 10% of the short side of the video.When the string ends with L%, it means that the watermark Height is the percentage size of the long side of the video, such as 10L% means that the Height is 10% of the long side of the video.When the string ends with %, the meaning is the same as H%.Default value: 0px.
width string
The width of the watermark, supports px, %, W%, H%, S%, L% six formats.When the string ends with px, it means that the watermark Width unit is pixels, such as 100px means that the Width is 100 pixels; when filling 0px and the Height is not 0px, it means that the width of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the width of the watermark takes the width of the original SVG image.When the string ends with W%, it means that the watermark Width is a percentage of the video width, such as 10W% means that the Width is 10% of the video width.When the string ends with H%, it means that the watermark Width is a percentage of the video height, such as 10H% means that the Width is 10% of the video height.When the string ends with S%, it means that the watermark Width is the percentage size of the short side of the video, such as 10S% means that the Width is 10% of the short side of the video.When the string ends with L%, it means that the watermark Width is the percentage size of the long side of the video, such as 10L% means that the Width is 10% of the long side of the video.When the string ends with %, it has the same meaning as W%.Default value: 10W%.
height str
The height of the watermark, supports px, W%, H%, S%, L% six formats:When the string ends with px, it means that the watermark Height unit is pixels, such as 100px means that the Height is 100 pixels; when filling 0px and Width is not 0px, it means that the height of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the height of the watermark takes the height of the original SVG image.When the string ends with W%, it means that the watermark Height is a percentage of the video width, such as 10W% means that the Height is 10% of the video width.When the string ends with H%, it means that the watermark Height is the percentage size of the video height, such as 10H% means that the Height is 10% of the video height.When the string ends with S%, it means that the watermark Height is the percentage size of the short side of the video, such as 10S% means that the Height is 10% of the short side of the video.When the string ends with L%, it means that the watermark Height is the percentage size of the long side of the video, such as 10L% means that the Height is 10% of the long side of the video.When the string ends with %, the meaning is the same as H%.Default value: 0px.
width str
The width of the watermark, supports px, %, W%, H%, S%, L% six formats.When the string ends with px, it means that the watermark Width unit is pixels, such as 100px means that the Width is 100 pixels; when filling 0px and the Height is not 0px, it means that the width of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the width of the watermark takes the width of the original SVG image.When the string ends with W%, it means that the watermark Width is a percentage of the video width, such as 10W% means that the Width is 10% of the video width.When the string ends with H%, it means that the watermark Width is a percentage of the video height, such as 10H% means that the Width is 10% of the video height.When the string ends with S%, it means that the watermark Width is the percentage size of the short side of the video, such as 10S% means that the Width is 10% of the short side of the video.When the string ends with L%, it means that the watermark Width is the percentage size of the long side of the video, such as 10L% means that the Width is 10% of the long side of the video.When the string ends with %, it has the same meaning as W%.Default value: 10W%.
height String
The height of the watermark, supports px, W%, H%, S%, L% six formats:When the string ends with px, it means that the watermark Height unit is pixels, such as 100px means that the Height is 100 pixels; when filling 0px and Width is not 0px, it means that the height of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the height of the watermark takes the height of the original SVG image.When the string ends with W%, it means that the watermark Height is a percentage of the video width, such as 10W% means that the Height is 10% of the video width.When the string ends with H%, it means that the watermark Height is the percentage size of the video height, such as 10H% means that the Height is 10% of the video height.When the string ends with S%, it means that the watermark Height is the percentage size of the short side of the video, such as 10S% means that the Height is 10% of the short side of the video.When the string ends with L%, it means that the watermark Height is the percentage size of the long side of the video, such as 10L% means that the Height is 10% of the long side of the video.When the string ends with %, the meaning is the same as H%.Default value: 0px.
width String
The width of the watermark, supports px, %, W%, H%, S%, L% six formats.When the string ends with px, it means that the watermark Width unit is pixels, such as 100px means that the Width is 100 pixels; when filling 0px and the Height is not 0px, it means that the width of the watermark is proportionally scaled according to the original SVG image; when both Width and Height are filled When 0px, it means that the width of the watermark takes the width of the original SVG image.When the string ends with W%, it means that the watermark Width is a percentage of the video width, such as 10W% means that the Width is 10% of the video width.When the string ends with H%, it means that the watermark Width is a percentage of the video height, such as 10H% means that the Width is 10% of the video height.When the string ends with S%, it means that the watermark Width is the percentage size of the short side of the video, such as 10S% means that the Width is 10% of the short side of the video.When the string ends with L%, it means that the watermark Width is the percentage size of the long side of the video, such as 10L% means that the Width is 10% of the long side of the video.When the string ends with %, it has the same meaning as W%.Default value: 10W%.

MpsWatermarkTemplateTextTemplate
, MpsWatermarkTemplateTextTemplateArgs

FontAlpha This property is required. double
Text transparency, value range: (0, 1].0: fully transparent.1: fully opaque.Default value: 1.
FontColor This property is required. string
Font color, format: 0xRRGGBB, default value: 0xFFFFFF (white).
FontSize This property is required. string
Font size, format: Npx, N is a number.
FontType This property is required. string
Font type, currently supports two:simkai.ttf: can support Chinese and English.arial.ttf: English only.
FontAlpha This property is required. float64
Text transparency, value range: (0, 1].0: fully transparent.1: fully opaque.Default value: 1.
FontColor This property is required. string
Font color, format: 0xRRGGBB, default value: 0xFFFFFF (white).
FontSize This property is required. string
Font size, format: Npx, N is a number.
FontType This property is required. string
Font type, currently supports two:simkai.ttf: can support Chinese and English.arial.ttf: English only.
fontAlpha This property is required. Double
Text transparency, value range: (0, 1].0: fully transparent.1: fully opaque.Default value: 1.
fontColor This property is required. String
Font color, format: 0xRRGGBB, default value: 0xFFFFFF (white).
fontSize This property is required. String
Font size, format: Npx, N is a number.
fontType This property is required. String
Font type, currently supports two:simkai.ttf: can support Chinese and English.arial.ttf: English only.
fontAlpha This property is required. number
Text transparency, value range: (0, 1].0: fully transparent.1: fully opaque.Default value: 1.
fontColor This property is required. string
Font color, format: 0xRRGGBB, default value: 0xFFFFFF (white).
fontSize This property is required. string
Font size, format: Npx, N is a number.
fontType This property is required. string
Font type, currently supports two:simkai.ttf: can support Chinese and English.arial.ttf: English only.
font_alpha This property is required. float
Text transparency, value range: (0, 1].0: fully transparent.1: fully opaque.Default value: 1.
font_color This property is required. str
Font color, format: 0xRRGGBB, default value: 0xFFFFFF (white).
font_size This property is required. str
Font size, format: Npx, N is a number.
font_type This property is required. str
Font type, currently supports two:simkai.ttf: can support Chinese and English.arial.ttf: English only.
fontAlpha This property is required. Number
Text transparency, value range: (0, 1].0: fully transparent.1: fully opaque.Default value: 1.
fontColor This property is required. String
Font color, format: 0xRRGGBB, default value: 0xFFFFFF (white).
fontSize This property is required. String
Font size, format: Npx, N is a number.
fontType This property is required. String
Font type, currently supports two:simkai.ttf: can support Chinese and English.arial.ttf: English only.

Import

mps watermark_template can be imported using the id, e.g.

$ pulumi import tencentcloud:index/mpsWatermarkTemplate:MpsWatermarkTemplate watermark_template watermark_template_id
Copy

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.