Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The Data Source Kafka ACL data source provides information about the existing Aiven Kafka ACL for a Kafka service.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mytestacl = Output.Create(Aiven.GetKafkaAcl.InvokeAsync(new Aiven.GetKafkaAclArgs
{
Project = aiven_project.Myproject.Project,
ServiceName = aiven_service.Myservice.Service_name,
Topic = "<TOPIC_NAME_PATTERN>",
Permission = "<PERMISSON>",
Username = "<USERNAME_PATTERN>",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupKafkaAcl(ctx, &GetKafkaAclArgs{
Project: aiven_project.Myproject.Project,
ServiceName: aiven_service.Myservice.Service_name,
Topic: "<TOPIC_NAME_PATTERN>",
Permission: "<PERMISSON>",
Username: "<USERNAME_PATTERN>",
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mytestacl = aiven.getKafkaAcl({
project: aiven_project.myproject.project,
serviceName: aiven_service.myservice.service_name,
topic: "<TOPIC_NAME_PATTERN>",
permission: "<PERMISSON>",
username: "<USERNAME_PATTERN>",
});
import pulumi
import pulumi_aiven as aiven
mytestacl = aiven.get_kafka_acl(project=aiven_project["myproject"]["project"],
service_name=aiven_service["myservice"]["service_name"],
topic="<TOPIC_NAME_PATTERN>",
permission="<PERMISSON>",
username="<USERNAME_PATTERN>")
Example coming soon!
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?: InvokeOptions): Output<GetKafkaAclResult>def get_kafka_acl(permission: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
topic: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaAclResult
def get_kafka_acl_output(permission: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
topic: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = 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 CompletableFuture<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOptions options)
public static Output<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getKafkaAcl:getKafkaAcl
arguments:
# arguments dictionaryThe following arguments are supported:
- Permission string
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Topic string
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- Username string
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- Permission string
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Topic string
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- Username string
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- permission String
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic String
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username String
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- permission string
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic string
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username string
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- permission str
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic str
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username str
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- permission String
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic String
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username String
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
getKafkaAcl Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission string
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Topic string
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- Username string
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission string
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Topic string
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- Username string
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- permission String
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic String
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username String
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- permission string
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic string
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username string
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- permission str
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic str
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username str
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- permission String
- Kafka permission to grant. The possible values are
admin,read,readwriteandwrite. This property cannot be changed, doing so forces recreation of the resource. - project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- topic String
- Topic name pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
- username String
- Username pattern for the ACL entry. This property cannot be changed, doing so forces recreation of the resource.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi