StreamArgs

data class StreamArgs(val accountId: Output<String>? = null, val allowedOrigins: Output<List<String>>? = null, val creator: Output<String>? = null, val identifier: Output<String>? = null, val maxDurationSeconds: Output<Int>? = null, val meta: Output<String>? = null, val requireSignedUrls: Output<Boolean>? = null, val scheduledDeletion: Output<String>? = null, val thumbnailTimestampPct: Output<Double>? = null, val uploadExpiry: Output<String>? = null) : ConvertibleToJava<StreamArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleStream = new cloudflare.Stream("example_stream", {accountId: "023e105f4ecef8ad9ca31a8372d0c353"});
import pulumi
import pulumi_cloudflare as cloudflare
example_stream = cloudflare.Stream("example_stream", account_id="023e105f4ecef8ad9ca31a8372d0c353")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleStream = new Cloudflare.Stream("example_stream", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
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.NewStream(ctx, "example_stream", &cloudflare.StreamArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
})
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.Stream;
import com.pulumi.cloudflare.StreamArgs;
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 exampleStream = new Stream("exampleStream", StreamArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
resources:
exampleStream:
type: cloudflare:Stream
name: example_stream
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, allowedOrigins: Output<List<String>>? = null, creator: Output<String>? = null, identifier: Output<String>? = null, maxDurationSeconds: Output<Int>? = null, meta: Output<String>? = null, requireSignedUrls: Output<Boolean>? = null, scheduledDeletion: Output<String>? = null, thumbnailTimestampPct: Output<Double>? = null, uploadExpiry: Output<String>? = null)

Properties

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

The account identifier tag.

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

Lists the origins allowed to display the video. Enter allowed origin domains in an array and use * for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.

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

A user-defined identifier for the media creator.

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

A Cloudflare-generated unique identifier for a media item.

Link copied to clipboard
val maxDurationSeconds: Output<Int>? = null

The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of -1 means the value is unknown.

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

A user modifiable key-value store used to reference other systems of record for managing videos.

Link copied to clipboard
val requireSignedUrls: Output<Boolean>? = null

Indicates whether the video can be a accessed using the UID. When set to true, a signed token must be generated with a signing key to view the video.

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

Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a null value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.

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

The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.

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

The date and time when the video upload URL is no longer valid for direct user uploads.

Functions

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