@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
243 lines (242 loc) • 9.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
/**
* Manages a VOD transcoding template group resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = new huaweicloud.Vod.TranscodingTemplateGroup("test", {
* audioCodec: "AAC",
* description: "test group",
* hlsSegmentDuration: 5,
* lowBitrateHd: false,
* qualityInfos: [{
* audio: {
* bitrate: 0,
* channels: 2,
* sampleRate: 1,
* },
* outputFormat: "HLS",
* video: {
* bitrate: 1000,
* frameRate: 1,
* height: 720,
* quality: "HD",
* width: 1280,
* },
* }],
* videoCodec: "H264",
* });
* ```
*
* ## Import
*
* VOD transcoding template groups can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Vod/transcodingTemplateGroup:TranscodingTemplateGroup test 589e49809bb84447a759f6fa9aa19949
* ```
*/
export declare class TranscodingTemplateGroup extends pulumi.CustomResource {
/**
* Get an existing TranscodingTemplateGroup 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?: TranscodingTemplateGroupState, opts?: pulumi.CustomResourceOptions): TranscodingTemplateGroup;
/**
* Returns true if the given object is an instance of TranscodingTemplateGroup. 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 TranscodingTemplateGroup;
/**
* Specifies the audio codec. The value can be: **AAC** and **HEAAC1**.
* Defaults to: **AAC**.
*/
readonly audioCodec: pulumi.Output<string>;
/**
* Specifies whether to automatically encrypt. Before enabling, you need to configure
* the HLS encryption key URL. When `autoEncrypt` is **true**, the `outputFormat` must be **HLS**.
* Defaults to: **false**.
*/
readonly autoEncrypt: pulumi.Output<boolean | undefined>;
/**
* Specifies the description of the template group.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Specifies the HLS segment duration. The value can be: `2`, `3`, `5`
* and `10`. Defaults to: `5`. This parameter is used only when `outputFormat` is set to **HLS** or **DASH_HLS**.
*/
readonly hlsSegmentDuration: pulumi.Output<number>;
/**
* Specifies whether to use this group as default group. Defaults to: **false**.
*/
readonly isDefault: pulumi.Output<boolean | undefined>;
/**
* Specifies whether to enable low bitrate HD. Defaults to: **false**.
*/
readonly lowBitrateHd: pulumi.Output<boolean | undefined>;
/**
* Specifies the name of the template group. The value can be a string of `1` to `128`
* characters that can consist of letters, digits and underscores (_).
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the quality info list of the template group.
* The object structure is documented below.
*/
readonly qualityInfos: pulumi.Output<outputs.Vod.TranscodingTemplateGroupQualityInfo[]>;
/**
* Specifies the region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Indicates the type of the template group.
*/
readonly type: pulumi.Output<string>;
/**
* Specifies the video codec. The value can be: **H264** and **H265**.
* Defaults to: **H264**.
*/
readonly videoCodec: pulumi.Output<string>;
/**
* Specifies the list of the watermark template IDs.
*/
readonly watermarkTemplateIds: pulumi.Output<string[] | undefined>;
/**
* Create a TranscodingTemplateGroup 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: TranscodingTemplateGroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TranscodingTemplateGroup resources.
*/
export interface TranscodingTemplateGroupState {
/**
* Specifies the audio codec. The value can be: **AAC** and **HEAAC1**.
* Defaults to: **AAC**.
*/
audioCodec?: pulumi.Input<string>;
/**
* Specifies whether to automatically encrypt. Before enabling, you need to configure
* the HLS encryption key URL. When `autoEncrypt` is **true**, the `outputFormat` must be **HLS**.
* Defaults to: **false**.
*/
autoEncrypt?: pulumi.Input<boolean>;
/**
* Specifies the description of the template group.
*/
description?: pulumi.Input<string>;
/**
* Specifies the HLS segment duration. The value can be: `2`, `3`, `5`
* and `10`. Defaults to: `5`. This parameter is used only when `outputFormat` is set to **HLS** or **DASH_HLS**.
*/
hlsSegmentDuration?: pulumi.Input<number>;
/**
* Specifies whether to use this group as default group. Defaults to: **false**.
*/
isDefault?: pulumi.Input<boolean>;
/**
* Specifies whether to enable low bitrate HD. Defaults to: **false**.
*/
lowBitrateHd?: pulumi.Input<boolean>;
/**
* Specifies the name of the template group. The value can be a string of `1` to `128`
* characters that can consist of letters, digits and underscores (_).
*/
name?: pulumi.Input<string>;
/**
* Specifies the quality info list of the template group.
* The object structure is documented below.
*/
qualityInfos?: pulumi.Input<pulumi.Input<inputs.Vod.TranscodingTemplateGroupQualityInfo>[]>;
/**
* Specifies the region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
/**
* Indicates the type of the template group.
*/
type?: pulumi.Input<string>;
/**
* Specifies the video codec. The value can be: **H264** and **H265**.
* Defaults to: **H264**.
*/
videoCodec?: pulumi.Input<string>;
/**
* Specifies the list of the watermark template IDs.
*/
watermarkTemplateIds?: pulumi.Input<pulumi.Input<string>[]>;
}
/**
* The set of arguments for constructing a TranscodingTemplateGroup resource.
*/
export interface TranscodingTemplateGroupArgs {
/**
* Specifies the audio codec. The value can be: **AAC** and **HEAAC1**.
* Defaults to: **AAC**.
*/
audioCodec?: pulumi.Input<string>;
/**
* Specifies whether to automatically encrypt. Before enabling, you need to configure
* the HLS encryption key URL. When `autoEncrypt` is **true**, the `outputFormat` must be **HLS**.
* Defaults to: **false**.
*/
autoEncrypt?: pulumi.Input<boolean>;
/**
* Specifies the description of the template group.
*/
description?: pulumi.Input<string>;
/**
* Specifies the HLS segment duration. The value can be: `2`, `3`, `5`
* and `10`. Defaults to: `5`. This parameter is used only when `outputFormat` is set to **HLS** or **DASH_HLS**.
*/
hlsSegmentDuration?: pulumi.Input<number>;
/**
* Specifies whether to use this group as default group. Defaults to: **false**.
*/
isDefault?: pulumi.Input<boolean>;
/**
* Specifies whether to enable low bitrate HD. Defaults to: **false**.
*/
lowBitrateHd?: pulumi.Input<boolean>;
/**
* Specifies the name of the template group. The value can be a string of `1` to `128`
* characters that can consist of letters, digits and underscores (_).
*/
name?: pulumi.Input<string>;
/**
* Specifies the quality info list of the template group.
* The object structure is documented below.
*/
qualityInfos: pulumi.Input<pulumi.Input<inputs.Vod.TranscodingTemplateGroupQualityInfo>[]>;
/**
* Specifies the region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the video codec. The value can be: **H264** and **H265**.
* Defaults to: **H264**.
*/
videoCodec?: pulumi.Input<string>;
/**
* Specifies the list of the watermark template IDs.
*/
watermarkTemplateIds?: pulumi.Input<pulumi.Input<string>[]>;
}