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 Service User data source provides information about the existing Aiven Service User.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var myserviceuser = Output.Create(Aiven.GetServiceUser.InvokeAsync(new Aiven.GetServiceUserArgs
{
Project = aiven_project.Myproject.Project,
ServiceName = aiven_service.Myservice.Service_name,
Username = "<USERNAME>",
}));
}
}
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.LookupServiceUser(ctx, &GetServiceUserArgs{
Project: aiven_project.Myproject.Project,
ServiceName: aiven_service.Myservice.Service_name,
Username: "<USERNAME>",
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const myserviceuser = aiven.getServiceUser({
project: aiven_project.myproject.project,
serviceName: aiven_service.myservice.service_name,
username: "<USERNAME>",
});
import pulumi
import pulumi_aiven as aiven
myserviceuser = aiven.get_service_user(project=aiven_project["myproject"]["project"],
service_name=aiven_service["myservice"]["service_name"],
username="<USERNAME>")
Example coming soon!
Using getServiceUser
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 getServiceUser(args: GetServiceUserArgs, opts?: InvokeOptions): Promise<GetServiceUserResult>
function getServiceUserOutput(args: GetServiceUserOutputArgs, opts?: InvokeOptions): Output<GetServiceUserResult>def get_service_user(project: Optional[str] = None,
service_name: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceUserResult
def get_service_user_output(project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceUserResult]func LookupServiceUser(ctx *Context, args *LookupServiceUserArgs, opts ...InvokeOption) (*LookupServiceUserResult, error)
func LookupServiceUserOutput(ctx *Context, args *LookupServiceUserOutputArgs, opts ...InvokeOption) LookupServiceUserResultOutput> Note: This function is named LookupServiceUser in the Go SDK.
public static class GetServiceUser
{
public static Task<GetServiceUserResult> InvokeAsync(GetServiceUserArgs args, InvokeOptions? opts = null)
public static Output<GetServiceUserResult> Invoke(GetServiceUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceUserResult> getServiceUser(GetServiceUserArgs args, InvokeOptions options)
public static Output<GetServiceUserResult> getServiceUser(GetServiceUserArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getServiceUser:getServiceUser
arguments:
# arguments dictionaryThe following arguments are supported:
- 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.
- Username string
- The actual name of the service user. 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.
- 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.
- Username string
- The actual name of the service user. 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.
- 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.
- username String
- The actual name of the service user. 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.
- 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.
- username string
- The actual name of the service user. 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.
- 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.
- username str
- The actual name of the service user. 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.
- 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.
- username String
- The actual name of the service user. 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.
getServiceUser Result
The following output properties are available:
- Access
Cert string - Access certificate for the user if applicable for the service in question
- Access
Key string - Access certificate key for the user if applicable for the service in question
- Authentication string
- Authentication details. The possible values are
caching_sha2_passwordandmysql_native_password. - Id string
- The provider-assigned unique ID for this managed resource.
- Password string
- The password of the service user ( not applicable for all services ).
- Pg
Allow boolReplication - Postgres specific field, defines whether replication is allowed. 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.
- Redis
Acl List<string>Categories - Redis specific field, defines command category rules. The field is required with
redis_acl_commandsandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - Redis
Acl List<string>Channels - Redis specific field, defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl List<string>Commands - Redis specific field, defines rules for individual commands. The field is required with
redis_acl_categoriesandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - Redis
Acl List<string>Keys - Redis specific field, defines key access rules. The field is required with
redis_acl_categoriesandredis_acl_keys. 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.
- Type string
- Type of the user account. Tells wether the user is the primary account or a regular account.
- Username string
- The actual name of the service user. 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.
- Access
Cert string - Access certificate for the user if applicable for the service in question
- Access
Key string - Access certificate key for the user if applicable for the service in question
- Authentication string
- Authentication details. The possible values are
caching_sha2_passwordandmysql_native_password. - Id string
- The provider-assigned unique ID for this managed resource.
- Password string
- The password of the service user ( not applicable for all services ).
- Pg
Allow boolReplication - Postgres specific field, defines whether replication is allowed. 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.
- Redis
Acl []stringCategories - Redis specific field, defines command category rules. The field is required with
redis_acl_commandsandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - Redis
Acl []stringChannels - Redis specific field, defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- Redis
Acl []stringCommands - Redis specific field, defines rules for individual commands. The field is required with
redis_acl_categoriesandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - Redis
Acl []stringKeys - Redis specific field, defines key access rules. The field is required with
redis_acl_categoriesandredis_acl_keys. 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.
- Type string
- Type of the user account. Tells wether the user is the primary account or a regular account.
- Username string
- The actual name of the service user. 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.
- access
Cert String - Access certificate for the user if applicable for the service in question
- access
Key String - Access certificate key for the user if applicable for the service in question
- authentication String
- Authentication details. The possible values are
caching_sha2_passwordandmysql_native_password. - id String
- The provider-assigned unique ID for this managed resource.
- password String
- The password of the service user ( not applicable for all services ).
- pg
Allow BooleanReplication - Postgres specific field, defines whether replication is allowed. 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.
- redis
Acl List<String>Categories - Redis specific field, defines command category rules. The field is required with
redis_acl_commandsandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis
Acl List<String>Channels - Redis specific field, defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Commands - Redis specific field, defines rules for individual commands. The field is required with
redis_acl_categoriesandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis
Acl List<String>Keys - Redis specific field, defines key access rules. The field is required with
redis_acl_categoriesandredis_acl_keys. 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.
- type String
- Type of the user account. Tells wether the user is the primary account or a regular account.
- username String
- The actual name of the service user. 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.
- access
Cert string - Access certificate for the user if applicable for the service in question
- access
Key string - Access certificate key for the user if applicable for the service in question
- authentication string
- Authentication details. The possible values are
caching_sha2_passwordandmysql_native_password. - id string
- The provider-assigned unique ID for this managed resource.
- password string
- The password of the service user ( not applicable for all services ).
- pg
Allow booleanReplication - Postgres specific field, defines whether replication is allowed. 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.
- redis
Acl string[]Categories - Redis specific field, defines command category rules. The field is required with
redis_acl_commandsandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis
Acl string[]Channels - Redis specific field, defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl string[]Commands - Redis specific field, defines rules for individual commands. The field is required with
redis_acl_categoriesandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis
Acl string[]Keys - Redis specific field, defines key access rules. The field is required with
redis_acl_categoriesandredis_acl_keys. 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.
- type string
- Type of the user account. Tells wether the user is the primary account or a regular account.
- username string
- The actual name of the service user. 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.
- access_
cert str - Access certificate for the user if applicable for the service in question
- access_
key str - Access certificate key for the user if applicable for the service in question
- authentication str
- Authentication details. The possible values are
caching_sha2_passwordandmysql_native_password. - id str
- The provider-assigned unique ID for this managed resource.
- password str
- The password of the service user ( not applicable for all services ).
- pg_
allow_ boolreplication - Postgres specific field, defines whether replication is allowed. 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.
- redis_
acl_ Sequence[str]categories - Redis specific field, defines command category rules. The field is required with
redis_acl_commandsandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis_
acl_ Sequence[str]channels - Redis specific field, defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis_
acl_ Sequence[str]commands - Redis specific field, defines rules for individual commands. The field is required with
redis_acl_categoriesandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis_
acl_ Sequence[str]keys - Redis specific field, defines key access rules. The field is required with
redis_acl_categoriesandredis_acl_keys. 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.
- type str
- Type of the user account. Tells wether the user is the primary account or a regular account.
- username str
- The actual name of the service user. 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.
- access
Cert String - Access certificate for the user if applicable for the service in question
- access
Key String - Access certificate key for the user if applicable for the service in question
- authentication String
- Authentication details. The possible values are
caching_sha2_passwordandmysql_native_password. - id String
- The provider-assigned unique ID for this managed resource.
- password String
- The password of the service user ( not applicable for all services ).
- pg
Allow BooleanReplication - Postgres specific field, defines whether replication is allowed. 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.
- redis
Acl List<String>Categories - Redis specific field, defines command category rules. The field is required with
redis_acl_commandsandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis
Acl List<String>Channels - Redis specific field, defines the permitted pub/sub channel patterns. This property cannot be changed, doing so forces recreation of the resource.
- redis
Acl List<String>Commands - Redis specific field, defines rules for individual commands. The field is required with
redis_acl_categoriesandredis_acl_keys. This property cannot be changed, doing so forces recreation of the resource. - redis
Acl List<String>Keys - Redis specific field, defines key access rules. The field is required with
redis_acl_categoriesandredis_acl_keys. 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.
- type String
- Type of the user account. Tells wether the user is the primary account or a regular account.
- username String
- The actual name of the service user. 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.
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
