Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getProjectUser

# Project User Data Source

The Project User data source provides information about the existing Aiven Project User.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var mytestuser = Output.Create(Aiven.GetProjectUser.InvokeAsync(new Aiven.GetProjectUserArgs
        {
            Email = "john.doe@example.com",
            Project = aiven_project.Myproject.Project,
        }));
    }

}
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.LookupProjectUser(ctx, &aiven.LookupProjectUserArgs{
            Email:   "john.doe@example.com",
            Project: aiven_project.Myproject.Project,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

mytestuser = aiven.get_project_user(email="john.doe@example.com",
    project=aiven_project["myproject"]["project"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const mytestuser = aiven_project_myproject.project.apply(project => aiven.getProjectUser({
    email: "john.doe@example.com",
    project: project,
}, { async: true }));

Using getProjectUser

function getProjectUser(args: GetProjectUserArgs, opts?: InvokeOptions): Promise<GetProjectUserResult>
def get_project_user(accepted: Optional[bool] = None, email: Optional[str] = None, member_type: Optional[str] = None, project: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetProjectUserResult
func LookupProjectUser(ctx *Context, args *LookupProjectUserArgs, opts ...InvokeOption) (*LookupProjectUserResult, error)

Note: This function is named LookupProjectUser in the Go SDK.

public static class GetProjectUser {
    public static Task<GetProjectUserResult> InvokeAsync(GetProjectUserArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Email string

identifies the email address of the user.

Project string

defines the project the user is a member of.

Accepted bool

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

MemberType string

(Required) defines the access level the user has to the project.

Email string

identifies the email address of the user.

Project string

defines the project the user is a member of.

Accepted bool

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

MemberType string

(Required) defines the access level the user has to the project.

email string

identifies the email address of the user.

project string

defines the project the user is a member of.

accepted boolean

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

memberType string

(Required) defines the access level the user has to the project.

email str

identifies the email address of the user.

project str

defines the project the user is a member of.

accepted bool

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

member_type str

(Required) defines the access level the user has to the project.

getProjectUser Result

The following output properties are available:

Accepted bool

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

Email string
Id string

The provider-assigned unique ID for this managed resource.

Project string
MemberType string

(Required) defines the access level the user has to the project.

Accepted bool

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

Email string
Id string

The provider-assigned unique ID for this managed resource.

Project string
MemberType string

(Required) defines the access level the user has to the project.

accepted boolean

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

email string
id string

The provider-assigned unique ID for this managed resource.

project string
memberType string

(Required) defines the access level the user has to the project.

accepted bool

is a computed property tells whether the user has accepted the request to join the project; adding user to a project sends an invitation to the target user and the actual membership is only created once the user accepts the invitation. This property cannot be set, only read.

email str
id str

The provider-assigned unique ID for this managed resource.

project str
member_type str

(Required) defines the access level the user has to the project.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.