tencentcloud.VodWatermarkTemplate
Explore with Pulumi AI
Provides a resource to create a vod watermark template
Create VodWatermarkTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VodWatermarkTemplate(name: string, args: VodWatermarkTemplateArgs, opts?: CustomResourceOptions);
@overload
def VodWatermarkTemplate(resource_name: str,
args: VodWatermarkTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VodWatermarkTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
sub_app_id: Optional[float] = None,
type: Optional[str] = None,
comment: Optional[str] = None,
coordinate_origin: Optional[str] = None,
image_template: Optional[VodWatermarkTemplateImageTemplateArgs] = None,
name: Optional[str] = None,
svg_template: Optional[VodWatermarkTemplateSvgTemplateArgs] = None,
text_template: Optional[VodWatermarkTemplateTextTemplateArgs] = None,
vod_watermark_template_id: Optional[str] = None,
x_pos: Optional[str] = None,
y_pos: Optional[str] = None)
func NewVodWatermarkTemplate(ctx *Context, name string, args VodWatermarkTemplateArgs, opts ...ResourceOption) (*VodWatermarkTemplate, error)
public VodWatermarkTemplate(string name, VodWatermarkTemplateArgs args, CustomResourceOptions? opts = null)
public VodWatermarkTemplate(String name, VodWatermarkTemplateArgs args)
public VodWatermarkTemplate(String name, VodWatermarkTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:VodWatermarkTemplate
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 VodWatermarkTemplateArgs
- 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 VodWatermarkTemplateArgs
- 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 VodWatermarkTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VodWatermarkTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VodWatermarkTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VodWatermarkTemplate 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 VodWatermarkTemplate resource accepts the following input properties:
- Sub
App doubleId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- Type string
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- Comment string
- Template description. Length limit: 256 characters.
- Coordinate
Origin string - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- Image
Template VodWatermark Template Image Template - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - Name string
- Watermarking template name. Length limit: 64 characters.
- Svg
Template VodWatermark Template Svg Template - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - Text
Template VodWatermark Template Text Template - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - Vod
Watermark stringTemplate Id - ID of the resource.
- XPos string
- The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - YPos string
- The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- Sub
App float64Id - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- Type string
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- Comment string
- Template description. Length limit: 256 characters.
- Coordinate
Origin string - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- Image
Template VodWatermark Template Image Template Args - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - Name string
- Watermarking template name. Length limit: 64 characters.
- Svg
Template VodWatermark Template Svg Template Args - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - Text
Template VodWatermark Template Text Template Args - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - Vod
Watermark stringTemplate Id - ID of the resource.
- XPos string
- The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - YPos string
- The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- sub
App DoubleId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- type String
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- comment String
- Template description. Length limit: 256 characters.
- coordinate
Origin String - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image
Template VodWatermark Template Image Template - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name String
- Watermarking template name. Length limit: 64 characters.
- svg
Template VodWatermark Template Svg Template - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text
Template VodWatermark Template Text Template - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - vod
Watermark StringTemplate Id - ID of the resource.
- x
Pos String - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y
Pos String - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- sub
App numberId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- type string
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- comment string
- Template description. Length limit: 256 characters.
- coordinate
Origin string - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image
Template VodWatermark Template Image Template - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name string
- Watermarking template name. Length limit: 64 characters.
- svg
Template VodWatermark Template Svg Template - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text
Template VodWatermark Template Text Template - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - vod
Watermark stringTemplate Id - ID of the resource.
- x
Pos string - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y
Pos string - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- sub_
app_ floatid - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- type str
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- comment str
- Template description. Length limit: 256 characters.
- coordinate_
origin str - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image_
template VodWatermark Template Image Template Args - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name str
- Watermarking template name. Length limit: 64 characters.
- svg_
template VodWatermark Template Svg Template Args - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text_
template VodWatermark Template Text Template Args - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - vod_
watermark_ strtemplate_ id - ID of the resource.
- x_
pos str - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y_
pos str - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- sub
App NumberId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- type String
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- comment String
- Template description. Length limit: 256 characters.
- coordinate
Origin String - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image
Template Property Map - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name String
- Watermarking template name. Length limit: 64 characters.
- svg
Template Property Map - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text
Template Property Map - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - vod
Watermark StringTemplate Id - ID of the resource.
- x
Pos String - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y
Pos String - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
Outputs
All input properties are implicitly available as output properties. Additionally, the VodWatermarkTemplate 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 VodWatermarkTemplate Resource
Get an existing VodWatermarkTemplate 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?: VodWatermarkTemplateState, opts?: CustomResourceOptions): VodWatermarkTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
coordinate_origin: Optional[str] = None,
image_template: Optional[VodWatermarkTemplateImageTemplateArgs] = None,
name: Optional[str] = None,
sub_app_id: Optional[float] = None,
svg_template: Optional[VodWatermarkTemplateSvgTemplateArgs] = None,
text_template: Optional[VodWatermarkTemplateTextTemplateArgs] = None,
type: Optional[str] = None,
vod_watermark_template_id: Optional[str] = None,
x_pos: Optional[str] = None,
y_pos: Optional[str] = None) -> VodWatermarkTemplate
func GetVodWatermarkTemplate(ctx *Context, name string, id IDInput, state *VodWatermarkTemplateState, opts ...ResourceOption) (*VodWatermarkTemplate, error)
public static VodWatermarkTemplate Get(string name, Input<string> id, VodWatermarkTemplateState? state, CustomResourceOptions? opts = null)
public static VodWatermarkTemplate get(String name, Output<String> id, VodWatermarkTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VodWatermarkTemplate get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comment string
- Template description. Length limit: 256 characters.
- Coordinate
Origin string - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- Image
Template VodWatermark Template Image Template - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - Name string
- Watermarking template name. Length limit: 64 characters.
- Sub
App doubleId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- Svg
Template VodWatermark Template Svg Template - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - Text
Template VodWatermark Template Text Template - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - Type string
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- Vod
Watermark stringTemplate Id - ID of the resource.
- XPos string
- The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - YPos string
- The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- Comment string
- Template description. Length limit: 256 characters.
- Coordinate
Origin string - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- Image
Template VodWatermark Template Image Template Args - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - Name string
- Watermarking template name. Length limit: 64 characters.
- Sub
App float64Id - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- Svg
Template VodWatermark Template Svg Template Args - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - Text
Template VodWatermark Template Text Template Args - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - Type string
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- Vod
Watermark stringTemplate Id - ID of the resource.
- XPos string
- The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - YPos string
- The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- comment String
- Template description. Length limit: 256 characters.
- coordinate
Origin String - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image
Template VodWatermark Template Image Template - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name String
- Watermarking template name. Length limit: 64 characters.
- sub
App DoubleId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- svg
Template VodWatermark Template Svg Template - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text
Template VodWatermark Template Text Template - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - type String
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- vod
Watermark StringTemplate Id - ID of the resource.
- x
Pos String - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y
Pos String - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- comment string
- Template description. Length limit: 256 characters.
- coordinate
Origin string - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image
Template VodWatermark Template Image Template - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name string
- Watermarking template name. Length limit: 64 characters.
- sub
App numberId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- svg
Template VodWatermark Template Svg Template - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text
Template VodWatermark Template Text Template - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - type string
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- vod
Watermark stringTemplate Id - ID of the resource.
- x
Pos string - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y
Pos string - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- comment str
- Template description. Length limit: 256 characters.
- coordinate_
origin str - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image_
template VodWatermark Template Image Template Args - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name str
- Watermarking template name. Length limit: 64 characters.
- sub_
app_ floatid - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- svg_
template VodWatermark Template Svg Template Args - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text_
template VodWatermark Template Text Template Args - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - type str
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- vod_
watermark_ strtemplate_ id - ID of the resource.
- x_
pos str - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y_
pos str - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
- comment String
- Template description. Length limit: 256 characters.
- coordinate
Origin String - Origin position. Valid values: TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text; TopRight: the origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text; BottomLeft: the origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text; BottomRight: the origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.Default value: TopLeft.
- image
Template Property Map - Image watermarking template. This field is required when
Type
isimage
and is invalid whenType
istext
. - name String
- Watermarking template name. Length limit: 64 characters.
- sub
App NumberId - The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
- svg
Template Property Map - SVG watermarking template. This field is required when
Type
issvg
and is invalid whenType
isimage
ortext
. - text
Template Property Map - Text watermarking template. This field is required when
Type
istext
and is invalid whenType
isimage
. - type String
- Watermarking type. Valid values: image: image watermark; text: text watermark; svg: SVG watermark.
- vod
Watermark StringTemplate Id - ID of the resource.
- x
Pos String - The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
XPos
of the watermark will be the specified percentage of the video width; for example,10%
means thatXPos
is 10% of the video width; If the string ends in px, theXPos
of the watermark will be the specified px; for example,100px
means thatXPos
is 100 px.Default value: 0 px. - y
Pos String - The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported: If the string ends in %, the
YPos
of the watermark will be the specified percentage of the video height; for example,10%
means thatYPos
is 10% of the video height; If the string ends in px, theYPos
of the watermark will be the specified px; for example,100px
means thatYPos
is 100 px.Default value: 0 px.
Supporting Types
VodWatermarkTemplateImageTemplate, VodWatermarkTemplateImageTemplateArgs
- Image
Content string - The Base64 encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
- Height string
- Watermark height. % and px formats are supported: If the string ends in %, the
Height
of the watermark will be the specified percentage of the video height; for example,10%
means thatHeight
is 10% of the video height; If the string ends in px, theHeight
of the watermark will be in px; for example,100px
means thatHeight
is 100 px. Valid values: 0 or [8,4096]. Default value: 0 px, which means thatHeight
will be proportionally scaled according to the aspect ratio of the original watermark image. - Repeat
Type string - Repeat type of an animated watermark. Valid values: once: no longer appears after watermark playback ends. repeat_last_frame: stays on the last frame after watermark playback ends. repeat (default): repeats the playback until the video ends.
- Transparency double
- Image watermark transparency: 0: completely opaque 100: completely transparent Default value: 0.
- Width string
- Watermark width. % and px formats are supported: If the string ends in %, the
Width
of the watermark will be the specified percentage of the video width. For example,10%
means thatWidth
is 10% of the video width; If the string ends in px, theWidth
of the watermark will be in pixels. For example,100px
means thatWidth
is 100 pixels. Value range: [8, 4096]. Default value: 10%.
- Image
Content string - The Base64 encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
- Height string
- Watermark height. % and px formats are supported: If the string ends in %, the
Height
of the watermark will be the specified percentage of the video height; for example,10%
means thatHeight
is 10% of the video height; If the string ends in px, theHeight
of the watermark will be in px; for example,100px
means thatHeight
is 100 px. Valid values: 0 or [8,4096]. Default value: 0 px, which means thatHeight
will be proportionally scaled according to the aspect ratio of the original watermark image. - Repeat
Type string - Repeat type of an animated watermark. Valid values: once: no longer appears after watermark playback ends. repeat_last_frame: stays on the last frame after watermark playback ends. repeat (default): repeats the playback until the video ends.
- Transparency float64
- Image watermark transparency: 0: completely opaque 100: completely transparent Default value: 0.
- Width string
- Watermark width. % and px formats are supported: If the string ends in %, the
Width
of the watermark will be the specified percentage of the video width. For example,10%
means thatWidth
is 10% of the video width; If the string ends in px, theWidth
of the watermark will be in pixels. For example,100px
means thatWidth
is 100 pixels. Value range: [8, 4096]. Default value: 10%.
- image
Content String - The Base64 encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
- height String
- Watermark height. % and px formats are supported: If the string ends in %, the
Height
of the watermark will be the specified percentage of the video height; for example,10%
means thatHeight
is 10% of the video height; If the string ends in px, theHeight
of the watermark will be in px; for example,100px
means thatHeight
is 100 px. Valid values: 0 or [8,4096]. Default value: 0 px, which means thatHeight
will be proportionally scaled according to the aspect ratio of the original watermark image. - repeat
Type String - Repeat type of an animated watermark. Valid values: once: no longer appears after watermark playback ends. repeat_last_frame: stays on the last frame after watermark playback ends. repeat (default): repeats the playback until the video ends.
- transparency Double
- Image watermark transparency: 0: completely opaque 100: completely transparent Default value: 0.
- width String
- Watermark width. % and px formats are supported: If the string ends in %, the
Width
of the watermark will be the specified percentage of the video width. For example,10%
means thatWidth
is 10% of the video width; If the string ends in px, theWidth
of the watermark will be in pixels. For example,100px
means thatWidth
is 100 pixels. Value range: [8, 4096]. Default value: 10%.
- image
Content string - The Base64 encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
- height string
- Watermark height. % and px formats are supported: If the string ends in %, the
Height
of the watermark will be the specified percentage of the video height; for example,10%
means thatHeight
is 10% of the video height; If the string ends in px, theHeight
of the watermark will be in px; for example,100px
means thatHeight
is 100 px. Valid values: 0 or [8,4096]. Default value: 0 px, which means thatHeight
will be proportionally scaled according to the aspect ratio of the original watermark image. - repeat
Type string - Repeat type of an animated watermark. Valid values: once: no longer appears after watermark playback ends. repeat_last_frame: stays on the last frame after watermark playback ends. repeat (default): repeats the playback until the video ends.
- transparency number
- Image watermark transparency: 0: completely opaque 100: completely transparent Default value: 0.
- width string
- Watermark width. % and px formats are supported: If the string ends in %, the
Width
of the watermark will be the specified percentage of the video width. For example,10%
means thatWidth
is 10% of the video width; If the string ends in px, theWidth
of the watermark will be in pixels. For example,100px
means thatWidth
is 100 pixels. Value range: [8, 4096]. Default value: 10%.
- image_
content str - The Base64 encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
- height str
- Watermark height. % and px formats are supported: If the string ends in %, the
Height
of the watermark will be the specified percentage of the video height; for example,10%
means thatHeight
is 10% of the video height; If the string ends in px, theHeight
of the watermark will be in px; for example,100px
means thatHeight
is 100 px. Valid values: 0 or [8,4096]. Default value: 0 px, which means thatHeight
will be proportionally scaled according to the aspect ratio of the original watermark image. - repeat_
type str - Repeat type of an animated watermark. Valid values: once: no longer appears after watermark playback ends. repeat_last_frame: stays on the last frame after watermark playback ends. repeat (default): repeats the playback until the video ends.
- transparency float
- Image watermark transparency: 0: completely opaque 100: completely transparent Default value: 0.
- width str
- Watermark width. % and px formats are supported: If the string ends in %, the
Width
of the watermark will be the specified percentage of the video width. For example,10%
means thatWidth
is 10% of the video width; If the string ends in px, theWidth
of the watermark will be in pixels. For example,100px
means thatWidth
is 100 pixels. Value range: [8, 4096]. Default value: 10%.
- image
Content String - The Base64 encoded string of a watermark image. Only JPEG, PNG, and GIF images are supported.
- height String
- Watermark height. % and px formats are supported: If the string ends in %, the
Height
of the watermark will be the specified percentage of the video height; for example,10%
means thatHeight
is 10% of the video height; If the string ends in px, theHeight
of the watermark will be in px; for example,100px
means thatHeight
is 100 px. Valid values: 0 or [8,4096]. Default value: 0 px, which means thatHeight
will be proportionally scaled according to the aspect ratio of the original watermark image. - repeat
Type String - Repeat type of an animated watermark. Valid values: once: no longer appears after watermark playback ends. repeat_last_frame: stays on the last frame after watermark playback ends. repeat (default): repeats the playback until the video ends.
- transparency Number
- Image watermark transparency: 0: completely opaque 100: completely transparent Default value: 0.
- width String
- Watermark width. % and px formats are supported: If the string ends in %, the
Width
of the watermark will be the specified percentage of the video width. For example,10%
means thatWidth
is 10% of the video width; If the string ends in px, theWidth
of the watermark will be in pixels. For example,100px
means thatWidth
is 100 pixels. Value range: [8, 4096]. Default value: 10%.
VodWatermarkTemplateSvgTemplate, VodWatermarkTemplateSvgTemplateArgs
- Height string
- Watermark height, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Height
of the watermark will be in px; for example,100px
means thatHeight
is 100 px; if0px
is entered andWidth
is not0px
, the watermark height will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark height will be the height of the source SVG image; If the string ends inW%
, theHeight
of the watermark will be the specified percentage of the video width; for example,10W%
means thatHeight
is 10% of the video width; If the string ends inH%
, theHeight
of the watermark will be the specified percentage of the video height; for example,10H%
means thatHeight
is 10% of the video height; If the string ends inS%
, theHeight
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatHeight
is 10% of the short side of the video; If the string ends inL%
, theHeight
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatHeight
is 10% of the long side of the video; If the string ends in %, the meaning is the same asH%
. Default value: 0 px. - Width string
- Watermark width, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Width
of the watermark will be in px; for example,100px
means thatWidth
is 100 px; if0px
is entered andHeight
is not0px
, the watermark width will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark width will be the width of the source SVG image; If the string ends inW%
, theWidth
of the watermark will be the specified percentage of the video width; for example,10W%
means thatWidth
is 10% of the video width; If the string ends inH%
, theWidth
of the watermark will be the specified percentage of the video height; for example,10H%
means thatWidth
is 10% of the video height; If the string ends inS%
, theWidth
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatWidth
is 10% of the short side of the video; If the string ends inL%
, theWidth
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatWidth
is 10% of the long side of the video; If the string ends in %, the meaning is the same asW%
. Default value: 10W%.
- Height string
- Watermark height, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Height
of the watermark will be in px; for example,100px
means thatHeight
is 100 px; if0px
is entered andWidth
is not0px
, the watermark height will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark height will be the height of the source SVG image; If the string ends inW%
, theHeight
of the watermark will be the specified percentage of the video width; for example,10W%
means thatHeight
is 10% of the video width; If the string ends inH%
, theHeight
of the watermark will be the specified percentage of the video height; for example,10H%
means thatHeight
is 10% of the video height; If the string ends inS%
, theHeight
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatHeight
is 10% of the short side of the video; If the string ends inL%
, theHeight
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatHeight
is 10% of the long side of the video; If the string ends in %, the meaning is the same asH%
. Default value: 0 px. - Width string
- Watermark width, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Width
of the watermark will be in px; for example,100px
means thatWidth
is 100 px; if0px
is entered andHeight
is not0px
, the watermark width will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark width will be the width of the source SVG image; If the string ends inW%
, theWidth
of the watermark will be the specified percentage of the video width; for example,10W%
means thatWidth
is 10% of the video width; If the string ends inH%
, theWidth
of the watermark will be the specified percentage of the video height; for example,10H%
means thatWidth
is 10% of the video height; If the string ends inS%
, theWidth
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatWidth
is 10% of the short side of the video; If the string ends inL%
, theWidth
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatWidth
is 10% of the long side of the video; If the string ends in %, the meaning is the same asW%
. Default value: 10W%.
- height String
- Watermark height, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Height
of the watermark will be in px; for example,100px
means thatHeight
is 100 px; if0px
is entered andWidth
is not0px
, the watermark height will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark height will be the height of the source SVG image; If the string ends inW%
, theHeight
of the watermark will be the specified percentage of the video width; for example,10W%
means thatHeight
is 10% of the video width; If the string ends inH%
, theHeight
of the watermark will be the specified percentage of the video height; for example,10H%
means thatHeight
is 10% of the video height; If the string ends inS%
, theHeight
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatHeight
is 10% of the short side of the video; If the string ends inL%
, theHeight
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatHeight
is 10% of the long side of the video; If the string ends in %, the meaning is the same asH%
. Default value: 0 px. - width String
- Watermark width, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Width
of the watermark will be in px; for example,100px
means thatWidth
is 100 px; if0px
is entered andHeight
is not0px
, the watermark width will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark width will be the width of the source SVG image; If the string ends inW%
, theWidth
of the watermark will be the specified percentage of the video width; for example,10W%
means thatWidth
is 10% of the video width; If the string ends inH%
, theWidth
of the watermark will be the specified percentage of the video height; for example,10H%
means thatWidth
is 10% of the video height; If the string ends inS%
, theWidth
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatWidth
is 10% of the short side of the video; If the string ends inL%
, theWidth
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatWidth
is 10% of the long side of the video; If the string ends in %, the meaning is the same asW%
. Default value: 10W%.
- height string
- Watermark height, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Height
of the watermark will be in px; for example,100px
means thatHeight
is 100 px; if0px
is entered andWidth
is not0px
, the watermark height will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark height will be the height of the source SVG image; If the string ends inW%
, theHeight
of the watermark will be the specified percentage of the video width; for example,10W%
means thatHeight
is 10% of the video width; If the string ends inH%
, theHeight
of the watermark will be the specified percentage of the video height; for example,10H%
means thatHeight
is 10% of the video height; If the string ends inS%
, theHeight
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatHeight
is 10% of the short side of the video; If the string ends inL%
, theHeight
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatHeight
is 10% of the long side of the video; If the string ends in %, the meaning is the same asH%
. Default value: 0 px. - width string
- Watermark width, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Width
of the watermark will be in px; for example,100px
means thatWidth
is 100 px; if0px
is entered andHeight
is not0px
, the watermark width will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark width will be the width of the source SVG image; If the string ends inW%
, theWidth
of the watermark will be the specified percentage of the video width; for example,10W%
means thatWidth
is 10% of the video width; If the string ends inH%
, theWidth
of the watermark will be the specified percentage of the video height; for example,10H%
means thatWidth
is 10% of the video height; If the string ends inS%
, theWidth
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatWidth
is 10% of the short side of the video; If the string ends inL%
, theWidth
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatWidth
is 10% of the long side of the video; If the string ends in %, the meaning is the same asW%
. Default value: 10W%.
- height str
- Watermark height, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Height
of the watermark will be in px; for example,100px
means thatHeight
is 100 px; if0px
is entered andWidth
is not0px
, the watermark height will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark height will be the height of the source SVG image; If the string ends inW%
, theHeight
of the watermark will be the specified percentage of the video width; for example,10W%
means thatHeight
is 10% of the video width; If the string ends inH%
, theHeight
of the watermark will be the specified percentage of the video height; for example,10H%
means thatHeight
is 10% of the video height; If the string ends inS%
, theHeight
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatHeight
is 10% of the short side of the video; If the string ends inL%
, theHeight
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatHeight
is 10% of the long side of the video; If the string ends in %, the meaning is the same asH%
. Default value: 0 px. - width str
- Watermark width, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Width
of the watermark will be in px; for example,100px
means thatWidth
is 100 px; if0px
is entered andHeight
is not0px
, the watermark width will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark width will be the width of the source SVG image; If the string ends inW%
, theWidth
of the watermark will be the specified percentage of the video width; for example,10W%
means thatWidth
is 10% of the video width; If the string ends inH%
, theWidth
of the watermark will be the specified percentage of the video height; for example,10H%
means thatWidth
is 10% of the video height; If the string ends inS%
, theWidth
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatWidth
is 10% of the short side of the video; If the string ends inL%
, theWidth
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatWidth
is 10% of the long side of the video; If the string ends in %, the meaning is the same asW%
. Default value: 10W%.
- height String
- Watermark height, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Height
of the watermark will be in px; for example,100px
means thatHeight
is 100 px; if0px
is entered andWidth
is not0px
, the watermark height will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark height will be the height of the source SVG image; If the string ends inW%
, theHeight
of the watermark will be the specified percentage of the video width; for example,10W%
means thatHeight
is 10% of the video width; If the string ends inH%
, theHeight
of the watermark will be the specified percentage of the video height; for example,10H%
means thatHeight
is 10% of the video height; If the string ends inS%
, theHeight
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatHeight
is 10% of the short side of the video; If the string ends inL%
, theHeight
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatHeight
is 10% of the long side of the video; If the string ends in %, the meaning is the same asH%
. Default value: 0 px. - width String
- Watermark width, which supports six formats of px, %, W%, H%, S%, and L%: If the string ends in px, the
Width
of the watermark will be in px; for example,100px
means thatWidth
is 100 px; if0px
is entered andHeight
is not0px
, the watermark width will be proportionally scaled based on the source SVG image; if0px
is entered for bothWidth
andHeight
, the watermark width will be the width of the source SVG image; If the string ends inW%
, theWidth
of the watermark will be the specified percentage of the video width; for example,10W%
means thatWidth
is 10% of the video width; If the string ends inH%
, theWidth
of the watermark will be the specified percentage of the video height; for example,10H%
means thatWidth
is 10% of the video height; If the string ends inS%
, theWidth
of the watermark will be the specified percentage of the short side of the video; for example,10S%
means thatWidth
is 10% of the short side of the video; If the string ends inL%
, theWidth
of the watermark will be the specified percentage of the long side of the video; for example,10L%
means thatWidth
is 10% of the long side of the video; If the string ends in %, the meaning is the same asW%
. Default value: 10W%.
VodWatermarkTemplateTextTemplate, VodWatermarkTemplateTextTemplateArgs
- Font
Alpha double - Text transparency. Value range: (0, 1] 0: completely transparent 1: completely opaque Default value: 1.
- Font
Color string - Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
- Font
Size string - Font size in Npx format where N is a numeric value.
- Font
Type string - Font type. Currently, two types are supported: simkai.ttf: both Chinese and English are supported; arial.ttf: only English is supported.
- Font
Alpha float64 - Text transparency. Value range: (0, 1] 0: completely transparent 1: completely opaque Default value: 1.
- Font
Color string - Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
- Font
Size string - Font size in Npx format where N is a numeric value.
- Font
Type string - Font type. Currently, two types are supported: simkai.ttf: both Chinese and English are supported; arial.ttf: only English is supported.
- font
Alpha Double - Text transparency. Value range: (0, 1] 0: completely transparent 1: completely opaque Default value: 1.
- font
Color String - Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
- font
Size String - Font size in Npx format where N is a numeric value.
- font
Type String - Font type. Currently, two types are supported: simkai.ttf: both Chinese and English are supported; arial.ttf: only English is supported.
- font
Alpha number - Text transparency. Value range: (0, 1] 0: completely transparent 1: completely opaque Default value: 1.
- font
Color string - Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
- font
Size string - Font size in Npx format where N is a numeric value.
- font
Type string - Font type. Currently, two types are supported: simkai.ttf: both Chinese and English are supported; arial.ttf: only English is supported.
- font_
alpha float - Text transparency. Value range: (0, 1] 0: completely transparent 1: completely opaque Default value: 1.
- font_
color str - Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
- font_
size str - Font size in Npx format where N is a numeric value.
- font_
type str - Font type. Currently, two types are supported: simkai.ttf: both Chinese and English are supported; arial.ttf: only English is supported.
- font
Alpha Number - Text transparency. Value range: (0, 1] 0: completely transparent 1: completely opaque Default value: 1.
- font
Color String - Font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
- font
Size String - Font size in Npx format where N is a numeric value.
- font
Type String - Font type. Currently, two types are supported: simkai.ttf: both Chinese and English are supported; arial.ttf: only English is supported.
Import
vod watermark template can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vodWatermarkTemplate:VodWatermarkTemplate watermark_template $subAppId#$templateId
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.