Caster

class Caster : KotlinCustomResource

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>

Properties

Link copied to clipboard

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

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

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

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>?

Guide station name.

Link copied to clipboard
val createTime: Output<String>

Creation time.

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

Delayed playback. Time unit: seconds.

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

Master play domain name.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val normType: Output<Int>

Guide station specification type. Value:

Link copied to clipboard
val paymentType: Output<String>

The paymen type of the resource

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

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val recordConfig: Output<String>?

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

Link copied to clipboard
val resourceGroupId: Output<String>

Resource Group id

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

resource type

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

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

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>?

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>>?

The tag of the resource

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

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>?

The ID of the picture material of the media library.

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

Prepare the URL of the picture material.

Link copied to clipboard

The prepared live stream URL.

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

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

Link copied to clipboard
val urn: Output<String>