mpc

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type TranscodingTemplate

type TranscodingTemplate struct {
	pulumi.CustomResourceState

	// Specifies the audio parameters. The object structure is documented below.
	Audio TranscodingTemplateAudioPtrOutput `pulumi:"audio"`
	// Specifies the dash segment duration. This parameter is used only when `outputFormat`
	// is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	DashSegmentDuration pulumi.IntPtrOutput `pulumi:"dashSegmentDuration"`
	// Specifies the HLS segment duration. This parameter is used only
	// when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	HlsSegmentDuration pulumi.IntPtrOutput `pulumi:"hlsSegmentDuration"`
	// Specifies Whether to enable low bitrate HD. The default value is false.
	LowBitrateHd pulumi.BoolPtrOutput `pulumi:"lowBitrateHd"`
	// Specifies the name of a transcoding template.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the packaging type. Possible values are:
	// + **1**: HLS
	// + **2**: DASH
	// + **3**: HLS+DASH
	// + **4**: MP4
	// + **5**: MP3
	// + **6**: ADTS
	OutputFormat pulumi.IntOutput `pulumi:"outputFormat"`
	// 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.StringOutput `pulumi:"region"`
	// Specifies the video parameters. The object structure is documented below.
	Video TranscodingTemplateVideoPtrOutput `pulumi:"video"`
}

Manages an MPC transcoding template resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Mpc"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Mpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mpc.NewTranscodingTemplate(ctx, "test", &Mpc.TranscodingTemplateArgs{
			Audio: &mpc.TranscodingTemplateAudioArgs{
				Bitrate:      pulumi.Int(0),
				Channels:     pulumi.Int(2),
				Codec:        pulumi.Int(2),
				OutputPolicy: pulumi.String("transcode"),
				SampleRate:   pulumi.Int(1),
			},
			DashSegmentDuration: pulumi.Int(5),
			HlsSegmentDuration:  pulumi.Int(5),
			LowBitrateHd:        pulumi.Bool(true),
			OutputFormat:        pulumi.Int(1),
			Video: &mpc.TranscodingTemplateVideoArgs{
				Bitrate:               pulumi.Int(0),
				BlackBarRemoval:       pulumi.Int(0),
				Codec:                 pulumi.Int(2),
				Fps:                   pulumi.Int(0),
				Height:                pulumi.Int(0),
				Level:                 pulumi.Int(15),
				MaxConsecutiveBframes: pulumi.Int(7),
				MaxIframesInterval:    pulumi.Int(5),
				OutputPolicy:          pulumi.String("transcode"),
				Profile:               pulumi.Int(4),
				Quality:               pulumi.Int(1),
				Width:                 pulumi.Int(0),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

MPC transcoding templates can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Mpc/transcodingTemplate:TranscodingTemplate test 542899

```

func GetTranscodingTemplate

func GetTranscodingTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TranscodingTemplateState, opts ...pulumi.ResourceOption) (*TranscodingTemplate, error)

GetTranscodingTemplate gets an existing TranscodingTemplate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTranscodingTemplate

func NewTranscodingTemplate(ctx *pulumi.Context,
	name string, args *TranscodingTemplateArgs, opts ...pulumi.ResourceOption) (*TranscodingTemplate, error)

NewTranscodingTemplate registers a new resource with the given unique name, arguments, and options.

func (*TranscodingTemplate) ElementType

func (*TranscodingTemplate) ElementType() reflect.Type

func (*TranscodingTemplate) ToTranscodingTemplateOutput

func (i *TranscodingTemplate) ToTranscodingTemplateOutput() TranscodingTemplateOutput

func (*TranscodingTemplate) ToTranscodingTemplateOutputWithContext

func (i *TranscodingTemplate) ToTranscodingTemplateOutputWithContext(ctx context.Context) TranscodingTemplateOutput

type TranscodingTemplateArgs

type TranscodingTemplateArgs struct {
	// Specifies the audio parameters. The object structure is documented below.
	Audio TranscodingTemplateAudioPtrInput
	// Specifies the dash segment duration. This parameter is used only when `outputFormat`
	// is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	DashSegmentDuration pulumi.IntPtrInput
	// Specifies the HLS segment duration. This parameter is used only
	// when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	HlsSegmentDuration pulumi.IntPtrInput
	// Specifies Whether to enable low bitrate HD. The default value is false.
	LowBitrateHd pulumi.BoolPtrInput
	// Specifies the name of a transcoding template.
	Name pulumi.StringPtrInput
	// Specifies the packaging type. Possible values are:
	// + **1**: HLS
	// + **2**: DASH
	// + **3**: HLS+DASH
	// + **4**: MP4
	// + **5**: MP3
	// + **6**: ADTS
	OutputFormat pulumi.IntInput
	// 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.StringPtrInput
	// Specifies the video parameters. The object structure is documented below.
	Video TranscodingTemplateVideoPtrInput
}

The set of arguments for constructing a TranscodingTemplate resource.

func (TranscodingTemplateArgs) ElementType

func (TranscodingTemplateArgs) ElementType() reflect.Type

type TranscodingTemplateArray

type TranscodingTemplateArray []TranscodingTemplateInput

func (TranscodingTemplateArray) ElementType

func (TranscodingTemplateArray) ElementType() reflect.Type

func (TranscodingTemplateArray) ToTranscodingTemplateArrayOutput

func (i TranscodingTemplateArray) ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput

func (TranscodingTemplateArray) ToTranscodingTemplateArrayOutputWithContext

func (i TranscodingTemplateArray) ToTranscodingTemplateArrayOutputWithContext(ctx context.Context) TranscodingTemplateArrayOutput

type TranscodingTemplateArrayInput

type TranscodingTemplateArrayInput interface {
	pulumi.Input

	ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput
	ToTranscodingTemplateArrayOutputWithContext(context.Context) TranscodingTemplateArrayOutput
}

TranscodingTemplateArrayInput is an input type that accepts TranscodingTemplateArray and TranscodingTemplateArrayOutput values. You can construct a concrete instance of `TranscodingTemplateArrayInput` via:

TranscodingTemplateArray{ TranscodingTemplateArgs{...} }

type TranscodingTemplateArrayOutput

type TranscodingTemplateArrayOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateArrayOutput) ElementType

func (TranscodingTemplateArrayOutput) Index

func (TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutput

func (o TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput

func (TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutputWithContext

func (o TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutputWithContext(ctx context.Context) TranscodingTemplateArrayOutput

type TranscodingTemplateAudio

type TranscodingTemplateAudio struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate *int `pulumi:"bitrate"`
	// Specifies the number of audio channels. Possible values are:
	// + **1**: AUDIO_CHANNELS_1
	// + **2**: AUDIO_CHANNELS_2
	// + **6**: AUDIO_CHANNELS_5_1
	Channels int `pulumi:"channels"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec int `pulumi:"codec"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy *string `pulumi:"outputPolicy"`
	// Specifies the audio sampling rate. Possible values are:
	// + **1**: AUDIO_SAMPLE_AUTO
	// + **2**: AUDIO_SAMPLE_22050 (22,050 Hz)
	// + **3**: AUDIO_SAMPLE_32000 (32,000 Hz)
	// + **4**: AUDIO_SAMPLE_44100 (44,100 Hz)
	// + **5**: AUDIO_SAMPLE_48000 (48,000 Hz)
	// + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)
	SampleRate int `pulumi:"sampleRate"`
}

type TranscodingTemplateAudioArgs

type TranscodingTemplateAudioArgs struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate pulumi.IntPtrInput `pulumi:"bitrate"`
	// Specifies the number of audio channels. Possible values are:
	// + **1**: AUDIO_CHANNELS_1
	// + **2**: AUDIO_CHANNELS_2
	// + **6**: AUDIO_CHANNELS_5_1
	Channels pulumi.IntInput `pulumi:"channels"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec pulumi.IntInput `pulumi:"codec"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy pulumi.StringPtrInput `pulumi:"outputPolicy"`
	// Specifies the audio sampling rate. Possible values are:
	// + **1**: AUDIO_SAMPLE_AUTO
	// + **2**: AUDIO_SAMPLE_22050 (22,050 Hz)
	// + **3**: AUDIO_SAMPLE_32000 (32,000 Hz)
	// + **4**: AUDIO_SAMPLE_44100 (44,100 Hz)
	// + **5**: AUDIO_SAMPLE_48000 (48,000 Hz)
	// + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)
	SampleRate pulumi.IntInput `pulumi:"sampleRate"`
}

func (TranscodingTemplateAudioArgs) ElementType

func (TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioOutput

func (i TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioOutput() TranscodingTemplateAudioOutput

func (TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioOutputWithContext

func (i TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioOutputWithContext(ctx context.Context) TranscodingTemplateAudioOutput

func (TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioPtrOutput

func (i TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioPtrOutput() TranscodingTemplateAudioPtrOutput

func (TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioPtrOutputWithContext

func (i TranscodingTemplateAudioArgs) ToTranscodingTemplateAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateAudioPtrOutput

type TranscodingTemplateAudioInput

type TranscodingTemplateAudioInput interface {
	pulumi.Input

	ToTranscodingTemplateAudioOutput() TranscodingTemplateAudioOutput
	ToTranscodingTemplateAudioOutputWithContext(context.Context) TranscodingTemplateAudioOutput
}

TranscodingTemplateAudioInput is an input type that accepts TranscodingTemplateAudioArgs and TranscodingTemplateAudioOutput values. You can construct a concrete instance of `TranscodingTemplateAudioInput` via:

TranscodingTemplateAudioArgs{...}

type TranscodingTemplateAudioOutput

type TranscodingTemplateAudioOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateAudioOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateAudioOutput) Channels

Specifies the number of audio channels. Possible values are: + **1**: AUDIO_CHANNELS_1 + **2**: AUDIO_CHANNELS_2 + **6**: AUDIO_CHANNELS_5_1

func (TranscodingTemplateAudioOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateAudioOutput) ElementType

func (TranscodingTemplateAudioOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateAudioOutput) SampleRate

Specifies the audio sampling rate. Possible values are: + **1**: AUDIO_SAMPLE_AUTO + **2**: AUDIO_SAMPLE_22050 (22,050 Hz) + **3**: AUDIO_SAMPLE_32000 (32,000 Hz) + **4**: AUDIO_SAMPLE_44100 (44,100 Hz) + **5**: AUDIO_SAMPLE_48000 (48,000 Hz) + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)

func (TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioOutput

func (o TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioOutput() TranscodingTemplateAudioOutput

func (TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioOutputWithContext

func (o TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioOutputWithContext(ctx context.Context) TranscodingTemplateAudioOutput

func (TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioPtrOutput

func (o TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioPtrOutput() TranscodingTemplateAudioPtrOutput

func (TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioPtrOutputWithContext

func (o TranscodingTemplateAudioOutput) ToTranscodingTemplateAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateAudioPtrOutput

type TranscodingTemplateAudioPtrInput

type TranscodingTemplateAudioPtrInput interface {
	pulumi.Input

	ToTranscodingTemplateAudioPtrOutput() TranscodingTemplateAudioPtrOutput
	ToTranscodingTemplateAudioPtrOutputWithContext(context.Context) TranscodingTemplateAudioPtrOutput
}

TranscodingTemplateAudioPtrInput is an input type that accepts TranscodingTemplateAudioArgs, TranscodingTemplateAudioPtr and TranscodingTemplateAudioPtrOutput values. You can construct a concrete instance of `TranscodingTemplateAudioPtrInput` via:

        TranscodingTemplateAudioArgs{...}

or:

        nil

type TranscodingTemplateAudioPtrOutput

type TranscodingTemplateAudioPtrOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateAudioPtrOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateAudioPtrOutput) Channels

Specifies the number of audio channels. Possible values are: + **1**: AUDIO_CHANNELS_1 + **2**: AUDIO_CHANNELS_2 + **6**: AUDIO_CHANNELS_5_1

func (TranscodingTemplateAudioPtrOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateAudioPtrOutput) Elem

func (TranscodingTemplateAudioPtrOutput) ElementType

func (TranscodingTemplateAudioPtrOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateAudioPtrOutput) SampleRate

Specifies the audio sampling rate. Possible values are: + **1**: AUDIO_SAMPLE_AUTO + **2**: AUDIO_SAMPLE_22050 (22,050 Hz) + **3**: AUDIO_SAMPLE_32000 (32,000 Hz) + **4**: AUDIO_SAMPLE_44100 (44,100 Hz) + **5**: AUDIO_SAMPLE_48000 (48,000 Hz) + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)

func (TranscodingTemplateAudioPtrOutput) ToTranscodingTemplateAudioPtrOutput

func (o TranscodingTemplateAudioPtrOutput) ToTranscodingTemplateAudioPtrOutput() TranscodingTemplateAudioPtrOutput

func (TranscodingTemplateAudioPtrOutput) ToTranscodingTemplateAudioPtrOutputWithContext

func (o TranscodingTemplateAudioPtrOutput) ToTranscodingTemplateAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateAudioPtrOutput

type TranscodingTemplateGroup

type TranscodingTemplateGroup struct {
	pulumi.CustomResourceState

	// Specifies the audio parameters. The object structure is documented below.
	Audio TranscodingTemplateGroupAudioPtrOutput `pulumi:"audio"`
	// Specifies the dash segment duration. This parameter is used only when `outputFormat`
	// is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	DashSegmentDuration pulumi.IntPtrOutput `pulumi:"dashSegmentDuration"`
	// Specifies the HLS segment duration. This parameter is used only
	// when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	HlsSegmentDuration pulumi.IntPtrOutput `pulumi:"hlsSegmentDuration"`
	// Specifies Whether to enable low bitrate HD. The default value is false.
	LowBitrateHd pulumi.BoolPtrOutput `pulumi:"lowBitrateHd"`
	// Specifies the name of a transcoding template group.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the packaging type. Possible values are:
	// + **1**: HLS
	// + **2**: DASH
	// + **3**: HLS+DASH
	// + **4**: MP4
	// + **5**: MP3
	// + **6**: ADTS
	OutputFormat pulumi.IntOutput `pulumi:"outputFormat"`
	// The region in which to create the transcoding template group resource. If omitted,
	// the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Indicates the IDs of templates in the template group
	TemplateIds pulumi.StringArrayOutput `pulumi:"templateIds"`
	// Specifies the video parameters.
	// The object structure is documented below.
	VideoCommon TranscodingTemplateGroupVideoCommonPtrOutput `pulumi:"videoCommon"`
	// Specifies the list of output video configurations.
	// The object structure is documented below.
	Videos TranscodingTemplateGroupVideoArrayOutput `pulumi:"videos"`
}

Manages an MPC transcoding template group resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Mpc"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Mpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mpc.NewTranscodingTemplateGroup(ctx, "test", &Mpc.TranscodingTemplateGroupArgs{
			Audio: &mpc.TranscodingTemplateGroupAudioArgs{
				Bitrate:      pulumi.Int(0),
				Channels:     pulumi.Int(2),
				Codec:        pulumi.Int(2),
				OutputPolicy: pulumi.String("transcode"),
				SampleRate:   pulumi.Int(1),
			},
			DashSegmentDuration: pulumi.Int(5),
			HlsSegmentDuration:  pulumi.Int(5),
			LowBitrateHd:        pulumi.Bool(true),
			OutputFormat:        pulumi.Int(1),
			VideoCommon: &mpc.TranscodingTemplateGroupVideoCommonArgs{
				BlackBarRemoval:       pulumi.Int(0),
				Codec:                 pulumi.Int(2),
				Fps:                   pulumi.Int(0),
				Level:                 pulumi.Int(15),
				MaxConsecutiveBframes: pulumi.Int(7),
				MaxIframesInterval:    pulumi.Int(5),
				OutputPolicy:          pulumi.String("transcode"),
				Profile:               pulumi.Int(4),
				Quality:               pulumi.Int(1),
			},
			Videos: mpc.TranscodingTemplateGroupVideoArray{
				&mpc.TranscodingTemplateGroupVideoArgs{
					Bitrate: pulumi.Int(0),
					Height:  pulumi.Int(2160),
					Width:   pulumi.Int(3840),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

MPC transcoding template groups can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Mpc/transcodingTemplateGroup:TranscodingTemplateGroup test 589e49809bb84447a759f6fa9aa19949

```

func GetTranscodingTemplateGroup

func GetTranscodingTemplateGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TranscodingTemplateGroupState, opts ...pulumi.ResourceOption) (*TranscodingTemplateGroup, error)

GetTranscodingTemplateGroup gets an existing TranscodingTemplateGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTranscodingTemplateGroup

func NewTranscodingTemplateGroup(ctx *pulumi.Context,
	name string, args *TranscodingTemplateGroupArgs, opts ...pulumi.ResourceOption) (*TranscodingTemplateGroup, error)

NewTranscodingTemplateGroup registers a new resource with the given unique name, arguments, and options.

func (*TranscodingTemplateGroup) ElementType

func (*TranscodingTemplateGroup) ElementType() reflect.Type

func (*TranscodingTemplateGroup) ToTranscodingTemplateGroupOutput

func (i *TranscodingTemplateGroup) ToTranscodingTemplateGroupOutput() TranscodingTemplateGroupOutput

func (*TranscodingTemplateGroup) ToTranscodingTemplateGroupOutputWithContext

func (i *TranscodingTemplateGroup) ToTranscodingTemplateGroupOutputWithContext(ctx context.Context) TranscodingTemplateGroupOutput

type TranscodingTemplateGroupArgs

type TranscodingTemplateGroupArgs struct {
	// Specifies the audio parameters. The object structure is documented below.
	Audio TranscodingTemplateGroupAudioPtrInput
	// Specifies the dash segment duration. This parameter is used only when `outputFormat`
	// is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	DashSegmentDuration pulumi.IntPtrInput
	// Specifies the HLS segment duration. This parameter is used only
	// when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	HlsSegmentDuration pulumi.IntPtrInput
	// Specifies Whether to enable low bitrate HD. The default value is false.
	LowBitrateHd pulumi.BoolPtrInput
	// Specifies the name of a transcoding template group.
	Name pulumi.StringPtrInput
	// Specifies the packaging type. Possible values are:
	// + **1**: HLS
	// + **2**: DASH
	// + **3**: HLS+DASH
	// + **4**: MP4
	// + **5**: MP3
	// + **6**: ADTS
	OutputFormat pulumi.IntInput
	// The region in which to create the transcoding template group resource. If omitted,
	// the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Specifies the video parameters.
	// The object structure is documented below.
	VideoCommon TranscodingTemplateGroupVideoCommonPtrInput
	// Specifies the list of output video configurations.
	// The object structure is documented below.
	Videos TranscodingTemplateGroupVideoArrayInput
}

The set of arguments for constructing a TranscodingTemplateGroup resource.

func (TranscodingTemplateGroupArgs) ElementType

type TranscodingTemplateGroupArray

type TranscodingTemplateGroupArray []TranscodingTemplateGroupInput

func (TranscodingTemplateGroupArray) ElementType

func (TranscodingTemplateGroupArray) ToTranscodingTemplateGroupArrayOutput

func (i TranscodingTemplateGroupArray) ToTranscodingTemplateGroupArrayOutput() TranscodingTemplateGroupArrayOutput

func (TranscodingTemplateGroupArray) ToTranscodingTemplateGroupArrayOutputWithContext

func (i TranscodingTemplateGroupArray) ToTranscodingTemplateGroupArrayOutputWithContext(ctx context.Context) TranscodingTemplateGroupArrayOutput

type TranscodingTemplateGroupArrayInput

type TranscodingTemplateGroupArrayInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupArrayOutput() TranscodingTemplateGroupArrayOutput
	ToTranscodingTemplateGroupArrayOutputWithContext(context.Context) TranscodingTemplateGroupArrayOutput
}

TranscodingTemplateGroupArrayInput is an input type that accepts TranscodingTemplateGroupArray and TranscodingTemplateGroupArrayOutput values. You can construct a concrete instance of `TranscodingTemplateGroupArrayInput` via:

TranscodingTemplateGroupArray{ TranscodingTemplateGroupArgs{...} }

type TranscodingTemplateGroupArrayOutput

type TranscodingTemplateGroupArrayOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupArrayOutput) ElementType

func (TranscodingTemplateGroupArrayOutput) Index

func (TranscodingTemplateGroupArrayOutput) ToTranscodingTemplateGroupArrayOutput

func (o TranscodingTemplateGroupArrayOutput) ToTranscodingTemplateGroupArrayOutput() TranscodingTemplateGroupArrayOutput

func (TranscodingTemplateGroupArrayOutput) ToTranscodingTemplateGroupArrayOutputWithContext

func (o TranscodingTemplateGroupArrayOutput) ToTranscodingTemplateGroupArrayOutputWithContext(ctx context.Context) TranscodingTemplateGroupArrayOutput

type TranscodingTemplateGroupAudio

type TranscodingTemplateGroupAudio struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate *int `pulumi:"bitrate"`
	// Specifies the number of audio channels. Possible values are:
	// + **1**: AUDIO_CHANNELS_1
	// + **2**: AUDIO_CHANNELS_2
	// + **6**: AUDIO_CHANNELS_5_1
	Channels int `pulumi:"channels"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec int `pulumi:"codec"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy *string `pulumi:"outputPolicy"`
	// Specifies the audio sampling rate. Possible values are:
	// + **1**: AUDIO_SAMPLE_AUTO
	// + **2**: AUDIO_SAMPLE_22050 (22,050 Hz)
	// + **3**: AUDIO_SAMPLE_32000 (32,000 Hz)
	// + **4**: AUDIO_SAMPLE_44100 (44,100 Hz)
	// + **5**: AUDIO_SAMPLE_48000 (48,000 Hz)
	// + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)
	SampleRate int `pulumi:"sampleRate"`
}

type TranscodingTemplateGroupAudioArgs

type TranscodingTemplateGroupAudioArgs struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate pulumi.IntPtrInput `pulumi:"bitrate"`
	// Specifies the number of audio channels. Possible values are:
	// + **1**: AUDIO_CHANNELS_1
	// + **2**: AUDIO_CHANNELS_2
	// + **6**: AUDIO_CHANNELS_5_1
	Channels pulumi.IntInput `pulumi:"channels"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec pulumi.IntInput `pulumi:"codec"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy pulumi.StringPtrInput `pulumi:"outputPolicy"`
	// Specifies the audio sampling rate. Possible values are:
	// + **1**: AUDIO_SAMPLE_AUTO
	// + **2**: AUDIO_SAMPLE_22050 (22,050 Hz)
	// + **3**: AUDIO_SAMPLE_32000 (32,000 Hz)
	// + **4**: AUDIO_SAMPLE_44100 (44,100 Hz)
	// + **5**: AUDIO_SAMPLE_48000 (48,000 Hz)
	// + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)
	SampleRate pulumi.IntInput `pulumi:"sampleRate"`
}

func (TranscodingTemplateGroupAudioArgs) ElementType

func (TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioOutput

func (i TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioOutput() TranscodingTemplateGroupAudioOutput

func (TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioOutputWithContext

func (i TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioOutputWithContext(ctx context.Context) TranscodingTemplateGroupAudioOutput

func (TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioPtrOutput

func (i TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioPtrOutput() TranscodingTemplateGroupAudioPtrOutput

func (TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioPtrOutputWithContext

func (i TranscodingTemplateGroupAudioArgs) ToTranscodingTemplateGroupAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupAudioPtrOutput

type TranscodingTemplateGroupAudioInput

type TranscodingTemplateGroupAudioInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupAudioOutput() TranscodingTemplateGroupAudioOutput
	ToTranscodingTemplateGroupAudioOutputWithContext(context.Context) TranscodingTemplateGroupAudioOutput
}

TranscodingTemplateGroupAudioInput is an input type that accepts TranscodingTemplateGroupAudioArgs and TranscodingTemplateGroupAudioOutput values. You can construct a concrete instance of `TranscodingTemplateGroupAudioInput` via:

TranscodingTemplateGroupAudioArgs{...}

type TranscodingTemplateGroupAudioOutput

type TranscodingTemplateGroupAudioOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupAudioOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateGroupAudioOutput) Channels

Specifies the number of audio channels. Possible values are: + **1**: AUDIO_CHANNELS_1 + **2**: AUDIO_CHANNELS_2 + **6**: AUDIO_CHANNELS_5_1

func (TranscodingTemplateGroupAudioOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateGroupAudioOutput) ElementType

func (TranscodingTemplateGroupAudioOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateGroupAudioOutput) SampleRate

Specifies the audio sampling rate. Possible values are: + **1**: AUDIO_SAMPLE_AUTO + **2**: AUDIO_SAMPLE_22050 (22,050 Hz) + **3**: AUDIO_SAMPLE_32000 (32,000 Hz) + **4**: AUDIO_SAMPLE_44100 (44,100 Hz) + **5**: AUDIO_SAMPLE_48000 (48,000 Hz) + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)

func (TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioOutput

func (o TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioOutput() TranscodingTemplateGroupAudioOutput

func (TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioOutputWithContext

func (o TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioOutputWithContext(ctx context.Context) TranscodingTemplateGroupAudioOutput

func (TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioPtrOutput

func (o TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioPtrOutput() TranscodingTemplateGroupAudioPtrOutput

func (TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioPtrOutputWithContext

func (o TranscodingTemplateGroupAudioOutput) ToTranscodingTemplateGroupAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupAudioPtrOutput

type TranscodingTemplateGroupAudioPtrInput

type TranscodingTemplateGroupAudioPtrInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupAudioPtrOutput() TranscodingTemplateGroupAudioPtrOutput
	ToTranscodingTemplateGroupAudioPtrOutputWithContext(context.Context) TranscodingTemplateGroupAudioPtrOutput
}

TranscodingTemplateGroupAudioPtrInput is an input type that accepts TranscodingTemplateGroupAudioArgs, TranscodingTemplateGroupAudioPtr and TranscodingTemplateGroupAudioPtrOutput values. You can construct a concrete instance of `TranscodingTemplateGroupAudioPtrInput` via:

        TranscodingTemplateGroupAudioArgs{...}

or:

        nil

type TranscodingTemplateGroupAudioPtrOutput

type TranscodingTemplateGroupAudioPtrOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupAudioPtrOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateGroupAudioPtrOutput) Channels

Specifies the number of audio channels. Possible values are: + **1**: AUDIO_CHANNELS_1 + **2**: AUDIO_CHANNELS_2 + **6**: AUDIO_CHANNELS_5_1

func (TranscodingTemplateGroupAudioPtrOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateGroupAudioPtrOutput) Elem

func (TranscodingTemplateGroupAudioPtrOutput) ElementType

func (TranscodingTemplateGroupAudioPtrOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateGroupAudioPtrOutput) SampleRate

Specifies the audio sampling rate. Possible values are: + **1**: AUDIO_SAMPLE_AUTO + **2**: AUDIO_SAMPLE_22050 (22,050 Hz) + **3**: AUDIO_SAMPLE_32000 (32,000 Hz) + **4**: AUDIO_SAMPLE_44100 (44,100 Hz) + **5**: AUDIO_SAMPLE_48000 (48,000 Hz) + **6**: AUDIO_SAMPLE_96000 (96,000 Hz)

func (TranscodingTemplateGroupAudioPtrOutput) ToTranscodingTemplateGroupAudioPtrOutput

func (o TranscodingTemplateGroupAudioPtrOutput) ToTranscodingTemplateGroupAudioPtrOutput() TranscodingTemplateGroupAudioPtrOutput

func (TranscodingTemplateGroupAudioPtrOutput) ToTranscodingTemplateGroupAudioPtrOutputWithContext

func (o TranscodingTemplateGroupAudioPtrOutput) ToTranscodingTemplateGroupAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupAudioPtrOutput

type TranscodingTemplateGroupInput

type TranscodingTemplateGroupInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupOutput() TranscodingTemplateGroupOutput
	ToTranscodingTemplateGroupOutputWithContext(ctx context.Context) TranscodingTemplateGroupOutput
}

type TranscodingTemplateGroupMap

type TranscodingTemplateGroupMap map[string]TranscodingTemplateGroupInput

func (TranscodingTemplateGroupMap) ElementType

func (TranscodingTemplateGroupMap) ToTranscodingTemplateGroupMapOutput

func (i TranscodingTemplateGroupMap) ToTranscodingTemplateGroupMapOutput() TranscodingTemplateGroupMapOutput

func (TranscodingTemplateGroupMap) ToTranscodingTemplateGroupMapOutputWithContext

func (i TranscodingTemplateGroupMap) ToTranscodingTemplateGroupMapOutputWithContext(ctx context.Context) TranscodingTemplateGroupMapOutput

type TranscodingTemplateGroupMapInput

type TranscodingTemplateGroupMapInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupMapOutput() TranscodingTemplateGroupMapOutput
	ToTranscodingTemplateGroupMapOutputWithContext(context.Context) TranscodingTemplateGroupMapOutput
}

TranscodingTemplateGroupMapInput is an input type that accepts TranscodingTemplateGroupMap and TranscodingTemplateGroupMapOutput values. You can construct a concrete instance of `TranscodingTemplateGroupMapInput` via:

TranscodingTemplateGroupMap{ "key": TranscodingTemplateGroupArgs{...} }

type TranscodingTemplateGroupMapOutput

type TranscodingTemplateGroupMapOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupMapOutput) ElementType

func (TranscodingTemplateGroupMapOutput) MapIndex

func (TranscodingTemplateGroupMapOutput) ToTranscodingTemplateGroupMapOutput

func (o TranscodingTemplateGroupMapOutput) ToTranscodingTemplateGroupMapOutput() TranscodingTemplateGroupMapOutput

func (TranscodingTemplateGroupMapOutput) ToTranscodingTemplateGroupMapOutputWithContext

func (o TranscodingTemplateGroupMapOutput) ToTranscodingTemplateGroupMapOutputWithContext(ctx context.Context) TranscodingTemplateGroupMapOutput

type TranscodingTemplateGroupOutput

type TranscodingTemplateGroupOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupOutput) Audio

Specifies the audio parameters. The object structure is documented below.

func (TranscodingTemplateGroupOutput) DashSegmentDuration

func (o TranscodingTemplateGroupOutput) DashSegmentDuration() pulumi.IntPtrOutput

Specifies the dash segment duration. This parameter is used only when `outputFormat` is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateGroupOutput) ElementType

func (TranscodingTemplateGroupOutput) HlsSegmentDuration

func (o TranscodingTemplateGroupOutput) HlsSegmentDuration() pulumi.IntPtrOutput

Specifies the HLS segment duration. This parameter is used only when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateGroupOutput) LowBitrateHd

Specifies Whether to enable low bitrate HD. The default value is false.

func (TranscodingTemplateGroupOutput) Name

Specifies the name of a transcoding template group.

func (TranscodingTemplateGroupOutput) OutputFormat

Specifies the packaging type. Possible values are: + **1**: HLS + **2**: DASH + **3**: HLS+DASH + **4**: MP4 + **5**: MP3 + **6**: ADTS

func (TranscodingTemplateGroupOutput) Region

The region in which to create the transcoding template group resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

func (TranscodingTemplateGroupOutput) TemplateIds

Indicates the IDs of templates in the template group

func (TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutput

func (o TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutput() TranscodingTemplateGroupOutput

func (TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutputWithContext

func (o TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutputWithContext(ctx context.Context) TranscodingTemplateGroupOutput

func (TranscodingTemplateGroupOutput) VideoCommon

Specifies the video parameters. The object structure is documented below.

func (TranscodingTemplateGroupOutput) Videos

Specifies the list of output video configurations. The object structure is documented below.

type TranscodingTemplateGroupState

type TranscodingTemplateGroupState struct {
	// Specifies the audio parameters. The object structure is documented below.
	Audio TranscodingTemplateGroupAudioPtrInput
	// Specifies the dash segment duration. This parameter is used only when `outputFormat`
	// is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	DashSegmentDuration pulumi.IntPtrInput
	// Specifies the HLS segment duration. This parameter is used only
	// when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	HlsSegmentDuration pulumi.IntPtrInput
	// Specifies Whether to enable low bitrate HD. The default value is false.
	LowBitrateHd pulumi.BoolPtrInput
	// Specifies the name of a transcoding template group.
	Name pulumi.StringPtrInput
	// Specifies the packaging type. Possible values are:
	// + **1**: HLS
	// + **2**: DASH
	// + **3**: HLS+DASH
	// + **4**: MP4
	// + **5**: MP3
	// + **6**: ADTS
	OutputFormat pulumi.IntPtrInput
	// The region in which to create the transcoding template group resource. If omitted,
	// the provider-level region will be used. Changing this creates a new resource.
	Region pulumi.StringPtrInput
	// Indicates the IDs of templates in the template group
	TemplateIds pulumi.StringArrayInput
	// Specifies the video parameters.
	// The object structure is documented below.
	VideoCommon TranscodingTemplateGroupVideoCommonPtrInput
	// Specifies the list of output video configurations.
	// The object structure is documented below.
	Videos TranscodingTemplateGroupVideoArrayInput
}

func (TranscodingTemplateGroupState) ElementType

type TranscodingTemplateGroupVideo

type TranscodingTemplateGroupVideo struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate *int `pulumi:"bitrate"`
	// Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264,
	// and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height
	// is an adaptive value. The default value is 0.
	Height *int `pulumi:"height"`
	// Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264
	// and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width
	// is an adaptive value. The default value is 0.
	Width *int `pulumi:"width"`
}

type TranscodingTemplateGroupVideoArgs

type TranscodingTemplateGroupVideoArgs struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate pulumi.IntPtrInput `pulumi:"bitrate"`
	// Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264,
	// and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height
	// is an adaptive value. The default value is 0.
	Height pulumi.IntPtrInput `pulumi:"height"`
	// Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264
	// and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width
	// is an adaptive value. The default value is 0.
	Width pulumi.IntPtrInput `pulumi:"width"`
}

func (TranscodingTemplateGroupVideoArgs) ElementType

func (TranscodingTemplateGroupVideoArgs) ToTranscodingTemplateGroupVideoOutput

func (i TranscodingTemplateGroupVideoArgs) ToTranscodingTemplateGroupVideoOutput() TranscodingTemplateGroupVideoOutput

func (TranscodingTemplateGroupVideoArgs) ToTranscodingTemplateGroupVideoOutputWithContext

func (i TranscodingTemplateGroupVideoArgs) ToTranscodingTemplateGroupVideoOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoOutput

type TranscodingTemplateGroupVideoArray

type TranscodingTemplateGroupVideoArray []TranscodingTemplateGroupVideoInput

func (TranscodingTemplateGroupVideoArray) ElementType

func (TranscodingTemplateGroupVideoArray) ToTranscodingTemplateGroupVideoArrayOutput

func (i TranscodingTemplateGroupVideoArray) ToTranscodingTemplateGroupVideoArrayOutput() TranscodingTemplateGroupVideoArrayOutput

func (TranscodingTemplateGroupVideoArray) ToTranscodingTemplateGroupVideoArrayOutputWithContext

func (i TranscodingTemplateGroupVideoArray) ToTranscodingTemplateGroupVideoArrayOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoArrayOutput

type TranscodingTemplateGroupVideoArrayInput

type TranscodingTemplateGroupVideoArrayInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupVideoArrayOutput() TranscodingTemplateGroupVideoArrayOutput
	ToTranscodingTemplateGroupVideoArrayOutputWithContext(context.Context) TranscodingTemplateGroupVideoArrayOutput
}

TranscodingTemplateGroupVideoArrayInput is an input type that accepts TranscodingTemplateGroupVideoArray and TranscodingTemplateGroupVideoArrayOutput values. You can construct a concrete instance of `TranscodingTemplateGroupVideoArrayInput` via:

TranscodingTemplateGroupVideoArray{ TranscodingTemplateGroupVideoArgs{...} }

type TranscodingTemplateGroupVideoArrayOutput

type TranscodingTemplateGroupVideoArrayOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupVideoArrayOutput) ElementType

func (TranscodingTemplateGroupVideoArrayOutput) Index

func (TranscodingTemplateGroupVideoArrayOutput) ToTranscodingTemplateGroupVideoArrayOutput

func (o TranscodingTemplateGroupVideoArrayOutput) ToTranscodingTemplateGroupVideoArrayOutput() TranscodingTemplateGroupVideoArrayOutput

func (TranscodingTemplateGroupVideoArrayOutput) ToTranscodingTemplateGroupVideoArrayOutputWithContext

func (o TranscodingTemplateGroupVideoArrayOutput) ToTranscodingTemplateGroupVideoArrayOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoArrayOutput

type TranscodingTemplateGroupVideoCommon

type TranscodingTemplateGroupVideoCommon struct {
	// Specifies whether to enable black bar removal. Possible values are:
	// + **0**: Disable black bar removal.
	// + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes).
	// + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).
	BlackBarRemoval *int `pulumi:"blackBarRemoval"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec *int `pulumi:"codec"`
	// Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30.
	// The default value is 0. The unit is FPS.
	Fps *int `pulumi:"fps"`
	// Specifies the encoding level. Possible values are:
	// + **1**: VIDEO_LEVEL_1_0
	// + **2**: VIDEO_LEVEL_1_1
	// + **3**: VIDEO_LEVEL_1_2
	// + **4**: VIDEO_LEVEL_1_3
	// + **5**: VIDEO_LEVEL_2_0
	// + **6**: VIDEO_LEVEL_2_1
	// + **7**: VIDEO_LEVEL_2_2
	// + **8**: VIDEO_LEVEL_3_0
	// + **9**: VIDEO_LEVEL_3_1
	// + **10**: VIDEO_LEVEL_3_2
	// + **11**: VIDEO_LEVEL_4_0
	// + **12**: VIDEO_LEVEL_4_1
	// + **13**: VIDEO_LEVEL_4_2
	// + **14**: VIDEO_LEVEL_5_0
	// + **15**: VIDEO_LEVEL_5_1
	Level *int `pulumi:"level"`
	// Specifies the maximum number of B-frames.
	// The vaule range is  0 to 7, and the default value is 4. The unit is frame.
	MaxConsecutiveBframes *int `pulumi:"maxConsecutiveBframes"`
	// Specifies the mximum I-frame interval. The value ranges from 2 to 10.
	// The default value is 5. The unit is second.
	MaxIframesInterval *int `pulumi:"maxIframesInterval"`
	MaxReferenceFrames *int `pulumi:"maxReferenceFrames"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy *string `pulumi:"outputPolicy"`
	// Specifies the encoding profile. The recommended value is 3. Possible values are:
	// + **1**: VIDEO_PROFILE_H264_BASE
	// + **2**: VIDEO_PROFILE_H264_MAIN
	// + **3**: VIDEO_PROFILE_H264_HIGH
	// + **4**: VIDEO_PROFILE_H265_MAIN
	Profile *int `pulumi:"profile"`
	// Specifies the encoding quality. A larger value indicates higher encoding quality and
	// longer transcoding time. Possible values are:
	// + **1**: VIDEO_PRESET_HSPEED2
	// + **2**: VIDEO_PRESET_HSPEED
	// + **3**: VIDEO_PRESET_NORMAL
	Quality *int `pulumi:"quality"`
}

type TranscodingTemplateGroupVideoCommonArgs

type TranscodingTemplateGroupVideoCommonArgs struct {
	// Specifies whether to enable black bar removal. Possible values are:
	// + **0**: Disable black bar removal.
	// + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes).
	// + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).
	BlackBarRemoval pulumi.IntPtrInput `pulumi:"blackBarRemoval"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec pulumi.IntPtrInput `pulumi:"codec"`
	// Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30.
	// The default value is 0. The unit is FPS.
	Fps pulumi.IntPtrInput `pulumi:"fps"`
	// Specifies the encoding level. Possible values are:
	// + **1**: VIDEO_LEVEL_1_0
	// + **2**: VIDEO_LEVEL_1_1
	// + **3**: VIDEO_LEVEL_1_2
	// + **4**: VIDEO_LEVEL_1_3
	// + **5**: VIDEO_LEVEL_2_0
	// + **6**: VIDEO_LEVEL_2_1
	// + **7**: VIDEO_LEVEL_2_2
	// + **8**: VIDEO_LEVEL_3_0
	// + **9**: VIDEO_LEVEL_3_1
	// + **10**: VIDEO_LEVEL_3_2
	// + **11**: VIDEO_LEVEL_4_0
	// + **12**: VIDEO_LEVEL_4_1
	// + **13**: VIDEO_LEVEL_4_2
	// + **14**: VIDEO_LEVEL_5_0
	// + **15**: VIDEO_LEVEL_5_1
	Level pulumi.IntPtrInput `pulumi:"level"`
	// Specifies the maximum number of B-frames.
	// The vaule range is  0 to 7, and the default value is 4. The unit is frame.
	MaxConsecutiveBframes pulumi.IntPtrInput `pulumi:"maxConsecutiveBframes"`
	// Specifies the mximum I-frame interval. The value ranges from 2 to 10.
	// The default value is 5. The unit is second.
	MaxIframesInterval pulumi.IntPtrInput `pulumi:"maxIframesInterval"`
	MaxReferenceFrames pulumi.IntPtrInput `pulumi:"maxReferenceFrames"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy pulumi.StringPtrInput `pulumi:"outputPolicy"`
	// Specifies the encoding profile. The recommended value is 3. Possible values are:
	// + **1**: VIDEO_PROFILE_H264_BASE
	// + **2**: VIDEO_PROFILE_H264_MAIN
	// + **3**: VIDEO_PROFILE_H264_HIGH
	// + **4**: VIDEO_PROFILE_H265_MAIN
	Profile pulumi.IntPtrInput `pulumi:"profile"`
	// Specifies the encoding quality. A larger value indicates higher encoding quality and
	// longer transcoding time. Possible values are:
	// + **1**: VIDEO_PRESET_HSPEED2
	// + **2**: VIDEO_PRESET_HSPEED
	// + **3**: VIDEO_PRESET_NORMAL
	Quality pulumi.IntPtrInput `pulumi:"quality"`
}

func (TranscodingTemplateGroupVideoCommonArgs) ElementType

func (TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonOutput

func (i TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonOutput() TranscodingTemplateGroupVideoCommonOutput

func (TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonOutputWithContext

func (i TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoCommonOutput

func (TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonPtrOutput

func (i TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonPtrOutput() TranscodingTemplateGroupVideoCommonPtrOutput

func (TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext

func (i TranscodingTemplateGroupVideoCommonArgs) ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoCommonPtrOutput

type TranscodingTemplateGroupVideoCommonInput

type TranscodingTemplateGroupVideoCommonInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupVideoCommonOutput() TranscodingTemplateGroupVideoCommonOutput
	ToTranscodingTemplateGroupVideoCommonOutputWithContext(context.Context) TranscodingTemplateGroupVideoCommonOutput
}

TranscodingTemplateGroupVideoCommonInput is an input type that accepts TranscodingTemplateGroupVideoCommonArgs and TranscodingTemplateGroupVideoCommonOutput values. You can construct a concrete instance of `TranscodingTemplateGroupVideoCommonInput` via:

TranscodingTemplateGroupVideoCommonArgs{...}

type TranscodingTemplateGroupVideoCommonOutput

type TranscodingTemplateGroupVideoCommonOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupVideoCommonOutput) BlackBarRemoval

Specifies whether to enable black bar removal. Possible values are: + **0**: Disable black bar removal. + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes). + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).

func (TranscodingTemplateGroupVideoCommonOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateGroupVideoCommonOutput) ElementType

func (TranscodingTemplateGroupVideoCommonOutput) Fps

Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30. The default value is 0. The unit is FPS.

func (TranscodingTemplateGroupVideoCommonOutput) Level

Specifies the encoding level. Possible values are: + **1**: VIDEO_LEVEL_1_0 + **2**: VIDEO_LEVEL_1_1 + **3**: VIDEO_LEVEL_1_2 + **4**: VIDEO_LEVEL_1_3 + **5**: VIDEO_LEVEL_2_0 + **6**: VIDEO_LEVEL_2_1 + **7**: VIDEO_LEVEL_2_2 + **8**: VIDEO_LEVEL_3_0 + **9**: VIDEO_LEVEL_3_1 + **10**: VIDEO_LEVEL_3_2 + **11**: VIDEO_LEVEL_4_0 + **12**: VIDEO_LEVEL_4_1 + **13**: VIDEO_LEVEL_4_2 + **14**: VIDEO_LEVEL_5_0 + **15**: VIDEO_LEVEL_5_1

func (TranscodingTemplateGroupVideoCommonOutput) MaxConsecutiveBframes

Specifies the maximum number of B-frames. The vaule range is 0 to 7, and the default value is 4. The unit is frame.

func (TranscodingTemplateGroupVideoCommonOutput) MaxIframesInterval

Specifies the mximum I-frame interval. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateGroupVideoCommonOutput) MaxReferenceFrames

func (TranscodingTemplateGroupVideoCommonOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateGroupVideoCommonOutput) Profile

Specifies the encoding profile. The recommended value is 3. Possible values are: + **1**: VIDEO_PROFILE_H264_BASE + **2**: VIDEO_PROFILE_H264_MAIN + **3**: VIDEO_PROFILE_H264_HIGH + **4**: VIDEO_PROFILE_H265_MAIN

func (TranscodingTemplateGroupVideoCommonOutput) Quality

Specifies the encoding quality. A larger value indicates higher encoding quality and longer transcoding time. Possible values are: + **1**: VIDEO_PRESET_HSPEED2 + **2**: VIDEO_PRESET_HSPEED + **3**: VIDEO_PRESET_NORMAL

func (TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonOutput

func (o TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonOutput() TranscodingTemplateGroupVideoCommonOutput

func (TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonOutputWithContext

func (o TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoCommonOutput

func (TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonPtrOutput

func (o TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonPtrOutput() TranscodingTemplateGroupVideoCommonPtrOutput

func (TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext

func (o TranscodingTemplateGroupVideoCommonOutput) ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoCommonPtrOutput

type TranscodingTemplateGroupVideoCommonPtrInput

type TranscodingTemplateGroupVideoCommonPtrInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupVideoCommonPtrOutput() TranscodingTemplateGroupVideoCommonPtrOutput
	ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext(context.Context) TranscodingTemplateGroupVideoCommonPtrOutput
}

TranscodingTemplateGroupVideoCommonPtrInput is an input type that accepts TranscodingTemplateGroupVideoCommonArgs, TranscodingTemplateGroupVideoCommonPtr and TranscodingTemplateGroupVideoCommonPtrOutput values. You can construct a concrete instance of `TranscodingTemplateGroupVideoCommonPtrInput` via:

        TranscodingTemplateGroupVideoCommonArgs{...}

or:

        nil

type TranscodingTemplateGroupVideoCommonPtrOutput

type TranscodingTemplateGroupVideoCommonPtrOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupVideoCommonPtrOutput) BlackBarRemoval

Specifies whether to enable black bar removal. Possible values are: + **0**: Disable black bar removal. + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes). + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).

func (TranscodingTemplateGroupVideoCommonPtrOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateGroupVideoCommonPtrOutput) Elem

func (TranscodingTemplateGroupVideoCommonPtrOutput) ElementType

func (TranscodingTemplateGroupVideoCommonPtrOutput) Fps

Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30. The default value is 0. The unit is FPS.

func (TranscodingTemplateGroupVideoCommonPtrOutput) Level

Specifies the encoding level. Possible values are: + **1**: VIDEO_LEVEL_1_0 + **2**: VIDEO_LEVEL_1_1 + **3**: VIDEO_LEVEL_1_2 + **4**: VIDEO_LEVEL_1_3 + **5**: VIDEO_LEVEL_2_0 + **6**: VIDEO_LEVEL_2_1 + **7**: VIDEO_LEVEL_2_2 + **8**: VIDEO_LEVEL_3_0 + **9**: VIDEO_LEVEL_3_1 + **10**: VIDEO_LEVEL_3_2 + **11**: VIDEO_LEVEL_4_0 + **12**: VIDEO_LEVEL_4_1 + **13**: VIDEO_LEVEL_4_2 + **14**: VIDEO_LEVEL_5_0 + **15**: VIDEO_LEVEL_5_1

func (TranscodingTemplateGroupVideoCommonPtrOutput) MaxConsecutiveBframes

Specifies the maximum number of B-frames. The vaule range is 0 to 7, and the default value is 4. The unit is frame.

func (TranscodingTemplateGroupVideoCommonPtrOutput) MaxIframesInterval

Specifies the mximum I-frame interval. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateGroupVideoCommonPtrOutput) MaxReferenceFrames

func (TranscodingTemplateGroupVideoCommonPtrOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateGroupVideoCommonPtrOutput) Profile

Specifies the encoding profile. The recommended value is 3. Possible values are: + **1**: VIDEO_PROFILE_H264_BASE + **2**: VIDEO_PROFILE_H264_MAIN + **3**: VIDEO_PROFILE_H264_HIGH + **4**: VIDEO_PROFILE_H265_MAIN

func (TranscodingTemplateGroupVideoCommonPtrOutput) Quality

Specifies the encoding quality. A larger value indicates higher encoding quality and longer transcoding time. Possible values are: + **1**: VIDEO_PRESET_HSPEED2 + **2**: VIDEO_PRESET_HSPEED + **3**: VIDEO_PRESET_NORMAL

func (TranscodingTemplateGroupVideoCommonPtrOutput) ToTranscodingTemplateGroupVideoCommonPtrOutput

func (o TranscodingTemplateGroupVideoCommonPtrOutput) ToTranscodingTemplateGroupVideoCommonPtrOutput() TranscodingTemplateGroupVideoCommonPtrOutput

func (TranscodingTemplateGroupVideoCommonPtrOutput) ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext

func (o TranscodingTemplateGroupVideoCommonPtrOutput) ToTranscodingTemplateGroupVideoCommonPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoCommonPtrOutput

type TranscodingTemplateGroupVideoInput

type TranscodingTemplateGroupVideoInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupVideoOutput() TranscodingTemplateGroupVideoOutput
	ToTranscodingTemplateGroupVideoOutputWithContext(context.Context) TranscodingTemplateGroupVideoOutput
}

TranscodingTemplateGroupVideoInput is an input type that accepts TranscodingTemplateGroupVideoArgs and TranscodingTemplateGroupVideoOutput values. You can construct a concrete instance of `TranscodingTemplateGroupVideoInput` via:

TranscodingTemplateGroupVideoArgs{...}

type TranscodingTemplateGroupVideoOutput

type TranscodingTemplateGroupVideoOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupVideoOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateGroupVideoOutput) ElementType

func (TranscodingTemplateGroupVideoOutput) Height

Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264, and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height is an adaptive value. The default value is 0.

func (TranscodingTemplateGroupVideoOutput) ToTranscodingTemplateGroupVideoOutput

func (o TranscodingTemplateGroupVideoOutput) ToTranscodingTemplateGroupVideoOutput() TranscodingTemplateGroupVideoOutput

func (TranscodingTemplateGroupVideoOutput) ToTranscodingTemplateGroupVideoOutputWithContext

func (o TranscodingTemplateGroupVideoOutput) ToTranscodingTemplateGroupVideoOutputWithContext(ctx context.Context) TranscodingTemplateGroupVideoOutput

func (TranscodingTemplateGroupVideoOutput) Width

Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264 and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width is an adaptive value. The default value is 0.

type TranscodingTemplateInput

type TranscodingTemplateInput interface {
	pulumi.Input

	ToTranscodingTemplateOutput() TranscodingTemplateOutput
	ToTranscodingTemplateOutputWithContext(ctx context.Context) TranscodingTemplateOutput
}

type TranscodingTemplateMap

type TranscodingTemplateMap map[string]TranscodingTemplateInput

func (TranscodingTemplateMap) ElementType

func (TranscodingTemplateMap) ElementType() reflect.Type

func (TranscodingTemplateMap) ToTranscodingTemplateMapOutput

func (i TranscodingTemplateMap) ToTranscodingTemplateMapOutput() TranscodingTemplateMapOutput

func (TranscodingTemplateMap) ToTranscodingTemplateMapOutputWithContext

func (i TranscodingTemplateMap) ToTranscodingTemplateMapOutputWithContext(ctx context.Context) TranscodingTemplateMapOutput

type TranscodingTemplateMapInput

type TranscodingTemplateMapInput interface {
	pulumi.Input

	ToTranscodingTemplateMapOutput() TranscodingTemplateMapOutput
	ToTranscodingTemplateMapOutputWithContext(context.Context) TranscodingTemplateMapOutput
}

TranscodingTemplateMapInput is an input type that accepts TranscodingTemplateMap and TranscodingTemplateMapOutput values. You can construct a concrete instance of `TranscodingTemplateMapInput` via:

TranscodingTemplateMap{ "key": TranscodingTemplateArgs{...} }

type TranscodingTemplateMapOutput

type TranscodingTemplateMapOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateMapOutput) ElementType

func (TranscodingTemplateMapOutput) MapIndex

func (TranscodingTemplateMapOutput) ToTranscodingTemplateMapOutput

func (o TranscodingTemplateMapOutput) ToTranscodingTemplateMapOutput() TranscodingTemplateMapOutput

func (TranscodingTemplateMapOutput) ToTranscodingTemplateMapOutputWithContext

func (o TranscodingTemplateMapOutput) ToTranscodingTemplateMapOutputWithContext(ctx context.Context) TranscodingTemplateMapOutput

type TranscodingTemplateOutput

type TranscodingTemplateOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateOutput) Audio

Specifies the audio parameters. The object structure is documented below.

func (TranscodingTemplateOutput) DashSegmentDuration

func (o TranscodingTemplateOutput) DashSegmentDuration() pulumi.IntPtrOutput

Specifies the dash segment duration. This parameter is used only when `outputFormat` is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateOutput) ElementType

func (TranscodingTemplateOutput) ElementType() reflect.Type

func (TranscodingTemplateOutput) HlsSegmentDuration

func (o TranscodingTemplateOutput) HlsSegmentDuration() pulumi.IntPtrOutput

Specifies the HLS segment duration. This parameter is used only when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateOutput) LowBitrateHd

Specifies Whether to enable low bitrate HD. The default value is false.

func (TranscodingTemplateOutput) Name

Specifies the name of a transcoding template.

func (TranscodingTemplateOutput) OutputFormat

func (o TranscodingTemplateOutput) OutputFormat() pulumi.IntOutput

Specifies the packaging type. Possible values are: + **1**: HLS + **2**: DASH + **3**: HLS+DASH + **4**: MP4 + **5**: MP3 + **6**: ADTS

func (TranscodingTemplateOutput) Region

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.

func (TranscodingTemplateOutput) ToTranscodingTemplateOutput

func (o TranscodingTemplateOutput) ToTranscodingTemplateOutput() TranscodingTemplateOutput

func (TranscodingTemplateOutput) ToTranscodingTemplateOutputWithContext

func (o TranscodingTemplateOutput) ToTranscodingTemplateOutputWithContext(ctx context.Context) TranscodingTemplateOutput

func (TranscodingTemplateOutput) Video

Specifies the video parameters. The object structure is documented below.

type TranscodingTemplateState

type TranscodingTemplateState struct {
	// Specifies the audio parameters. The object structure is documented below.
	Audio TranscodingTemplateAudioPtrInput
	// Specifies the dash segment duration. This parameter is used only when `outputFormat`
	// is set to 2 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	DashSegmentDuration pulumi.IntPtrInput
	// Specifies the HLS segment duration. This parameter is used only
	// when `outputFormat` is set to 1 or 3. The value ranges from 2 to 10. The default value is 5. The unit is second.
	HlsSegmentDuration pulumi.IntPtrInput
	// Specifies Whether to enable low bitrate HD. The default value is false.
	LowBitrateHd pulumi.BoolPtrInput
	// Specifies the name of a transcoding template.
	Name pulumi.StringPtrInput
	// Specifies the packaging type. Possible values are:
	// + **1**: HLS
	// + **2**: DASH
	// + **3**: HLS+DASH
	// + **4**: MP4
	// + **5**: MP3
	// + **6**: ADTS
	OutputFormat pulumi.IntPtrInput
	// 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.StringPtrInput
	// Specifies the video parameters. The object structure is documented below.
	Video TranscodingTemplateVideoPtrInput
}

func (TranscodingTemplateState) ElementType

func (TranscodingTemplateState) ElementType() reflect.Type

type TranscodingTemplateVideo

type TranscodingTemplateVideo struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate *int `pulumi:"bitrate"`
	// Specifies whether to enable black bar removal. Possible values are:
	// + **0**: Disable black bar removal.
	// + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes).
	// + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).
	BlackBarRemoval *int `pulumi:"blackBarRemoval"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec *int `pulumi:"codec"`
	// Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30.
	// The default value is 0. The unit is FPS.
	Fps *int `pulumi:"fps"`
	// Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264,
	// and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height
	// is an adaptive value. The default value is 0.
	Height *int `pulumi:"height"`
	// Specifies the encoding level. Possible values are:
	// + **1**: VIDEO_LEVEL_1_0
	// + **2**: VIDEO_LEVEL_1_1
	// + **3**: VIDEO_LEVEL_1_2
	// + **4**: VIDEO_LEVEL_1_3
	// + **5**: VIDEO_LEVEL_2_0
	// + **6**: VIDEO_LEVEL_2_1
	// + **7**: VIDEO_LEVEL_2_2
	// + **8**: VIDEO_LEVEL_3_0
	// + **9**: VIDEO_LEVEL_3_1
	// + **10**: VIDEO_LEVEL_3_2
	// + **11**: VIDEO_LEVEL_4_0
	// + **12**: VIDEO_LEVEL_4_1
	// + **13**: VIDEO_LEVEL_4_2
	// + **14**: VIDEO_LEVEL_5_0
	// + **15**: VIDEO_LEVEL_5_1
	Level *int `pulumi:"level"`
	// Specifies the maximum number of B-frames.
	// The vaule range is  0 to 7, and the default value is 4. The unit is frame.
	MaxConsecutiveBframes *int `pulumi:"maxConsecutiveBframes"`
	// Specifies the mximum I-frame interval. The value ranges from 2 to 10.
	// The default value is 5. The unit is second.
	MaxIframesInterval *int `pulumi:"maxIframesInterval"`
	MaxReferenceFrames *int `pulumi:"maxReferenceFrames"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy *string `pulumi:"outputPolicy"`
	// Specifies the encoding profile. The recommended value is 3. Possible values are:
	// + **1**: VIDEO_PROFILE_H264_BASE
	// + **2**: VIDEO_PROFILE_H264_MAIN
	// + **3**: VIDEO_PROFILE_H264_HIGH
	// + **4**: VIDEO_PROFILE_H265_MAIN
	Profile *int `pulumi:"profile"`
	// Specifies the encoding quality. A larger value indicates higher encoding quality and
	// longer transcoding time. Possible values are:
	// + **1**: VIDEO_PRESET_HSPEED2
	// + **2**: VIDEO_PRESET_HSPEED
	// + **3**: VIDEO_PRESET_NORMAL
	Quality *int `pulumi:"quality"`
	// Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264
	// and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width
	// is an adaptive value. The default value is 0.
	Width *int `pulumi:"width"`
}

type TranscodingTemplateVideoArgs

type TranscodingTemplateVideoArgs struct {
	// Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to
	// 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an
	// adaptive value.
	Bitrate pulumi.IntPtrInput `pulumi:"bitrate"`
	// Specifies whether to enable black bar removal. Possible values are:
	// + **0**: Disable black bar removal.
	// + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes).
	// + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).
	BlackBarRemoval pulumi.IntPtrInput `pulumi:"blackBarRemoval"`
	// Specifies the video codec. Possible values are:
	// + **1**: H.264
	// + **2**: H.265
	Codec pulumi.IntPtrInput `pulumi:"codec"`
	// Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30.
	// The default value is 0. The unit is FPS.
	Fps pulumi.IntPtrInput `pulumi:"fps"`
	// Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264,
	// and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height
	// is an adaptive value. The default value is 0.
	Height pulumi.IntPtrInput `pulumi:"height"`
	// Specifies the encoding level. Possible values are:
	// + **1**: VIDEO_LEVEL_1_0
	// + **2**: VIDEO_LEVEL_1_1
	// + **3**: VIDEO_LEVEL_1_2
	// + **4**: VIDEO_LEVEL_1_3
	// + **5**: VIDEO_LEVEL_2_0
	// + **6**: VIDEO_LEVEL_2_1
	// + **7**: VIDEO_LEVEL_2_2
	// + **8**: VIDEO_LEVEL_3_0
	// + **9**: VIDEO_LEVEL_3_1
	// + **10**: VIDEO_LEVEL_3_2
	// + **11**: VIDEO_LEVEL_4_0
	// + **12**: VIDEO_LEVEL_4_1
	// + **13**: VIDEO_LEVEL_4_2
	// + **14**: VIDEO_LEVEL_5_0
	// + **15**: VIDEO_LEVEL_5_1
	Level pulumi.IntPtrInput `pulumi:"level"`
	// Specifies the maximum number of B-frames.
	// The vaule range is  0 to 7, and the default value is 4. The unit is frame.
	MaxConsecutiveBframes pulumi.IntPtrInput `pulumi:"maxConsecutiveBframes"`
	// Specifies the mximum I-frame interval. The value ranges from 2 to 10.
	// The default value is 5. The unit is second.
	MaxIframesInterval pulumi.IntPtrInput `pulumi:"maxIframesInterval"`
	MaxReferenceFrames pulumi.IntPtrInput `pulumi:"maxReferenceFrames"`
	// Specifies the output policy. Possible values are **discard** and **transcode**.
	// The default value is transcode.
	OutputPolicy pulumi.StringPtrInput `pulumi:"outputPolicy"`
	// Specifies the encoding profile. The recommended value is 3. Possible values are:
	// + **1**: VIDEO_PROFILE_H264_BASE
	// + **2**: VIDEO_PROFILE_H264_MAIN
	// + **3**: VIDEO_PROFILE_H264_HIGH
	// + **4**: VIDEO_PROFILE_H265_MAIN
	Profile pulumi.IntPtrInput `pulumi:"profile"`
	// Specifies the encoding quality. A larger value indicates higher encoding quality and
	// longer transcoding time. Possible values are:
	// + **1**: VIDEO_PRESET_HSPEED2
	// + **2**: VIDEO_PRESET_HSPEED
	// + **3**: VIDEO_PRESET_NORMAL
	Quality pulumi.IntPtrInput `pulumi:"quality"`
	// Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264
	// and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width
	// is an adaptive value. The default value is 0.
	Width pulumi.IntPtrInput `pulumi:"width"`
}

func (TranscodingTemplateVideoArgs) ElementType

func (TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoOutput

func (i TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoOutput() TranscodingTemplateVideoOutput

func (TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoOutputWithContext

func (i TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoOutputWithContext(ctx context.Context) TranscodingTemplateVideoOutput

func (TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoPtrOutput

func (i TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoPtrOutput() TranscodingTemplateVideoPtrOutput

func (TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoPtrOutputWithContext

func (i TranscodingTemplateVideoArgs) ToTranscodingTemplateVideoPtrOutputWithContext(ctx context.Context) TranscodingTemplateVideoPtrOutput

type TranscodingTemplateVideoInput

type TranscodingTemplateVideoInput interface {
	pulumi.Input

	ToTranscodingTemplateVideoOutput() TranscodingTemplateVideoOutput
	ToTranscodingTemplateVideoOutputWithContext(context.Context) TranscodingTemplateVideoOutput
}

TranscodingTemplateVideoInput is an input type that accepts TranscodingTemplateVideoArgs and TranscodingTemplateVideoOutput values. You can construct a concrete instance of `TranscodingTemplateVideoInput` via:

TranscodingTemplateVideoArgs{...}

type TranscodingTemplateVideoOutput

type TranscodingTemplateVideoOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateVideoOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateVideoOutput) BlackBarRemoval

Specifies whether to enable black bar removal. Possible values are: + **0**: Disable black bar removal. + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes). + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).

func (TranscodingTemplateVideoOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateVideoOutput) ElementType

func (TranscodingTemplateVideoOutput) Fps

Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30. The default value is 0. The unit is FPS.

func (TranscodingTemplateVideoOutput) Height

Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264, and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height is an adaptive value. The default value is 0.

func (TranscodingTemplateVideoOutput) Level

Specifies the encoding level. Possible values are: + **1**: VIDEO_LEVEL_1_0 + **2**: VIDEO_LEVEL_1_1 + **3**: VIDEO_LEVEL_1_2 + **4**: VIDEO_LEVEL_1_3 + **5**: VIDEO_LEVEL_2_0 + **6**: VIDEO_LEVEL_2_1 + **7**: VIDEO_LEVEL_2_2 + **8**: VIDEO_LEVEL_3_0 + **9**: VIDEO_LEVEL_3_1 + **10**: VIDEO_LEVEL_3_2 + **11**: VIDEO_LEVEL_4_0 + **12**: VIDEO_LEVEL_4_1 + **13**: VIDEO_LEVEL_4_2 + **14**: VIDEO_LEVEL_5_0 + **15**: VIDEO_LEVEL_5_1

func (TranscodingTemplateVideoOutput) MaxConsecutiveBframes

func (o TranscodingTemplateVideoOutput) MaxConsecutiveBframes() pulumi.IntPtrOutput

Specifies the maximum number of B-frames. The vaule range is 0 to 7, and the default value is 4. The unit is frame.

func (TranscodingTemplateVideoOutput) MaxIframesInterval

func (o TranscodingTemplateVideoOutput) MaxIframesInterval() pulumi.IntPtrOutput

Specifies the mximum I-frame interval. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateVideoOutput) MaxReferenceFrames

func (o TranscodingTemplateVideoOutput) MaxReferenceFrames() pulumi.IntPtrOutput

func (TranscodingTemplateVideoOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateVideoOutput) Profile

Specifies the encoding profile. The recommended value is 3. Possible values are: + **1**: VIDEO_PROFILE_H264_BASE + **2**: VIDEO_PROFILE_H264_MAIN + **3**: VIDEO_PROFILE_H264_HIGH + **4**: VIDEO_PROFILE_H265_MAIN

func (TranscodingTemplateVideoOutput) Quality

Specifies the encoding quality. A larger value indicates higher encoding quality and longer transcoding time. Possible values are: + **1**: VIDEO_PRESET_HSPEED2 + **2**: VIDEO_PRESET_HSPEED + **3**: VIDEO_PRESET_NORMAL

func (TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoOutput

func (o TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoOutput() TranscodingTemplateVideoOutput

func (TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoOutputWithContext

func (o TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoOutputWithContext(ctx context.Context) TranscodingTemplateVideoOutput

func (TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoPtrOutput

func (o TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoPtrOutput() TranscodingTemplateVideoPtrOutput

func (TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoPtrOutputWithContext

func (o TranscodingTemplateVideoOutput) ToTranscodingTemplateVideoPtrOutputWithContext(ctx context.Context) TranscodingTemplateVideoPtrOutput

func (TranscodingTemplateVideoOutput) Width

Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264 and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width is an adaptive value. The default value is 0.

type TranscodingTemplateVideoPtrInput

type TranscodingTemplateVideoPtrInput interface {
	pulumi.Input

	ToTranscodingTemplateVideoPtrOutput() TranscodingTemplateVideoPtrOutput
	ToTranscodingTemplateVideoPtrOutputWithContext(context.Context) TranscodingTemplateVideoPtrOutput
}

TranscodingTemplateVideoPtrInput is an input type that accepts TranscodingTemplateVideoArgs, TranscodingTemplateVideoPtr and TranscodingTemplateVideoPtrOutput values. You can construct a concrete instance of `TranscodingTemplateVideoPtrInput` via:

        TranscodingTemplateVideoArgs{...}

or:

        nil

type TranscodingTemplateVideoPtrOutput

type TranscodingTemplateVideoPtrOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateVideoPtrOutput) Bitrate

Specifies the average output bitrate. The value is 0 or an integer ranging from 40 to 30,000. The default value is 0. The unit is kbit/s. If this parameter is set to 0, the average output bitrate is an adaptive value.

func (TranscodingTemplateVideoPtrOutput) BlackBarRemoval

Specifies whether to enable black bar removal. Possible values are: + **0**: Disable black bar removal. + **1**: Enable black bar removal and low-complexity algorithms for long videos (>5 minutes). + **2**: Enable black bar removal and high-complexity algorithms for short videos (≤5 minutes).

func (TranscodingTemplateVideoPtrOutput) Codec

Specifies the video codec. Possible values are: + **1**: H.264 + **2**: H.265

func (TranscodingTemplateVideoPtrOutput) Elem

func (TranscodingTemplateVideoPtrOutput) ElementType

func (TranscodingTemplateVideoPtrOutput) Fps

Specifies the frame rate. Its value is 0 or an integer ranging from 5 to 30. The default value is 0. The unit is FPS.

func (TranscodingTemplateVideoPtrOutput) Height

Specifies the video height. The value is 0 or a multiple of 2 from 32 to 2,880 for H.264, and 0 or a multiple of 4 from 96 to 2,880 for H.265. The unit is pixel. If this parameter is set to 0, the video height is an adaptive value. The default value is 0.

func (TranscodingTemplateVideoPtrOutput) Level

Specifies the encoding level. Possible values are: + **1**: VIDEO_LEVEL_1_0 + **2**: VIDEO_LEVEL_1_1 + **3**: VIDEO_LEVEL_1_2 + **4**: VIDEO_LEVEL_1_3 + **5**: VIDEO_LEVEL_2_0 + **6**: VIDEO_LEVEL_2_1 + **7**: VIDEO_LEVEL_2_2 + **8**: VIDEO_LEVEL_3_0 + **9**: VIDEO_LEVEL_3_1 + **10**: VIDEO_LEVEL_3_2 + **11**: VIDEO_LEVEL_4_0 + **12**: VIDEO_LEVEL_4_1 + **13**: VIDEO_LEVEL_4_2 + **14**: VIDEO_LEVEL_5_0 + **15**: VIDEO_LEVEL_5_1

func (TranscodingTemplateVideoPtrOutput) MaxConsecutiveBframes

func (o TranscodingTemplateVideoPtrOutput) MaxConsecutiveBframes() pulumi.IntPtrOutput

Specifies the maximum number of B-frames. The vaule range is 0 to 7, and the default value is 4. The unit is frame.

func (TranscodingTemplateVideoPtrOutput) MaxIframesInterval

func (o TranscodingTemplateVideoPtrOutput) MaxIframesInterval() pulumi.IntPtrOutput

Specifies the mximum I-frame interval. The value ranges from 2 to 10. The default value is 5. The unit is second.

func (TranscodingTemplateVideoPtrOutput) MaxReferenceFrames

func (o TranscodingTemplateVideoPtrOutput) MaxReferenceFrames() pulumi.IntPtrOutput

func (TranscodingTemplateVideoPtrOutput) OutputPolicy

Specifies the output policy. Possible values are **discard** and **transcode**. The default value is transcode.

func (TranscodingTemplateVideoPtrOutput) Profile

Specifies the encoding profile. The recommended value is 3. Possible values are: + **1**: VIDEO_PROFILE_H264_BASE + **2**: VIDEO_PROFILE_H264_MAIN + **3**: VIDEO_PROFILE_H264_HIGH + **4**: VIDEO_PROFILE_H265_MAIN

func (TranscodingTemplateVideoPtrOutput) Quality

Specifies the encoding quality. A larger value indicates higher encoding quality and longer transcoding time. Possible values are: + **1**: VIDEO_PRESET_HSPEED2 + **2**: VIDEO_PRESET_HSPEED + **3**: VIDEO_PRESET_NORMAL

func (TranscodingTemplateVideoPtrOutput) ToTranscodingTemplateVideoPtrOutput

func (o TranscodingTemplateVideoPtrOutput) ToTranscodingTemplateVideoPtrOutput() TranscodingTemplateVideoPtrOutput

func (TranscodingTemplateVideoPtrOutput) ToTranscodingTemplateVideoPtrOutputWithContext

func (o TranscodingTemplateVideoPtrOutput) ToTranscodingTemplateVideoPtrOutputWithContext(ctx context.Context) TranscodingTemplateVideoPtrOutput

func (TranscodingTemplateVideoPtrOutput) Width

Specifies the video width. The value can be 0 or a multiple of 2 from 32 to 4,096 for H.264 and 0 or a multiple of 4 from 160 to 4,096 for H.265. The unit is pixel. If this parameter is set to 0, the video width is an adaptive value. The default value is 0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL