// *** 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 load_balancing
    /// 
    /// ## Import
    /// 
    /// teo load_balancing can be imported using the zone_id#loadBalancing_id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Teo/loadBalancing:LoadBalancing load_balancing zone-297z8rf93cfw#lb-2a93c649-3719-11ed-b9c1-5254005a52aa
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Teo/loadBalancing:LoadBalancing")]
    public partial class LoadBalancing : Pulumi.CustomResource
    {
        /// <summary>
        /// ID of the backup origin group to use.
        /// </summary>
        [Output("backupOriginGroupId")]
        public Output<string> BackupOriginGroupId { get; private set; } = null!;

        /// <summary>
        /// Schedules domain names. Note: This field may return null, indicating that no valid value can be obtained.
        /// </summary>
        [Output("cname")]
        public Output<string> Cname { get; private set; } = null!;

        /// <summary>
        /// Subdomain name. You can use @ to represent the root domain.
        /// </summary>
        [Output("host")]
        public Output<string> Host { get; private set; } = null!;

        /// <summary>
        /// Load balancer instance ID.
        /// </summary>
        [Output("loadBalancingId")]
        public Output<string> LoadBalancingId { get; private set; } = null!;

        /// <summary>
        /// ID of the origin group to use.
        /// </summary>
        [Output("originGroupId")]
        public Output<string> OriginGroupId { get; private set; } = null!;

        /// <summary>
        /// Status of the task. Valid values to set: `online`, `offline`. During status change, the status is `process`.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;

        /// <summary>
        /// Indicates DNS TTL time when `Type` is dns_only.
        /// </summary>
        [Output("ttl")]
        public Output<int> Ttl { get; private set; } = null!;

        /// <summary>
        /// Proxy mode.- `dns_only`: Only DNS.- `proxied`: Enable proxy.
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;

        /// <summary>
        /// Last modification date.
        /// </summary>
        [Output("updateTime")]
        public Output<string> UpdateTime { get; private set; } = null!;

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


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

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

    public sealed class LoadBalancingArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// ID of the backup origin group to use.
        /// </summary>
        [Input("backupOriginGroupId")]
        public Input<string>? BackupOriginGroupId { get; set; }

        /// <summary>
        /// Subdomain name. You can use @ to represent the root domain.
        /// </summary>
        [Input("host", required: true)]
        public Input<string> Host { get; set; } = null!;

        /// <summary>
        /// ID of the origin group to use.
        /// </summary>
        [Input("originGroupId", required: true)]
        public Input<string> OriginGroupId { get; set; } = null!;

        /// <summary>
        /// Status of the task. Valid values to set: `online`, `offline`. During status change, the status is `process`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// Indicates DNS TTL time when `Type` is dns_only.
        /// </summary>
        [Input("ttl")]
        public Input<int>? Ttl { get; set; }

        /// <summary>
        /// Proxy mode.- `dns_only`: Only DNS.- `proxied`: Enable proxy.
        /// </summary>
        [Input("type", required: true)]
        public Input<string> Type { get; set; } = null!;

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

        public LoadBalancingArgs()
        {
        }
    }

    public sealed class LoadBalancingState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// ID of the backup origin group to use.
        /// </summary>
        [Input("backupOriginGroupId")]
        public Input<string>? BackupOriginGroupId { get; set; }

        /// <summary>
        /// Schedules domain names. Note: This field may return null, indicating that no valid value can be obtained.
        /// </summary>
        [Input("cname")]
        public Input<string>? Cname { get; set; }

        /// <summary>
        /// Subdomain name. You can use @ to represent the root domain.
        /// </summary>
        [Input("host")]
        public Input<string>? Host { get; set; }

        /// <summary>
        /// Load balancer instance ID.
        /// </summary>
        [Input("loadBalancingId")]
        public Input<string>? LoadBalancingId { get; set; }

        /// <summary>
        /// ID of the origin group to use.
        /// </summary>
        [Input("originGroupId")]
        public Input<string>? OriginGroupId { get; set; }

        /// <summary>
        /// Status of the task. Valid values to set: `online`, `offline`. During status change, the status is `process`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// Indicates DNS TTL time when `Type` is dns_only.
        /// </summary>
        [Input("ttl")]
        public Input<int>? Ttl { get; set; }

        /// <summary>
        /// Proxy mode.- `dns_only`: Only DNS.- `proxied`: Enable proxy.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        /// <summary>
        /// Last modification date.
        /// </summary>
        [Input("updateTime")]
        public Input<string>? UpdateTime { get; set; }

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

        public LoadBalancingState()
        {
        }
    }
}
