<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.Vpn
{
    public static class GetGateways
    {
        /// <summary>
        /// Use this data source to query detailed information of VPN gateways.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Vpn.GetGateways.InvokeAsync(new Tencentcloud.Vpn.GetGatewaysArgs
        ///         {
        ///             Id = "vpngw-8ccsnclt",
        ///             Name = "main",
        ///             PublicIpAddress = "1.1.1.1",
        ///             Tags = 
        ///             {
        ///                 { "test", "tf" },
        ///             },
        ///             VpcId = "vpc-dk8zmwuf",
        ///             Zone = "ap-guangzhou-3",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetGatewaysResult> InvokeAsync(GetGatewaysArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetGatewaysResult>("tencentcloud:Vpn/getGateways:getGateways", args ?? new GetGatewaysArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of VPN gateways.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Vpn.GetGateways.InvokeAsync(new Tencentcloud.Vpn.GetGatewaysArgs
        ///         {
        ///             Id = "vpngw-8ccsnclt",
        ///             Name = "main",
        ///             PublicIpAddress = "1.1.1.1",
        ///             Tags = 
        ///             {
        ///                 { "test", "tf" },
        ///             },
        ///             VpcId = "vpc-dk8zmwuf",
        ///             Zone = "ap-guangzhou-3",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetGatewaysResult> Invoke(GetGatewaysInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetGatewaysResult>("tencentcloud:Vpn/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetGatewaysArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the VPN gateway.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// Name of the VPN gateway. The length of character is limited to 1-60.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        /// <summary>
        /// Public ip address of the VPN gateway.
        /// </summary>
        [Input("publicIpAddress")]
        public string? PublicIpAddress { get; set; }

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

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

        /// <summary>
        /// Tags of the VPN gateway to be queried.
        /// </summary>
        public Dictionary<string, object> Tags
        {
            get => _tags ?? (_tags = new Dictionary<string, object>());
            set => _tags = value;
        }

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

        /// <summary>
        /// Zone of the VPN gateway.
        /// </summary>
        [Input("zone")]
        public string? Zone { get; set; }

        public GetGatewaysArgs()
        {
        }
    }

    public sealed class GetGatewaysInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the VPN gateway.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// Name of the VPN gateway. The length of character is limited to 1-60.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Public ip address of the VPN gateway.
        /// </summary>
        [Input("publicIpAddress")]
        public Input<string>? PublicIpAddress { get; set; }

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

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

        /// <summary>
        /// Tags of the VPN gateway to be queried.
        /// </summary>
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

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

        /// <summary>
        /// Zone of the VPN gateway.
        /// </summary>
        [Input("zone")]
        public Input<string>? Zone { get; set; }

        public GetGatewaysInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetGatewaysResult
    {
        /// <summary>
        /// Information list of the dedicated gateways.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetGatewaysGatewayListResult> GatewayLists;
        /// <summary>
        /// ID of the VPN gateway.
        /// </summary>
        public readonly string? Id;
        /// <summary>
        /// Name of the VPN gateway.
        /// </summary>
        public readonly string? Name;
        /// <summary>
        /// Public ip of the VPN gateway.
        /// </summary>
        public readonly string? PublicIpAddress;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// A list of tags used to associate different resources.
        /// </summary>
        public readonly ImmutableDictionary<string, object>? Tags;
        /// <summary>
        /// ID of the VPC.
        /// </summary>
        public readonly string? VpcId;
        /// <summary>
        /// Zone of the VPN gateway.
        /// </summary>
        public readonly string? Zone;

        [OutputConstructor]
        private GetGatewaysResult(
            ImmutableArray<Outputs.GetGatewaysGatewayListResult> gatewayLists,

            string? id,

            string? name,

            string? publicIpAddress,

            string? resultOutputFile,

            ImmutableDictionary<string, object>? tags,

            string? vpcId,

            string? zone)
        {
            GatewayLists = gatewayLists;
            Id = id;
            Name = name;
            PublicIpAddress = publicIpAddress;
            ResultOutputFile = resultOutputFile;
            Tags = tags;
            VpcId = vpcId;
            Zone = zone;
        }
    }
}
