// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Ci
{
    /// <summary>
    /// Provides a resource to create a ci media_animation_template
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var mediaAnimationTemplate = new Tencentcloud.Ci.MediaAnimationTemplate("mediaAnimationTemplate", new Tencentcloud.Ci.MediaAnimationTemplateArgs
    ///         {
    ///             Bucket = "terraform-ci-1308919341",
    ///             Container = new Tencentcloud.Ci.Inputs.MediaAnimationTemplateContainerArgs
    ///             {
    ///                 Format = "gif",
    ///             },
    ///             TimeInterval = new Tencentcloud.Ci.Inputs.MediaAnimationTemplateTimeIntervalArgs
    ///             {
    ///                 Duration = "60",
    ///                 Start = "0",
    ///             },
    ///             Video = new Tencentcloud.Ci.Inputs.MediaAnimationTemplateVideoArgs
    ///             {
    ///                 AnimateFramesPerSecond = "",
    ///                 AnimateOnlyKeepKeyFrame = "true",
    ///                 AnimateTimeIntervalOfFrame = "",
    ///                 Codec = "gif",
    ///                 Fps = "20",
    ///                 Height = "",
    ///                 Quality = "",
    ///                 Width = "1280",
    ///             },
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Ci/mediaAnimationTemplate:MediaAnimationTemplate")]
    public partial class MediaAnimationTemplate : Pulumi.CustomResource
    {
        /// <summary>
        /// bucket name.
        /// </summary>
        [Output("bucket")]
        public Output<string> Bucket { get; private set; } = null!;

        /// <summary>
        /// container format.
        /// </summary>
        [Output("container")]
        public Output<Outputs.MediaAnimationTemplateContainer> Container { get; private set; } = null!;

        /// <summary>
        /// The template name only supports `Chinese`, `English`, `numbers`, `_`, `-` and `*`.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// time interval.
        /// </summary>
        [Output("timeInterval")]
        public Output<Outputs.MediaAnimationTemplateTimeInterval?> TimeInterval { get; private set; } = null!;

        /// <summary>
        /// video information, do not upload Video, which is equivalent to deleting video information.
        /// </summary>
        [Output("video")]
        public Output<Outputs.MediaAnimationTemplateVideo?> Video { get; private set; } = null!;


        /// <summary>
        /// Create a MediaAnimationTemplate resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public MediaAnimationTemplate(string name, MediaAnimationTemplateArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Ci/mediaAnimationTemplate:MediaAnimationTemplate", name, args ?? new MediaAnimationTemplateArgs(), MakeResourceOptions(options, ""))
        {
        }

        private MediaAnimationTemplate(string name, Input<string> id, MediaAnimationTemplateState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Ci/mediaAnimationTemplate:MediaAnimationTemplate", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/tencentcloudstack",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing MediaAnimationTemplate resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static MediaAnimationTemplate Get(string name, Input<string> id, MediaAnimationTemplateState? state = null, CustomResourceOptions? options = null)
        {
            return new MediaAnimationTemplate(name, id, state, options);
        }
    }

    public sealed class MediaAnimationTemplateArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// bucket name.
        /// </summary>
        [Input("bucket", required: true)]
        public Input<string> Bucket { get; set; } = null!;

        /// <summary>
        /// container format.
        /// </summary>
        [Input("container", required: true)]
        public Input<Inputs.MediaAnimationTemplateContainerArgs> Container { get; set; } = null!;

        /// <summary>
        /// The template name only supports `Chinese`, `English`, `numbers`, `_`, `-` and `*`.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// time interval.
        /// </summary>
        [Input("timeInterval")]
        public Input<Inputs.MediaAnimationTemplateTimeIntervalArgs>? TimeInterval { get; set; }

        /// <summary>
        /// video information, do not upload Video, which is equivalent to deleting video information.
        /// </summary>
        [Input("video")]
        public Input<Inputs.MediaAnimationTemplateVideoArgs>? Video { get; set; }

        public MediaAnimationTemplateArgs()
        {
        }
    }

    public sealed class MediaAnimationTemplateState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// bucket name.
        /// </summary>
        [Input("bucket")]
        public Input<string>? Bucket { get; set; }

        /// <summary>
        /// container format.
        /// </summary>
        [Input("container")]
        public Input<Inputs.MediaAnimationTemplateContainerGetArgs>? Container { get; set; }

        /// <summary>
        /// The template name only supports `Chinese`, `English`, `numbers`, `_`, `-` and `*`.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// time interval.
        /// </summary>
        [Input("timeInterval")]
        public Input<Inputs.MediaAnimationTemplateTimeIntervalGetArgs>? TimeInterval { get; set; }

        /// <summary>
        /// video information, do not upload Video, which is equivalent to deleting video information.
        /// </summary>
        [Input("video")]
        public Input<Inputs.MediaAnimationTemplateVideoGetArgs>? Video { get; set; }

        public MediaAnimationTemplateState()
        {
        }
    }
}
