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",
},
});
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",
})
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
})
}
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",
},
});
});
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());
}
}
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'
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 string
- The unique name of the resource.
- args CiMediaAnimationTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args CiMediaAnimationTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiMediaAnimationTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 string
- bucket name.
- Container
Ci
Media Animation Template Container - container format.
- Ci
Media stringAnimation Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Animation Template Time Interval - time interval.
- Video
Ci
Media Animation Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- Bucket string
- bucket name.
- Container
Ci
Media Animation Template Container Args - container format.
- Ci
Media stringAnimation Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Animation Template Time Interval Args - time interval.
- Video
Ci
Media Animation Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- bucket String
- bucket name.
- container
Ci
Media Animation Template Container - container format.
- ci
Media StringAnimation Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Animation Template Time Interval - time interval.
- video
Ci
Media Animation Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- bucket string
- bucket name.
- container
Ci
Media Animation Template Container - container format.
- ci
Media stringAnimation Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Animation Template Time Interval - time interval.
- video
Ci
Media Animation Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- bucket str
- bucket name.
- container
Ci
Media Animation Template Container Args - container format.
- ci_
media_ stranimation_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time_
interval CiMedia Animation Template Time Interval Args - time interval.
- video
Ci
Media Animation Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- bucket String
- bucket name.
- container Property Map
- container format.
- ci
Media StringAnimation Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Bucket string
- bucket name.
- Ci
Media stringAnimation Template Id - ID of the resource.
- Container
Ci
Media Animation Template Container - container format.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Animation Template Time Interval - time interval.
- Video
Ci
Media Animation Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- Bucket string
- bucket name.
- Ci
Media stringAnimation Template Id - ID of the resource.
- Container
Ci
Media Animation Template Container Args - container format.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Animation Template Time Interval Args - time interval.
- Video
Ci
Media Animation Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- bucket String
- bucket name.
- ci
Media StringAnimation Template Id - ID of the resource.
- container
Ci
Media Animation Template Container - container format.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Animation Template Time Interval - time interval.
- video
Ci
Media Animation Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- bucket string
- bucket name.
- ci
Media stringAnimation Template Id - ID of the resource.
- container
Ci
Media Animation Template Container - container format.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Animation Template Time Interval - time interval.
- video
Ci
Media Animation Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- bucket str
- bucket name.
- ci_
media_ stranimation_ template_ id - ID of the resource.
- container
Ci
Media Animation Template Container Args - container format.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time_
interval CiMedia Animation Template Time Interval Args - time interval.
- video
Ci
Media Animation Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- bucket String
- bucket name.
- ci
Media StringAnimation Template Id - ID of the resource.
- container Property Map
- container format.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval 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 string
- Package format.
- Format string
- Package format.
- format String
- Package format.
- format string
- Package format.
- format str
- Package format.
- format String
- Package format.
CiMediaAnimationTemplateTimeInterval, CiMediaAnimationTemplateTimeIntervalArgs
CiMediaAnimationTemplateVideo, CiMediaAnimationTemplateVideoArgs
- Codec string
- Codec format
gif
,webp
. - Animate
Frames stringPer Second - Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- Animate
Only stringKeep Key Frame - GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- Animate
Time stringInterval Of Frame - 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 string
- Codec format
gif
,webp
. - Animate
Frames stringPer Second - Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- Animate
Only stringKeep Key Frame - GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- Animate
Time stringInterval Of Frame - 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 String
- Codec format
gif
,webp
. - animate
Frames StringPer Second - Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate
Only StringKeep Key Frame - GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate
Time StringInterval Of Frame - 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 string
- Codec format
gif
,webp
. - animate
Frames stringPer Second - Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate
Only stringKeep Key Frame - GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate
Time stringInterval Of Frame - 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 str
- Codec format
gif
,webp
. - animate_
frames_ strper_ second - Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate_
only_ strkeep_ key_ frame - GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate_
time_ strinterval_ of_ frame - 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 String
- Codec format
gif
,webp
. - animate
Frames StringPer Second - Animation per second frame number, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate
Only StringKeep Key Frame - GIFs are kept only Keyframe, Priority: AnimateFramesPerSecond > AnimateOnlyKeepKeyFrame > AnimateTimeIntervalOfFrame.
- animate
Time StringInterval Of Frame - 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.