getServiceUser
# Service User Data Source
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/v3/go/aiven"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupServiceUser(ctx, &aiven.LookupServiceUserArgs{
Project: aiven_project.Myproject.Project,
ServiceName: aiven_service.Myservice.Service_name,
Username: "<USERNAME>",
}, nil)
if err != nil {
return err
}
return nil
})
}
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>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const myserviceuser = pulumi.all([aiven_project_myproject.project, aiven_service_myservice.serviceName]).apply(([project, serviceName]) => aiven.getServiceUser({
project: project,
serviceName: serviceName,
username: "<USERNAME>",
}, { async: true }));
Using getServiceUser
function getServiceUser(args: GetServiceUserArgs, opts?: InvokeOptions): Promise<GetServiceUserResult>
def get_service_user(access_cert: Optional[str] = None, access_key: Optional[str] = None, authentication: Optional[str] = None, password: Optional[str] = None, project: Optional[str] = None, redis_acl_categories: Optional[Sequence[str]] = None, redis_acl_commands: Optional[Sequence[str]] = None, redis_acl_keys: Optional[Sequence[str]] = None, service_name: Optional[str] = None, type: Optional[str] = None, username: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetServiceUserResult
func LookupServiceUser(ctx *Context, args *LookupServiceUserArgs, opts ...InvokeOption) (*LookupServiceUserResult, error)
Note: This function is named
LookupServiceUser
in the Go SDK.
public static class GetServiceUser {
public static Task<GetServiceUserResult> InvokeAsync(GetServiceUserArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Project string
and
service_name
- (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.- Service
Name string - Username string
is the actual name of the user account.
- Access
Cert string is the access certificate of the user (not applicable for all services).
- Access
Key string is the access key of the user (not applicable for all services).
- Authentication string
- Password string
is the password of the user (not applicable for all services).
- Redis
Acl List<string>Categories Redis specific field, defines command category rules.
- Redis
Acl List<string>Commands Redis specific field, defines rules for individual commands.
- Redis
Acl List<string>Keys Redis specific field, defines key access rules.
- Type string
tells whether the user is primary account or regular account.
- Project string
and
service_name
- (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.- Service
Name string - Username string
is the actual name of the user account.
- Access
Cert string is the access certificate of the user (not applicable for all services).
- Access
Key string is the access key of the user (not applicable for all services).
- Authentication string
- Password string
is the password of the user (not applicable for all services).
- Redis
Acl []stringCategories Redis specific field, defines command category rules.
- Redis
Acl []stringCommands Redis specific field, defines rules for individual commands.
- Redis
Acl []stringKeys Redis specific field, defines key access rules.
- Type string
tells whether the user is primary account or regular account.
- project string
and
service_name
- (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.- service
Name string - username string
is the actual name of the user account.
- access
Cert string is the access certificate of the user (not applicable for all services).
- access
Key string is the access key of the user (not applicable for all services).
- authentication string
- password string
is the password of the user (not applicable for all services).
- redis
Acl string[]Categories Redis specific field, defines command category rules.
- redis
Acl string[]Commands Redis specific field, defines rules for individual commands.
- redis
Acl string[]Keys Redis specific field, defines key access rules.
- type string
tells whether the user is primary account or regular account.
- project str
and
service_name
- (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.- service_
name str - username str
is the actual name of the user account.
- access_
cert str is the access certificate of the user (not applicable for all services).
- access_
key str is the access key of the user (not applicable for all services).
- authentication str
- password str
is the password of the user (not applicable for all services).
- redis_
acl_ Sequence[str]categories Redis specific field, defines command category rules.
- redis_
acl_ Sequence[str]commands Redis specific field, defines rules for individual commands.
- redis_
acl_ Sequence[str]keys Redis specific field, defines key access rules.
- type str
tells whether the user is primary account or regular account.
getServiceUser Result
The following output properties are available:
- Access
Cert string is the access certificate of the user (not applicable for all services).
- Access
Key string is the access key of the user (not applicable for all services).
- Id string
The provider-assigned unique ID for this managed resource.
- Password string
is the password of the user (not applicable for all services).
- Project string
- Service
Name string - Type string
tells whether the user is primary account or regular account.
- Username string
- Authentication string
- Redis
Acl List<string>Categories Redis specific field, defines command category rules.
- Redis
Acl List<string>Commands Redis specific field, defines rules for individual commands.
- Redis
Acl List<string>Keys Redis specific field, defines key access rules.
- Access
Cert string is the access certificate of the user (not applicable for all services).
- Access
Key string is the access key of the user (not applicable for all services).
- Id string
The provider-assigned unique ID for this managed resource.
- Password string
is the password of the user (not applicable for all services).
- Project string
- Service
Name string - Type string
tells whether the user is primary account or regular account.
- Username string
- Authentication string
- Redis
Acl []stringCategories Redis specific field, defines command category rules.
- Redis
Acl []stringCommands Redis specific field, defines rules for individual commands.
- Redis
Acl []stringKeys Redis specific field, defines key access rules.
- access
Cert string is the access certificate of the user (not applicable for all services).
- access
Key string is the access key of the user (not applicable for all services).
- id string
The provider-assigned unique ID for this managed resource.
- password string
is the password of the user (not applicable for all services).
- project string
- service
Name string - type string
tells whether the user is primary account or regular account.
- username string
- authentication string
- redis
Acl string[]Categories Redis specific field, defines command category rules.
- redis
Acl string[]Commands Redis specific field, defines rules for individual commands.
- redis
Acl string[]Keys Redis specific field, defines key access rules.
- access_
cert str is the access certificate of the user (not applicable for all services).
- access_
key str is the access key of the user (not applicable for all services).
- id str
The provider-assigned unique ID for this managed resource.
- password str
is the password of the user (not applicable for all services).
- project str
- service_
name str - type str
tells whether the user is primary account or regular account.
- username str
- authentication str
- redis_
acl_ Sequence[str]categories Redis specific field, defines command category rules.
- redis_
acl_ Sequence[str]commands Redis specific field, defines rules for individual commands.
- redis_
acl_ Sequence[str]keys Redis specific field, defines key access rules.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.