<reponame>zscaler/pulumi-zpa<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.SamlAttribute
{
    public static class GetSAMLAttribute
    {
        /// <summary>
        /// Use the **zpa_saml_attribute** data source to get information about a SAML Attributes from an Identity Provider (IdP). This data source can then be referenced in an Access Policy, Timeout policy, Forwarding Policy, Inspection Policy or Isolation Policy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var emailUserSso = Zpa.SamlAttribute.GetSAMLAttribute.Invoke(new()
        ///     {
        ///         Name = "Email_User SSO",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var department = Zpa.SamlAttribute.GetSAMLAttribute.Invoke(new()
        ///     {
        ///         Name = "DepartmentName_IdP_Name_Users",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetSAMLAttributeResult> InvokeAsync(GetSAMLAttributeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetSAMLAttributeResult>("zpa:SamlAttribute/getSAMLAttribute:getSAMLAttribute", args ?? new GetSAMLAttributeArgs(), options.WithDefaults());

        /// <summary>
        /// Use the **zpa_saml_attribute** data source to get information about a SAML Attributes from an Identity Provider (IdP). This data source can then be referenced in an Access Policy, Timeout policy, Forwarding Policy, Inspection Policy or Isolation Policy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var emailUserSso = Zpa.SamlAttribute.GetSAMLAttribute.Invoke(new()
        ///     {
        ///         Name = "Email_User SSO",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var department = Zpa.SamlAttribute.GetSAMLAttribute.Invoke(new()
        ///     {
        ///         Name = "DepartmentName_IdP_Name_Users",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetSAMLAttributeResult> Invoke(GetSAMLAttributeInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetSAMLAttributeResult>("zpa:SamlAttribute/getSAMLAttribute:getSAMLAttribute", args ?? new GetSAMLAttributeInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetSAMLAttributeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the machine group to be exported.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// The name of the IdP corresponding to the SAML attribute.
        /// </summary>
        [Input("idpName")]
        public string? IdpName { get; set; }

        /// <summary>
        /// The name of the saml attribute to be exported.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

    public sealed class GetSAMLAttributeInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the machine group to be exported.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// The name of the IdP corresponding to the SAML attribute.
        /// </summary>
        [Input("idpName")]
        public Input<string>? IdpName { get; set; }

        /// <summary>
        /// The name of the saml attribute to be exported.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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


    [OutputType]
    public sealed class GetSAMLAttributeResult
    {
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string CreationTime;
        public readonly string Id;
        /// <summary>
        /// (string) The ID of the IdP corresponding to the SAML attribute.
        /// </summary>
        public readonly string IdpId;
        public readonly string? IdpName;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string ModifiedTime;
        public readonly string Modifiedby;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string Name;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string SamlName;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly bool UserAttribute;

        [OutputConstructor]
        private GetSAMLAttributeResult(
            string creationTime,

            string id,

            string idpId,

            string? idpName,

            string modifiedTime,

            string modifiedby,

            string name,

            string samlName,

            bool userAttribute)
        {
            CreationTime = creationTime;
            Id = id;
            IdpId = idpId;
            IdpName = idpName;
            ModifiedTime = modifiedTime;
            Modifiedby = modifiedby;
            Name = name;
            SamlName = samlName;
            UserAttribute = userAttribute;
        }
    }
}
