Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
Gets information about an Aiven for Apache Kafka® service user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const example = aiven.getKafkaUser({
project: "my-project",
serviceName: "my-kafka",
username: "testuser",
});
import pulumi
import pulumi_aiven as aiven
example = aiven.get_kafka_user(project="my-project",
service_name="my-kafka",
username="testuser")
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.GetKafkaUser(ctx, &aiven.LookupKafkaUserArgs{
Project: "my-project",
ServiceName: "my-kafka",
Username: "testuser",
}, 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.GetKafkaUser.Invoke(new()
{
Project = "my-project",
ServiceName = "my-kafka",
Username = "testuser",
});
});
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.GetKafkaUserArgs;
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.getKafkaUser(GetKafkaUserArgs.builder()
.project("my-project")
.serviceName("my-kafka")
.username("testuser")
.build());
}
}
variables:
example:
fn::invoke:
function: aiven:getKafkaUser
arguments:
project: my-project
serviceName: my-kafka
username: testuser
terraform {
required_providers {
aiven = {
source = "pulumi/aiven"
}
}
}
data "aiven_kafka_user" "example" {
project = "my-project"
service_name = "my-kafka"
username = "testuser"
}
Using getKafkaUser
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 getKafkaUser(args: GetKafkaUserArgs, opts?: InvokeOptions): Promise<GetKafkaUserResult>
function getKafkaUserOutput(args: GetKafkaUserOutputArgs, opts?: InvokeOutputOptions): Output<GetKafkaUserResult>def get_kafka_user(project: Optional[str] = None,
service_name: Optional[str] = None,
timeouts: Optional[GetKafkaUserTimeouts] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaUserResult
def get_kafka_user_output(project: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
timeouts: pulumi.Input[Optional[GetKafkaUserTimeoutsArgs]] = None,
username: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetKafkaUserResult]func LookupKafkaUser(ctx *Context, args *LookupKafkaUserArgs, opts ...InvokeOption) (*LookupKafkaUserResult, error)
func LookupKafkaUserOutput(ctx *Context, args *LookupKafkaUserOutputArgs, opts ...InvokeOption) LookupKafkaUserResultOutput> Note: This function is named LookupKafkaUser in the Go SDK.
public static class GetKafkaUser
{
public static Task<GetKafkaUserResult> InvokeAsync(GetKafkaUserArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaUserResult> Invoke(GetKafkaUserInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaUserResult> Invoke(GetKafkaUserInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetKafkaUserResult> getKafkaUser(GetKafkaUserArgs args, InvokeOptions options)
public static Output<GetKafkaUserResult> getKafkaUser(GetKafkaUserArgs args, InvokeOptions options)
public static Output<GetKafkaUserResult> getKafkaUser(GetKafkaUserArgs args, InvokeOutputOptions options)
fn::invoke:
function: aiven:index/getKafkaUser:getKafkaUser
arguments:
# arguments dictionarydata "aiven_get_kafka_user" "name" {
# arguments
}The following arguments are supported:
- Project string
- Project name.
- Service
Name string - Service name.
- Username string
- Account username.
- Timeouts
Get
Kafka User Timeouts
- Project string
- Project name.
- Service
Name string - Service name.
- Username string
- Account username.
- Timeouts
Get
Kafka User Timeouts
- project string
- Project name.
- service_
name string - Service name.
- username string
- Account username.
- timeouts object
- project String
- Project name.
- service
Name String - Service name.
- username String
- Account username.
- timeouts
Get
Kafka User Timeouts
- project string
- Project name.
- service
Name string - Service name.
- username string
- Account username.
- timeouts
Get
Kafka User Timeouts
- project str
- Project name.
- service_
name str - Service name.
- username str
- Account username.
- timeouts
Get
Kafka User Timeouts
- project String
- Project name.
- service
Name String - Service name.
- username String
- Account username.
- timeouts Property Map
getKafkaUser Result
The following output properties are available:
- Access
Cert string - Access certificate for TLS client authentication.
- Access
Key string - Access key for TLS client authentication.
- Id string
- Resource ID composed as:
project/service_name/username. - Password string
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - Password
Encryption stringType - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - Project string
- Project name.
- Service
Name string - Service name.
- Type string
- Account type.
- Username string
- Account username.
- Timeouts
Get
Kafka User Timeouts
- Access
Cert string - Access certificate for TLS client authentication.
- Access
Key string - Access key for TLS client authentication.
- Id string
- Resource ID composed as:
project/service_name/username. - Password string
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - Password
Encryption stringType - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - Project string
- Project name.
- Service
Name string - Service name.
- Type string
- Account type.
- Username string
- Account username.
- Timeouts
Get
Kafka User Timeouts
- access_
cert string - Access certificate for TLS client authentication.
- access_
key string - Access key for TLS client authentication.
- id string
- Resource ID composed as:
project/service_name/username. - password string
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - password_
encryption_ stringtype - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - project string
- Project name.
- service_
name string - Service name.
- type string
- Account type.
- username string
- Account username.
- timeouts object
- access
Cert String - Access certificate for TLS client authentication.
- access
Key String - Access key for TLS client authentication.
- id String
- Resource ID composed as:
project/service_name/username. - password String
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - password
Encryption StringType - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - project String
- Project name.
- service
Name String - Service name.
- type String
- Account type.
- username String
- Account username.
- timeouts
Get
Kafka User Timeouts
- access
Cert string - Access certificate for TLS client authentication.
- access
Key string - Access key for TLS client authentication.
- id string
- Resource ID composed as:
project/service_name/username. - password string
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - password
Encryption stringType - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - project string
- Project name.
- service
Name string - Service name.
- type string
- Account type.
- username string
- Account username.
- timeouts
Get
Kafka User Timeouts
- access_
cert str - Access certificate for TLS client authentication.
- access_
key str - Access key for TLS client authentication.
- id str
- Resource ID composed as:
project/service_name/username. - password str
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - password_
encryption_ strtype - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - project str
- Project name.
- service_
name str - Service name.
- type str
- Account type.
- username str
- Account username.
- timeouts
Get
Kafka User Timeouts
- access
Cert String - Access certificate for TLS client authentication.
- access
Key String - Access key for TLS client authentication.
- id String
- Resource ID composed as:
project/service_name/username. - password String
- The password of the service user (auto-generated if not provided). The field conflicts with
passwordWo. - password
Encryption StringType - The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are
md5,scram-sha-256andunknown. - project String
- Project name.
- service
Name String - Service name.
- type String
- Account type.
- username String
- Account username.
- timeouts Property Map
Supporting Types
GetKafkaUserTimeouts
- 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
aivenTerraform Provider.
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi