<gh_stars>0// *** 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.Postgresql
{
    /// <summary>
    /// Provides a resource to create a postgresql parameter_template
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var parameterTemplate = new Tencentcloud.Postgresql.ParameterTemplate("parameterTemplate", new Tencentcloud.Postgresql.ParameterTemplateArgs
    ///         {
    ///             DbEngine = "postgresql",
    ///             DbMajorVersion = "13",
    ///             DeleteParamSets = 
    ///             {
    ///                 "lc_time",
    ///             },
    ///             ModifyParamEntrySets = 
    ///             {
    ///                 new Tencentcloud.Postgresql.Inputs.ParameterTemplateModifyParamEntrySetArgs
    ///                 {
    ///                     ExpectedValue = "UTC",
    ///                     Name = "timezone",
    ///                 },
    ///                 new Tencentcloud.Postgresql.Inputs.ParameterTemplateModifyParamEntrySetArgs
    ///                 {
    ///                     ExpectedValue = "123",
    ///                     Name = "lock_timeout",
    ///                 },
    ///             },
    ///             TemplateDescription = "For_tf_test",
    ///             TemplateName = "your_temp_name",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// postgresql parameter_template can be imported using the id, e.g. Notice`modify_param_entry_set` and `delete_param_set` do not support import.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Postgresql/parameterTemplate:ParameterTemplate parameter_template parameter_template_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Postgresql/parameterTemplate:ParameterTemplate")]
    public partial class ParameterTemplate : Pulumi.CustomResource
    {
        /// <summary>
        /// Database engine, such as postgresql, mssql_compatible.
        /// </summary>
        [Output("dbEngine")]
        public Output<string> DbEngine { get; private set; } = null!;

        /// <summary>
        /// The major database version number, such as 11, 12, 13.
        /// </summary>
        [Output("dbMajorVersion")]
        public Output<string> DbMajorVersion { get; private set; } = null!;

        /// <summary>
        /// The set of parameters that need to be deleted.
        /// </summary>
        [Output("deleteParamSets")]
        public Output<ImmutableArray<string>> DeleteParamSets { get; private set; } = null!;

        /// <summary>
        /// The set of parameters that need to be modified or added. Note: the same parameter cannot appear in the set of modifying and adding and deleting at the same time.
        /// </summary>
        [Output("modifyParamEntrySets")]
        public Output<ImmutableArray<Outputs.ParameterTemplateModifyParamEntrySet>> ModifyParamEntrySets { get; private set; } = null!;

        /// <summary>
        /// Parameter template description, which can contain 1-60 letters, digits, and symbols (-_./()+=:@).
        /// </summary>
        [Output("templateDescription")]
        public Output<string?> TemplateDescription { get; private set; } = null!;

        /// <summary>
        /// Template name, which can contain 1-60 letters, digits, and symbols (-_./()+=:@).
        /// </summary>
        [Output("templateName")]
        public Output<string> TemplateName { get; private set; } = null!;


        /// <summary>
        /// Create a ParameterTemplate 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 ParameterTemplate(string name, ParameterTemplateArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Postgresql/parameterTemplate:ParameterTemplate", name, args ?? new ParameterTemplateArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class ParameterTemplateArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Database engine, such as postgresql, mssql_compatible.
        /// </summary>
        [Input("dbEngine", required: true)]
        public Input<string> DbEngine { get; set; } = null!;

        /// <summary>
        /// The major database version number, such as 11, 12, 13.
        /// </summary>
        [Input("dbMajorVersion", required: true)]
        public Input<string> DbMajorVersion { get; set; } = null!;

        [Input("deleteParamSets")]
        private InputList<string>? _deleteParamSets;

        /// <summary>
        /// The set of parameters that need to be deleted.
        /// </summary>
        public InputList<string> DeleteParamSets
        {
            get => _deleteParamSets ?? (_deleteParamSets = new InputList<string>());
            set => _deleteParamSets = value;
        }

        [Input("modifyParamEntrySets")]
        private InputList<Inputs.ParameterTemplateModifyParamEntrySetArgs>? _modifyParamEntrySets;

        /// <summary>
        /// The set of parameters that need to be modified or added. Note: the same parameter cannot appear in the set of modifying and adding and deleting at the same time.
        /// </summary>
        public InputList<Inputs.ParameterTemplateModifyParamEntrySetArgs> ModifyParamEntrySets
        {
            get => _modifyParamEntrySets ?? (_modifyParamEntrySets = new InputList<Inputs.ParameterTemplateModifyParamEntrySetArgs>());
            set => _modifyParamEntrySets = value;
        }

        /// <summary>
        /// Parameter template description, which can contain 1-60 letters, digits, and symbols (-_./()+=:@).
        /// </summary>
        [Input("templateDescription")]
        public Input<string>? TemplateDescription { get; set; }

        /// <summary>
        /// Template name, which can contain 1-60 letters, digits, and symbols (-_./()+=:@).
        /// </summary>
        [Input("templateName", required: true)]
        public Input<string> TemplateName { get; set; } = null!;

        public ParameterTemplateArgs()
        {
        }
    }

    public sealed class ParameterTemplateState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Database engine, such as postgresql, mssql_compatible.
        /// </summary>
        [Input("dbEngine")]
        public Input<string>? DbEngine { get; set; }

        /// <summary>
        /// The major database version number, such as 11, 12, 13.
        /// </summary>
        [Input("dbMajorVersion")]
        public Input<string>? DbMajorVersion { get; set; }

        [Input("deleteParamSets")]
        private InputList<string>? _deleteParamSets;

        /// <summary>
        /// The set of parameters that need to be deleted.
        /// </summary>
        public InputList<string> DeleteParamSets
        {
            get => _deleteParamSets ?? (_deleteParamSets = new InputList<string>());
            set => _deleteParamSets = value;
        }

        [Input("modifyParamEntrySets")]
        private InputList<Inputs.ParameterTemplateModifyParamEntrySetGetArgs>? _modifyParamEntrySets;

        /// <summary>
        /// The set of parameters that need to be modified or added. Note: the same parameter cannot appear in the set of modifying and adding and deleting at the same time.
        /// </summary>
        public InputList<Inputs.ParameterTemplateModifyParamEntrySetGetArgs> ModifyParamEntrySets
        {
            get => _modifyParamEntrySets ?? (_modifyParamEntrySets = new InputList<Inputs.ParameterTemplateModifyParamEntrySetGetArgs>());
            set => _modifyParamEntrySets = value;
        }

        /// <summary>
        /// Parameter template description, which can contain 1-60 letters, digits, and symbols (-_./()+=:@).
        /// </summary>
        [Input("templateDescription")]
        public Input<string>? TemplateDescription { get; set; }

        /// <summary>
        /// Template name, which can contain 1-60 letters, digits, and symbols (-_./()+=:@).
        /// </summary>
        [Input("templateName")]
        public Input<string>? TemplateName { get; set; }

        public ParameterTemplateState()
        {
        }
    }
}
