UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

213 lines (212 loc) 7.63 kB
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; /** * Manages an MPC transcoding template resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = new huaweicloud.Mpc.TranscodingTemplate("test", { * audio: { * bitrate: 0, * channels: 2, * codec: 2, * outputPolicy: "transcode", * sampleRate: 1, * }, * dashSegmentDuration: 5, * hlsSegmentDuration: 5, * lowBitrateHd: true, * outputFormat: 1, * video: { * bitrate: 0, * blackBarRemoval: 0, * codec: 2, * fps: 0, * height: 0, * level: 15, * maxConsecutiveBframes: 7, * maxIframesInterval: 5, * outputPolicy: "transcode", * profile: 4, * quality: 1, * width: 0, * }, * }); * ``` * * ## Import * * MPC transcoding templates can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Mpc/transcodingTemplate:TranscodingTemplate test 542899 * ``` */ export declare class TranscodingTemplate extends pulumi.CustomResource { /** * Get an existing TranscodingTemplate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TranscodingTemplateState, opts?: pulumi.CustomResourceOptions): TranscodingTemplate; /** * Returns true if the given object is an instance of TranscodingTemplate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TranscodingTemplate; /** * Specifies the audio parameters. The object structure is documented below. */ readonly audio: pulumi.Output<outputs.Mpc.TranscodingTemplateAudio | undefined>; /** * Specifies the dash segment duration, in second. * The valid value is range from `2` to `10`, and it is used only when `outputFormat` is set to `1` or `3`. * The default value is `5`. */ readonly dashSegmentDuration: pulumi.Output<number | undefined>; /** * Specifies the HLS segment duration, in second. * The valid value is range from `2` to `10`, and it is used only when `outputFormat` is set to `1` or `3`. * The default value is `5`. */ readonly hlsSegmentDuration: pulumi.Output<number | undefined>; /** * Specifies Whether to enable low bitrate HD. The default value is false. */ readonly lowBitrateHd: pulumi.Output<boolean | undefined>; /** * Specifies the name of a transcoding template. */ readonly name: pulumi.Output<string>; /** * Specifies the packaging type. Possible values are: * + **1**: HLS * + **2**: DASH * + **3**: HLS+DASH * + **4**: MP4 * + **5**: MP3 * + **6**: ADTS */ readonly outputFormat: pulumi.Output<number>; /** * The region in which to create the transcoding template resource. If omitted, * the provider-level region will be used. Changing this creates a new resource. */ readonly region: pulumi.Output<string>; /** * Specifies the video parameters. The object structure is documented below. */ readonly video: pulumi.Output<outputs.Mpc.TranscodingTemplateVideo | undefined>; /** * Create a TranscodingTemplate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TranscodingTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TranscodingTemplate resources. */ export interface TranscodingTemplateState { /** * Specifies the audio parameters. The object structure is documented below. */ audio?: pulumi.Input<inputs.Mpc.TranscodingTemplateAudio>; /** * Specifies the dash segment duration, in second. * The valid value is range from `2` to `10`, and it is used only when `outputFormat` is set to `1` or `3`. * The default value is `5`. */ dashSegmentDuration?: pulumi.Input<number>; /** * Specifies the HLS segment duration, in second. * The valid value is range from `2` to `10`, and it is used only when `outputFormat` is set to `1` or `3`. * The default value is `5`. */ hlsSegmentDuration?: pulumi.Input<number>; /** * Specifies Whether to enable low bitrate HD. The default value is false. */ lowBitrateHd?: pulumi.Input<boolean>; /** * Specifies the name of a transcoding template. */ name?: pulumi.Input<string>; /** * Specifies the packaging type. Possible values are: * + **1**: HLS * + **2**: DASH * + **3**: HLS+DASH * + **4**: MP4 * + **5**: MP3 * + **6**: ADTS */ outputFormat?: pulumi.Input<number>; /** * The region in which to create the transcoding template resource. If omitted, * the provider-level region will be used. Changing this creates a new resource. */ region?: pulumi.Input<string>; /** * Specifies the video parameters. The object structure is documented below. */ video?: pulumi.Input<inputs.Mpc.TranscodingTemplateVideo>; } /** * The set of arguments for constructing a TranscodingTemplate resource. */ export interface TranscodingTemplateArgs { /** * Specifies the audio parameters. The object structure is documented below. */ audio?: pulumi.Input<inputs.Mpc.TranscodingTemplateAudio>; /** * Specifies the dash segment duration, in second. * The valid value is range from `2` to `10`, and it is used only when `outputFormat` is set to `1` or `3`. * The default value is `5`. */ dashSegmentDuration?: pulumi.Input<number>; /** * Specifies the HLS segment duration, in second. * The valid value is range from `2` to `10`, and it is used only when `outputFormat` is set to `1` or `3`. * The default value is `5`. */ hlsSegmentDuration?: pulumi.Input<number>; /** * Specifies Whether to enable low bitrate HD. The default value is false. */ lowBitrateHd?: pulumi.Input<boolean>; /** * Specifies the name of a transcoding template. */ name?: pulumi.Input<string>; /** * Specifies the packaging type. Possible values are: * + **1**: HLS * + **2**: DASH * + **3**: HLS+DASH * + **4**: MP4 * + **5**: MP3 * + **6**: ADTS */ outputFormat: pulumi.Input<number>; /** * The region in which to create the transcoding template resource. If omitted, * the provider-level region will be used. Changing this creates a new resource. */ region?: pulumi.Input<string>; /** * Specifies the video parameters. The object structure is documented below. */ video?: pulumi.Input<inputs.Mpc.TranscodingTemplateVideo>; }