// *** 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;

namespace Pulumi.AliCloud.Cdn
{
    public static class GetRealTimeLogDeliveries
    {
        /// <summary>
        /// This data source provides the Cdn Real Time Log Deliveries of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.134.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = AliCloud.Cdn.GetRealTimeLogDeliveries.Invoke(new()
        ///     {
        ///         Domain = "example_value",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["cdnRealTimeLogDelivery1"] = example.Apply(getRealTimeLogDeliveriesResult =&gt; getRealTimeLogDeliveriesResult.Deliveries[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetRealTimeLogDeliveriesResult> InvokeAsync(GetRealTimeLogDeliveriesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetRealTimeLogDeliveriesResult>("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", args ?? new GetRealTimeLogDeliveriesArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Cdn Real Time Log Deliveries of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.134.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = AliCloud.Cdn.GetRealTimeLogDeliveries.Invoke(new()
        ///     {
        ///         Domain = "example_value",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["cdnRealTimeLogDelivery1"] = example.Apply(getRealTimeLogDeliveriesResult =&gt; getRealTimeLogDeliveriesResult.Deliveries[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetRealTimeLogDeliveriesResult> Invoke(GetRealTimeLogDeliveriesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetRealTimeLogDeliveriesResult>("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", args ?? new GetRealTimeLogDeliveriesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetRealTimeLogDeliveriesArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Real-Time Log Service Domain.
        /// </summary>
        [Input("domain", required: true)]
        public string Domain { get; set; } = null!;

        [Input("outputFile")]
        public string? OutputFile { get; set; }

        /// <summary>
        /// -The status of the real-time log delivery feature. Valid Values: `online` and `offline`.
        /// </summary>
        [Input("status")]
        public string? Status { get; set; }

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

    public sealed class GetRealTimeLogDeliveriesInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Real-Time Log Service Domain.
        /// </summary>
        [Input("domain", required: true)]
        public Input<string> Domain { get; set; } = null!;

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

        /// <summary>
        /// -The status of the real-time log delivery feature. Valid Values: `online` and `offline`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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


    [OutputType]
    public sealed class GetRealTimeLogDeliveriesResult
    {
        public readonly ImmutableArray<Outputs.GetRealTimeLogDeliveriesDeliveryResult> Deliveries;
        public readonly string Domain;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? OutputFile;
        public readonly string? Status;

        [OutputConstructor]
        private GetRealTimeLogDeliveriesResult(
            ImmutableArray<Outputs.GetRealTimeLogDeliveriesDeliveryResult> deliveries,

            string domain,

            string id,

            string? outputFile,

            string? status)
        {
            Deliveries = deliveries;
            Domain = domain;
            Id = id;
            OutputFile = outputFile;
            Status = status;
        }
    }
}
