<reponame>lbrlabs/pulumi-ovh// *** 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 Lbrlabs.PulumiPackage.Ovh.CloudProjectDatabase
{
    public static class GetKafkaAcls
    {
        /// <summary>
        /// Use this data source to get the list of ACLs of a kafka cluster associated with a public cloud project.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using System.Linq;
        /// using Pulumi;
        /// using Ovh = Pulumi.Ovh;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var acls = Ovh.CloudProjectDatabase.GetKafkaAcls.Invoke(new()
        ///     {
        ///         ServiceName = "XXX",
        ///         ClusterId = "YYY",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["aclIds"] = acls.Apply(getKafkaAclsResult =&gt; getKafkaAclsResult.AclIds),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetKafkaAclsResult> InvokeAsync(GetKafkaAclsArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetKafkaAclsResult>("ovh:CloudProjectDatabase/getKafkaAcls:getKafkaAcls", args ?? new GetKafkaAclsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to get the list of ACLs of a kafka cluster associated with a public cloud project.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using System.Linq;
        /// using Pulumi;
        /// using Ovh = Pulumi.Ovh;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var acls = Ovh.CloudProjectDatabase.GetKafkaAcls.Invoke(new()
        ///     {
        ///         ServiceName = "XXX",
        ///         ClusterId = "YYY",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["aclIds"] = acls.Apply(getKafkaAclsResult =&gt; getKafkaAclsResult.AclIds),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetKafkaAclsResult> Invoke(GetKafkaAclsInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetKafkaAclsResult>("ovh:CloudProjectDatabase/getKafkaAcls:getKafkaAcls", args ?? new GetKafkaAclsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetKafkaAclsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cluster ID
        /// </summary>
        [Input("clusterId", required: true)]
        public string ClusterId { get; set; } = null!;

        /// <summary>
        /// The id of the public cloud project. If omitted,
        /// the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
        /// </summary>
        [Input("serviceName", required: true)]
        public string ServiceName { get; set; } = null!;

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

    public sealed class GetKafkaAclsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cluster ID
        /// </summary>
        [Input("clusterId", required: true)]
        public Input<string> ClusterId { get; set; } = null!;

        /// <summary>
        /// The id of the public cloud project. If omitted,
        /// the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
        /// </summary>
        [Input("serviceName", required: true)]
        public Input<string> ServiceName { get; set; } = null!;

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


    [OutputType]
    public sealed class GetKafkaAclsResult
    {
        /// <summary>
        /// The list of ACLs ids of the kafka cluster associated with the project.
        /// </summary>
        public readonly ImmutableArray<string> AclIds;
        /// <summary>
        /// See Argument Reference above.
        /// </summary>
        public readonly string ClusterId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// See Argument Reference above.
        /// </summary>
        public readonly string ServiceName;

        [OutputConstructor]
        private GetKafkaAclsResult(
            ImmutableArray<string> aclIds,

            string clusterId,

            string id,

            string serviceName)
        {
            AclIds = aclIds;
            ClusterId = clusterId;
            Id = id;
            ServiceName = serviceName;
        }
    }
}
