<reponame>Dwonczykj/gember_deploy// *** 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 TencentCloudIAC.PulumiPackage.Tencentcloud.Gaap
{
    public static class GetSecurityPolicies
    {
        /// <summary>
        /// Use this data source to query security policies of GAAP proxy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var fooProxy = new Tencentcloud.Gaap.Proxy("fooProxy", new Tencentcloud.Gaap.ProxyArgs
        ///         {
        ///             Bandwidth = 10,
        ///             Concurrent = 2,
        ///             AccessRegion = "SouthChina",
        ///             RealserverRegion = "NorthChina",
        ///         });
        ///         var fooSecurityPolicy = new Tencentcloud.Gaap.SecurityPolicy("fooSecurityPolicy", new Tencentcloud.Gaap.SecurityPolicyArgs
        ///         {
        ///             ProxyId = fooProxy.Id,
        ///             Action = "ACCEPT",
        ///         });
        ///         var fooSecurityPolicies = Tencentcloud.Gaap.GetSecurityPolicies.Invoke(new Tencentcloud.Gaap.GetSecurityPoliciesInvokeArgs
        ///         {
        ///             Id = fooSecurityPolicy.Id,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetSecurityPoliciesResult> InvokeAsync(GetSecurityPoliciesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetSecurityPoliciesResult>("tencentcloud:Gaap/getSecurityPolicies:getSecurityPolicies", args ?? new GetSecurityPoliciesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query security policies of GAAP proxy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var fooProxy = new Tencentcloud.Gaap.Proxy("fooProxy", new Tencentcloud.Gaap.ProxyArgs
        ///         {
        ///             Bandwidth = 10,
        ///             Concurrent = 2,
        ///             AccessRegion = "SouthChina",
        ///             RealserverRegion = "NorthChina",
        ///         });
        ///         var fooSecurityPolicy = new Tencentcloud.Gaap.SecurityPolicy("fooSecurityPolicy", new Tencentcloud.Gaap.SecurityPolicyArgs
        ///         {
        ///             ProxyId = fooProxy.Id,
        ///             Action = "ACCEPT",
        ///         });
        ///         var fooSecurityPolicies = Tencentcloud.Gaap.GetSecurityPolicies.Invoke(new Tencentcloud.Gaap.GetSecurityPoliciesInvokeArgs
        ///         {
        ///             Id = fooSecurityPolicy.Id,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetSecurityPoliciesResult> Invoke(GetSecurityPoliciesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetSecurityPoliciesResult>("tencentcloud:Gaap/getSecurityPolicies:getSecurityPolicies", args ?? new GetSecurityPoliciesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetSecurityPoliciesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the security policy to be queried.
        /// </summary>
        [Input("id", required: true)]
        public string Id { get; set; } = null!;

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public GetSecurityPoliciesArgs()
        {
        }
    }

    public sealed class GetSecurityPoliciesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the security policy to be queried.
        /// </summary>
        [Input("id", required: true)]
        public Input<string> Id { get; set; } = null!;

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        public GetSecurityPoliciesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetSecurityPoliciesResult
    {
        /// <summary>
        /// Default policy.
        /// </summary>
        public readonly string Action;
        public readonly string Id;
        /// <summary>
        /// ID of the GAAP proxy.
        /// </summary>
        public readonly string ProxyId;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Status of the security policy.
        /// </summary>
        public readonly string Status;

        [OutputConstructor]
        private GetSecurityPoliciesResult(
            string action,

            string id,

            string proxyId,

            string? resultOutputFile,

            string status)
        {
            Action = action;
            Id = id;
            ProxyId = proxyId;
            ResultOutputFile = resultOutputFile;
            Status = status;
        }
    }
}
