Skip to content
Start here

Watermarks

resource cloudflare_stream_watermark

required Expand Collapse
account_id: String

The account identifier tag.

file: String

The image file to upload.

optional Expand Collapse
identifier?: String

The unique identifier for a watermark profile.

name?: String

A short description of the watermark profile.

opacity?: Float64

The translucency of the image. A value of 0.0 makes the image completely transparent, and 1.0 makes the image completely opaque. Note that if the image is already semi-transparent, setting this to 1.0 will not make the image completely opaque.

padding?: Float64

The whitespace between the adjacent edges (determined by position) of the video and the image. 0.0 indicates no padding, and 1.0 indicates a fully padded video width or length, as determined by the algorithm.

position?: String

The location of the image. Valid positions are: upperRight, upperLeft, lowerLeft, lowerRight, and center. Note that center ignores the padding parameter.

scale?: Float64

The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. 0.0 indicates no scaling (use the size of the image as-is), and 1.0 fills the entire video.

computed Expand Collapse
created: Time

The date and a time a watermark profile was created.

downloaded_from: String

The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null.

height: Int64

The height of the image in pixels.

size: Float64

The size of the image in bytes.

uid: String

The unique identifier for a watermark profile.

width: Int64

The width of the image in pixels.

cloudflare_stream_watermark

resource "cloudflare_stream_watermark" "example_stream_watermark" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  file = "@/Users/rchen/Downloads/watermark.png"
  name = "Marketing Videos"
  opacity = 0.75
  padding = 0.1
  position = "center"
  scale = 0.1
}

data cloudflare_stream_watermark

required Expand Collapse
account_id: String

The account identifier tag.

identifier: String

The unique identifier for a watermark profile.

computed Expand Collapse
created: Time

The date and a time a watermark profile was created.

downloaded_from: String

The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null.

height: Int64

The height of the image in pixels.

name: String

A short description of the watermark profile.

opacity: Float64

The translucency of the image. A value of 0.0 makes the image completely transparent, and 1.0 makes the image completely opaque. Note that if the image is already semi-transparent, setting this to 1.0 will not make the image completely opaque.

padding: Float64

The whitespace between the adjacent edges (determined by position) of the video and the image. 0.0 indicates no padding, and 1.0 indicates a fully padded video width or length, as determined by the algorithm.

position: String

The location of the image. Valid positions are: upperRight, upperLeft, lowerLeft, lowerRight, and center. Note that center ignores the padding parameter.

scale: Float64

The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. 0.0 indicates no scaling (use the size of the image as-is), and 1.0 fills the entire video.

size: Float64

The size of the image in bytes.

uid: String

The unique identifier for a watermark profile.

width: Int64

The width of the image in pixels.

cloudflare_stream_watermark

data "cloudflare_stream_watermark" "example_stream_watermark" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  identifier = "ea95132c15732412d22c1476fa83f27a"
}

data cloudflare_stream_watermarks

required Expand Collapse
account_id: String

The account identifier tag.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

created: Time

The date and a time a watermark profile was created.

downloaded_from: String

The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null.

height: Int64

The height of the image in pixels.

name: String

A short description of the watermark profile.

opacity: Float64

The translucency of the image. A value of 0.0 makes the image completely transparent, and 1.0 makes the image completely opaque. Note that if the image is already semi-transparent, setting this to 1.0 will not make the image completely opaque.

padding: Float64

The whitespace between the adjacent edges (determined by position) of the video and the image. 0.0 indicates no padding, and 1.0 indicates a fully padded video width or length, as determined by the algorithm.

position: String

The location of the image. Valid positions are: upperRight, upperLeft, lowerLeft, lowerRight, and center. Note that center ignores the padding parameter.

scale: Float64

The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. 0.0 indicates no scaling (use the size of the image as-is), and 1.0 fills the entire video.

size: Float64

The size of the image in bytes.

uid: String

The unique identifier for a watermark profile.

width: Int64

The width of the image in pixels.

cloudflare_stream_watermarks

data "cloudflare_stream_watermarks" "example_stream_watermarks" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}