// *** 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.Eips
{
    public static class GetInstance
    {
        /// <summary>
        /// Use this data source to query eip instances.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Eips.GetInstance.InvokeAsync(new Tencentcloud.Eips.GetInstanceArgs
        ///         {
        ///             EipId = "eip-ry9h95hg",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetInstanceResult>("tencentcloud:Eips/getInstance:getInstance", args ?? new GetInstanceArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query eip instances.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Eips.GetInstance.InvokeAsync(new Tencentcloud.Eips.GetInstanceArgs
        ///         {
        ///             EipId = "eip-ry9h95hg",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetInstanceResult>("tencentcloud:Eips/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInstanceArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the EIP to be queried.
        /// </summary>
        [Input("eipId")]
        public string? EipId { get; set; }

        /// <summary>
        /// Name of the EIP to be queried.
        /// </summary>
        [Input("eipName")]
        public string? EipName { get; set; }

        /// <summary>
        /// The elastic ip address.
        /// </summary>
        [Input("publicIp")]
        public string? PublicIp { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        [Input("tags")]
        private Dictionary<string, object>? _tags;

        /// <summary>
        /// The tags of EIP.
        /// </summary>
        public Dictionary<string, object> Tags
        {
            get => _tags ?? (_tags = new Dictionary<string, object>());
            set => _tags = value;
        }

        public GetInstanceArgs()
        {
        }
    }

    public sealed class GetInstanceInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the EIP to be queried.
        /// </summary>
        [Input("eipId")]
        public Input<string>? EipId { get; set; }

        /// <summary>
        /// Name of the EIP to be queried.
        /// </summary>
        [Input("eipName")]
        public Input<string>? EipName { get; set; }

        /// <summary>
        /// The elastic ip address.
        /// </summary>
        [Input("publicIp")]
        public Input<string>? PublicIp { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        [Input("tags")]
        private InputMap<object>? _tags;

        /// <summary>
        /// The tags of EIP.
        /// </summary>
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

        public GetInstanceInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetInstanceResult
    {
        /// <summary>
        /// ID of the EIP.
        /// </summary>
        public readonly string? EipId;
        /// <summary>
        /// An information list of EIP. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInstanceEipListResult> EipLists;
        /// <summary>
        /// Name of the EIP.
        /// </summary>
        public readonly string? EipName;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// The elastic ip address.
        /// </summary>
        public readonly string? PublicIp;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Tags of the EIP.
        /// </summary>
        public readonly ImmutableDictionary<string, object>? Tags;

        [OutputConstructor]
        private GetInstanceResult(
            string? eipId,

            ImmutableArray<Outputs.GetInstanceEipListResult> eipLists,

            string? eipName,

            string id,

            string? publicIp,

            string? resultOutputFile,

            ImmutableDictionary<string, object>? tags)
        {
            EipId = eipId;
            EipLists = eipLists;
            EipName = eipName;
            Id = id;
            PublicIp = publicIp;
            ResultOutputFile = resultOutputFile;
            Tags = tags;
        }
    }
}
