<reponame>Dwonczykj/gember_deploy// *** 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.Ha
{
    public static class GetVipEipAttachments
    {
        /// <summary>
        /// Use this data source to query detailed information of HA VIP EIP attachments
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Ha.GetVipEipAttachments.InvokeAsync(new Tencentcloud.Ha.GetVipEipAttachmentsArgs
        ///         {
        ///             AddressIp = "1.1.1.1",
        ///             HavipId = "havip-kjqwe4ba",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetVipEipAttachmentsResult> InvokeAsync(GetVipEipAttachmentsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetVipEipAttachmentsResult>("tencentcloud:Ha/getVipEipAttachments:getVipEipAttachments", args ?? new GetVipEipAttachmentsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of HA VIP EIP attachments
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Ha.GetVipEipAttachments.InvokeAsync(new Tencentcloud.Ha.GetVipEipAttachmentsArgs
        ///         {
        ///             AddressIp = "1.1.1.1",
        ///             HavipId = "havip-kjqwe4ba",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetVipEipAttachmentsResult> Invoke(GetVipEipAttachmentsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetVipEipAttachmentsResult>("tencentcloud:Ha/getVipEipAttachments:getVipEipAttachments", args ?? new GetVipEipAttachmentsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetVipEipAttachmentsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Public IP address of EIP to be queried.
        /// </summary>
        [Input("addressIp")]
        public string? AddressIp { get; set; }

        /// <summary>
        /// ID of the attached HA VIP to be queried.
        /// </summary>
        [Input("havipId", required: true)]
        public string HavipId { get; set; } = null!;

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

        public GetVipEipAttachmentsArgs()
        {
        }
    }

    public sealed class GetVipEipAttachmentsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Public IP address of EIP to be queried.
        /// </summary>
        [Input("addressIp")]
        public Input<string>? AddressIp { get; set; }

        /// <summary>
        /// ID of the attached HA VIP to be queried.
        /// </summary>
        [Input("havipId", required: true)]
        public Input<string> HavipId { get; set; } = null!;

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

        public GetVipEipAttachmentsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetVipEipAttachmentsResult
    {
        /// <summary>
        /// Public IP address of EIP.
        /// </summary>
        public readonly string? AddressIp;
        /// <summary>
        /// A list of HA VIP EIP attachments. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetVipEipAttachmentsHaVipEipAttachmentListResult> HaVipEipAttachmentLists;
        /// <summary>
        /// ID of the attached HA VIP.
        /// </summary>
        public readonly string HavipId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetVipEipAttachmentsResult(
            string? addressIp,

            ImmutableArray<Outputs.GetVipEipAttachmentsHaVipEipAttachmentListResult> haVipEipAttachmentLists,

            string havipId,

            string id,

            string? resultOutputFile)
        {
            AddressIp = addressIp;
            HaVipEipAttachmentLists = haVipEipAttachmentLists;
            HavipId = havipId;
            Id = id;
            ResultOutputFile = resultOutputFile;
        }
    }
}
