<reponame>Dwonczykj/gember_deploy// *** 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_transcode_template
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var mediaTranscodeTemplate = new Tencentcloud.Ci.MediaTranscodeTemplate("mediaTranscodeTemplate", new Tencentcloud.Ci.MediaTranscodeTemplateArgs
    ///         {
    ///             Audio = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateAudioArgs
    ///             {
    ///                 Bitrate = "128",
    ///                 Channels = "4",
    ///                 Codec = "aac",
    ///                 KeepTwoTracks = "false",
    ///                 Remove = "false",
    ///                 SampleFormat = "",
    ///                 Samplerate = "44100",
    ///                 SwitchTrack = "false",
    ///             },
    ///             AudioMixes = 
    ///             {
    ///                 new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateAudioMixArgs
    ///                 {
    ///                     AudioSource = "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
    ///                     EffectConfig = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateAudioMixEffectConfigArgs
    ///                     {
    ///                         BgmFadeTime = "1.7",
    ///                         EnableBgmFade = "true",
    ///                         EnableEndFadeout = "false",
    ///                         EnableStartFadein = "true",
    ///                         EndFadeoutTime = "0",
    ///                         StartFadeinTime = "3",
    ///                     },
    ///                     MixMode = "Once",
    ///                     Replace = "true",
    ///                 },
    ///             },
    ///             Bucket = "terraform-ci-1308919341",
    ///             Container = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateContainerArgs
    ///             {
    ///                 Format = "mp4",
    ///             },
    ///             TimeInterval = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateTimeIntervalArgs
    ///             {
    ///                 Duration = "60",
    ///                 Start = "0",
    ///             },
    ///             TransConfig = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateTransConfigArgs
    ///             {
    ///                 AdjDarMethod = "scale",
    ///                 AudioBitrateAdjMethod = "0",
    ///                 DeleteMetadata = "false",
    ///                 HlsEncrypt = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateTransConfigHlsEncryptArgs
    ///                 {
    ///                     IsHlsEncrypt = "false",
    ///                     UriKey = "",
    ///                 },
    ///                 IsCheckAudioBitrate = "false",
    ///                 IsCheckReso = "false",
    ///                 IsCheckVideoBitrate = "false",
    ///                 IsHdr2Sdr = "false",
    ///                 ResoAdjMethod = "1",
    ///                 VideoBitrateAdjMethod = "0",
    ///             },
    ///             Video = new Tencentcloud.Ci.Inputs.MediaTranscodeTemplateVideoArgs
    ///             {
    ///                 Bitrate = "1000",
    ///                 Codec = "H.264",
    ///                 Fps = "30",
    ///                 LongShortMode = "false",
    ///                 Preset = "medium",
    ///                 Profile = "high",
    ///                 Remove = "false",
    ///                 Width = "1280",
    ///             },
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// ci media_transcode_template can be imported using the bucket#templateId, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Ci/mediaTranscodeTemplate:MediaTranscodeTemplate media_transcode_template media_transcode_template_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Ci/mediaTranscodeTemplate:MediaTranscodeTemplate")]
    public partial class MediaTranscodeTemplate : Pulumi.CustomResource
    {
        /// <summary>
        /// Audio information, do not transmit Audio, which is equivalent to deleting audio information.
        /// </summary>
        [Output("audio")]
        public Output<Outputs.MediaTranscodeTemplateAudio?> Audio { get; private set; } = null!;

        /// <summary>
        /// mixing parameters.
        /// </summary>
        [Output("audioMixes")]
        public Output<ImmutableArray<Outputs.MediaTranscodeTemplateAudioMix>> AudioMixes { get; private set; } = null!;

        /// <summary>
        /// bucket name.
        /// </summary>
        [Output("bucket")]
        public Output<string> Bucket { get; private set; } = null!;

        /// <summary>
        /// container format.
        /// </summary>
        [Output("container")]
        public Output<Outputs.MediaTranscodeTemplateContainer> 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.MediaTranscodeTemplateTimeInterval?> TimeInterval { get; private set; } = null!;

        /// <summary>
        /// transcoding configuration.
        /// </summary>
        [Output("transConfig")]
        public Output<Outputs.MediaTranscodeTemplateTransConfig?> TransConfig { get; private set; } = null!;

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


        /// <summary>
        /// Create a MediaTranscodeTemplate 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 MediaTranscodeTemplate(string name, MediaTranscodeTemplateArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Ci/mediaTranscodeTemplate:MediaTranscodeTemplate", name, args ?? new MediaTranscodeTemplateArgs(), MakeResourceOptions(options, ""))
        {
        }

        private MediaTranscodeTemplate(string name, Input<string> id, MediaTranscodeTemplateState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Ci/mediaTranscodeTemplate:MediaTranscodeTemplate", 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 MediaTranscodeTemplate 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 MediaTranscodeTemplate Get(string name, Input<string> id, MediaTranscodeTemplateState? state = null, CustomResourceOptions? options = null)
        {
            return new MediaTranscodeTemplate(name, id, state, options);
        }
    }

    public sealed class MediaTranscodeTemplateArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Audio information, do not transmit Audio, which is equivalent to deleting audio information.
        /// </summary>
        [Input("audio")]
        public Input<Inputs.MediaTranscodeTemplateAudioArgs>? Audio { get; set; }

        [Input("audioMixes")]
        private InputList<Inputs.MediaTranscodeTemplateAudioMixArgs>? _audioMixes;

        /// <summary>
        /// mixing parameters.
        /// </summary>
        public InputList<Inputs.MediaTranscodeTemplateAudioMixArgs> AudioMixes
        {
            get => _audioMixes ?? (_audioMixes = new InputList<Inputs.MediaTranscodeTemplateAudioMixArgs>());
            set => _audioMixes = value;
        }

        /// <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.MediaTranscodeTemplateContainerArgs> 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.MediaTranscodeTemplateTimeIntervalArgs>? TimeInterval { get; set; }

        /// <summary>
        /// transcoding configuration.
        /// </summary>
        [Input("transConfig")]
        public Input<Inputs.MediaTranscodeTemplateTransConfigArgs>? TransConfig { get; set; }

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

        public MediaTranscodeTemplateArgs()
        {
        }
    }

    public sealed class MediaTranscodeTemplateState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Audio information, do not transmit Audio, which is equivalent to deleting audio information.
        /// </summary>
        [Input("audio")]
        public Input<Inputs.MediaTranscodeTemplateAudioGetArgs>? Audio { get; set; }

        [Input("audioMixes")]
        private InputList<Inputs.MediaTranscodeTemplateAudioMixGetArgs>? _audioMixes;

        /// <summary>
        /// mixing parameters.
        /// </summary>
        public InputList<Inputs.MediaTranscodeTemplateAudioMixGetArgs> AudioMixes
        {
            get => _audioMixes ?? (_audioMixes = new InputList<Inputs.MediaTranscodeTemplateAudioMixGetArgs>());
            set => _audioMixes = value;
        }

        /// <summary>
        /// bucket name.
        /// </summary>
        [Input("bucket")]
        public Input<string>? Bucket { get; set; }

        /// <summary>
        /// container format.
        /// </summary>
        [Input("container")]
        public Input<Inputs.MediaTranscodeTemplateContainerGetArgs>? 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.MediaTranscodeTemplateTimeIntervalGetArgs>? TimeInterval { get; set; }

        /// <summary>
        /// transcoding configuration.
        /// </summary>
        [Input("transConfig")]
        public Input<Inputs.MediaTranscodeTemplateTransConfigGetArgs>? TransConfig { get; set; }

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

        public MediaTranscodeTemplateState()
        {
        }
    }
}
