1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CiMediaAnimationTemplate
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.CiMediaAnimationTemplate

Explore with Pulumi AI

Provides a resource to create a ci media_animation_template

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const mediaAnimationTemplate = new tencentcloud.CiMediaAnimationTemplate("mediaAnimationTemplate", {
    bucket: "terraform-ci-1308919341",
    container: {
        format: "gif",
    },
    timeInterval: {
        duration: "60",
        start: "0",
    },
    video: {
        animateFramesPerSecond: "",
        animateOnlyKeepKeyFrame: "true",
        animateTimeIntervalOfFrame: "",
        codec: "gif",
        fps: "20",
        height: "",
        quality: "",
        width: "1280",
    },
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

media_animation_template = tencentcloud.CiMediaAnimationTemplate("mediaAnimationTemplate",
    bucket="terraform-ci-1308919341",
    container={
        "format": "gif",
    },
    time_interval={
        "duration": "60",
        "start": "0",
    },
    video={
        "animate_frames_per_second": "",
        "animate_only_keep_key_frame": "true",
        "animate_time_interval_of_frame": "",
        "codec": "gif",
        "fps": "20",
        "height": "",
        "quality": "",
        "width": "1280",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewCiMediaAnimationTemplate(ctx, "mediaAnimationTemplate", &tencentcloud.CiMediaAnimationTemplateArgs{
			Bucket: pulumi.String("terraform-ci-1308919341"),
			Container: &tencentcloud.CiMediaAnimationTemplateContainerArgs{
				Format: pulumi.String("gif"),
			},
			TimeInterval: &tencentcloud.CiMediaAnimationTemplateTimeIntervalArgs{
				Duration: pulumi.String("60"),
				Start:    pulumi.String("0"),
			},
			Video: &tencentcloud.CiMediaAnimationTemplateVideoArgs{
				AnimateFramesPerSecond:     pulumi.String(""),
				AnimateOnlyKeepKeyFrame:    pulumi.String("true"),
				AnimateTimeIntervalOfFrame: pulumi.String(""),
				Codec:                      pulumi.String("gif"),
				Fps:                        pulumi.String("20"),
				Height:                     pulumi.String(""),
				Quality:                    pulumi.String(""),
				Width:                      pulumi.String("1280"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var mediaAnimationTemplate = new Tencentcloud.CiMediaAnimationTemplate("mediaAnimationTemplate", new()
    {
        Bucket = "terraform-ci-1308919341",
        Container = new Tencentcloud.Inputs.CiMediaAnimationTemplateContainerArgs
        {
            Format = "gif",
        },
        TimeInterval = new Tencentcloud.Inputs.CiMediaAnimationTemplateTimeIntervalArgs
        {
            Duration = "60",
            Start = "0",
        },
        Video = new Tencentcloud.Inputs.CiMediaAnimationTemplateVideoArgs
        {
            AnimateFramesPerSecond = "",
            AnimateOnlyKeepKeyFrame = "true",
            AnimateTimeIntervalOfFrame = "",
            Codec = "gif",
            Fps = "20",
            Height = "",
            Quality = "",
            Width = "1280",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiMediaAnimationTemplate;
import com.pulumi.tencentcloud.CiMediaAnimationTemplateArgs;
import com.pulumi.tencentcloud.inputs.CiMediaAnimationTemplateContainerArgs;
import com.pulumi.tencentcloud.inputs.CiMediaAnimationTemplateTimeIntervalArgs;
import com.pulumi.tencentcloud.inputs.CiMediaAnimationTemplateVideoArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var mediaAnimationTemplate = new CiMediaAnimationTemplate("mediaAnimationTemplate", CiMediaAnimationTemplateArgs.builder()
            .bucket("terraform-ci-1308919341")
            .container(CiMediaAnimationTemplateContainerArgs.builder()
                .format("gif")
                .build())
            .timeInterval(CiMediaAnimationTemplateTimeIntervalArgs.builder()
                .duration("60")
                .start("0")
                .build())
            .video(CiMediaAnimationTemplateVideoArgs.builder()
                .animateFramesPerSecond("")
                .animateOnlyKeepKeyFrame("true")
                .animateTimeIntervalOfFrame("")
                .codec("gif")
                .fps("20")
                .height("")
                .quality("")
                .width("1280")
                .build())
            .build());

    }
}
Copy
resources:
  mediaAnimationTemplate:
    type: tencentcloud:CiMediaAnimationTemplate
    properties:
      bucket: terraform-ci-1308919341
      container:
        format: gif
      timeInterval:
        duration: '60'
        start: '0'
      video:
        animateFramesPerSecond: ""
        animateOnlyKeepKeyFrame: 'true'
        animateTimeIntervalOfFrame: ""
        codec: gif
        fps: '20'
        height: ""
        quality: ""
        width: '1280'
Copy

Create CiMediaAnimationTemplate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CiMediaAnimationTemplate(name: string, args: CiMediaAnimationTemplateArgs, opts?: CustomResourceOptions);
@overload
def CiMediaAnimationTemplate(resource_name: str,
                             args: CiMediaAnimationTemplateArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def CiMediaAnimationTemplate(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             bucket: Optional[str] = None,
                             container: Optional[CiMediaAnimationTemplateContainerArgs] = None,
                             ci_media_animation_template_id: Optional[str] = None,
                             name: Optional[str] = None,
                             time_interval: Optional[CiMediaAnimationTemplateTimeIntervalArgs] = None,
                             video: Optional[CiMediaAnimationTemplateVideoArgs] = None)
func NewCiMediaAnimationTemplate(ctx *Context, name string, args CiMediaAnimationTemplateArgs, opts ...ResourceOption) (*CiMediaAnimationTemplate, error)
public CiMediaAnimationTemplate(string name, CiMediaAnimationTemplateArgs args, CustomResourceOptions? opts = null)
public CiMediaAnimationTemplate(String name, CiMediaAnimationTemplateArgs args)
public CiMediaAnimationTemplate(String name, CiMediaAnimationTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CiMediaAnimationTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CiMediaAnimationTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CiMediaAnimationTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CiMediaAnimationTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CiMediaAnimationTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CiMediaAnimationTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CiMediaAnimationTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CiMediaAnimationTemplate resource accepts the following input properties:

Bucket This property is required. string
bucket name.
Container This property is required. CiMediaAnimationTemplateContainer
container format.
CiMediaAnimationTemplateId string
ID of the resource.
Name string
The template name only supports Chinese, English, numbers, _, - and *.
TimeInterval CiMediaAnimationTemplateTimeInterval
time interval.
Video CiMediaAnimationTemplateVideo
video information, do not upload Video, which is equivalent to deleting video information.
Bucket This property is required. string
bucket name.
Container This property is required. CiMediaAnimationTemplateContainerArgs
container format.
CiMediaAnimationTemplateId string
ID of the resource.
Name string
The template name only supports Chinese, English, numbers, _, - and *.
TimeInterval CiMediaAnimationTemplateTimeIntervalArgs
time interval.
Video CiMediaAnimationTemplateVideoArgs
video information, do not upload Video, which is equivalent to deleting video information.
bucket This property is required. String
bucket name.
container This property is required. CiMediaAnimationTemplateContainer
container format.
ciMediaAnimationTemplateId String
ID of the resource.
name String
The template name only supports Chinese, English, numbers, _, - and *.
timeInterval CiMediaAnimationTemplateTimeInterval
time interval.
video CiMediaAnimationTemplateVideo
video information, do not upload Video, which is equivalent to deleting video information.
bucket This property is required. string
bucket name.
container This property is required. CiMediaAnimationTemplateContainer
container format.
ciMediaAnimationTemplateId string
ID of the resource.
name string
The template name only supports Chinese, English, numbers, _, - and *.
timeInterval CiMediaAnimationTemplateTimeInterval
time interval.
video CiMediaAnimationTemplateVideo
video information, do not upload Video, which is equivalent to deleting video information.
bucket This property is required. str
bucket name.
container This property is required. CiMediaAnimationTemplateContainerArgs
container format.
ci_media_animation_template_id str
ID of the resource.
name str
The template name only supports Chinese, English, numbers, _, - and *.
time_interval CiMediaAnimationTemplateTimeIntervalArgs
time interval.
video CiMediaAnimationTemplateVideoArgs
video information, do not upload Video, which is equivalent to deleting video information.
bucket This property is required. String
bucket name.
container This property is required. Property Map
container format.
ciMediaAnimationTemplateId String
ID of the resource.
name String
The template name only supports Chinese, English, numbers, _, - and *.
timeInterval Property Map
time interval.
video Property Map
video information, do not upload Video, which is equivalent to deleting video information.

Outputs

All input properties are implicitly available as output properties. Additionally, the CiMediaAnimationTemplate resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CiMediaAnimationTemplate Resource

Get an existing CiMediaAnimationTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CiMediaAnimationTemplateState, opts?: CustomResourceOptions): CiMediaAnimationTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket: Optional[str] = None,
        ci_media_animation_template_id: Optional[str] = None,
        container: Optional[CiMediaAnimationTemplateContainerArgs] = None,
        name: Optional[str] = None,
        time_interval: Optional[CiMediaAnimationTemplateTimeIntervalArgs] = None,
        video: Optional[CiMediaAnimationTemplateVideoArgs] = None) -> CiMediaAnimationTemplate
func GetCiMediaAnimationTemplate(ctx *Context, name string, id IDInput, state *CiMediaAnimationTemplateState, opts ...ResourceOption) (*CiMediaAnimationTemplate, error)
public static CiMediaAnimationTemplate Get(string name, Input<string> id, CiMediaAnimationTemplateState? state, CustomResourceOptions? opts = null)
public static CiMediaAnimationTemplate get(String name, Output<String> id, CiMediaAnimationTemplateState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CiMediaAnimationTemplate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Bucket string
bucket name.
CiMediaAnimationTemplateId string
ID of the resource.
Container CiMediaAnimationTemplateContainer
container format.
Name string
The template name only supports Chinese, English, numbers, _, - and *.
TimeInterval CiMediaAnimationTemplateTimeInterval
time interval.
Video CiMediaAnimationTemplateVideo
video information, do not upload Video, which is equivalent to deleting video information.
Bucket string
bucket name.
CiMediaAnimationTemplateId string
ID of the resource.
Container CiMediaAnimationTemplateContainerArgs
container format.
Name string
The template name only supports Chinese, English, numbers, _, - and *.
TimeInterval CiMediaAnimationTemplateTimeIntervalArgs
time interval.
Video CiMediaAnimationTemplateVideoArgs
video information, do not upload Video, which is equivalent to deleting video information.
bucket String
bucket name.
ciMediaAnimationTemplateId String
ID of the resource.
container CiMediaAnimationTemplateContainer
container format.
name String
The template name only supports Chinese, English, numbers, _, - and *.
timeInterval CiMediaAnimationTemplateTimeInterval
time interval.
video CiMediaAnimationTemplateVideo
video information, do not upload Video, which is equivalent to deleting video information.
bucket string
bucket name.
ciMediaAnimationTemplateId string
ID of the resource.
container CiMediaAnimationTemplateContainer
container format.
name string
The template name only supports Chinese, English, numbers, _, - and *.
timeInterval CiMediaAnimationTemplateTimeInterval
time interval.
video CiMediaAnimationTemplateVideo
video information, do not upload Video, which is equivalent to deleting video information.
bucket str
bucket name.
ci_media_animation_template_id str
ID of the resource.
container CiMediaAnimationTemplateContainerArgs
container format.
name str
The template name only supports Chinese, English, numbers, _, - and *.
time_interval CiMediaAnimationTemplateTimeIntervalArgs
time interval.
video CiMediaAnimationTemplateVideoArgs
video information, do not upload Video, which is equivalent to deleting video information.
bucket String
bucket name.
ciMediaAnimationTemplateId String
ID of the resource.
container Property Map
container format.
name String
The template name only supports Chinese, English, numbers, _, - and *.
timeInterval Property Map
time interval.
video Property Map
video information, do not upload Video, which is equivalent to deleting video information.

Supporting Types

CiMediaAnimationTemplateContainer
, CiMediaAnimationTemplateContainerArgs

Format This property is required. string
Package format.
Format This property is required. string
Package format.
format This property is required. String
Package format.
format This property is required. string
Package format.
format This property is required. str
Package format.
format This property is required. String
Package format.

CiMediaAnimationTemplateTimeInterval
, CiMediaAnimationTemplateTimeIntervalArgs

Duration string
duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
Start string
Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
Duration string
duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
Start string
Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
duration String
duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
start String
Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
duration string
duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
start string
Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
duration str
duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
start str
Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
duration String
duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
start String
Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.

CiMediaAnimationTemplateVideo
, CiMediaAnimationTemplateVideoArgs

Codec This property is required. string
Codec format gif, webp.
AnimateFramesPerSecond string
Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
AnimateOnlyKeepKeyFrame string
GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
AnimateTimeIntervalOfFrame string
Animation frame extraction every time, (0, video duration], Animation frame extraction time interval, If TimeInterval.Duration is set, it is less than this value.
Fps string
Frame rate, value range: (0, 60], Unit: fps.
Height string
High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
Quality string
Set relative quality, [1, 100), webp image quality setting takes effect, gif has no quality parameter.
Width string
width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
Codec This property is required. string
Codec format gif, webp.
AnimateFramesPerSecond string
Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
AnimateOnlyKeepKeyFrame string
GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
AnimateTimeIntervalOfFrame string
Animation frame extraction every time, (0, video duration], Animation frame extraction time interval, If TimeInterval.Duration is set, it is less than this value.
Fps string
Frame rate, value range: (0, 60], Unit: fps.
Height string
High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
Quality string
Set relative quality, [1, 100), webp image quality setting takes effect, gif has no quality parameter.
Width string
width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
codec This property is required. String
Codec format gif, webp.
animateFramesPerSecond String
Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animateOnlyKeepKeyFrame String
GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animateTimeIntervalOfFrame String
Animation frame extraction every time, (0, video duration], Animation frame extraction time interval, If TimeInterval.Duration is set, it is less than this value.
fps String
Frame rate, value range: (0, 60], Unit: fps.
height String
High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
quality String
Set relative quality, [1, 100), webp image quality setting takes effect, gif has no quality parameter.
width String
width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
codec This property is required. string
Codec format gif, webp.
animateFramesPerSecond string
Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animateOnlyKeepKeyFrame string
GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animateTimeIntervalOfFrame string
Animation frame extraction every time, (0, video duration], Animation frame extraction time interval, If TimeInterval.Duration is set, it is less than this value.
fps string
Frame rate, value range: (0, 60], Unit: fps.
height string
High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
quality string
Set relative quality, [1, 100), webp image quality setting takes effect, gif has no quality parameter.
width string
width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
codec This property is required. str
Codec format gif, webp.
animate_frames_per_second str
Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animate_only_keep_key_frame str
GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animate_time_interval_of_frame str
Animation frame extraction every time, (0, video duration], Animation frame extraction time interval, If TimeInterval.Duration is set, it is less than this value.
fps str
Frame rate, value range: (0, 60], Unit: fps.
height str
High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
quality str
Set relative quality, [1, 100), webp image quality setting takes effect, gif has no quality parameter.
width str
width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
codec This property is required. String
Codec format gif, webp.
animateFramesPerSecond String
Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animateOnlyKeepKeyFrame String
GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
animateTimeIntervalOfFrame String
Animation frame extraction every time, (0, video duration], Animation frame extraction time interval, If TimeInterval.Duration is set, it is less than this value.
fps String
Frame rate, value range: (0, 60], Unit: fps.
height String
High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
quality String
Set relative quality, [1, 100), webp image quality setting takes effect, gif has no quality parameter.
width String
width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.