1. Registry
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. getKafkaAcl
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
aiven logo aiven logo
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi

    Gets information about an ACL entry for an Aiven for Apache Kafka® service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const example = aiven.getKafkaAcl({
        project: "my-project",
        serviceName: "my-kafka",
        aclId: "foo",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example = aiven.get_kafka_acl(project="my-project",
        service_name="my-kafka",
        acl_id="foo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.GetKafkaAcl(ctx, &aiven.LookupKafkaAclArgs{
    			Project:     "my-project",
    			ServiceName: "my-kafka",
    			AclId:       pulumi.StringRef("foo"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aiven.GetKafkaAcl.Invoke(new()
        {
            Project = "my-project",
            ServiceName = "my-kafka",
            AclId = "foo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetKafkaAclArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = AivenFunctions.getKafkaAcl(GetKafkaAclArgs.builder()
                .project("my-project")
                .serviceName("my-kafka")
                .aclId("foo")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aiven:getKafkaAcl
          arguments:
            project: my-project
            serviceName: my-kafka
            aclId: foo
    
    terraform {
      required_providers {
        aiven = {
          source = "pulumi/aiven"
        }
      }
    }
    
    data "aiven_kafka_acl" "example" {
      project      = "my-project"
      service_name = "my-kafka"
      acl_id       = "foo"
    }
    

    Using getKafkaAcl

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getKafkaAcl(args: GetKafkaAclArgs, opts?: InvokeOptions): Promise<GetKafkaAclResult>
    function getKafkaAclOutput(args: GetKafkaAclOutputArgs, opts?: InvokeOutputOptions): Output<GetKafkaAclResult>
    def get_kafka_acl(acl_id: Optional[str] = None,
                      permission: Optional[str] = None,
                      project: Optional[str] = None,
                      service_name: Optional[str] = None,
                      timeouts: Optional[GetKafkaAclTimeouts] = None,
                      topic: Optional[str] = None,
                      username: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetKafkaAclResult
    def get_kafka_acl_output(acl_id: pulumi.Input[Optional[str]] = None,
                      permission: pulumi.Input[Optional[str]] = None,
                      project: pulumi.Input[Optional[str]] = None,
                      service_name: pulumi.Input[Optional[str]] = None,
                      timeouts: pulumi.Input[Optional[GetKafkaAclTimeoutsArgs]] = None,
                      topic: pulumi.Input[Optional[str]] = None,
                      username: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetKafkaAclResult]
    func LookupKafkaAcl(ctx *Context, args *LookupKafkaAclArgs, opts ...InvokeOption) (*LookupKafkaAclResult, error)
    func LookupKafkaAclOutput(ctx *Context, args *LookupKafkaAclOutputArgs, opts ...InvokeOption) LookupKafkaAclResultOutput

    > Note: This function is named LookupKafkaAcl in the Go SDK.

    public static class GetKafkaAcl 
    {
        public static Task<GetKafkaAclResult> InvokeAsync(GetKafkaAclArgs args, InvokeOptions? opts = null)
        public static Output<GetKafkaAclResult> Invoke(GetKafkaAclInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetKafkaAclResult> Invoke(GetKafkaAclInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOptions options)
    public static Output<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOptions options)
    public static Output<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aiven:index/getKafkaAcl:getKafkaAcl
      arguments:
        # arguments dictionary
    data "aiven_get_kafka_acl" "name" {
        # arguments
    }

    The following arguments are supported:

    Project string
    Project name.
    ServiceName string
    Service name.
    AclId string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    Permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    Timeouts GetKafkaAclTimeouts
    Topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    Username string
    Username. Provide either aclId, or all of permission, topic and username together.
    Project string
    Project name.
    ServiceName string
    Service name.
    AclId string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    Permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    Timeouts GetKafkaAclTimeouts
    Topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    Username string
    Username. Provide either aclId, or all of permission, topic and username together.
    project string
    Project name.
    service_name string
    Service name.
    acl_id string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    timeouts object
    topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username string
    Username. Provide either aclId, or all of permission, topic and username together.
    project String
    Project name.
    serviceName String
    Service name.
    aclId String
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    permission String
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    timeouts GetKafkaAclTimeouts
    topic String
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username String
    Username. Provide either aclId, or all of permission, topic and username together.
    project string
    Project name.
    serviceName string
    Service name.
    aclId string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    timeouts GetKafkaAclTimeouts
    topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username string
    Username. Provide either aclId, or all of permission, topic and username together.
    project str
    Project name.
    service_name str
    Service name.
    acl_id str
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    permission str
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    timeouts GetKafkaAclTimeouts
    topic str
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username str
    Username. Provide either aclId, or all of permission, topic and username together.
    project String
    Project name.
    serviceName String
    Service name.
    aclId String
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    permission String
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    timeouts Property Map
    topic String
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username String
    Username. Provide either aclId, or all of permission, topic and username together.

    getKafkaAcl Result

    The following output properties are available:

    AclId string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    Id string
    Resource ID composed as: project/service_name/acl_id.
    Permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    Project string
    Project name.
    ServiceName string
    Service name.
    Topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    Username string
    Username. Provide either aclId, or all of permission, topic and username together.
    Timeouts GetKafkaAclTimeouts
    AclId string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    Id string
    Resource ID composed as: project/service_name/acl_id.
    Permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    Project string
    Project name.
    ServiceName string
    Service name.
    Topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    Username string
    Username. Provide either aclId, or all of permission, topic and username together.
    Timeouts GetKafkaAclTimeouts
    acl_id string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    id string
    Resource ID composed as: project/service_name/acl_id.
    permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    project string
    Project name.
    service_name string
    Service name.
    topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username string
    Username. Provide either aclId, or all of permission, topic and username together.
    timeouts object
    aclId String
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    id String
    Resource ID composed as: project/service_name/acl_id.
    permission String
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    project String
    Project name.
    serviceName String
    Service name.
    topic String
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username String
    Username. Provide either aclId, or all of permission, topic and username together.
    timeouts GetKafkaAclTimeouts
    aclId string
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    id string
    Resource ID composed as: project/service_name/acl_id.
    permission string
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    project string
    Project name.
    serviceName string
    Service name.
    topic string
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username string
    Username. Provide either aclId, or all of permission, topic and username together.
    timeouts GetKafkaAclTimeouts
    acl_id str
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    id str
    Resource ID composed as: project/service_name/acl_id.
    permission str
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    project str
    Project name.
    service_name str
    Service name.
    topic str
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username str
    Username. Provide either aclId, or all of permission, topic and username together.
    timeouts GetKafkaAclTimeouts
    aclId String
    Kafka ACL ID. Provide either aclId, or all of permission, topic and username together.
    id String
    Resource ID composed as: project/service_name/acl_id.
    permission String
    Permission of an Aiven Kafka ACL entry, as opposed to a Kafka-native one. The possible values are admin, read, readwrite and write. Provide either aclId, or all of permission, topic and username together.
    project String
    Project name.
    serviceName String
    Service name.
    topic String
    Topic name pattern. Provide either aclId, or all of permission, topic and username together.
    username String
    Username. Provide either aclId, or all of permission, topic and username together.
    timeouts Property Map

    Supporting Types

    GetKafkaAclTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo aiven logo
    Viewing docs for Aiven v6.62.0
    published on Thursday, Oct 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial