// *** 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;

namespace Pulumi.Aviatrix
{
    /// <summary>
    /// The **aviatrix_private_mode_lb** resource allows management of a Private Mode load balancer. This resource is available as of provider version R2.23+.
    /// 
    /// ## Import
    /// 
    /// **aviatrix_private_mode_lb** can be imported using the `vpc_id`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixPrivateModeLb:AviatrixPrivateModeLb test vpc-1234567
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixPrivateModeLb:AviatrixPrivateModeLb")]
    public partial class AviatrixPrivateModeLb : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Name of the access account.
        /// </summary>
        [Output("accountName")]
        public Output<string> AccountName { get; private set; } = null!;

        /// <summary>
        /// Type of load balancer to create. Must be one of controller or multicloud.
        /// </summary>
        [Output("lbType")]
        public Output<string> LbType { get; private set; } = null!;

        /// <summary>
        /// ID of the VPC with a multicloud endpoint. Required when `lb_type` is multicloud.
        /// </summary>
        [Output("multicloudAccessVpcId")]
        public Output<string?> MulticloudAccessVpcId { get; private set; } = null!;

        /// <summary>
        /// List of multicloud proxies. Only valid when `lb_type` is multicloud.
        /// </summary>
        [Output("proxies")]
        public Output<ImmutableArray<Outputs.AviatrixPrivateModeLbProxy>> Proxies { get; private set; } = null!;

        /// <summary>
        /// Name of the region containing the VPC.
        /// </summary>
        [Output("region")]
        public Output<string> Region { get; private set; } = null!;

        /// <summary>
        /// VPC ID of the proxy.
        /// </summary>
        [Output("vpcId")]
        public Output<string> VpcId { get; private set; } = null!;


        /// <summary>
        /// Create a AviatrixPrivateModeLb 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 AviatrixPrivateModeLb(string name, AviatrixPrivateModeLbArgs args, CustomResourceOptions? options = null)
            : base("aviatrix:index/aviatrixPrivateModeLb:AviatrixPrivateModeLb", name, args ?? new AviatrixPrivateModeLbArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AviatrixPrivateModeLb(string name, Input<string> id, AviatrixPrivateModeLbState? state = null, CustomResourceOptions? options = null)
            : base("aviatrix:index/aviatrixPrivateModeLb:AviatrixPrivateModeLb", 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/astipkovits",
            };
            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 AviatrixPrivateModeLb 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 AviatrixPrivateModeLb Get(string name, Input<string> id, AviatrixPrivateModeLbState? state = null, CustomResourceOptions? options = null)
        {
            return new AviatrixPrivateModeLb(name, id, state, options);
        }
    }

    public sealed class AviatrixPrivateModeLbArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the access account.
        /// </summary>
        [Input("accountName", required: true)]
        public Input<string> AccountName { get; set; } = null!;

        /// <summary>
        /// Type of load balancer to create. Must be one of controller or multicloud.
        /// </summary>
        [Input("lbType", required: true)]
        public Input<string> LbType { get; set; } = null!;

        /// <summary>
        /// ID of the VPC with a multicloud endpoint. Required when `lb_type` is multicloud.
        /// </summary>
        [Input("multicloudAccessVpcId")]
        public Input<string>? MulticloudAccessVpcId { get; set; }

        [Input("proxies")]
        private InputList<Inputs.AviatrixPrivateModeLbProxyArgs>? _proxies;

        /// <summary>
        /// List of multicloud proxies. Only valid when `lb_type` is multicloud.
        /// </summary>
        public InputList<Inputs.AviatrixPrivateModeLbProxyArgs> Proxies
        {
            get => _proxies ?? (_proxies = new InputList<Inputs.AviatrixPrivateModeLbProxyArgs>());
            set => _proxies = value;
        }

        /// <summary>
        /// Name of the region containing the VPC.
        /// </summary>
        [Input("region", required: true)]
        public Input<string> Region { get; set; } = null!;

        /// <summary>
        /// VPC ID of the proxy.
        /// </summary>
        [Input("vpcId", required: true)]
        public Input<string> VpcId { get; set; } = null!;

        public AviatrixPrivateModeLbArgs()
        {
        }
        public static new AviatrixPrivateModeLbArgs Empty => new AviatrixPrivateModeLbArgs();
    }

    public sealed class AviatrixPrivateModeLbState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the access account.
        /// </summary>
        [Input("accountName")]
        public Input<string>? AccountName { get; set; }

        /// <summary>
        /// Type of load balancer to create. Must be one of controller or multicloud.
        /// </summary>
        [Input("lbType")]
        public Input<string>? LbType { get; set; }

        /// <summary>
        /// ID of the VPC with a multicloud endpoint. Required when `lb_type` is multicloud.
        /// </summary>
        [Input("multicloudAccessVpcId")]
        public Input<string>? MulticloudAccessVpcId { get; set; }

        [Input("proxies")]
        private InputList<Inputs.AviatrixPrivateModeLbProxyGetArgs>? _proxies;

        /// <summary>
        /// List of multicloud proxies. Only valid when `lb_type` is multicloud.
        /// </summary>
        public InputList<Inputs.AviatrixPrivateModeLbProxyGetArgs> Proxies
        {
            get => _proxies ?? (_proxies = new InputList<Inputs.AviatrixPrivateModeLbProxyGetArgs>());
            set => _proxies = value;
        }

        /// <summary>
        /// Name of the region containing the VPC.
        /// </summary>
        [Input("region")]
        public Input<string>? Region { get; set; }

        /// <summary>
        /// VPC ID of the proxy.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

        public AviatrixPrivateModeLbState()
        {
        }
        public static new AviatrixPrivateModeLbState Empty => new AviatrixPrivateModeLbState();
    }
}
