<reponame>zscaler/pulumi-zpa// *** 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
{
    /// <summary>
    /// The  **zpa_inspection_profile** resource creates an inspection profile in the Zscaler Private Access cloud. This resource can then be referenced in an inspection custom control resource.
    /// 
    /// ## Import
    /// 
    /// Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. [Visit](https://github.com/zscaler/zscaler-terraformer)
    /// </summary>
    [ZpaResourceType("zpa:Inspection/inspectionProfile:InspectionProfile")]
    public partial class InspectionProfile : global::Pulumi.CustomResource
    {
        [Output("associateAllControls")]
        public Output<bool?> AssociateAllControls { get; private set; } = null!;

        /// <summary>
        /// (Optional)
        /// </summary>
        [Output("commonGlobalOverrideActionsConfig")]
        public Output<ImmutableDictionary<string, string>> CommonGlobalOverrideActionsConfig { get; private set; } = null!;

        /// <summary>
        /// (Optional) Types for custom controls
        /// </summary>
        [Output("controlsInfos")]
        public Output<ImmutableArray<Outputs.InspectionProfileControlsInfo>> ControlsInfos { get; private set; } = null!;

        /// <summary>
        /// (Optional) Types for custom controls
        /// </summary>
        [Output("customControls")]
        public Output<ImmutableArray<Outputs.InspectionProfileCustomControl>> CustomControls { get; private set; } = null!;

        /// <summary>
        /// Description of the inspection profile.
        /// </summary>
        [Output("description")]
        public Output<string> Description { get; private set; } = null!;

        [Output("globalControlActions")]
        public Output<ImmutableArray<string>> GlobalControlActions { get; private set; } = null!;

        [Output("incarnationNumber")]
        public Output<string> IncarnationNumber { get; private set; } = null!;

        /// <summary>
        /// The name of the inspection profile.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// OWASP Predefined Paranoia Level. Range: [1-4], inclusive
        /// </summary>
        [Output("paranoiaLevel")]
        public Output<string> ParanoiaLevel { get; private set; } = null!;

        /// <summary>
        /// The predefined controls. The default predefined control `Preprocessors` are mandatory and injected in the request by default. Individual `predefined_controls` can be set by using the data source `data_source_zpa_predefined_controls` or by group using the data source `zpa.Inspection.getInspectionAllPredefinedControls`.
        /// </summary>
        [Output("predefinedControls")]
        public Output<ImmutableArray<Outputs.InspectionProfilePredefinedControl>> PredefinedControls { get; private set; } = null!;

        [Output("predefinedControlsVersion")]
        public Output<string> PredefinedControlsVersion { get; private set; } = null!;

        /// <summary>
        /// (string)
        /// </summary>
        [Output("webSocketControls")]
        public Output<ImmutableArray<Outputs.InspectionProfileWebSocketControl>> WebSocketControls { get; private set; } = null!;


        /// <summary>
        /// Create a InspectionProfile resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public InspectionProfile(string name, InspectionProfileArgs? args = null, CustomResourceOptions? options = null)
            : base("zpa:Inspection/inspectionProfile:InspectionProfile", name, args ?? new InspectionProfileArgs(), MakeResourceOptions(options, ""))
        {
        }

        private InspectionProfile(string name, Input<string> id, InspectionProfileState? state = null, CustomResourceOptions? options = null)
            : base("zpa:Inspection/inspectionProfile:InspectionProfile", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/zscaler",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing InspectionProfile resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static InspectionProfile Get(string name, Input<string> id, InspectionProfileState? state = null, CustomResourceOptions? options = null)
        {
            return new InspectionProfile(name, id, state, options);
        }
    }

    public sealed class InspectionProfileArgs : global::Pulumi.ResourceArgs
    {
        [Input("associateAllControls")]
        public Input<bool>? AssociateAllControls { get; set; }

        [Input("commonGlobalOverrideActionsConfig")]
        private InputMap<string>? _commonGlobalOverrideActionsConfig;

        /// <summary>
        /// (Optional)
        /// </summary>
        public InputMap<string> CommonGlobalOverrideActionsConfig
        {
            get => _commonGlobalOverrideActionsConfig ?? (_commonGlobalOverrideActionsConfig = new InputMap<string>());
            set => _commonGlobalOverrideActionsConfig = value;
        }

        [Input("controlsInfos")]
        private InputList<Inputs.InspectionProfileControlsInfoArgs>? _controlsInfos;

        /// <summary>
        /// (Optional) Types for custom controls
        /// </summary>
        public InputList<Inputs.InspectionProfileControlsInfoArgs> ControlsInfos
        {
            get => _controlsInfos ?? (_controlsInfos = new InputList<Inputs.InspectionProfileControlsInfoArgs>());
            set => _controlsInfos = value;
        }

        [Input("customControls")]
        private InputList<Inputs.InspectionProfileCustomControlArgs>? _customControls;

        /// <summary>
        /// (Optional) Types for custom controls
        /// </summary>
        public InputList<Inputs.InspectionProfileCustomControlArgs> CustomControls
        {
            get => _customControls ?? (_customControls = new InputList<Inputs.InspectionProfileCustomControlArgs>());
            set => _customControls = value;
        }

        /// <summary>
        /// Description of the inspection profile.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("globalControlActions")]
        private InputList<string>? _globalControlActions;
        public InputList<string> GlobalControlActions
        {
            get => _globalControlActions ?? (_globalControlActions = new InputList<string>());
            set => _globalControlActions = value;
        }

        [Input("incarnationNumber")]
        public Input<string>? IncarnationNumber { get; set; }

        /// <summary>
        /// The name of the inspection profile.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// OWASP Predefined Paranoia Level. Range: [1-4], inclusive
        /// </summary>
        [Input("paranoiaLevel")]
        public Input<string>? ParanoiaLevel { get; set; }

        [Input("predefinedControls")]
        private InputList<Inputs.InspectionProfilePredefinedControlArgs>? _predefinedControls;

        /// <summary>
        /// The predefined controls. The default predefined control `Preprocessors` are mandatory and injected in the request by default. Individual `predefined_controls` can be set by using the data source `data_source_zpa_predefined_controls` or by group using the data source `zpa.Inspection.getInspectionAllPredefinedControls`.
        /// </summary>
        public InputList<Inputs.InspectionProfilePredefinedControlArgs> PredefinedControls
        {
            get => _predefinedControls ?? (_predefinedControls = new InputList<Inputs.InspectionProfilePredefinedControlArgs>());
            set => _predefinedControls = value;
        }

        [Input("predefinedControlsVersion")]
        public Input<string>? PredefinedControlsVersion { get; set; }

        [Input("webSocketControls")]
        private InputList<Inputs.InspectionProfileWebSocketControlArgs>? _webSocketControls;

        /// <summary>
        /// (string)
        /// </summary>
        public InputList<Inputs.InspectionProfileWebSocketControlArgs> WebSocketControls
        {
            get => _webSocketControls ?? (_webSocketControls = new InputList<Inputs.InspectionProfileWebSocketControlArgs>());
            set => _webSocketControls = value;
        }

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

    public sealed class InspectionProfileState : global::Pulumi.ResourceArgs
    {
        [Input("associateAllControls")]
        public Input<bool>? AssociateAllControls { get; set; }

        [Input("commonGlobalOverrideActionsConfig")]
        private InputMap<string>? _commonGlobalOverrideActionsConfig;

        /// <summary>
        /// (Optional)
        /// </summary>
        public InputMap<string> CommonGlobalOverrideActionsConfig
        {
            get => _commonGlobalOverrideActionsConfig ?? (_commonGlobalOverrideActionsConfig = new InputMap<string>());
            set => _commonGlobalOverrideActionsConfig = value;
        }

        [Input("controlsInfos")]
        private InputList<Inputs.InspectionProfileControlsInfoGetArgs>? _controlsInfos;

        /// <summary>
        /// (Optional) Types for custom controls
        /// </summary>
        public InputList<Inputs.InspectionProfileControlsInfoGetArgs> ControlsInfos
        {
            get => _controlsInfos ?? (_controlsInfos = new InputList<Inputs.InspectionProfileControlsInfoGetArgs>());
            set => _controlsInfos = value;
        }

        [Input("customControls")]
        private InputList<Inputs.InspectionProfileCustomControlGetArgs>? _customControls;

        /// <summary>
        /// (Optional) Types for custom controls
        /// </summary>
        public InputList<Inputs.InspectionProfileCustomControlGetArgs> CustomControls
        {
            get => _customControls ?? (_customControls = new InputList<Inputs.InspectionProfileCustomControlGetArgs>());
            set => _customControls = value;
        }

        /// <summary>
        /// Description of the inspection profile.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("globalControlActions")]
        private InputList<string>? _globalControlActions;
        public InputList<string> GlobalControlActions
        {
            get => _globalControlActions ?? (_globalControlActions = new InputList<string>());
            set => _globalControlActions = value;
        }

        [Input("incarnationNumber")]
        public Input<string>? IncarnationNumber { get; set; }

        /// <summary>
        /// The name of the inspection profile.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// OWASP Predefined Paranoia Level. Range: [1-4], inclusive
        /// </summary>
        [Input("paranoiaLevel")]
        public Input<string>? ParanoiaLevel { get; set; }

        [Input("predefinedControls")]
        private InputList<Inputs.InspectionProfilePredefinedControlGetArgs>? _predefinedControls;

        /// <summary>
        /// The predefined controls. The default predefined control `Preprocessors` are mandatory and injected in the request by default. Individual `predefined_controls` can be set by using the data source `data_source_zpa_predefined_controls` or by group using the data source `zpa.Inspection.getInspectionAllPredefinedControls`.
        /// </summary>
        public InputList<Inputs.InspectionProfilePredefinedControlGetArgs> PredefinedControls
        {
            get => _predefinedControls ?? (_predefinedControls = new InputList<Inputs.InspectionProfilePredefinedControlGetArgs>());
            set => _predefinedControls = value;
        }

        [Input("predefinedControlsVersion")]
        public Input<string>? PredefinedControlsVersion { get; set; }

        [Input("webSocketControls")]
        private InputList<Inputs.InspectionProfileWebSocketControlGetArgs>? _webSocketControls;

        /// <summary>
        /// (string)
        /// </summary>
        public InputList<Inputs.InspectionProfileWebSocketControlGetArgs> WebSocketControls
        {
            get => _webSocketControls ?? (_webSocketControls = new InputList<Inputs.InspectionProfileWebSocketControlGetArgs>());
            set => _webSocketControls = value;
        }

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