<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 TencentCloudIAC.PulumiPackage.Tencentcloud.Teo
{
    public static class GetZoneDdosPolicy
    {
        /// <summary>
        /// Use this data source to query detailed information of teo zoneDDoSPolicy
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var zoneDDoSPolicy = Output.Create(Tencentcloud.Teo.GetZoneDdosPolicy.InvokeAsync(new Tencentcloud.Teo.GetZoneDdosPolicyArgs
        ///         {
        ///             ZoneId = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetZoneDdosPolicyResult> InvokeAsync(GetZoneDdosPolicyArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetZoneDdosPolicyResult>("tencentcloud:Teo/getZoneDdosPolicy:getZoneDdosPolicy", args ?? new GetZoneDdosPolicyArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of teo zoneDDoSPolicy
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var zoneDDoSPolicy = Output.Create(Tencentcloud.Teo.GetZoneDdosPolicy.InvokeAsync(new Tencentcloud.Teo.GetZoneDdosPolicyArgs
        ///         {
        ///             ZoneId = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetZoneDdosPolicyResult> Invoke(GetZoneDdosPolicyInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetZoneDdosPolicyResult>("tencentcloud:Teo/getZoneDdosPolicy:getZoneDdosPolicy", args ?? new GetZoneDdosPolicyInvokeArgs(), options.WithDefaults());
    }


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

        /// <summary>
        /// Site ID.
        /// </summary>
        [Input("zoneId", required: true)]
        public string ZoneId { get; set; } = null!;

        public GetZoneDdosPolicyArgs()
        {
        }
    }

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

        /// <summary>
        /// Site ID.
        /// </summary>
        [Input("zoneId", required: true)]
        public Input<string> ZoneId { get; set; } = null!;

        public GetZoneDdosPolicyInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetZoneDdosPolicyResult
    {
        /// <summary>
        /// All subdomain info. Note: This field may return null, indicating that no valid value can be obtained.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetZoneDdosPolicyDomainResult> Domains;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Shielded areas of the zone.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetZoneDdosPolicyShieldAreaResult> ShieldAreas;
        /// <summary>
        /// Site ID.
        /// </summary>
        public readonly string ZoneId;

        [OutputConstructor]
        private GetZoneDdosPolicyResult(
            ImmutableArray<Outputs.GetZoneDdosPolicyDomainResult> domains,

            string id,

            string? resultOutputFile,

            ImmutableArray<Outputs.GetZoneDdosPolicyShieldAreaResult> shieldAreas,

            string zoneId)
        {
            Domains = domains;
            Id = id;
            ResultOutputFile = resultOutputFile;
            ShieldAreas = shieldAreas;
            ZoneId = zoneId;
        }
    }
}
