StreamWatermark

class StreamWatermark : KotlinCustomResource

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

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier tag.

Link copied to clipboard
val created: Output<String>

The date and a time a watermark profile was created.

Link copied to clipboard
val downloadedFrom: Output<String>

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

Link copied to clipboard
val file: Output<String>

The image file to upload.

Link copied to clipboard
val height: Output<Int>

The height of the image in pixels.

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

The unique identifier for a watermark profile.

Link copied to clipboard
val name: Output<String>

A short description of the watermark profile.

Link copied to clipboard
val opacity: Output<Double>

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>

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>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scale: Output<Double>

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.

Link copied to clipboard
val size: Output<Double>

The size of the image in bytes.

Link copied to clipboard
val uid: Output<String>

The unique identifier for a watermark profile.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val width: Output<Int>

The width of the image in pixels.