<filename>sdk/dotnet/Zpa/Inspection/GetInspectionProfile.cs<gh_stars>0// *** 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 zscaler.PulumiPackage.Zpa.Inspection
{
    public static class GetInspectionProfile
    {
        /// <summary>
        /// Use the **zpa_inspection_profile** data source to get information about an inspection profile in the Zscaler Private Access cloud. This resource can then be referenced in an inspection custom control resource.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Zpa.Inspection.GetInspectionProfile.Invoke(new()
        ///     {
        ///         Name = "Example",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetInspectionProfileResult> InvokeAsync(GetInspectionProfileArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetInspectionProfileResult>("zpa:Inspection/getInspectionProfile:getInspectionProfile", args ?? new GetInspectionProfileArgs(), options.WithDefaults());

        /// <summary>
        /// Use the **zpa_inspection_profile** data source to get information about an inspection profile in the Zscaler Private Access cloud. This resource can then be referenced in an inspection custom control resource.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Zpa.Inspection.GetInspectionProfile.Invoke(new()
        ///     {
        ///         Name = "Example",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetInspectionProfileResult> Invoke(GetInspectionProfileInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetInspectionProfileResult>("zpa:Inspection/getInspectionProfile:getInspectionProfile", args ?? new GetInspectionProfileInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInspectionProfileArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// This field defines the id of the application server.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// This field defines the name of the server.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

    public sealed class GetInspectionProfileInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// This field defines the id of the application server.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// This field defines the name of the server.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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


    [OutputType]
    public sealed class GetInspectionProfileResult
    {
        /// <summary>
        /// (string)
        /// </summary>
        public readonly ImmutableDictionary<string, string> CommonGlobalOverrideActionsConfig;
        /// <summary>
        /// (string) Types for custom controls
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInspectionProfileControlsInfoResult> ControlsInfos;
        public readonly string CreationTime;
        /// <summary>
        /// (string) Types for custom controls
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInspectionProfileCustomControlResult> CustomControls;
        /// <summary>
        /// (string) Description of the inspection profile.
        /// </summary>
        public readonly string Description;
        public readonly ImmutableArray<string> GlobalControlActions;
        /// <summary>
        /// (string) ID of the predefined control
        /// </summary>
        public readonly string Id;
        public readonly string IncarnationNumber;
        public readonly string ModifiedBy;
        public readonly string ModifiedTime;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string Name;
        /// <summary>
        /// (string) OWASP Predefined Paranoia Level. Range: [1-4], inclusive
        /// </summary>
        public readonly string ParanoiaLevel;
        /// <summary>
        /// (string) The predefined controls
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInspectionProfilePredefinedControlResult> PredefinedControls;
        public readonly string PredefinedControlsVersion;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInspectionProfileWebSocketControlResult> WebSocketControls;

        [OutputConstructor]
        private GetInspectionProfileResult(
            ImmutableDictionary<string, string> commonGlobalOverrideActionsConfig,

            ImmutableArray<Outputs.GetInspectionProfileControlsInfoResult> controlsInfos,

            string creationTime,

            ImmutableArray<Outputs.GetInspectionProfileCustomControlResult> customControls,

            string description,

            ImmutableArray<string> globalControlActions,

            string id,

            string incarnationNumber,

            string modifiedBy,

            string modifiedTime,

            string name,

            string paranoiaLevel,

            ImmutableArray<Outputs.GetInspectionProfilePredefinedControlResult> predefinedControls,

            string predefinedControlsVersion,

            ImmutableArray<Outputs.GetInspectionProfileWebSocketControlResult> webSocketControls)
        {
            CommonGlobalOverrideActionsConfig = commonGlobalOverrideActionsConfig;
            ControlsInfos = controlsInfos;
            CreationTime = creationTime;
            CustomControls = customControls;
            Description = description;
            GlobalControlActions = globalControlActions;
            Id = id;
            IncarnationNumber = incarnationNumber;
            ModifiedBy = modifiedBy;
            ModifiedTime = modifiedTime;
            Name = name;
            ParanoiaLevel = paranoiaLevel;
            PredefinedControls = predefinedControls;
            PredefinedControlsVersion = predefinedControlsVersion;
            WebSocketControls = webSocketControls;
        }
    }
}
