vod

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 MediaAsset

type MediaAsset struct {
	pulumi.CustomResourceState

	// Specifies whether to automatically encrypt the media. If set to **true**,
	// `templateGroupName` must be specified, and the output format of transcoding is **HLS**. Defaults to: **false**.
	// Changing this creates a new resource.
	AutoEncrypt pulumi.BoolPtrOutput `pulumi:"autoEncrypt"`
	// Specifies whether to automatically warm up the media to CDN. Defaults to: **false**.
	// Changing this creates a new resource.
	AutoPreload pulumi.BoolPtrOutput `pulumi:"autoPreload"`
	// Specifies the category ID of the media asset. Default to: **-1**, which means the media
	// asset will be categorized into the 'Other' category of system presets.
	CategoryId pulumi.IntOutput `pulumi:"categoryId"`
	// The category name of the media asset.
	CategoryName pulumi.StringOutput `pulumi:"categoryName"`
	// Specifies the media asset description, which contains a maximum of 1024 characters.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the OBS bucket name of media source file.
	// Either this field or `url` must be specified. Changing this creates a new resource.
	InputBucket pulumi.StringPtrOutput `pulumi:"inputBucket"`
	// Specifies the media source file path in the OBS bucket.
	// Changing this creates a new resource.
	InputPath pulumi.StringPtrOutput `pulumi:"inputPath"`
	// Specifies the labels of the media asset, which contains a maximum of 16 labels
	// separated by commas.
	Labels pulumi.StringPtrOutput `pulumi:"labels"`
	// The name of the media file.
	MediaName pulumi.StringOutput `pulumi:"mediaName"`
	// Specifies the media type. Valid values are: **MP4**, **TS**, **MOV**,
	// **MXF**, **MPG**, **FLV**, **WMV**, **AVI**, **M4V**, **F4V**, **MPEG**, **3GP**, **ASF**, **MKV**, **HLS**,
	// **M3U8**, **MP3**, **OGG**, **WAV**, **WMA**, **APE**, **FLAC**, **AAC**, **AC3**, **MMF**, **AMR**, **M4A**,
	// **M4R**, **WV**, **MP2**. Changing this creates a new resource.
	MediaType pulumi.StringOutput `pulumi:"mediaType"`
	// The URL of original media file.
	MediaUrl pulumi.StringOutput `pulumi:"mediaUrl"`
	// Specifies the media asset name, which contains a maximum of 128 characters.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the output OBS bucket name.
	// Changing this creates a new resource.
	OutputBucket pulumi.StringPtrOutput `pulumi:"outputBucket"`
	// Specifies the output file path in the OBS bucket.
	// Changing this creates a new resource.
	OutputPath pulumi.StringPtrOutput `pulumi:"outputPath"`
	// Specifies whether to publish the media. Defaults to: **false**.
	Publish pulumi.BoolPtrOutput `pulumi:"publish"`
	// 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.StringOutput `pulumi:"region"`
	// Specifies the review template ID. Changing this creates a new resource.
	ReviewTemplateId pulumi.StringPtrOutput `pulumi:"reviewTemplateId"`
	// Specifies the storage mode. The value can be:
	// + **0**: copy the media file to VOD bucket.
	// + **1**: save the media file in user bucket.
	StorageMode pulumi.IntPtrOutput `pulumi:"storageMode"`
	// Specifies the transcoding template group name. If not empty,
	// the uploaded media will be transcoded with the specified transcoding template group. Changing this creates a new resource.
	TemplateGroupName pulumi.StringPtrOutput `pulumi:"templateGroupName"`
	// Specifies the review thumbnail configurations.
	// The object structure is documented below. Changing this creates a new resource.
	Thumbnail MediaAssetThumbnailPtrOutput `pulumi:"thumbnail"`
	// Specifies the URL of media source file. Currently only http and https protocols
	// are supported. Either this field or `inputBucket` must be specified. Changing this creates a new resource.
	Url pulumi.StringPtrOutput `pulumi:"url"`
	// Specifies the workflow name. If not empty, the uploaded media will be
	// processed with the specified workflow. Changing this creates a new resource.
	WorkflowName pulumi.StringPtrOutput `pulumi:"workflowName"`
}

Manages a VOD media asset resource within HuaweiCloud.

## Example Usage ### Upload media asset from OBS

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vod"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		bucketName := cfg.RequireObject("bucketName")
		objectPath := cfg.RequireObject("objectPath")
		_, err := Vod.NewMediaAsset(ctx, "test", &Vod.MediaAssetArgs{
			MediaType:   pulumi.String("MP4"),
			InputBucket: pulumi.Any(bucketName),
			InputPath:   pulumi.Any(objectPath),
			Description: pulumi.String("test video"),
			Labels:      pulumi.String("test_label_1,test_lable_2,test_label_3"),
			Thumbnail: &vod.MediaAssetThumbnailArgs{
				Type: pulumi.String("time"),
				Time: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Upload media asset by URL

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vod"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		mediaUrl := cfg.RequireObject("mediaUrl")
		_, err := Vod.NewMediaAsset(ctx, "test", &Vod.MediaAssetArgs{
			MediaType:   pulumi.String("MP4"),
			Url:         pulumi.Any(mediaUrl),
			Description: pulumi.String("test video"),
			Labels:      pulumi.String("test_label_1,test_lable_2,test_label_3"),
			Thumbnail: &vod.MediaAssetThumbnailArgs{
				Type: pulumi.String("time"),
				Time: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The media asset can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Vod/mediaAsset:MediaAsset test 8754976729b8a2ba745d01036edded2b

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`url`, `input_bucket`, `input_path`, `output_bucket`, `output_path`, `storage_mode`, `template_group_name`, `workflow_name`, `publish`, `auto_encrypt`, `auto_preload`, `review_template_id`, `thumbnail`. It is generally recommended running `terraform plan` after importing a media asset. You can then decide if changes should be applied to the media asset, or the resource definition should be updated to align with the media asset. Also you can ignore changes as below. resource "huaweicloud_vod_media_asset" "test" {

...

lifecycle {

ignore_changes = [

url, input_bucket, input_path, output_bucket, output_path, storage_mode, template_group_name,

workflow_name, publish, auto_encrypt, auto_preload, review_template_id, thumbnail,

]

} }

func GetMediaAsset

func GetMediaAsset(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MediaAssetState, opts ...pulumi.ResourceOption) (*MediaAsset, error)

GetMediaAsset gets an existing MediaAsset 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 NewMediaAsset

func NewMediaAsset(ctx *pulumi.Context,
	name string, args *MediaAssetArgs, opts ...pulumi.ResourceOption) (*MediaAsset, error)

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

func (*MediaAsset) ElementType

func (*MediaAsset) ElementType() reflect.Type

func (*MediaAsset) ToMediaAssetOutput

func (i *MediaAsset) ToMediaAssetOutput() MediaAssetOutput

func (*MediaAsset) ToMediaAssetOutputWithContext

func (i *MediaAsset) ToMediaAssetOutputWithContext(ctx context.Context) MediaAssetOutput

type MediaAssetArgs

type MediaAssetArgs struct {
	// Specifies whether to automatically encrypt the media. If set to **true**,
	// `templateGroupName` must be specified, and the output format of transcoding is **HLS**. Defaults to: **false**.
	// Changing this creates a new resource.
	AutoEncrypt pulumi.BoolPtrInput
	// Specifies whether to automatically warm up the media to CDN. Defaults to: **false**.
	// Changing this creates a new resource.
	AutoPreload pulumi.BoolPtrInput
	// Specifies the category ID of the media asset. Default to: **-1**, which means the media
	// asset will be categorized into the 'Other' category of system presets.
	CategoryId pulumi.IntPtrInput
	// Specifies the media asset description, which contains a maximum of 1024 characters.
	Description pulumi.StringPtrInput
	// Specifies the OBS bucket name of media source file.
	// Either this field or `url` must be specified. Changing this creates a new resource.
	InputBucket pulumi.StringPtrInput
	// Specifies the media source file path in the OBS bucket.
	// Changing this creates a new resource.
	InputPath pulumi.StringPtrInput
	// Specifies the labels of the media asset, which contains a maximum of 16 labels
	// separated by commas.
	Labels pulumi.StringPtrInput
	// Specifies the media type. Valid values are: **MP4**, **TS**, **MOV**,
	// **MXF**, **MPG**, **FLV**, **WMV**, **AVI**, **M4V**, **F4V**, **MPEG**, **3GP**, **ASF**, **MKV**, **HLS**,
	// **M3U8**, **MP3**, **OGG**, **WAV**, **WMA**, **APE**, **FLAC**, **AAC**, **AC3**, **MMF**, **AMR**, **M4A**,
	// **M4R**, **WV**, **MP2**. Changing this creates a new resource.
	MediaType pulumi.StringInput
	// Specifies the media asset name, which contains a maximum of 128 characters.
	Name pulumi.StringPtrInput
	// Specifies the output OBS bucket name.
	// Changing this creates a new resource.
	OutputBucket pulumi.StringPtrInput
	// Specifies the output file path in the OBS bucket.
	// Changing this creates a new resource.
	OutputPath pulumi.StringPtrInput
	// Specifies whether to publish the media. Defaults to: **false**.
	Publish pulumi.BoolPtrInput
	// 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.StringPtrInput
	// Specifies the review template ID. Changing this creates a new resource.
	ReviewTemplateId pulumi.StringPtrInput
	// Specifies the storage mode. The value can be:
	// + **0**: copy the media file to VOD bucket.
	// + **1**: save the media file in user bucket.
	StorageMode pulumi.IntPtrInput
	// Specifies the transcoding template group name. If not empty,
	// the uploaded media will be transcoded with the specified transcoding template group. Changing this creates a new resource.
	TemplateGroupName pulumi.StringPtrInput
	// Specifies the review thumbnail configurations.
	// The object structure is documented below. Changing this creates a new resource.
	Thumbnail MediaAssetThumbnailPtrInput
	// Specifies the URL of media source file. Currently only http and https protocols
	// are supported. Either this field or `inputBucket` must be specified. Changing this creates a new resource.
	Url pulumi.StringPtrInput
	// Specifies the workflow name. If not empty, the uploaded media will be
	// processed with the specified workflow. Changing this creates a new resource.
	WorkflowName pulumi.StringPtrInput
}

The set of arguments for constructing a MediaAsset resource.

func (MediaAssetArgs) ElementType

func (MediaAssetArgs) ElementType() reflect.Type

type MediaAssetArray

type MediaAssetArray []MediaAssetInput

func (MediaAssetArray) ElementType

func (MediaAssetArray) ElementType() reflect.Type

func (MediaAssetArray) ToMediaAssetArrayOutput

func (i MediaAssetArray) ToMediaAssetArrayOutput() MediaAssetArrayOutput

func (MediaAssetArray) ToMediaAssetArrayOutputWithContext

func (i MediaAssetArray) ToMediaAssetArrayOutputWithContext(ctx context.Context) MediaAssetArrayOutput

type MediaAssetArrayInput

type MediaAssetArrayInput interface {
	pulumi.Input

	ToMediaAssetArrayOutput() MediaAssetArrayOutput
	ToMediaAssetArrayOutputWithContext(context.Context) MediaAssetArrayOutput
}

MediaAssetArrayInput is an input type that accepts MediaAssetArray and MediaAssetArrayOutput values. You can construct a concrete instance of `MediaAssetArrayInput` via:

MediaAssetArray{ MediaAssetArgs{...} }

type MediaAssetArrayOutput

type MediaAssetArrayOutput struct{ *pulumi.OutputState }

func (MediaAssetArrayOutput) ElementType

func (MediaAssetArrayOutput) ElementType() reflect.Type

func (MediaAssetArrayOutput) Index

func (MediaAssetArrayOutput) ToMediaAssetArrayOutput

func (o MediaAssetArrayOutput) ToMediaAssetArrayOutput() MediaAssetArrayOutput

func (MediaAssetArrayOutput) ToMediaAssetArrayOutputWithContext

func (o MediaAssetArrayOutput) ToMediaAssetArrayOutputWithContext(ctx context.Context) MediaAssetArrayOutput

type MediaAssetInput

type MediaAssetInput interface {
	pulumi.Input

	ToMediaAssetOutput() MediaAssetOutput
	ToMediaAssetOutputWithContext(ctx context.Context) MediaAssetOutput
}

type MediaAssetMap

type MediaAssetMap map[string]MediaAssetInput

func (MediaAssetMap) ElementType

func (MediaAssetMap) ElementType() reflect.Type

func (MediaAssetMap) ToMediaAssetMapOutput

func (i MediaAssetMap) ToMediaAssetMapOutput() MediaAssetMapOutput

func (MediaAssetMap) ToMediaAssetMapOutputWithContext

func (i MediaAssetMap) ToMediaAssetMapOutputWithContext(ctx context.Context) MediaAssetMapOutput

type MediaAssetMapInput

type MediaAssetMapInput interface {
	pulumi.Input

	ToMediaAssetMapOutput() MediaAssetMapOutput
	ToMediaAssetMapOutputWithContext(context.Context) MediaAssetMapOutput
}

MediaAssetMapInput is an input type that accepts MediaAssetMap and MediaAssetMapOutput values. You can construct a concrete instance of `MediaAssetMapInput` via:

MediaAssetMap{ "key": MediaAssetArgs{...} }

type MediaAssetMapOutput

type MediaAssetMapOutput struct{ *pulumi.OutputState }

func (MediaAssetMapOutput) ElementType

func (MediaAssetMapOutput) ElementType() reflect.Type

func (MediaAssetMapOutput) MapIndex

func (MediaAssetMapOutput) ToMediaAssetMapOutput

func (o MediaAssetMapOutput) ToMediaAssetMapOutput() MediaAssetMapOutput

func (MediaAssetMapOutput) ToMediaAssetMapOutputWithContext

func (o MediaAssetMapOutput) ToMediaAssetMapOutputWithContext(ctx context.Context) MediaAssetMapOutput

type MediaAssetOutput

type MediaAssetOutput struct{ *pulumi.OutputState }

func (MediaAssetOutput) AutoEncrypt

func (o MediaAssetOutput) AutoEncrypt() pulumi.BoolPtrOutput

Specifies whether to automatically encrypt the media. If set to **true**, `templateGroupName` must be specified, and the output format of transcoding is **HLS**. Defaults to: **false**. Changing this creates a new resource.

func (MediaAssetOutput) AutoPreload

func (o MediaAssetOutput) AutoPreload() pulumi.BoolPtrOutput

Specifies whether to automatically warm up the media to CDN. Defaults to: **false**. Changing this creates a new resource.

func (MediaAssetOutput) CategoryId

func (o MediaAssetOutput) CategoryId() pulumi.IntOutput

Specifies the category ID of the media asset. Default to: **-1**, which means the media asset will be categorized into the 'Other' category of system presets.

func (MediaAssetOutput) CategoryName

func (o MediaAssetOutput) CategoryName() pulumi.StringOutput

The category name of the media asset.

func (MediaAssetOutput) Description

func (o MediaAssetOutput) Description() pulumi.StringPtrOutput

Specifies the media asset description, which contains a maximum of 1024 characters.

func (MediaAssetOutput) ElementType

func (MediaAssetOutput) ElementType() reflect.Type

func (MediaAssetOutput) InputBucket

func (o MediaAssetOutput) InputBucket() pulumi.StringPtrOutput

Specifies the OBS bucket name of media source file. Either this field or `url` must be specified. Changing this creates a new resource.

func (MediaAssetOutput) InputPath

func (o MediaAssetOutput) InputPath() pulumi.StringPtrOutput

Specifies the media source file path in the OBS bucket. Changing this creates a new resource.

func (MediaAssetOutput) Labels

Specifies the labels of the media asset, which contains a maximum of 16 labels separated by commas.

func (MediaAssetOutput) MediaName

func (o MediaAssetOutput) MediaName() pulumi.StringOutput

The name of the media file.

func (MediaAssetOutput) MediaType

func (o MediaAssetOutput) MediaType() pulumi.StringOutput

Specifies the media type. Valid values are: **MP4**, **TS**, **MOV**, **MXF**, **MPG**, **FLV**, **WMV**, **AVI**, **M4V**, **F4V**, **MPEG**, **3GP**, **ASF**, **MKV**, **HLS**, **M3U8**, **MP3**, **OGG**, **WAV**, **WMA**, **APE**, **FLAC**, **AAC**, **AC3**, **MMF**, **AMR**, **M4A**, **M4R**, **WV**, **MP2**. Changing this creates a new resource.

func (MediaAssetOutput) MediaUrl

func (o MediaAssetOutput) MediaUrl() pulumi.StringOutput

The URL of original media file.

func (MediaAssetOutput) Name

Specifies the media asset name, which contains a maximum of 128 characters.

func (MediaAssetOutput) OutputBucket

func (o MediaAssetOutput) OutputBucket() pulumi.StringPtrOutput

Specifies the output OBS bucket name. Changing this creates a new resource.

func (MediaAssetOutput) OutputPath

func (o MediaAssetOutput) OutputPath() pulumi.StringPtrOutput

Specifies the output file path in the OBS bucket. Changing this creates a new resource.

func (MediaAssetOutput) Publish

Specifies whether to publish the media. Defaults to: **false**.

func (MediaAssetOutput) Region

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

func (MediaAssetOutput) ReviewTemplateId

func (o MediaAssetOutput) ReviewTemplateId() pulumi.StringPtrOutput

Specifies the review template ID. Changing this creates a new resource.

func (MediaAssetOutput) StorageMode

func (o MediaAssetOutput) StorageMode() pulumi.IntPtrOutput

Specifies the storage mode. The value can be: + **0**: copy the media file to VOD bucket. + **1**: save the media file in user bucket.

func (MediaAssetOutput) TemplateGroupName

func (o MediaAssetOutput) TemplateGroupName() pulumi.StringPtrOutput

Specifies the transcoding template group name. If not empty, the uploaded media will be transcoded with the specified transcoding template group. Changing this creates a new resource.

func (MediaAssetOutput) Thumbnail

Specifies the review thumbnail configurations. The object structure is documented below. Changing this creates a new resource.

func (MediaAssetOutput) ToMediaAssetOutput

func (o MediaAssetOutput) ToMediaAssetOutput() MediaAssetOutput

func (MediaAssetOutput) ToMediaAssetOutputWithContext

func (o MediaAssetOutput) ToMediaAssetOutputWithContext(ctx context.Context) MediaAssetOutput

func (MediaAssetOutput) Url

Specifies the URL of media source file. Currently only http and https protocols are supported. Either this field or `inputBucket` must be specified. Changing this creates a new resource.

func (MediaAssetOutput) WorkflowName

func (o MediaAssetOutput) WorkflowName() pulumi.StringPtrOutput

Specifies the workflow name. If not empty, the uploaded media will be processed with the specified workflow. Changing this creates a new resource.

type MediaAssetState

type MediaAssetState struct {
	// Specifies whether to automatically encrypt the media. If set to **true**,
	// `templateGroupName` must be specified, and the output format of transcoding is **HLS**. Defaults to: **false**.
	// Changing this creates a new resource.
	AutoEncrypt pulumi.BoolPtrInput
	// Specifies whether to automatically warm up the media to CDN. Defaults to: **false**.
	// Changing this creates a new resource.
	AutoPreload pulumi.BoolPtrInput
	// Specifies the category ID of the media asset. Default to: **-1**, which means the media
	// asset will be categorized into the 'Other' category of system presets.
	CategoryId pulumi.IntPtrInput
	// The category name of the media asset.
	CategoryName pulumi.StringPtrInput
	// Specifies the media asset description, which contains a maximum of 1024 characters.
	Description pulumi.StringPtrInput
	// Specifies the OBS bucket name of media source file.
	// Either this field or `url` must be specified. Changing this creates a new resource.
	InputBucket pulumi.StringPtrInput
	// Specifies the media source file path in the OBS bucket.
	// Changing this creates a new resource.
	InputPath pulumi.StringPtrInput
	// Specifies the labels of the media asset, which contains a maximum of 16 labels
	// separated by commas.
	Labels pulumi.StringPtrInput
	// The name of the media file.
	MediaName pulumi.StringPtrInput
	// Specifies the media type. Valid values are: **MP4**, **TS**, **MOV**,
	// **MXF**, **MPG**, **FLV**, **WMV**, **AVI**, **M4V**, **F4V**, **MPEG**, **3GP**, **ASF**, **MKV**, **HLS**,
	// **M3U8**, **MP3**, **OGG**, **WAV**, **WMA**, **APE**, **FLAC**, **AAC**, **AC3**, **MMF**, **AMR**, **M4A**,
	// **M4R**, **WV**, **MP2**. Changing this creates a new resource.
	MediaType pulumi.StringPtrInput
	// The URL of original media file.
	MediaUrl pulumi.StringPtrInput
	// Specifies the media asset name, which contains a maximum of 128 characters.
	Name pulumi.StringPtrInput
	// Specifies the output OBS bucket name.
	// Changing this creates a new resource.
	OutputBucket pulumi.StringPtrInput
	// Specifies the output file path in the OBS bucket.
	// Changing this creates a new resource.
	OutputPath pulumi.StringPtrInput
	// Specifies whether to publish the media. Defaults to: **false**.
	Publish pulumi.BoolPtrInput
	// 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.StringPtrInput
	// Specifies the review template ID. Changing this creates a new resource.
	ReviewTemplateId pulumi.StringPtrInput
	// Specifies the storage mode. The value can be:
	// + **0**: copy the media file to VOD bucket.
	// + **1**: save the media file in user bucket.
	StorageMode pulumi.IntPtrInput
	// Specifies the transcoding template group name. If not empty,
	// the uploaded media will be transcoded with the specified transcoding template group. Changing this creates a new resource.
	TemplateGroupName pulumi.StringPtrInput
	// Specifies the review thumbnail configurations.
	// The object structure is documented below. Changing this creates a new resource.
	Thumbnail MediaAssetThumbnailPtrInput
	// Specifies the URL of media source file. Currently only http and https protocols
	// are supported. Either this field or `inputBucket` must be specified. Changing this creates a new resource.
	Url pulumi.StringPtrInput
	// Specifies the workflow name. If not empty, the uploaded media will be
	// processed with the specified workflow. Changing this creates a new resource.
	WorkflowName pulumi.StringPtrInput
}

func (MediaAssetState) ElementType

func (MediaAssetState) ElementType() reflect.Type

type MediaAssetThumbnail

type MediaAssetThumbnail struct {
	// Specifies the screenshot aspect ratio. The value can be:
	// + **0**: adaptive (maintain the original aspect ratio).
	// + **1**: 16:9.
	AspectRatio *int `pulumi:"aspectRatio"`
	// Specifies the number of screenshots as the cover. Defaults to: **1**.
	// Changing this creates a new resource.
	CoverPosition *int `pulumi:"coverPosition"`
	// Specifies an array of time points of screenshot. Required when `type` is **dots**.
	// Changing this creates a new resource.
	Dots []int `pulumi:"dots"`
	// Specifies the screenshot file format. Currently, only **1** (jpg) is supported.
	// Defaults to: **1**. Changing this creates a new resource.
	Format *int `pulumi:"format"`
	// Specifies the size of the longest side of the screenshot. Unit: pixel.
	// The width dimension is calculated by scaling the dimension proportional to the original video pixels.
	// Changing this creates a new resource.
	MaxLength *int `pulumi:"maxLength"`
	// Specifies the screenshot time interval (unit: second). The value range is 1 to 12.
	// Required when `type` is **time**. Changing this creates a new resource.
	Time *int `pulumi:"time"`
	// Specifies the screenshot type. Valid values are: **time** and **dots**.
	// Changing this creates a new resource.
	Type string `pulumi:"type"`
}

type MediaAssetThumbnailArgs

type MediaAssetThumbnailArgs struct {
	// Specifies the screenshot aspect ratio. The value can be:
	// + **0**: adaptive (maintain the original aspect ratio).
	// + **1**: 16:9.
	AspectRatio pulumi.IntPtrInput `pulumi:"aspectRatio"`
	// Specifies the number of screenshots as the cover. Defaults to: **1**.
	// Changing this creates a new resource.
	CoverPosition pulumi.IntPtrInput `pulumi:"coverPosition"`
	// Specifies an array of time points of screenshot. Required when `type` is **dots**.
	// Changing this creates a new resource.
	Dots pulumi.IntArrayInput `pulumi:"dots"`
	// Specifies the screenshot file format. Currently, only **1** (jpg) is supported.
	// Defaults to: **1**. Changing this creates a new resource.
	Format pulumi.IntPtrInput `pulumi:"format"`
	// Specifies the size of the longest side of the screenshot. Unit: pixel.
	// The width dimension is calculated by scaling the dimension proportional to the original video pixels.
	// Changing this creates a new resource.
	MaxLength pulumi.IntPtrInput `pulumi:"maxLength"`
	// Specifies the screenshot time interval (unit: second). The value range is 1 to 12.
	// Required when `type` is **time**. Changing this creates a new resource.
	Time pulumi.IntPtrInput `pulumi:"time"`
	// Specifies the screenshot type. Valid values are: **time** and **dots**.
	// Changing this creates a new resource.
	Type pulumi.StringInput `pulumi:"type"`
}

func (MediaAssetThumbnailArgs) ElementType

func (MediaAssetThumbnailArgs) ElementType() reflect.Type

func (MediaAssetThumbnailArgs) ToMediaAssetThumbnailOutput

func (i MediaAssetThumbnailArgs) ToMediaAssetThumbnailOutput() MediaAssetThumbnailOutput

func (MediaAssetThumbnailArgs) ToMediaAssetThumbnailOutputWithContext

func (i MediaAssetThumbnailArgs) ToMediaAssetThumbnailOutputWithContext(ctx context.Context) MediaAssetThumbnailOutput

func (MediaAssetThumbnailArgs) ToMediaAssetThumbnailPtrOutput

func (i MediaAssetThumbnailArgs) ToMediaAssetThumbnailPtrOutput() MediaAssetThumbnailPtrOutput

func (MediaAssetThumbnailArgs) ToMediaAssetThumbnailPtrOutputWithContext

func (i MediaAssetThumbnailArgs) ToMediaAssetThumbnailPtrOutputWithContext(ctx context.Context) MediaAssetThumbnailPtrOutput

type MediaAssetThumbnailInput

type MediaAssetThumbnailInput interface {
	pulumi.Input

	ToMediaAssetThumbnailOutput() MediaAssetThumbnailOutput
	ToMediaAssetThumbnailOutputWithContext(context.Context) MediaAssetThumbnailOutput
}

MediaAssetThumbnailInput is an input type that accepts MediaAssetThumbnailArgs and MediaAssetThumbnailOutput values. You can construct a concrete instance of `MediaAssetThumbnailInput` via:

MediaAssetThumbnailArgs{...}

type MediaAssetThumbnailOutput

type MediaAssetThumbnailOutput struct{ *pulumi.OutputState }

func (MediaAssetThumbnailOutput) AspectRatio

Specifies the screenshot aspect ratio. The value can be: + **0**: adaptive (maintain the original aspect ratio). + **1**: 16:9.

func (MediaAssetThumbnailOutput) CoverPosition

func (o MediaAssetThumbnailOutput) CoverPosition() pulumi.IntPtrOutput

Specifies the number of screenshots as the cover. Defaults to: **1**. Changing this creates a new resource.

func (MediaAssetThumbnailOutput) Dots

Specifies an array of time points of screenshot. Required when `type` is **dots**. Changing this creates a new resource.

func (MediaAssetThumbnailOutput) ElementType

func (MediaAssetThumbnailOutput) ElementType() reflect.Type

func (MediaAssetThumbnailOutput) Format

Specifies the screenshot file format. Currently, only **1** (jpg) is supported. Defaults to: **1**. Changing this creates a new resource.

func (MediaAssetThumbnailOutput) MaxLength

Specifies the size of the longest side of the screenshot. Unit: pixel. The width dimension is calculated by scaling the dimension proportional to the original video pixels. Changing this creates a new resource.

func (MediaAssetThumbnailOutput) Time

Specifies the screenshot time interval (unit: second). The value range is 1 to 12. Required when `type` is **time**. Changing this creates a new resource.

func (MediaAssetThumbnailOutput) ToMediaAssetThumbnailOutput

func (o MediaAssetThumbnailOutput) ToMediaAssetThumbnailOutput() MediaAssetThumbnailOutput

func (MediaAssetThumbnailOutput) ToMediaAssetThumbnailOutputWithContext

func (o MediaAssetThumbnailOutput) ToMediaAssetThumbnailOutputWithContext(ctx context.Context) MediaAssetThumbnailOutput

func (MediaAssetThumbnailOutput) ToMediaAssetThumbnailPtrOutput

func (o MediaAssetThumbnailOutput) ToMediaAssetThumbnailPtrOutput() MediaAssetThumbnailPtrOutput

func (MediaAssetThumbnailOutput) ToMediaAssetThumbnailPtrOutputWithContext

func (o MediaAssetThumbnailOutput) ToMediaAssetThumbnailPtrOutputWithContext(ctx context.Context) MediaAssetThumbnailPtrOutput

func (MediaAssetThumbnailOutput) Type

Specifies the screenshot type. Valid values are: **time** and **dots**. Changing this creates a new resource.

type MediaAssetThumbnailPtrInput

type MediaAssetThumbnailPtrInput interface {
	pulumi.Input

	ToMediaAssetThumbnailPtrOutput() MediaAssetThumbnailPtrOutput
	ToMediaAssetThumbnailPtrOutputWithContext(context.Context) MediaAssetThumbnailPtrOutput
}

MediaAssetThumbnailPtrInput is an input type that accepts MediaAssetThumbnailArgs, MediaAssetThumbnailPtr and MediaAssetThumbnailPtrOutput values. You can construct a concrete instance of `MediaAssetThumbnailPtrInput` via:

        MediaAssetThumbnailArgs{...}

or:

        nil

type MediaAssetThumbnailPtrOutput

type MediaAssetThumbnailPtrOutput struct{ *pulumi.OutputState }

func (MediaAssetThumbnailPtrOutput) AspectRatio

Specifies the screenshot aspect ratio. The value can be: + **0**: adaptive (maintain the original aspect ratio). + **1**: 16:9.

func (MediaAssetThumbnailPtrOutput) CoverPosition

Specifies the number of screenshots as the cover. Defaults to: **1**. Changing this creates a new resource.

func (MediaAssetThumbnailPtrOutput) Dots

Specifies an array of time points of screenshot. Required when `type` is **dots**. Changing this creates a new resource.

func (MediaAssetThumbnailPtrOutput) Elem

func (MediaAssetThumbnailPtrOutput) ElementType

func (MediaAssetThumbnailPtrOutput) Format

Specifies the screenshot file format. Currently, only **1** (jpg) is supported. Defaults to: **1**. Changing this creates a new resource.

func (MediaAssetThumbnailPtrOutput) MaxLength

Specifies the size of the longest side of the screenshot. Unit: pixel. The width dimension is calculated by scaling the dimension proportional to the original video pixels. Changing this creates a new resource.

func (MediaAssetThumbnailPtrOutput) Time

Specifies the screenshot time interval (unit: second). The value range is 1 to 12. Required when `type` is **time**. Changing this creates a new resource.

func (MediaAssetThumbnailPtrOutput) ToMediaAssetThumbnailPtrOutput

func (o MediaAssetThumbnailPtrOutput) ToMediaAssetThumbnailPtrOutput() MediaAssetThumbnailPtrOutput

func (MediaAssetThumbnailPtrOutput) ToMediaAssetThumbnailPtrOutputWithContext

func (o MediaAssetThumbnailPtrOutput) ToMediaAssetThumbnailPtrOutputWithContext(ctx context.Context) MediaAssetThumbnailPtrOutput

func (MediaAssetThumbnailPtrOutput) Type

Specifies the screenshot type. Valid values are: **time** and **dots**. Changing this creates a new resource.

type MediaCategory

type MediaCategory struct {
	pulumi.CustomResourceState

	// The json string of subcategory information. It supports up to 3 levels of categories,
	// and each category supports up to 128 subcategories.
	Children pulumi.StringOutput `pulumi:"children"`
	// Specifies the category name, which contains a maximum of 64 characters.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the parent category ID. If this parameter is left blank,
	// the root category is generated by default. The root category ID is "0". Changing this creates a new resource.
	ParentId pulumi.StringPtrOutput `pulumi:"parentId"`
	// 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.StringOutput `pulumi:"region"`
}

Manages a VOD media category resource within HuaweiCloud.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Vod.NewMediaCategory(ctx, "test", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The category can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Vod/mediaCategory:MediaCategory test 132945

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`parent_id`. It is generally recommended running `terraform plan` after importing a media category. You can then decide if changes should be applied to the media category, or the resource definition should be updated to align with the media category. Also you can ignore changes as below. resource "huaweicloud_vod_media_category" "test" {

...

lifecycle {

ignore_changes = [

parent_id,

]

} }

func GetMediaCategory

func GetMediaCategory(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MediaCategoryState, opts ...pulumi.ResourceOption) (*MediaCategory, error)

GetMediaCategory gets an existing MediaCategory 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 NewMediaCategory

func NewMediaCategory(ctx *pulumi.Context,
	name string, args *MediaCategoryArgs, opts ...pulumi.ResourceOption) (*MediaCategory, error)

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

func (*MediaCategory) ElementType

func (*MediaCategory) ElementType() reflect.Type

func (*MediaCategory) ToMediaCategoryOutput

func (i *MediaCategory) ToMediaCategoryOutput() MediaCategoryOutput

func (*MediaCategory) ToMediaCategoryOutputWithContext

func (i *MediaCategory) ToMediaCategoryOutputWithContext(ctx context.Context) MediaCategoryOutput

type MediaCategoryArgs

type MediaCategoryArgs struct {
	// Specifies the category name, which contains a maximum of 64 characters.
	Name pulumi.StringPtrInput
	// Specifies the parent category ID. If this parameter is left blank,
	// the root category is generated by default. The root category ID is "0". Changing this creates a new resource.
	ParentId pulumi.StringPtrInput
	// 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.StringPtrInput
}

The set of arguments for constructing a MediaCategory resource.

func (MediaCategoryArgs) ElementType

func (MediaCategoryArgs) ElementType() reflect.Type

type MediaCategoryArray

type MediaCategoryArray []MediaCategoryInput

func (MediaCategoryArray) ElementType

func (MediaCategoryArray) ElementType() reflect.Type

func (MediaCategoryArray) ToMediaCategoryArrayOutput

func (i MediaCategoryArray) ToMediaCategoryArrayOutput() MediaCategoryArrayOutput

func (MediaCategoryArray) ToMediaCategoryArrayOutputWithContext

func (i MediaCategoryArray) ToMediaCategoryArrayOutputWithContext(ctx context.Context) MediaCategoryArrayOutput

type MediaCategoryArrayInput

type MediaCategoryArrayInput interface {
	pulumi.Input

	ToMediaCategoryArrayOutput() MediaCategoryArrayOutput
	ToMediaCategoryArrayOutputWithContext(context.Context) MediaCategoryArrayOutput
}

MediaCategoryArrayInput is an input type that accepts MediaCategoryArray and MediaCategoryArrayOutput values. You can construct a concrete instance of `MediaCategoryArrayInput` via:

MediaCategoryArray{ MediaCategoryArgs{...} }

type MediaCategoryArrayOutput

type MediaCategoryArrayOutput struct{ *pulumi.OutputState }

func (MediaCategoryArrayOutput) ElementType

func (MediaCategoryArrayOutput) ElementType() reflect.Type

func (MediaCategoryArrayOutput) Index

func (MediaCategoryArrayOutput) ToMediaCategoryArrayOutput

func (o MediaCategoryArrayOutput) ToMediaCategoryArrayOutput() MediaCategoryArrayOutput

func (MediaCategoryArrayOutput) ToMediaCategoryArrayOutputWithContext

func (o MediaCategoryArrayOutput) ToMediaCategoryArrayOutputWithContext(ctx context.Context) MediaCategoryArrayOutput

type MediaCategoryInput

type MediaCategoryInput interface {
	pulumi.Input

	ToMediaCategoryOutput() MediaCategoryOutput
	ToMediaCategoryOutputWithContext(ctx context.Context) MediaCategoryOutput
}

type MediaCategoryMap

type MediaCategoryMap map[string]MediaCategoryInput

func (MediaCategoryMap) ElementType

func (MediaCategoryMap) ElementType() reflect.Type

func (MediaCategoryMap) ToMediaCategoryMapOutput

func (i MediaCategoryMap) ToMediaCategoryMapOutput() MediaCategoryMapOutput

func (MediaCategoryMap) ToMediaCategoryMapOutputWithContext

func (i MediaCategoryMap) ToMediaCategoryMapOutputWithContext(ctx context.Context) MediaCategoryMapOutput

type MediaCategoryMapInput

type MediaCategoryMapInput interface {
	pulumi.Input

	ToMediaCategoryMapOutput() MediaCategoryMapOutput
	ToMediaCategoryMapOutputWithContext(context.Context) MediaCategoryMapOutput
}

MediaCategoryMapInput is an input type that accepts MediaCategoryMap and MediaCategoryMapOutput values. You can construct a concrete instance of `MediaCategoryMapInput` via:

MediaCategoryMap{ "key": MediaCategoryArgs{...} }

type MediaCategoryMapOutput

type MediaCategoryMapOutput struct{ *pulumi.OutputState }

func (MediaCategoryMapOutput) ElementType

func (MediaCategoryMapOutput) ElementType() reflect.Type

func (MediaCategoryMapOutput) MapIndex

func (MediaCategoryMapOutput) ToMediaCategoryMapOutput

func (o MediaCategoryMapOutput) ToMediaCategoryMapOutput() MediaCategoryMapOutput

func (MediaCategoryMapOutput) ToMediaCategoryMapOutputWithContext

func (o MediaCategoryMapOutput) ToMediaCategoryMapOutputWithContext(ctx context.Context) MediaCategoryMapOutput

type MediaCategoryOutput

type MediaCategoryOutput struct{ *pulumi.OutputState }

func (MediaCategoryOutput) Children

The json string of subcategory information. It supports up to 3 levels of categories, and each category supports up to 128 subcategories.

func (MediaCategoryOutput) ElementType

func (MediaCategoryOutput) ElementType() reflect.Type

func (MediaCategoryOutput) Name

Specifies the category name, which contains a maximum of 64 characters.

func (MediaCategoryOutput) ParentId

Specifies the parent category ID. If this parameter is left blank, the root category is generated by default. The root category ID is "0". Changing this creates a new resource.

func (MediaCategoryOutput) Region

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

func (MediaCategoryOutput) ToMediaCategoryOutput

func (o MediaCategoryOutput) ToMediaCategoryOutput() MediaCategoryOutput

func (MediaCategoryOutput) ToMediaCategoryOutputWithContext

func (o MediaCategoryOutput) ToMediaCategoryOutputWithContext(ctx context.Context) MediaCategoryOutput

type MediaCategoryState

type MediaCategoryState struct {
	// The json string of subcategory information. It supports up to 3 levels of categories,
	// and each category supports up to 128 subcategories.
	Children pulumi.StringPtrInput
	// Specifies the category name, which contains a maximum of 64 characters.
	Name pulumi.StringPtrInput
	// Specifies the parent category ID. If this parameter is left blank,
	// the root category is generated by default. The root category ID is "0". Changing this creates a new resource.
	ParentId pulumi.StringPtrInput
	// 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.StringPtrInput
}

func (MediaCategoryState) ElementType

func (MediaCategoryState) ElementType() reflect.Type

type TranscodingTemplateGroup

type TranscodingTemplateGroup struct {
	pulumi.CustomResourceState

	// Specifies the audio codec. The value can be: **AAC** and **HEAAC1**.
	// Defaults to: **AAC**.
	AudioCodec pulumi.StringOutput `pulumi:"audioCodec"`
	// 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.BoolPtrOutput `pulumi:"autoEncrypt"`
	// Specifies the description of the template group.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// 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.IntOutput `pulumi:"hlsSegmentDuration"`
	// Specifies whether to use this group as default group. Defaults to: **false**.
	IsDefault pulumi.BoolPtrOutput `pulumi:"isDefault"`
	// Specifies whether to enable low bitrate HD. Defaults to: **false**.
	LowBitrateHd pulumi.BoolPtrOutput `pulumi:"lowBitrateHd"`
	// 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.StringOutput `pulumi:"name"`
	// Specifies the quality info list of the template group.
	// The object structure is documented below.
	QualityInfos TranscodingTemplateGroupQualityInfoArrayOutput `pulumi:"qualityInfos"`
	// 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.StringOutput `pulumi:"region"`
	// Indicates the type of the template group.
	Type pulumi.StringOutput `pulumi:"type"`
	// Specifies the video codec. The value can be: **H264** and **H265**.
	// Defaults to: **H264**.
	VideoCodec pulumi.StringOutput `pulumi:"videoCodec"`
	// Specifies the list of the watermark template IDs.
	WatermarkTemplateIds pulumi.StringArrayOutput `pulumi:"watermarkTemplateIds"`
}

Manages a VOD transcoding template group resource within HuaweiCloud.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Vod.NewTranscodingTemplateGroup(ctx, "test", &Vod.TranscodingTemplateGroupArgs{
			AudioCodec:         pulumi.String("AAC"),
			Description:        pulumi.String("test group"),
			HlsSegmentDuration: pulumi.Int(5),
			LowBitrateHd:       pulumi.Bool(false),
			QualityInfos: vod.TranscodingTemplateGroupQualityInfoArray{
				&vod.TranscodingTemplateGroupQualityInfoArgs{
					Audio: &vod.TranscodingTemplateGroupQualityInfoAudioArgs{
						Bitrate:    pulumi.Int(0),
						Channels:   pulumi.Int(2),
						SampleRate: pulumi.Int(1),
					},
					OutputFormat: pulumi.String("HLS"),
					Video: &vod.TranscodingTemplateGroupQualityInfoVideoArgs{
						Bitrate:   pulumi.Int(1000),
						FrameRate: pulumi.Int(1),
						Height:    pulumi.Int(720),
						Quality:   pulumi.String("HD"),
						Width:     pulumi.Int(1280),
					},
				},
			},
			VideoCodec: pulumi.String("H264"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import huaweicloud:Vod/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 codec. The value can be: **AAC** and **HEAAC1**.
	// Defaults to: **AAC**.
	AudioCodec pulumi.StringPtrInput
	// 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.BoolPtrInput
	// Specifies the description of the template group.
	Description pulumi.StringPtrInput
	// 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.IntPtrInput
	// Specifies whether to use this group as default group. Defaults to: **false**.
	IsDefault pulumi.BoolPtrInput
	// Specifies whether to enable low bitrate HD. Defaults to: **false**.
	LowBitrateHd pulumi.BoolPtrInput
	// 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.StringPtrInput
	// Specifies the quality info list of the template group.
	// The object structure is documented below.
	QualityInfos TranscodingTemplateGroupQualityInfoArrayInput
	// 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.StringPtrInput
	// Specifies the video codec. The value can be: **H264** and **H265**.
	// Defaults to: **H264**.
	VideoCodec pulumi.StringPtrInput
	// Specifies the list of the watermark template IDs.
	WatermarkTemplateIds pulumi.StringArrayInput
}

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 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) AudioCodec

Specifies the audio codec. The value can be: **AAC** and **HEAAC1**. Defaults to: **AAC**.

func (TranscodingTemplateGroupOutput) AutoEncrypt

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**.

func (TranscodingTemplateGroupOutput) Description

Specifies the description of the template group.

func (TranscodingTemplateGroupOutput) ElementType

func (TranscodingTemplateGroupOutput) HlsSegmentDuration

func (o TranscodingTemplateGroupOutput) HlsSegmentDuration() pulumi.IntOutput

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**.

func (TranscodingTemplateGroupOutput) IsDefault

Specifies whether to use this group as default group. Defaults to: **false**.

func (TranscodingTemplateGroupOutput) LowBitrateHd

Specifies whether to enable low bitrate HD. Defaults to: **false**.

func (TranscodingTemplateGroupOutput) Name

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 (_).

func (TranscodingTemplateGroupOutput) QualityInfos

Specifies the quality info list of the template group. The object structure is documented below.

func (TranscodingTemplateGroupOutput) Region

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

func (TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutput

func (o TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutput() TranscodingTemplateGroupOutput

func (TranscodingTemplateGroupOutput) ToTranscodingTemplateGroupOutputWithContext

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

func (TranscodingTemplateGroupOutput) Type

Indicates the type of the template group.

func (TranscodingTemplateGroupOutput) VideoCodec

Specifies the video codec. The value can be: **H264** and **H265**. Defaults to: **H264**.

func (TranscodingTemplateGroupOutput) WatermarkTemplateIds

func (o TranscodingTemplateGroupOutput) WatermarkTemplateIds() pulumi.StringArrayOutput

Specifies the list of the watermark template IDs.

type TranscodingTemplateGroupQualityInfo

type TranscodingTemplateGroupQualityInfo struct {
	// Specifies the audio configurations.
	// The object structure is documented below.
	Audio *TranscodingTemplateGroupQualityInfoAudio `pulumi:"audio"`
	// Specifies the output format. The value can be: **HLS**, **MP4**, **DASH**,
	// **DASH_HLS**, **MP3** and **ADTS**.
	OutputFormat string `pulumi:"outputFormat"`
	// Specifies the video configurations.
	// The object structure is documented below.
	Video *TranscodingTemplateGroupQualityInfoVideo `pulumi:"video"`
}

type TranscodingTemplateGroupQualityInfoArgs

type TranscodingTemplateGroupQualityInfoArgs struct {
	// Specifies the audio configurations.
	// The object structure is documented below.
	Audio TranscodingTemplateGroupQualityInfoAudioPtrInput `pulumi:"audio"`
	// Specifies the output format. The value can be: **HLS**, **MP4**, **DASH**,
	// **DASH_HLS**, **MP3** and **ADTS**.
	OutputFormat pulumi.StringInput `pulumi:"outputFormat"`
	// Specifies the video configurations.
	// The object structure is documented below.
	Video TranscodingTemplateGroupQualityInfoVideoPtrInput `pulumi:"video"`
}

func (TranscodingTemplateGroupQualityInfoArgs) ElementType

func (TranscodingTemplateGroupQualityInfoArgs) ToTranscodingTemplateGroupQualityInfoOutput

func (i TranscodingTemplateGroupQualityInfoArgs) ToTranscodingTemplateGroupQualityInfoOutput() TranscodingTemplateGroupQualityInfoOutput

func (TranscodingTemplateGroupQualityInfoArgs) ToTranscodingTemplateGroupQualityInfoOutputWithContext

func (i TranscodingTemplateGroupQualityInfoArgs) ToTranscodingTemplateGroupQualityInfoOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoOutput

type TranscodingTemplateGroupQualityInfoArray

type TranscodingTemplateGroupQualityInfoArray []TranscodingTemplateGroupQualityInfoInput

func (TranscodingTemplateGroupQualityInfoArray) ElementType

func (TranscodingTemplateGroupQualityInfoArray) ToTranscodingTemplateGroupQualityInfoArrayOutput

func (i TranscodingTemplateGroupQualityInfoArray) ToTranscodingTemplateGroupQualityInfoArrayOutput() TranscodingTemplateGroupQualityInfoArrayOutput

func (TranscodingTemplateGroupQualityInfoArray) ToTranscodingTemplateGroupQualityInfoArrayOutputWithContext

func (i TranscodingTemplateGroupQualityInfoArray) ToTranscodingTemplateGroupQualityInfoArrayOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoArrayOutput

type TranscodingTemplateGroupQualityInfoArrayInput

type TranscodingTemplateGroupQualityInfoArrayInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupQualityInfoArrayOutput() TranscodingTemplateGroupQualityInfoArrayOutput
	ToTranscodingTemplateGroupQualityInfoArrayOutputWithContext(context.Context) TranscodingTemplateGroupQualityInfoArrayOutput
}

TranscodingTemplateGroupQualityInfoArrayInput is an input type that accepts TranscodingTemplateGroupQualityInfoArray and TranscodingTemplateGroupQualityInfoArrayOutput values. You can construct a concrete instance of `TranscodingTemplateGroupQualityInfoArrayInput` via:

TranscodingTemplateGroupQualityInfoArray{ TranscodingTemplateGroupQualityInfoArgs{...} }

type TranscodingTemplateGroupQualityInfoArrayOutput

type TranscodingTemplateGroupQualityInfoArrayOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupQualityInfoArrayOutput) ElementType

func (TranscodingTemplateGroupQualityInfoArrayOutput) Index

func (TranscodingTemplateGroupQualityInfoArrayOutput) ToTranscodingTemplateGroupQualityInfoArrayOutput

func (o TranscodingTemplateGroupQualityInfoArrayOutput) ToTranscodingTemplateGroupQualityInfoArrayOutput() TranscodingTemplateGroupQualityInfoArrayOutput

func (TranscodingTemplateGroupQualityInfoArrayOutput) ToTranscodingTemplateGroupQualityInfoArrayOutputWithContext

func (o TranscodingTemplateGroupQualityInfoArrayOutput) ToTranscodingTemplateGroupQualityInfoArrayOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoArrayOutput

type TranscodingTemplateGroupQualityInfoAudio

type TranscodingTemplateGroupQualityInfoAudio struct {
	// Specifies the audio bitrate. The value can be **0** or range from
	// **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.
	Bitrate *int `pulumi:"bitrate"`
	// Specifies the audio channels. The value can be:
	// + **1**: Mono
	// + **2**: Stereo
	Channels int `pulumi:"channels"`
	// Specifies the audio sample rate. The value can be:
	// + **1**: AUTO
	// + **2**: 22,050 Hz
	// + **3**: 32,000 Hz
	// + **4**: 44,100 Hz
	// + **5**: 48,000 Hz
	// + **6**: 96,000 Hz
	SampleRate int `pulumi:"sampleRate"`
}

type TranscodingTemplateGroupQualityInfoAudioArgs

type TranscodingTemplateGroupQualityInfoAudioArgs struct {
	// Specifies the audio bitrate. The value can be **0** or range from
	// **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.
	Bitrate pulumi.IntPtrInput `pulumi:"bitrate"`
	// Specifies the audio channels. The value can be:
	// + **1**: Mono
	// + **2**: Stereo
	Channels pulumi.IntInput `pulumi:"channels"`
	// Specifies the audio sample rate. The value can be:
	// + **1**: AUTO
	// + **2**: 22,050 Hz
	// + **3**: 32,000 Hz
	// + **4**: 44,100 Hz
	// + **5**: 48,000 Hz
	// + **6**: 96,000 Hz
	SampleRate pulumi.IntInput `pulumi:"sampleRate"`
}

func (TranscodingTemplateGroupQualityInfoAudioArgs) ElementType

func (TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioOutput

func (i TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioOutput() TranscodingTemplateGroupQualityInfoAudioOutput

func (TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioOutputWithContext

func (i TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoAudioOutput

func (TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioPtrOutput

func (i TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioPtrOutput() TranscodingTemplateGroupQualityInfoAudioPtrOutput

func (TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext

func (i TranscodingTemplateGroupQualityInfoAudioArgs) ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoAudioPtrOutput

type TranscodingTemplateGroupQualityInfoAudioInput

type TranscodingTemplateGroupQualityInfoAudioInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupQualityInfoAudioOutput() TranscodingTemplateGroupQualityInfoAudioOutput
	ToTranscodingTemplateGroupQualityInfoAudioOutputWithContext(context.Context) TranscodingTemplateGroupQualityInfoAudioOutput
}

TranscodingTemplateGroupQualityInfoAudioInput is an input type that accepts TranscodingTemplateGroupQualityInfoAudioArgs and TranscodingTemplateGroupQualityInfoAudioOutput values. You can construct a concrete instance of `TranscodingTemplateGroupQualityInfoAudioInput` via:

TranscodingTemplateGroupQualityInfoAudioArgs{...}

type TranscodingTemplateGroupQualityInfoAudioOutput

type TranscodingTemplateGroupQualityInfoAudioOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupQualityInfoAudioOutput) Bitrate

Specifies the audio bitrate. The value can be **0** or range from **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.

func (TranscodingTemplateGroupQualityInfoAudioOutput) Channels

Specifies the audio channels. The value can be: + **1**: Mono + **2**: Stereo

func (TranscodingTemplateGroupQualityInfoAudioOutput) ElementType

func (TranscodingTemplateGroupQualityInfoAudioOutput) SampleRate

Specifies the audio sample rate. The value can be: + **1**: AUTO + **2**: 22,050 Hz + **3**: 32,000 Hz + **4**: 44,100 Hz + **5**: 48,000 Hz + **6**: 96,000 Hz

func (TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioOutput

func (o TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioOutput() TranscodingTemplateGroupQualityInfoAudioOutput

func (TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioOutputWithContext

func (o TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoAudioOutput

func (TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutput

func (o TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutput() TranscodingTemplateGroupQualityInfoAudioPtrOutput

func (TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext

func (o TranscodingTemplateGroupQualityInfoAudioOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoAudioPtrOutput

type TranscodingTemplateGroupQualityInfoAudioPtrInput

type TranscodingTemplateGroupQualityInfoAudioPtrInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupQualityInfoAudioPtrOutput() TranscodingTemplateGroupQualityInfoAudioPtrOutput
	ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext(context.Context) TranscodingTemplateGroupQualityInfoAudioPtrOutput
}

TranscodingTemplateGroupQualityInfoAudioPtrInput is an input type that accepts TranscodingTemplateGroupQualityInfoAudioArgs, TranscodingTemplateGroupQualityInfoAudioPtr and TranscodingTemplateGroupQualityInfoAudioPtrOutput values. You can construct a concrete instance of `TranscodingTemplateGroupQualityInfoAudioPtrInput` via:

        TranscodingTemplateGroupQualityInfoAudioArgs{...}

or:

        nil

type TranscodingTemplateGroupQualityInfoAudioPtrOutput

type TranscodingTemplateGroupQualityInfoAudioPtrOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) Bitrate

Specifies the audio bitrate. The value can be **0** or range from **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) Channels

Specifies the audio channels. The value can be: + **1**: Mono + **2**: Stereo

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) Elem

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) ElementType

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) SampleRate

Specifies the audio sample rate. The value can be: + **1**: AUTO + **2**: 22,050 Hz + **3**: 32,000 Hz + **4**: 44,100 Hz + **5**: 48,000 Hz + **6**: 96,000 Hz

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutput

func (o TranscodingTemplateGroupQualityInfoAudioPtrOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutput() TranscodingTemplateGroupQualityInfoAudioPtrOutput

func (TranscodingTemplateGroupQualityInfoAudioPtrOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext

func (o TranscodingTemplateGroupQualityInfoAudioPtrOutput) ToTranscodingTemplateGroupQualityInfoAudioPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoAudioPtrOutput

type TranscodingTemplateGroupQualityInfoInput

type TranscodingTemplateGroupQualityInfoInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupQualityInfoOutput() TranscodingTemplateGroupQualityInfoOutput
	ToTranscodingTemplateGroupQualityInfoOutputWithContext(context.Context) TranscodingTemplateGroupQualityInfoOutput
}

TranscodingTemplateGroupQualityInfoInput is an input type that accepts TranscodingTemplateGroupQualityInfoArgs and TranscodingTemplateGroupQualityInfoOutput values. You can construct a concrete instance of `TranscodingTemplateGroupQualityInfoInput` via:

TranscodingTemplateGroupQualityInfoArgs{...}

type TranscodingTemplateGroupQualityInfoOutput

type TranscodingTemplateGroupQualityInfoOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupQualityInfoOutput) Audio

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

func (TranscodingTemplateGroupQualityInfoOutput) ElementType

func (TranscodingTemplateGroupQualityInfoOutput) OutputFormat

Specifies the output format. The value can be: **HLS**, **MP4**, **DASH**, **DASH_HLS**, **MP3** and **ADTS**.

func (TranscodingTemplateGroupQualityInfoOutput) ToTranscodingTemplateGroupQualityInfoOutput

func (o TranscodingTemplateGroupQualityInfoOutput) ToTranscodingTemplateGroupQualityInfoOutput() TranscodingTemplateGroupQualityInfoOutput

func (TranscodingTemplateGroupQualityInfoOutput) ToTranscodingTemplateGroupQualityInfoOutputWithContext

func (o TranscodingTemplateGroupQualityInfoOutput) ToTranscodingTemplateGroupQualityInfoOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoOutput

func (TranscodingTemplateGroupQualityInfoOutput) Video

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

type TranscodingTemplateGroupQualityInfoVideo

type TranscodingTemplateGroupQualityInfoVideo struct {
	// Specifies the audio bitrate. The value can be **0** or range from
	// **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.
	Bitrate *int `pulumi:"bitrate"`
	// Specifies the video frame rate. The value ranges from **1** to **75**.
	// Defaults to: **1**. If set to **1**, the frame rate of the transcoded video is the same as that of the
	// untransocded video.
	FrameRate *int `pulumi:"frameRate"`
	// Specifies the video height. The value can be **0** or range from **128** to **2160**.
	// Defaults to: **0**. If set to **0**, the system will automatically adjust the `height` according to the `width`.
	Height *int `pulumi:"height"`
	// Specifies the video quality.
	// The value can be: **4K**, **2K**, **FHD**, **SD**, **LD** and **HD**.
	Quality string `pulumi:"quality"`
	// Specifies the video width. The value can be **0** or range from **128** to **3840**.
	// Defaults to: **0**. If set to **0**, the system will automatically adjust the `width` according to the `height`.
	Width *int `pulumi:"width"`
}

type TranscodingTemplateGroupQualityInfoVideoArgs

type TranscodingTemplateGroupQualityInfoVideoArgs struct {
	// Specifies the audio bitrate. The value can be **0** or range from
	// **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.
	Bitrate pulumi.IntPtrInput `pulumi:"bitrate"`
	// Specifies the video frame rate. The value ranges from **1** to **75**.
	// Defaults to: **1**. If set to **1**, the frame rate of the transcoded video is the same as that of the
	// untransocded video.
	FrameRate pulumi.IntPtrInput `pulumi:"frameRate"`
	// Specifies the video height. The value can be **0** or range from **128** to **2160**.
	// Defaults to: **0**. If set to **0**, the system will automatically adjust the `height` according to the `width`.
	Height pulumi.IntPtrInput `pulumi:"height"`
	// Specifies the video quality.
	// The value can be: **4K**, **2K**, **FHD**, **SD**, **LD** and **HD**.
	Quality pulumi.StringInput `pulumi:"quality"`
	// Specifies the video width. The value can be **0** or range from **128** to **3840**.
	// Defaults to: **0**. If set to **0**, the system will automatically adjust the `width` according to the `height`.
	Width pulumi.IntPtrInput `pulumi:"width"`
}

func (TranscodingTemplateGroupQualityInfoVideoArgs) ElementType

func (TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoOutput

func (i TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoOutput() TranscodingTemplateGroupQualityInfoVideoOutput

func (TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoOutputWithContext

func (i TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoVideoOutput

func (TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoPtrOutput

func (i TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoPtrOutput() TranscodingTemplateGroupQualityInfoVideoPtrOutput

func (TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext

func (i TranscodingTemplateGroupQualityInfoVideoArgs) ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoVideoPtrOutput

type TranscodingTemplateGroupQualityInfoVideoInput

type TranscodingTemplateGroupQualityInfoVideoInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupQualityInfoVideoOutput() TranscodingTemplateGroupQualityInfoVideoOutput
	ToTranscodingTemplateGroupQualityInfoVideoOutputWithContext(context.Context) TranscodingTemplateGroupQualityInfoVideoOutput
}

TranscodingTemplateGroupQualityInfoVideoInput is an input type that accepts TranscodingTemplateGroupQualityInfoVideoArgs and TranscodingTemplateGroupQualityInfoVideoOutput values. You can construct a concrete instance of `TranscodingTemplateGroupQualityInfoVideoInput` via:

TranscodingTemplateGroupQualityInfoVideoArgs{...}

type TranscodingTemplateGroupQualityInfoVideoOutput

type TranscodingTemplateGroupQualityInfoVideoOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupQualityInfoVideoOutput) Bitrate

Specifies the audio bitrate. The value can be **0** or range from **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.

func (TranscodingTemplateGroupQualityInfoVideoOutput) ElementType

func (TranscodingTemplateGroupQualityInfoVideoOutput) FrameRate

Specifies the video frame rate. The value ranges from **1** to **75**. Defaults to: **1**. If set to **1**, the frame rate of the transcoded video is the same as that of the untransocded video.

func (TranscodingTemplateGroupQualityInfoVideoOutput) Height

Specifies the video height. The value can be **0** or range from **128** to **2160**. Defaults to: **0**. If set to **0**, the system will automatically adjust the `height` according to the `width`.

func (TranscodingTemplateGroupQualityInfoVideoOutput) Quality

Specifies the video quality. The value can be: **4K**, **2K**, **FHD**, **SD**, **LD** and **HD**.

func (TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoOutput

func (o TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoOutput() TranscodingTemplateGroupQualityInfoVideoOutput

func (TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoOutputWithContext

func (o TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoVideoOutput

func (TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutput

func (o TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutput() TranscodingTemplateGroupQualityInfoVideoPtrOutput

func (TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext

func (o TranscodingTemplateGroupQualityInfoVideoOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoVideoPtrOutput

func (TranscodingTemplateGroupQualityInfoVideoOutput) Width

Specifies the video width. The value can be **0** or range from **128** to **3840**. Defaults to: **0**. If set to **0**, the system will automatically adjust the `width` according to the `height`.

type TranscodingTemplateGroupQualityInfoVideoPtrInput

type TranscodingTemplateGroupQualityInfoVideoPtrInput interface {
	pulumi.Input

	ToTranscodingTemplateGroupQualityInfoVideoPtrOutput() TranscodingTemplateGroupQualityInfoVideoPtrOutput
	ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext(context.Context) TranscodingTemplateGroupQualityInfoVideoPtrOutput
}

TranscodingTemplateGroupQualityInfoVideoPtrInput is an input type that accepts TranscodingTemplateGroupQualityInfoVideoArgs, TranscodingTemplateGroupQualityInfoVideoPtr and TranscodingTemplateGroupQualityInfoVideoPtrOutput values. You can construct a concrete instance of `TranscodingTemplateGroupQualityInfoVideoPtrInput` via:

        TranscodingTemplateGroupQualityInfoVideoArgs{...}

or:

        nil

type TranscodingTemplateGroupQualityInfoVideoPtrOutput

type TranscodingTemplateGroupQualityInfoVideoPtrOutput struct{ *pulumi.OutputState }

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) Bitrate

Specifies the audio bitrate. The value can be **0** or range from **8** to **1000**. Defaults to: **0**. If set to **0**, the output audio will be produced at the recommended bitrate.

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) Elem

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) ElementType

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) FrameRate

Specifies the video frame rate. The value ranges from **1** to **75**. Defaults to: **1**. If set to **1**, the frame rate of the transcoded video is the same as that of the untransocded video.

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) Height

Specifies the video height. The value can be **0** or range from **128** to **2160**. Defaults to: **0**. If set to **0**, the system will automatically adjust the `height` according to the `width`.

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) Quality

Specifies the video quality. The value can be: **4K**, **2K**, **FHD**, **SD**, **LD** and **HD**.

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutput

func (o TranscodingTemplateGroupQualityInfoVideoPtrOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutput() TranscodingTemplateGroupQualityInfoVideoPtrOutput

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext

func (o TranscodingTemplateGroupQualityInfoVideoPtrOutput) ToTranscodingTemplateGroupQualityInfoVideoPtrOutputWithContext(ctx context.Context) TranscodingTemplateGroupQualityInfoVideoPtrOutput

func (TranscodingTemplateGroupQualityInfoVideoPtrOutput) Width

Specifies the video width. The value can be **0** or range from **128** to **3840**. Defaults to: **0**. If set to **0**, the system will automatically adjust the `width` according to the `height`.

type TranscodingTemplateGroupState

type TranscodingTemplateGroupState struct {
	// Specifies the audio codec. The value can be: **AAC** and **HEAAC1**.
	// Defaults to: **AAC**.
	AudioCodec pulumi.StringPtrInput
	// 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.BoolPtrInput
	// Specifies the description of the template group.
	Description pulumi.StringPtrInput
	// 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.IntPtrInput
	// Specifies whether to use this group as default group. Defaults to: **false**.
	IsDefault pulumi.BoolPtrInput
	// Specifies whether to enable low bitrate HD. Defaults to: **false**.
	LowBitrateHd pulumi.BoolPtrInput
	// 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.StringPtrInput
	// Specifies the quality info list of the template group.
	// The object structure is documented below.
	QualityInfos TranscodingTemplateGroupQualityInfoArrayInput
	// 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.StringPtrInput
	// Indicates the type of the template group.
	Type pulumi.StringPtrInput
	// Specifies the video codec. The value can be: **H264** and **H265**.
	// Defaults to: **H264**.
	VideoCodec pulumi.StringPtrInput
	// Specifies the list of the watermark template IDs.
	WatermarkTemplateIds pulumi.StringArrayInput
}

func (TranscodingTemplateGroupState) ElementType

type WatermarkTemplate

type WatermarkTemplate struct {
	pulumi.CustomResourceState

	// Specifies height ratio of the watermark image relative to the output video.
	// The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0.01**.
	Height pulumi.StringPtrOutput `pulumi:"height"`
	// Specifies horizontal offset ratio of the watermark image relative to the
	// output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0**.
	HorizontalOffset pulumi.StringPtrOutput `pulumi:"horizontalOffset"`
	// Specifies the image file name, e.g. './test.png'.
	// Changing this creates a new resource.
	ImageFile pulumi.StringOutput `pulumi:"imageFile"`
	// Specifies the image process. The valid values are:
	// + **TRANSPARENT**: make the background color transparent.
	// + **ORIGINAL**: only simple scaling, no other processing.
	// + **GRAYED**: make the color image grayed.
	ImageProcess pulumi.StringPtrOutput `pulumi:"imageProcess"`
	// Specifies the image file type. The valid values are **PNG**, **JPG**
	// and **JPEG**. Changing this creates a new resource.
	ImageType pulumi.StringOutput `pulumi:"imageType"`
	// The watermark image URL.
	ImageUrl pulumi.StringOutput `pulumi:"imageUrl"`
	// Specifies the template name, which contains a maximum of 128 characters.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the location of the watermark. The valid values are **TOPRIGHT**,
	// **TOPLEFT**, **BOTTOMRIGHT** and **BOTTOMLEFT**. Defaults to: **TOPRIGHT**.
	Position pulumi.StringPtrOutput `pulumi:"position"`
	// 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.StringOutput `pulumi:"region"`
	// Specifies the watermark duration (Unit: second). The value is a digit
	// greater than or equal to **0**. By default, the watermark lasts until the end of the video.
	TimelineDuration pulumi.StringPtrOutput `pulumi:"timelineDuration"`
	// Specifies the watermark start time (Unit: second). The value is a digit
	// greater than or equal to **0**. Defaults to: **0**.
	TimelineStart pulumi.StringPtrOutput `pulumi:"timelineStart"`
	// Specifies vertical offset ratio of the watermark image relative to the
	// output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0**.
	VerticalOffset pulumi.StringPtrOutput `pulumi:"verticalOffset"`
	// The watermark type.
	WatermarkType pulumi.StringOutput `pulumi:"watermarkType"`
	// Specifies width ratio of the watermark image relative to the output video.
	// The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0.01**.
	Width pulumi.StringPtrOutput `pulumi:"width"`
}

Manages a VOD watermark template resource within HuaweiCloud.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Vod.NewWatermarkTemplate(ctx, "test", &Vod.WatermarkTemplateArgs{
			Height:           pulumi.String("0.1"),
			HorizontalOffset: pulumi.String("0.05"),
			ImageFile:        pulumi.String("./test.PNG"),
			ImageProcess:     pulumi.String("ORIGINAL"),
			ImageType:        pulumi.String("PNG"),
			Position:         pulumi.String("TOPLEFT"),
			VerticalOffset:   pulumi.String("0.05"),
			Width:            pulumi.String("0.1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The template can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Vod/watermarkTemplate:WatermarkTemplate test 81ac58796e25842ee2e90a904aa8a719

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`image_file`. It is generally recommended running `terraform plan` after importing a watermark template. You can then decide if changes should be applied to the watermark template, or the resource definition should be updated to align with the watermark template. Also you can ignore changes as below. resource "huaweicloud_vod_watermark_template" "test" {

...

lifecycle {

ignore_changes = [

image_file,

]

} }

func GetWatermarkTemplate

func GetWatermarkTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WatermarkTemplateState, opts ...pulumi.ResourceOption) (*WatermarkTemplate, error)

GetWatermarkTemplate gets an existing WatermarkTemplate 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 NewWatermarkTemplate

func NewWatermarkTemplate(ctx *pulumi.Context,
	name string, args *WatermarkTemplateArgs, opts ...pulumi.ResourceOption) (*WatermarkTemplate, error)

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

func (*WatermarkTemplate) ElementType

func (*WatermarkTemplate) ElementType() reflect.Type

func (*WatermarkTemplate) ToWatermarkTemplateOutput

func (i *WatermarkTemplate) ToWatermarkTemplateOutput() WatermarkTemplateOutput

func (*WatermarkTemplate) ToWatermarkTemplateOutputWithContext

func (i *WatermarkTemplate) ToWatermarkTemplateOutputWithContext(ctx context.Context) WatermarkTemplateOutput

type WatermarkTemplateArgs

type WatermarkTemplateArgs struct {
	// Specifies height ratio of the watermark image relative to the output video.
	// The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0.01**.
	Height pulumi.StringPtrInput
	// Specifies horizontal offset ratio of the watermark image relative to the
	// output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0**.
	HorizontalOffset pulumi.StringPtrInput
	// Specifies the image file name, e.g. './test.png'.
	// Changing this creates a new resource.
	ImageFile pulumi.StringInput
	// Specifies the image process. The valid values are:
	// + **TRANSPARENT**: make the background color transparent.
	// + **ORIGINAL**: only simple scaling, no other processing.
	// + **GRAYED**: make the color image grayed.
	ImageProcess pulumi.StringPtrInput
	// Specifies the image file type. The valid values are **PNG**, **JPG**
	// and **JPEG**. Changing this creates a new resource.
	ImageType pulumi.StringInput
	// Specifies the template name, which contains a maximum of 128 characters.
	Name pulumi.StringPtrInput
	// Specifies the location of the watermark. The valid values are **TOPRIGHT**,
	// **TOPLEFT**, **BOTTOMRIGHT** and **BOTTOMLEFT**. Defaults to: **TOPRIGHT**.
	Position pulumi.StringPtrInput
	// 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.StringPtrInput
	// Specifies the watermark duration (Unit: second). The value is a digit
	// greater than or equal to **0**. By default, the watermark lasts until the end of the video.
	TimelineDuration pulumi.StringPtrInput
	// Specifies the watermark start time (Unit: second). The value is a digit
	// greater than or equal to **0**. Defaults to: **0**.
	TimelineStart pulumi.StringPtrInput
	// Specifies vertical offset ratio of the watermark image relative to the
	// output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0**.
	VerticalOffset pulumi.StringPtrInput
	// Specifies width ratio of the watermark image relative to the output video.
	// The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0.01**.
	Width pulumi.StringPtrInput
}

The set of arguments for constructing a WatermarkTemplate resource.

func (WatermarkTemplateArgs) ElementType

func (WatermarkTemplateArgs) ElementType() reflect.Type

type WatermarkTemplateArray

type WatermarkTemplateArray []WatermarkTemplateInput

func (WatermarkTemplateArray) ElementType

func (WatermarkTemplateArray) ElementType() reflect.Type

func (WatermarkTemplateArray) ToWatermarkTemplateArrayOutput

func (i WatermarkTemplateArray) ToWatermarkTemplateArrayOutput() WatermarkTemplateArrayOutput

func (WatermarkTemplateArray) ToWatermarkTemplateArrayOutputWithContext

func (i WatermarkTemplateArray) ToWatermarkTemplateArrayOutputWithContext(ctx context.Context) WatermarkTemplateArrayOutput

type WatermarkTemplateArrayInput

type WatermarkTemplateArrayInput interface {
	pulumi.Input

	ToWatermarkTemplateArrayOutput() WatermarkTemplateArrayOutput
	ToWatermarkTemplateArrayOutputWithContext(context.Context) WatermarkTemplateArrayOutput
}

WatermarkTemplateArrayInput is an input type that accepts WatermarkTemplateArray and WatermarkTemplateArrayOutput values. You can construct a concrete instance of `WatermarkTemplateArrayInput` via:

WatermarkTemplateArray{ WatermarkTemplateArgs{...} }

type WatermarkTemplateArrayOutput

type WatermarkTemplateArrayOutput struct{ *pulumi.OutputState }

func (WatermarkTemplateArrayOutput) ElementType

func (WatermarkTemplateArrayOutput) Index

func (WatermarkTemplateArrayOutput) ToWatermarkTemplateArrayOutput

func (o WatermarkTemplateArrayOutput) ToWatermarkTemplateArrayOutput() WatermarkTemplateArrayOutput

func (WatermarkTemplateArrayOutput) ToWatermarkTemplateArrayOutputWithContext

func (o WatermarkTemplateArrayOutput) ToWatermarkTemplateArrayOutputWithContext(ctx context.Context) WatermarkTemplateArrayOutput

type WatermarkTemplateInput

type WatermarkTemplateInput interface {
	pulumi.Input

	ToWatermarkTemplateOutput() WatermarkTemplateOutput
	ToWatermarkTemplateOutputWithContext(ctx context.Context) WatermarkTemplateOutput
}

type WatermarkTemplateMap

type WatermarkTemplateMap map[string]WatermarkTemplateInput

func (WatermarkTemplateMap) ElementType

func (WatermarkTemplateMap) ElementType() reflect.Type

func (WatermarkTemplateMap) ToWatermarkTemplateMapOutput

func (i WatermarkTemplateMap) ToWatermarkTemplateMapOutput() WatermarkTemplateMapOutput

func (WatermarkTemplateMap) ToWatermarkTemplateMapOutputWithContext

func (i WatermarkTemplateMap) ToWatermarkTemplateMapOutputWithContext(ctx context.Context) WatermarkTemplateMapOutput

type WatermarkTemplateMapInput

type WatermarkTemplateMapInput interface {
	pulumi.Input

	ToWatermarkTemplateMapOutput() WatermarkTemplateMapOutput
	ToWatermarkTemplateMapOutputWithContext(context.Context) WatermarkTemplateMapOutput
}

WatermarkTemplateMapInput is an input type that accepts WatermarkTemplateMap and WatermarkTemplateMapOutput values. You can construct a concrete instance of `WatermarkTemplateMapInput` via:

WatermarkTemplateMap{ "key": WatermarkTemplateArgs{...} }

type WatermarkTemplateMapOutput

type WatermarkTemplateMapOutput struct{ *pulumi.OutputState }

func (WatermarkTemplateMapOutput) ElementType

func (WatermarkTemplateMapOutput) ElementType() reflect.Type

func (WatermarkTemplateMapOutput) MapIndex

func (WatermarkTemplateMapOutput) ToWatermarkTemplateMapOutput

func (o WatermarkTemplateMapOutput) ToWatermarkTemplateMapOutput() WatermarkTemplateMapOutput

func (WatermarkTemplateMapOutput) ToWatermarkTemplateMapOutputWithContext

func (o WatermarkTemplateMapOutput) ToWatermarkTemplateMapOutputWithContext(ctx context.Context) WatermarkTemplateMapOutput

type WatermarkTemplateOutput

type WatermarkTemplateOutput struct{ *pulumi.OutputState }

func (WatermarkTemplateOutput) ElementType

func (WatermarkTemplateOutput) ElementType() reflect.Type

func (WatermarkTemplateOutput) Height

Specifies height ratio of the watermark image relative to the output video. The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be automatically discarded. Defaults to: **0.01**.

func (WatermarkTemplateOutput) HorizontalOffset

func (o WatermarkTemplateOutput) HorizontalOffset() pulumi.StringPtrOutput

Specifies horizontal offset ratio of the watermark image relative to the output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be automatically discarded. Defaults to: **0**.

func (WatermarkTemplateOutput) ImageFile

Specifies the image file name, e.g. './test.png'. Changing this creates a new resource.

func (WatermarkTemplateOutput) ImageProcess

Specifies the image process. The valid values are: + **TRANSPARENT**: make the background color transparent. + **ORIGINAL**: only simple scaling, no other processing. + **GRAYED**: make the color image grayed.

func (WatermarkTemplateOutput) ImageType

Specifies the image file type. The valid values are **PNG**, **JPG** and **JPEG**. Changing this creates a new resource.

func (WatermarkTemplateOutput) ImageUrl

The watermark image URL.

func (WatermarkTemplateOutput) Name

Specifies the template name, which contains a maximum of 128 characters.

func (WatermarkTemplateOutput) Position

Specifies the location of the watermark. The valid values are **TOPRIGHT**, **TOPLEFT**, **BOTTOMRIGHT** and **BOTTOMLEFT**. Defaults to: **TOPRIGHT**.

func (WatermarkTemplateOutput) Region

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

func (WatermarkTemplateOutput) TimelineDuration

func (o WatermarkTemplateOutput) TimelineDuration() pulumi.StringPtrOutput

Specifies the watermark duration (Unit: second). The value is a digit greater than or equal to **0**. By default, the watermark lasts until the end of the video.

func (WatermarkTemplateOutput) TimelineStart

Specifies the watermark start time (Unit: second). The value is a digit greater than or equal to **0**. Defaults to: **0**.

func (WatermarkTemplateOutput) ToWatermarkTemplateOutput

func (o WatermarkTemplateOutput) ToWatermarkTemplateOutput() WatermarkTemplateOutput

func (WatermarkTemplateOutput) ToWatermarkTemplateOutputWithContext

func (o WatermarkTemplateOutput) ToWatermarkTemplateOutputWithContext(ctx context.Context) WatermarkTemplateOutput

func (WatermarkTemplateOutput) VerticalOffset

func (o WatermarkTemplateOutput) VerticalOffset() pulumi.StringPtrOutput

Specifies vertical offset ratio of the watermark image relative to the output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be automatically discarded. Defaults to: **0**.

func (WatermarkTemplateOutput) WatermarkType

func (o WatermarkTemplateOutput) WatermarkType() pulumi.StringOutput

The watermark type.

func (WatermarkTemplateOutput) Width

Specifies width ratio of the watermark image relative to the output video. The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be automatically discarded. Defaults to: **0.01**.

type WatermarkTemplateState

type WatermarkTemplateState struct {
	// Specifies height ratio of the watermark image relative to the output video.
	// The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0.01**.
	Height pulumi.StringPtrInput
	// Specifies horizontal offset ratio of the watermark image relative to the
	// output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0**.
	HorizontalOffset pulumi.StringPtrInput
	// Specifies the image file name, e.g. './test.png'.
	// Changing this creates a new resource.
	ImageFile pulumi.StringPtrInput
	// Specifies the image process. The valid values are:
	// + **TRANSPARENT**: make the background color transparent.
	// + **ORIGINAL**: only simple scaling, no other processing.
	// + **GRAYED**: make the color image grayed.
	ImageProcess pulumi.StringPtrInput
	// Specifies the image file type. The valid values are **PNG**, **JPG**
	// and **JPEG**. Changing this creates a new resource.
	ImageType pulumi.StringPtrInput
	// The watermark image URL.
	ImageUrl pulumi.StringPtrInput
	// Specifies the template name, which contains a maximum of 128 characters.
	Name pulumi.StringPtrInput
	// Specifies the location of the watermark. The valid values are **TOPRIGHT**,
	// **TOPLEFT**, **BOTTOMRIGHT** and **BOTTOMLEFT**. Defaults to: **TOPRIGHT**.
	Position pulumi.StringPtrInput
	// 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.StringPtrInput
	// Specifies the watermark duration (Unit: second). The value is a digit
	// greater than or equal to **0**. By default, the watermark lasts until the end of the video.
	TimelineDuration pulumi.StringPtrInput
	// Specifies the watermark start time (Unit: second). The value is a digit
	// greater than or equal to **0**. Defaults to: **0**.
	TimelineStart pulumi.StringPtrInput
	// Specifies vertical offset ratio of the watermark image relative to the
	// output video. The value range is [0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0**.
	VerticalOffset pulumi.StringPtrInput
	// The watermark type.
	WatermarkType pulumi.StringPtrInput
	// Specifies width ratio of the watermark image relative to the output video.
	// The value range is (0, 1). It supports 4 decimal places, e.g. 0.9999, the excess will be
	// automatically discarded. Defaults to: **0.01**.
	Width pulumi.StringPtrInput
}

func (WatermarkTemplateState) ElementType

func (WatermarkTemplateState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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