// *** 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.Dayu
{
    public static class GetDdosPolicyCases
    {
        /// <summary>
        /// Use this data source to query dayu DDoS policy cases
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var idTest = Output.Create(Tencentcloud.Dayu.GetDdosPolicyCases.InvokeAsync(new Tencentcloud.Dayu.GetDdosPolicyCasesArgs
        ///         {
        ///             ResourceType = tencentcloud_dayu_ddos_policy_case.Test_policy_case.Resource_type,
        ///             SceneId = tencentcloud_dayu_ddos_policy_case.Test_policy_case.Scene_id,
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetDdosPolicyCasesResult> InvokeAsync(GetDdosPolicyCasesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetDdosPolicyCasesResult>("tencentcloud:Dayu/getDdosPolicyCases:getDdosPolicyCases", args ?? new GetDdosPolicyCasesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query dayu DDoS policy cases
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var idTest = Output.Create(Tencentcloud.Dayu.GetDdosPolicyCases.InvokeAsync(new Tencentcloud.Dayu.GetDdosPolicyCasesArgs
        ///         {
        ///             ResourceType = tencentcloud_dayu_ddos_policy_case.Test_policy_case.Resource_type,
        ///             SceneId = tencentcloud_dayu_ddos_policy_case.Test_policy_case.Scene_id,
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetDdosPolicyCasesResult> Invoke(GetDdosPolicyCasesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetDdosPolicyCasesResult>("tencentcloud:Dayu/getDdosPolicyCases:getDdosPolicyCases", args ?? new GetDdosPolicyCasesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetDdosPolicyCasesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
        /// </summary>
        [Input("resourceType", required: true)]
        public string ResourceType { get; set; } = null!;

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

        /// <summary>
        /// ID of the DDoS policy case to be query.
        /// </summary>
        [Input("sceneId", required: true)]
        public string SceneId { get; set; } = null!;

        public GetDdosPolicyCasesArgs()
        {
        }
    }

    public sealed class GetDdosPolicyCasesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
        /// </summary>
        [Input("resourceType", required: true)]
        public Input<string> ResourceType { get; set; } = null!;

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

        /// <summary>
        /// ID of the DDoS policy case to be query.
        /// </summary>
        [Input("sceneId", required: true)]
        public Input<string> SceneId { get; set; } = null!;

        public GetDdosPolicyCasesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetDdosPolicyCasesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A list of DDoS policy cases. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetDdosPolicyCasesListResult> Lists;
        /// <summary>
        /// Type of the resource that the DDoS policy case works for.
        /// </summary>
        public readonly string ResourceType;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// ID of the DDoS policy case.
        /// </summary>
        public readonly string SceneId;

        [OutputConstructor]
        private GetDdosPolicyCasesResult(
            string id,

            ImmutableArray<Outputs.GetDdosPolicyCasesListResult> lists,

            string resourceType,

            string? resultOutputFile,

            string sceneId)
        {
            Id = id;
            Lists = lists;
            ResourceType = resourceType;
            ResultOutputFile = resultOutputFile;
            SceneId = sceneId;
        }
    }
}
