// *** 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.Dayu
{
    public static class GetEip
    {
        /// <summary>
        /// Use this data source to query dayu eip rules
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var test = Output.Create(Tencentcloud.Dayu.GetEip.InvokeAsync(new Tencentcloud.Dayu.GetEipArgs
        ///         {
        ///             ResourceId = "bgpip-000004xg",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetEipResult> InvokeAsync(GetEipArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetEipResult>("tencentcloud:Dayu/getEip:getEip", args ?? new GetEipArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query dayu eip rules
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var test = Output.Create(Tencentcloud.Dayu.GetEip.InvokeAsync(new Tencentcloud.Dayu.GetEipArgs
        ///         {
        ///             ResourceId = "bgpip-000004xg",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetEipResult> Invoke(GetEipInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetEipResult>("tencentcloud:Dayu/getEip:getEip", args ?? new GetEipInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetEipArgs : Pulumi.InvokeArgs
    {
        [Input("bindStatuses")]
        private List<string>? _bindStatuses;

        /// <summary>
        /// The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
        /// </summary>
        public List<string> BindStatuses
        {
            get => _bindStatuses ?? (_bindStatuses = new List<string>());
            set => _bindStatuses = value;
        }

        /// <summary>
        /// The number of pages, default is `10`.
        /// </summary>
        [Input("limit")]
        public int? Limit { get; set; }

        /// <summary>
        /// The page start offset, default is `0`.
        /// </summary>
        [Input("offset")]
        public int? Offset { get; set; }

        /// <summary>
        /// Id of the resource.
        /// </summary>
        [Input("resourceId", required: true)]
        public string ResourceId { get; set; } = null!;

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

        public GetEipArgs()
        {
        }
    }

    public sealed class GetEipInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("bindStatuses")]
        private InputList<string>? _bindStatuses;

        /// <summary>
        /// The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
        /// </summary>
        public InputList<string> BindStatuses
        {
            get => _bindStatuses ?? (_bindStatuses = new InputList<string>());
            set => _bindStatuses = value;
        }

        /// <summary>
        /// The number of pages, default is `10`.
        /// </summary>
        [Input("limit")]
        public Input<int>? Limit { get; set; }

        /// <summary>
        /// The page start offset, default is `0`.
        /// </summary>
        [Input("offset")]
        public Input<int>? Offset { get; set; }

        /// <summary>
        /// Id of the resource.
        /// </summary>
        [Input("resourceId", required: true)]
        public Input<string> ResourceId { get; set; } = null!;

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

        public GetEipInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetEipResult
    {
        public readonly ImmutableArray<string> BindStatuses;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly int? Limit;
        /// <summary>
        /// A list of layer 4 rules. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetEipListResult> Lists;
        public readonly int? Offset;
        public readonly string ResourceId;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetEipResult(
            ImmutableArray<string> bindStatuses,

            string id,

            int? limit,

            ImmutableArray<Outputs.GetEipListResult> lists,

            int? offset,

            string resourceId,

            string? resultOutputFile)
        {
            BindStatuses = bindStatuses;
            Id = id;
            Limit = limit;
            Lists = lists;
            Offset = offset;
            ResourceId = resourceId;
            ResultOutputFile = resultOutputFile;
        }
    }
}
