StreamWatermarkArgs

data class StreamWatermarkArgs(val accountId: Output<String>? = null, val file: Output<String>? = null, val identifier: Output<String>? = null, val name: Output<String>? = null, val opacity: Output<Double>? = null, val padding: Output<Double>? = null, val position: Output<String>? = null, val scale: Output<Double>? = null) : ConvertibleToJava<StreamWatermarkArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleStreamWatermark = new cloudflare.StreamWatermark("example_stream_watermark", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
file: "@/Users/rchen/Downloads/watermark.png",
name: "Marketing Videos",
opacity: 0.75,
padding: 0.1,
position: "center",
scale: 0.1,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_stream_watermark = cloudflare.StreamWatermark("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)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleStreamWatermark = new Cloudflare.StreamWatermark("example_stream_watermark", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
File = "@/Users/rchen/Downloads/watermark.png",
Name = "Marketing Videos",
Opacity = 0.75,
Padding = 0.1,
Position = "center",
Scale = 0.1,
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewStreamWatermark(ctx, "example_stream_watermark", &cloudflare.StreamWatermarkArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
File: pulumi.String("@/Users/rchen/Downloads/watermark.png"),
Name: pulumi.String("Marketing Videos"),
Opacity: pulumi.Float64(0.75),
Padding: pulumi.Float64(0.1),
Position: pulumi.String("center"),
Scale: pulumi.Float64(0.1),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.StreamWatermark;
import com.pulumi.cloudflare.StreamWatermarkArgs;
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 exampleStreamWatermark = new StreamWatermark("exampleStreamWatermark", StreamWatermarkArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.file("@/Users/rchen/Downloads/watermark.png")
.name("Marketing Videos")
.opacity(0.75)
.padding(0.1)
.position("center")
.scale(0.1)
.build());
}
}
resources:
exampleStreamWatermark:
type: cloudflare:StreamWatermark
name: example_stream_watermark
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
file: '@/Users/rchen/Downloads/watermark.png'
name: Marketing Videos
opacity: 0.75
padding: 0.1
position: center
scale: 0.1

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, file: Output<String>? = null, identifier: Output<String>? = null, name: Output<String>? = null, opacity: Output<Double>? = null, padding: Output<Double>? = null, position: Output<String>? = null, scale: Output<Double>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier tag.

Link copied to clipboard
val file: Output<String>? = null

The image file to upload.

Link copied to clipboard
val identifier: Output<String>? = null

The unique identifier for a watermark profile.

Link copied to clipboard
val name: Output<String>? = null

A short description of the watermark profile.

Link copied to clipboard
val opacity: Output<Double>? = null

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.

Link copied to clipboard
val padding: Output<Double>? = null

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.

Link copied to clipboard
val position: Output<String>? = null

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

Link copied to clipboard
val scale: Output<Double>? = null

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.0fills the entire video.

Functions

Link copied to clipboard
open override fun toJava(): StreamWatermarkArgs