tencentcloud.CiMediaWatermarkTemplate
Explore with Pulumi AI
Provides a resource to create a ci media_watermark_template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mediaWatermarkTemplate = new tencentcloud.CiMediaWatermarkTemplate("mediaWatermarkTemplate", {
bucket: "terraform-ci-1308919341",
watermark: {
dx: "128",
dy: "128",
endTime: "100.5",
locMode: "Absolute",
pos: "TopRight",
startTime: "0",
text: {
fontColor: "0xF0F8F0",
fontSize: "30",
fontType: "simfang.ttf",
text: "watermark-content",
transparency: "30",
},
type: "Text",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
media_watermark_template = tencentcloud.CiMediaWatermarkTemplate("mediaWatermarkTemplate",
bucket="terraform-ci-1308919341",
watermark={
"dx": "128",
"dy": "128",
"end_time": "100.5",
"loc_mode": "Absolute",
"pos": "TopRight",
"start_time": "0",
"text": {
"font_color": "0xF0F8F0",
"font_size": "30",
"font_type": "simfang.ttf",
"text": "watermark-content",
"transparency": "30",
},
"type": "Text",
})
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.NewCiMediaWatermarkTemplate(ctx, "mediaWatermarkTemplate", &tencentcloud.CiMediaWatermarkTemplateArgs{
Bucket: pulumi.String("terraform-ci-1308919341"),
Watermark: &tencentcloud.CiMediaWatermarkTemplateWatermarkArgs{
Dx: pulumi.String("128"),
Dy: pulumi.String("128"),
EndTime: pulumi.String("100.5"),
LocMode: pulumi.String("Absolute"),
Pos: pulumi.String("TopRight"),
StartTime: pulumi.String("0"),
Text: &tencentcloud.CiMediaWatermarkTemplateWatermarkTextArgs{
FontColor: pulumi.String("0xF0F8F0"),
FontSize: pulumi.String("30"),
FontType: pulumi.String("simfang.ttf"),
Text: pulumi.String("watermark-content"),
Transparency: pulumi.String("30"),
},
Type: pulumi.String("Text"),
},
})
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 mediaWatermarkTemplate = new Tencentcloud.CiMediaWatermarkTemplate("mediaWatermarkTemplate", new()
{
Bucket = "terraform-ci-1308919341",
Watermark = new Tencentcloud.Inputs.CiMediaWatermarkTemplateWatermarkArgs
{
Dx = "128",
Dy = "128",
EndTime = "100.5",
LocMode = "Absolute",
Pos = "TopRight",
StartTime = "0",
Text = new Tencentcloud.Inputs.CiMediaWatermarkTemplateWatermarkTextArgs
{
FontColor = "0xF0F8F0",
FontSize = "30",
FontType = "simfang.ttf",
Text = "watermark-content",
Transparency = "30",
},
Type = "Text",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiMediaWatermarkTemplate;
import com.pulumi.tencentcloud.CiMediaWatermarkTemplateArgs;
import com.pulumi.tencentcloud.inputs.CiMediaWatermarkTemplateWatermarkArgs;
import com.pulumi.tencentcloud.inputs.CiMediaWatermarkTemplateWatermarkTextArgs;
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 mediaWatermarkTemplate = new CiMediaWatermarkTemplate("mediaWatermarkTemplate", CiMediaWatermarkTemplateArgs.builder()
.bucket("terraform-ci-1308919341")
.watermark(CiMediaWatermarkTemplateWatermarkArgs.builder()
.dx("128")
.dy("128")
.endTime("100.5")
.locMode("Absolute")
.pos("TopRight")
.startTime("0")
.text(CiMediaWatermarkTemplateWatermarkTextArgs.builder()
.fontColor("0xF0F8F0")
.fontSize("30")
.fontType("simfang.ttf")
.text("watermark-content")
.transparency("30")
.build())
.type("Text")
.build())
.build());
}
}
resources:
mediaWatermarkTemplate:
type: tencentcloud:CiMediaWatermarkTemplate
properties:
bucket: terraform-ci-1308919341
watermark:
dx: '128'
dy: '128'
endTime: '100.5'
locMode: Absolute
pos: TopRight
startTime: '0'
text:
fontColor: 0xF0F8F0
fontSize: '30'
fontType: simfang.ttf
text: watermark-content
transparency: '30'
type: Text
Create CiMediaWatermarkTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CiMediaWatermarkTemplate(name: string, args: CiMediaWatermarkTemplateArgs, opts?: CustomResourceOptions);
@overload
def CiMediaWatermarkTemplate(resource_name: str,
args: CiMediaWatermarkTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CiMediaWatermarkTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
watermark: Optional[CiMediaWatermarkTemplateWatermarkArgs] = None,
ci_media_watermark_template_id: Optional[str] = None,
name: Optional[str] = None)
func NewCiMediaWatermarkTemplate(ctx *Context, name string, args CiMediaWatermarkTemplateArgs, opts ...ResourceOption) (*CiMediaWatermarkTemplate, error)
public CiMediaWatermarkTemplate(string name, CiMediaWatermarkTemplateArgs args, CustomResourceOptions? opts = null)
public CiMediaWatermarkTemplate(String name, CiMediaWatermarkTemplateArgs args)
public CiMediaWatermarkTemplate(String name, CiMediaWatermarkTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CiMediaWatermarkTemplate
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 CiMediaWatermarkTemplateArgs
- 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 CiMediaWatermarkTemplateArgs
- 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 CiMediaWatermarkTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiMediaWatermarkTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CiMediaWatermarkTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CiMediaWatermarkTemplate 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 CiMediaWatermarkTemplate resource accepts the following input properties:
- Bucket string
- bucket name.
- Watermark
Ci
Media Watermark Template Watermark - container format.
- Ci
Media stringWatermark Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- Bucket string
- bucket name.
- Watermark
Ci
Media Watermark Template Watermark Args - container format.
- Ci
Media stringWatermark Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket String
- bucket name.
- watermark
Ci
Media Watermark Template Watermark - container format.
- ci
Media StringWatermark Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket string
- bucket name.
- watermark
Ci
Media Watermark Template Watermark - container format.
- ci
Media stringWatermark Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket str
- bucket name.
- watermark
Ci
Media Watermark Template Watermark Args - container format.
- ci_
media_ strwatermark_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket String
- bucket name.
- watermark Property Map
- container format.
- ci
Media StringWatermark Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CiMediaWatermarkTemplate 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 CiMediaWatermarkTemplate Resource
Get an existing CiMediaWatermarkTemplate 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?: CiMediaWatermarkTemplateState, opts?: CustomResourceOptions): CiMediaWatermarkTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
ci_media_watermark_template_id: Optional[str] = None,
name: Optional[str] = None,
watermark: Optional[CiMediaWatermarkTemplateWatermarkArgs] = None) -> CiMediaWatermarkTemplate
func GetCiMediaWatermarkTemplate(ctx *Context, name string, id IDInput, state *CiMediaWatermarkTemplateState, opts ...ResourceOption) (*CiMediaWatermarkTemplate, error)
public static CiMediaWatermarkTemplate Get(string name, Input<string> id, CiMediaWatermarkTemplateState? state, CustomResourceOptions? opts = null)
public static CiMediaWatermarkTemplate get(String name, Output<String> id, CiMediaWatermarkTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CiMediaWatermarkTemplate 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.
- Bucket string
- bucket name.
- Ci
Media stringWatermark Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Watermark
Ci
Media Watermark Template Watermark - container format.
- Bucket string
- bucket name.
- Ci
Media stringWatermark Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Watermark
Ci
Media Watermark Template Watermark Args - container format.
- bucket String
- bucket name.
- ci
Media StringWatermark Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - watermark
Ci
Media Watermark Template Watermark - container format.
- bucket string
- bucket name.
- ci
Media stringWatermark Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - watermark
Ci
Media Watermark Template Watermark - container format.
- bucket str
- bucket name.
- ci_
media_ strwatermark_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - watermark
Ci
Media Watermark Template Watermark Args - container format.
- bucket String
- bucket name.
- ci
Media StringWatermark Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - watermark Property Map
- container format.
Supporting Types
CiMediaWatermarkTemplateWatermark, CiMediaWatermarkTemplateWatermarkArgs
- Dx string
- Horizontal offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ], 2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Top, Bottom and Center, the parameter is invalid.
- Dy string
- Vertical offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ],2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096],3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Left, Right and Center, the parameter is invalid.
- Loc
Mode string - Offset method, Relativity: proportional, Absolute: fixed position.
- Pos string
- Reference position, TopRight, TopLeft, BottomRight, BottomLeft, Left, Right, Top, Bottom, Center.
- Type string
- Watermark type, Text: text watermark, Image: image watermark.
- End
Time string - Watermark end time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- Image
Ci
Media Watermark Template Watermark Image - Image watermark node.
- Start
Time string - Watermark start time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- Text
Ci
Media Watermark Template Watermark Text - Text Watermark Node.
- Dx string
- Horizontal offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ], 2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Top, Bottom and Center, the parameter is invalid.
- Dy string
- Vertical offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ],2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096],3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Left, Right and Center, the parameter is invalid.
- Loc
Mode string - Offset method, Relativity: proportional, Absolute: fixed position.
- Pos string
- Reference position, TopRight, TopLeft, BottomRight, BottomLeft, Left, Right, Top, Bottom, Center.
- Type string
- Watermark type, Text: text watermark, Image: image watermark.
- End
Time string - Watermark end time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- Image
Ci
Media Watermark Template Watermark Image - Image watermark node.
- Start
Time string - Watermark start time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- Text
Ci
Media Watermark Template Watermark Text - Text Watermark Node.
- dx String
- Horizontal offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ], 2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Top, Bottom and Center, the parameter is invalid.
- dy String
- Vertical offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ],2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096],3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Left, Right and Center, the parameter is invalid.
- loc
Mode String - Offset method, Relativity: proportional, Absolute: fixed position.
- pos String
- Reference position, TopRight, TopLeft, BottomRight, BottomLeft, Left, Right, Top, Bottom, Center.
- type String
- Watermark type, Text: text watermark, Image: image watermark.
- end
Time String - Watermark end time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- image
Ci
Media Watermark Template Watermark Image - Image watermark node.
- start
Time String - Watermark start time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- text
Ci
Media Watermark Template Watermark Text - Text Watermark Node.
- dx string
- Horizontal offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ], 2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Top, Bottom and Center, the parameter is invalid.
- dy string
- Vertical offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ],2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096],3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Left, Right and Center, the parameter is invalid.
- loc
Mode string - Offset method, Relativity: proportional, Absolute: fixed position.
- pos string
- Reference position, TopRight, TopLeft, BottomRight, BottomLeft, Left, Right, Top, Bottom, Center.
- type string
- Watermark type, Text: text watermark, Image: image watermark.
- end
Time string - Watermark end time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- image
Ci
Media Watermark Template Watermark Image - Image watermark node.
- start
Time string - Watermark start time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- text
Ci
Media Watermark Template Watermark Text - Text Watermark Node.
- dx str
- Horizontal offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ], 2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Top, Bottom and Center, the parameter is invalid.
- dy str
- Vertical offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ],2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096],3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Left, Right and Center, the parameter is invalid.
- loc_
mode str - Offset method, Relativity: proportional, Absolute: fixed position.
- pos str
- Reference position, TopRight, TopLeft, BottomRight, BottomLeft, Left, Right, Top, Bottom, Center.
- type str
- Watermark type, Text: text watermark, Image: image watermark.
- end_
time str - Watermark end time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- image
Ci
Media Watermark Template Watermark Image - Image watermark node.
- start_
time str - Watermark start time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- text
Ci
Media Watermark Template Watermark Text - Text Watermark Node.
- dx String
- Horizontal offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ], 2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Top, Bottom and Center, the parameter is invalid.
- dy String
- Vertical offset, 1: In the picture watermark, if Background is true, when locMode is Relativity, it is %, value range: [-300 0]; when locMode is Absolute, it is px, value range: [-4096 0] ],2: In the picture watermark, if Background is false, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096],3: In text watermark, when locMode is Relativity, it is %, value range: [0 100]; when locMode is Absolute, it is px, value range: [0 4096], 4: When Pos is Left, Right and Center, the parameter is invalid.
- loc
Mode String - Offset method, Relativity: proportional, Absolute: fixed position.
- pos String
- Reference position, TopRight, TopLeft, BottomRight, BottomLeft, Left, Right, Top, Bottom, Center.
- type String
- Watermark type, Text: text watermark, Image: image watermark.
- end
Time String - Watermark end time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- image Property Map
- Image watermark node.
- start
Time String - Watermark start time, 1: [0 video duration], 2: unit is second, 3: support float format, execution accuracy is accurate to milliseconds.
- text Property Map
- Text Watermark Node.
CiMediaWatermarkTemplateWatermarkImage, CiMediaWatermarkTemplateWatermarkImageArgs
- Background string
- Whether the background image.
- Mode string
- Size mode, Original: original size, Proportion: proportional, Fixed: fixed size.
- Transparency string
- Transparency, value range: [1 100], unit %.
- Url string
- Address of watermark map (pass in after Urlencode is required).
- Height string
- High, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- Width string
- Width, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- Background string
- Whether the background image.
- Mode string
- Size mode, Original: original size, Proportion: proportional, Fixed: fixed size.
- Transparency string
- Transparency, value range: [1 100], unit %.
- Url string
- Address of watermark map (pass in after Urlencode is required).
- Height string
- High, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- Width string
- Width, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- background String
- Whether the background image.
- mode String
- Size mode, Original: original size, Proportion: proportional, Fixed: fixed size.
- transparency String
- Transparency, value range: [1 100], unit %.
- url String
- Address of watermark map (pass in after Urlencode is required).
- height String
- High, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- width String
- Width, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- background string
- Whether the background image.
- mode string
- Size mode, Original: original size, Proportion: proportional, Fixed: fixed size.
- transparency string
- Transparency, value range: [1 100], unit %.
- url string
- Address of watermark map (pass in after Urlencode is required).
- height string
- High, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- width string
- Width, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- background str
- Whether the background image.
- mode str
- Size mode, Original: original size, Proportion: proportional, Fixed: fixed size.
- transparency str
- Transparency, value range: [1 100], unit %.
- url str
- Address of watermark map (pass in after Urlencode is required).
- height str
- High, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- width str
- Width, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- background String
- Whether the background image.
- mode String
- Size mode, Original: original size, Proportion: proportional, Fixed: fixed size.
- transparency String
- Transparency, value range: [1 100], unit %.
- url String
- Address of watermark map (pass in after Urlencode is required).
- height String
- High, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
- width String
- Width, 1: When the Mode is Original, it does not support setting the width of the watermark image, 2: When the Mode is Proportion, the unit is %, the value range of the background image: [100 300]; the value range of the foreground image: [1 100], relative to Video width, up to 4096px, 3: When Mode is Fixed, the unit is px, value range: [8, 4096], 4: If only Width is set, Height is calculated according to the proportion of the watermark image.
CiMediaWatermarkTemplateWatermarkText, CiMediaWatermarkTemplateWatermarkTextArgs
- Font
Color string - Font color, format: 0xRRGGBB.
- Font
Size string - Font size, value range: [5 100], unit px.
- Font
Type string - font type.
- Text string
- Watermark content, the length does not exceed 64 characters, only supports Chinese, English, numbers, _, - and *.
- Transparency string
- Transparency, value range: [1 100], unit %.
- Font
Color string - Font color, format: 0xRRGGBB.
- Font
Size string - Font size, value range: [5 100], unit px.
- Font
Type string - font type.
- Text string
- Watermark content, the length does not exceed 64 characters, only supports Chinese, English, numbers, _, - and *.
- Transparency string
- Transparency, value range: [1 100], unit %.
- font
Color String - Font color, format: 0xRRGGBB.
- font
Size String - Font size, value range: [5 100], unit px.
- font
Type String - font type.
- text String
- Watermark content, the length does not exceed 64 characters, only supports Chinese, English, numbers, _, - and *.
- transparency String
- Transparency, value range: [1 100], unit %.
- font
Color string - Font color, format: 0xRRGGBB.
- font
Size string - Font size, value range: [5 100], unit px.
- font
Type string - font type.
- text string
- Watermark content, the length does not exceed 64 characters, only supports Chinese, English, numbers, _, - and *.
- transparency string
- Transparency, value range: [1 100], unit %.
- font_
color str - Font color, format: 0xRRGGBB.
- font_
size str - Font size, value range: [5 100], unit px.
- font_
type str - font type.
- text str
- Watermark content, the length does not exceed 64 characters, only supports Chinese, English, numbers, _, - and *.
- transparency str
- Transparency, value range: [1 100], unit %.
- font
Color String - Font color, format: 0xRRGGBB.
- font
Size String - Font size, value range: [5 100], unit px.
- font
Type String - font type.
- text String
- Watermark content, the length does not exceed 64 characters, only supports Chinese, English, numbers, _, - and *.
- transparency String
- Transparency, value range: [1 100], unit %.
Import
ci media_watermark_template can be imported using the id, e.g.
$ pulumi import tencentcloud:index/ciMediaWatermarkTemplate:CiMediaWatermarkTemplate media_watermark_template media_watermark_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.