aiven.getProjectUser
Explore with Pulumi AI
The Project User data source provides information about the existing Aiven Project User.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var mytestuser = Aiven.GetProjectUser.Invoke(new()
{
Project = aiven_project.Myproject.Project,
Email = "john.doe@example.com",
});
});
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.LookupProjectUser(ctx, &aiven.LookupProjectUserArgs{
Project: aiven_project.Myproject.Project,
Email: "john.doe@example.com",
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetProjectUserArgs;
import java.util.List;
import java.util.ArrayList;
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 mytestuser = AivenFunctions.getProjectUser(GetProjectUserArgs.builder()
.project(aiven_project.myproject().project())
.email("john.doe@example.com")
.build());
}
}
import pulumi
import pulumi_aiven as aiven
mytestuser = aiven.get_project_user(project=aiven_project["myproject"]["project"],
email="john.doe@example.com")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mytestuser = aiven.getProjectUser({
project: aiven_project.myproject.project,
email: "john.doe@example.com",
});
variables:
mytestuser:
fn::invoke:
Function: aiven:getProjectUser
Arguments:
project: ${aiven_project.myproject.project}
email: john.doe@example.com
Using getProjectUser
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 getProjectUser(args: GetProjectUserArgs, opts?: InvokeOptions): Promise<GetProjectUserResult>
function getProjectUserOutput(args: GetProjectUserOutputArgs, opts?: InvokeOptions): Output<GetProjectUserResult>
def get_project_user(email: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectUserResult
def get_project_user_output(email: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectUserResult]
func LookupProjectUser(ctx *Context, args *LookupProjectUserArgs, opts ...InvokeOption) (*LookupProjectUserResult, error)
func LookupProjectUserOutput(ctx *Context, args *LookupProjectUserOutputArgs, opts ...InvokeOption) LookupProjectUserResultOutput
> Note: This function is named LookupProjectUser
in the Go SDK.
public static class GetProjectUser
{
public static Task<GetProjectUserResult> InvokeAsync(GetProjectUserArgs args, InvokeOptions? opts = null)
public static Output<GetProjectUserResult> Invoke(GetProjectUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectUserResult> getProjectUser(GetProjectUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aiven:index/getProjectUser:getProjectUser
arguments:
# arguments dictionary
The following arguments are supported:
- Email string
Email address of the user. 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.
- Email string
Email address of the user. 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.
- email String
Email address of the user. 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.
- email string
Email address of the user. 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.
- email str
Email address of the user. 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.
- email String
Email address of the user. 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.
getProjectUser Result
The following output properties are available:
- Accepted bool
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.
- Email string
Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
- Id string
The provider-assigned unique ID for this managed resource.
- Member
Type string Project membership type. The possible values are
admin
,developer
andoperator
.- 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.
- Accepted bool
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.
- Email string
Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
- Id string
The provider-assigned unique ID for this managed resource.
- Member
Type string Project membership type. The possible values are
admin
,developer
andoperator
.- 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.
- accepted Boolean
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.
- email String
Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
- id String
The provider-assigned unique ID for this managed resource.
- member
Type String Project membership type. The possible values are
admin
,developer
andoperator
.- 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.
- accepted boolean
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.
- email string
Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
- id string
The provider-assigned unique ID for this managed resource.
- member
Type string Project membership type. The possible values are
admin
,developer
andoperator
.- 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.
- accepted bool
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.
- email str
Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
- id str
The provider-assigned unique ID for this managed resource.
- member_
type str Project membership type. The possible values are
admin
,developer
andoperator
.- 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.
- accepted Boolean
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.
- email String
Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
- id String
The provider-assigned unique ID for this managed resource.
- member
Type String Project membership type. The possible values are
admin
,developer
andoperator
.- 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.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.