// *** 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.Teo
{
    /// <summary>
    /// Provides a resource to create a teo rule_engine_priority
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var ruleEnginePriority = new Tencentcloud.Teo.RuleEnginePriority("ruleEnginePriority", new Tencentcloud.Teo.RuleEnginePriorityArgs
    ///         {
    ///             RulesPriorities = 
    ///             {
    ///                 new Tencentcloud.Teo.Inputs.RuleEnginePriorityRulesPriorityArgs
    ///                 {
    ///                     Index = 0,
    ///                     Value = "rule-m9jlttua",
    ///                 },
    ///                 new Tencentcloud.Teo.Inputs.RuleEnginePriorityRulesPriorityArgs
    ///                 {
    ///                     Index = 1,
    ///                     Value = "rule-m5l9t4k1",
    ///                 },
    ///             },
    ///             ZoneId = "zone-294v965lwmn6",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// teo rule_engine_priority can be imported using the zone_id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Teo/ruleEnginePriority:RuleEnginePriority rule_engine_priority zone-294v965lwmn6
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Teo/ruleEnginePriority:RuleEnginePriority")]
    public partial class RuleEnginePriority : Pulumi.CustomResource
    {
        /// <summary>
        /// Priority of rules.
        /// </summary>
        [Output("rulesPriorities")]
        public Output<ImmutableArray<Outputs.RuleEnginePriorityRulesPriority>> RulesPriorities { get; private set; } = null!;

        /// <summary>
        /// Site ID.
        /// </summary>
        [Output("zoneId")]
        public Output<string> ZoneId { get; private set; } = null!;


        /// <summary>
        /// Create a RuleEnginePriority 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 RuleEnginePriority(string name, RuleEnginePriorityArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Teo/ruleEnginePriority:RuleEnginePriority", name, args ?? new RuleEnginePriorityArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class RuleEnginePriorityArgs : Pulumi.ResourceArgs
    {
        [Input("rulesPriorities")]
        private InputList<Inputs.RuleEnginePriorityRulesPriorityArgs>? _rulesPriorities;

        /// <summary>
        /// Priority of rules.
        /// </summary>
        public InputList<Inputs.RuleEnginePriorityRulesPriorityArgs> RulesPriorities
        {
            get => _rulesPriorities ?? (_rulesPriorities = new InputList<Inputs.RuleEnginePriorityRulesPriorityArgs>());
            set => _rulesPriorities = value;
        }

        /// <summary>
        /// Site ID.
        /// </summary>
        [Input("zoneId", required: true)]
        public Input<string> ZoneId { get; set; } = null!;

        public RuleEnginePriorityArgs()
        {
        }
    }

    public sealed class RuleEnginePriorityState : Pulumi.ResourceArgs
    {
        [Input("rulesPriorities")]
        private InputList<Inputs.RuleEnginePriorityRulesPriorityGetArgs>? _rulesPriorities;

        /// <summary>
        /// Priority of rules.
        /// </summary>
        public InputList<Inputs.RuleEnginePriorityRulesPriorityGetArgs> RulesPriorities
        {
            get => _rulesPriorities ?? (_rulesPriorities = new InputList<Inputs.RuleEnginePriorityRulesPriorityGetArgs>());
            set => _rulesPriorities = value;
        }

        /// <summary>
        /// Site ID.
        /// </summary>
        [Input("zoneId")]
        public Input<string>? ZoneId { get; set; }

        public RuleEnginePriorityState()
        {
        }
    }
}
