// *** 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 GetAviatrixSpokeGatewayInspectionSubnets
    {
        /// <summary>
        /// The **aviatrix_spoke_gateway_inspection_subnets** data source provides all subnets available for the subnet inspection feature.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Aviatrix = Pulumi.Aviatrix;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var foo = Aviatrix.GetAviatrixSpokeGatewayInspectionSubnets.Invoke(new()
        ///     {
        ///         GwName = "gatewayname",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetAviatrixSpokeGatewayInspectionSubnetsResult> InvokeAsync(GetAviatrixSpokeGatewayInspectionSubnetsArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetAviatrixSpokeGatewayInspectionSubnetsResult>("aviatrix:index/getAviatrixSpokeGatewayInspectionSubnets:getAviatrixSpokeGatewayInspectionSubnets", args ?? new GetAviatrixSpokeGatewayInspectionSubnetsArgs(), options.WithDefaults());

        /// <summary>
        /// The **aviatrix_spoke_gateway_inspection_subnets** data source provides all subnets available for the subnet inspection feature.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Aviatrix = Pulumi.Aviatrix;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var foo = Aviatrix.GetAviatrixSpokeGatewayInspectionSubnets.Invoke(new()
        ///     {
        ///         GwName = "gatewayname",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetAviatrixSpokeGatewayInspectionSubnetsResult> Invoke(GetAviatrixSpokeGatewayInspectionSubnetsInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetAviatrixSpokeGatewayInspectionSubnetsResult>("aviatrix:index/getAviatrixSpokeGatewayInspectionSubnets:getAviatrixSpokeGatewayInspectionSubnets", args ?? new GetAviatrixSpokeGatewayInspectionSubnetsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetAviatrixSpokeGatewayInspectionSubnetsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Spoke gateway name.
        /// </summary>
        [Input("gwName", required: true)]
        public string GwName { get; set; } = null!;

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

    public sealed class GetAviatrixSpokeGatewayInspectionSubnetsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Spoke gateway name.
        /// </summary>
        [Input("gwName", required: true)]
        public Input<string> GwName { get; set; } = null!;

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


    [OutputType]
    public sealed class GetAviatrixSpokeGatewayInspectionSubnetsResult
    {
        public readonly string GwName;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// The list of all subnets available for the subnet inspection feature. This attribute is only supported for Azure.
        /// </summary>
        public readonly ImmutableArray<string> SubnetsForInspections;

        [OutputConstructor]
        private GetAviatrixSpokeGatewayInspectionSubnetsResult(
            string gwName,

            string id,

            ImmutableArray<string> subnetsForInspections)
        {
            GwName = gwName;
            Id = id;
            SubnetsForInspections = subnetsForInspections;
        }
    }
}
