CasterArgs

data class CasterArgs(val autoSwitchUrgentConfig: Output<String>? = null, val autoSwitchUrgentOn: Output<Boolean>? = null, val callbackUrl: Output<String>? = null, val casterName: Output<String>? = null, val delay: Output<Double>? = null, val domainName: Output<String>? = null, val normType: Output<Int>? = null, val paymentType: Output<String>? = null, val programEffect: Output<Int>? = null, val programName: Output<String>? = null, val recordConfig: Output<String>? = null, val resourceGroupId: Output<String>? = null, val resourceType: Output<String>? = null, val sideOutputUrl: Output<String>? = null, val sideOutputUrlList: Output<String>? = null, val syncGroupsConfig: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val transcodeConfig: Output<String>? = null, val urgentImageId: Output<String>? = null, val urgentImageUrl: Output<String>? = null, val urgentLiveStreamUrl: Output<String>? = null, val urgentMaterialId: Output<String>? = null) : ConvertibleToJava<CasterArgs>

Provides a Live Caster resource. Relying on Alibaba Cloud's powerful technologies such as live video broadcasting, media processing, and video AI, cloud guide integrates capabilities such as graphic packaging, real-time keying, multi-language translation, and multi-channel mixed streaming to innovate traditional guide services in the cloud. Provide easy-to-use cloud-based guide services for event performances, news reports, live events, off-site broadcasts and other scenes, without hardware, reduce user guide costs, and create a better live broadcast experience. For information about Live Caster and how to use it, see What is Caster.

NOTE: Available since v1.238.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.live.Caster("default", {
casterName: name,
paymentType: "PayAsYouGo",
normType: 1,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.live.Caster("default",
caster_name=name,
payment_type="PayAsYouGo",
norm_type=1)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Live.Caster("default", new()
{
CasterName = name,
PaymentType = "PayAsYouGo",
NormType = 1,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/live"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := live.NewCaster(ctx, "default", &live.CasterArgs{
CasterName: pulumi.String(name),
PaymentType: pulumi.String("PayAsYouGo"),
NormType: pulumi.Int(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.alicloud.live.Caster;
import com.pulumi.alicloud.live.CasterArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new Caster("default", CasterArgs.builder()
.casterName(name)
.paymentType("PayAsYouGo")
.normType(1)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:live:Caster
properties:
casterName: ${name}
paymentType: PayAsYouGo
normType: '1'

Import

Live Caster can be imported using the id, e.g.

$ pulumi import alicloud:live/caster:Caster example <id>

Constructors

Link copied to clipboard
constructor(autoSwitchUrgentConfig: Output<String>? = null, autoSwitchUrgentOn: Output<Boolean>? = null, callbackUrl: Output<String>? = null, casterName: Output<String>? = null, delay: Output<Double>? = null, domainName: Output<String>? = null, normType: Output<Int>? = null, paymentType: Output<String>? = null, programEffect: Output<Int>? = null, programName: Output<String>? = null, recordConfig: Output<String>? = null, resourceGroupId: Output<String>? = null, resourceType: Output<String>? = null, sideOutputUrl: Output<String>? = null, sideOutputUrlList: Output<String>? = null, syncGroupsConfig: Output<String>? = null, tags: Output<Map<String, String>>? = null, transcodeConfig: Output<String>? = null, urgentImageId: Output<String>? = null, urgentImageUrl: Output<String>? = null, urgentLiveStreamUrl: Output<String>? = null, urgentMaterialId: Output<String>? = null)

Properties

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

Automatic standby broadcast configuration. eofThres: indicates that the broadcast is automatically cut and prepared after the flow interruption time, in seconds.

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

Turn on the cut-off automatic switch for broadcast preparation. true: open. false: closed.

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

The callback address of the user. To receive Callback Notifications, enter an available address and accept the HTTP protocol. If this parameter is set to null, the callback notification from the director Station is canceled by default.

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

Guide station name.

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

Delayed playback. Time unit: seconds.

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

Master play domain name.

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

Guide station specification type. Value:

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

The paymen type of the resource

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

Carousel effective flag. 0: Not in effect. 1: Entry into force.

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

The carousel station name, which can be configured when using the carousel function.

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

Record configuration information. The format is JSON. The configuration element information is as follows:

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

Resource Group id

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

resource type

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

The user-defined stream ingest address corresponding to the bypass output address of the guide station. If this parameter is left blank, the streaming address corresponding to the output address automatically generated by Alibaba Cloud is used by default.

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

The list of multiple forwarding stream addresses, which can be the CDN forwarding stream addresses of Alibaba Cloud or a third-party vendor. A guide can add up to 20 RTMP forwarding addresses.

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

Multi-View synchronization configuration to synchronize multiple video sources. Multi-View synchronization is divided into two modes:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tag of the resource

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

Transcoding configuration. JSON format string, Please capitalize the first letter of the internal field of the structure, hump format input. If this parameter is set to null, the transcoding configuration is cleared by default. If the transcoding template is null, an error is reported when the director starts.

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

The ID of the picture material of the media library.

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

Prepare the URL of the picture material.

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

The prepared live stream URL.

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

Prepared video, media library material ID. If this parameter is set to null, the standby configuration is cleared by default.

Functions

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