// *** 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
{
    public static class GetAviatrixGatewayImage
    {
        /// <summary>
        /// The **aviatrix_gateway_image** data source provides the current image version that pairs with the given software version
        /// and cloud type.
        /// 
        /// This data source is useful for getting the correct image_version for a gateway when upgrading the software_version of
        /// the gateway.
        /// </summary>
        public static Task<GetAviatrixGatewayImageResult> InvokeAsync(GetAviatrixGatewayImageArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetAviatrixGatewayImageResult>("aviatrix:index/getAviatrixGatewayImage:getAviatrixGatewayImage", args ?? new GetAviatrixGatewayImageArgs(), options.WithDefaults());

        /// <summary>
        /// The **aviatrix_gateway_image** data source provides the current image version that pairs with the given software version
        /// and cloud type.
        /// 
        /// This data source is useful for getting the correct image_version for a gateway when upgrading the software_version of
        /// the gateway.
        /// </summary>
        public static Output<GetAviatrixGatewayImageResult> Invoke(GetAviatrixGatewayImageInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetAviatrixGatewayImageResult>("aviatrix:index/getAviatrixGatewayImage:getAviatrixGatewayImage", args ?? new GetAviatrixGatewayImageInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetAviatrixGatewayImageArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cloud type. Type: Integer. Example: 1 (AWS)
        /// </summary>
        [Input("cloudType", required: true)]
        public int CloudType { get; set; }

        /// <summary>
        /// Software version. Type: String. Example: "6.4.2487"
        /// </summary>
        [Input("softwareVersion", required: true)]
        public string SoftwareVersion { get; set; } = null!;

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

    public sealed class GetAviatrixGatewayImageInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cloud type. Type: Integer. Example: 1 (AWS)
        /// </summary>
        [Input("cloudType", required: true)]
        public Input<int> CloudType { get; set; } = null!;

        /// <summary>
        /// Software version. Type: String. Example: "6.4.2487"
        /// </summary>
        [Input("softwareVersion", required: true)]
        public Input<string> SoftwareVersion { get; set; } = null!;

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


    [OutputType]
    public sealed class GetAviatrixGatewayImageResult
    {
        public readonly int CloudType;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Image version that is compatible with the given cloud_type and software_version.
        /// </summary>
        public readonly string ImageVersion;
        public readonly string SoftwareVersion;

        [OutputConstructor]
        private GetAviatrixGatewayImageResult(
            int cloudType,

            string id,

            string imageVersion,

            string softwareVersion)
        {
            CloudType = cloudType;
            Id = id;
            ImageVersion = imageVersion;
            SoftwareVersion = softwareVersion;
        }
    }
}
