1. Packages
  2. Aiven Provider
  3. API Docs
  4. ProjectUser
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    The Project User resource allows the creation and management of Aiven Project Users.

    Example Usage

    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var mytestuser = new Aiven.ProjectUser("mytestuser", new Aiven.ProjectUserArgs
            {
                Project = aiven_project.Myproject.Project,
                Email = "john.doe@example.com",
                MemberType = "admin",
            });
        }
    
    }
    
    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.NewProjectUser(ctx, "mytestuser", &aiven.ProjectUserArgs{
    			Project:    pulumi.Any(aiven_project.Myproject.Project),
    			Email:      pulumi.String("john.doe@example.com"),
    			MemberType: pulumi.String("admin"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const mytestuser = new aiven.ProjectUser("mytestuser", {
        project: aiven_project.myproject.project,
        email: "john.doe@example.com",
        memberType: "admin",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    mytestuser = aiven.ProjectUser("mytestuser",
        project=aiven_project["myproject"]["project"],
        email="john.doe@example.com",
        member_type="admin")
    

    Example coming soon!

    Create ProjectUser Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectUser(name: string, args: ProjectUserArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectUser(resource_name: str,
                    args: ProjectUserArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectUser(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    email: Optional[str] = None,
                    member_type: Optional[str] = None,
                    project: Optional[str] = None)
    func NewProjectUser(ctx *Context, name string, args ProjectUserArgs, opts ...ResourceOption) (*ProjectUser, error)
    public ProjectUser(string name, ProjectUserArgs args, CustomResourceOptions? opts = null)
    public ProjectUser(String name, ProjectUserArgs args)
    public ProjectUser(String name, ProjectUserArgs args, CustomResourceOptions options)
    
    type: aiven:ProjectUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectUserArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectUserResource = new Aiven.ProjectUser("projectUserResource", new()
    {
        Email = "string",
        MemberType = "string",
        Project = "string",
    });
    
    example, err := aiven.NewProjectUser(ctx, "projectUserResource", &aiven.ProjectUserArgs{
    	Email:      pulumi.String("string"),
    	MemberType: pulumi.String("string"),
    	Project:    pulumi.String("string"),
    })
    
    var projectUserResource = new ProjectUser("projectUserResource", ProjectUserArgs.builder()
        .email("string")
        .memberType("string")
        .project("string")
        .build());
    
    project_user_resource = aiven.ProjectUser("projectUserResource",
        email="string",
        member_type="string",
        project="string")
    
    const projectUserResource = new aiven.ProjectUser("projectUserResource", {
        email: "string",
        memberType: "string",
        project: "string",
    });
    
    type: aiven:ProjectUser
    properties:
        email: string
        memberType: string
        project: string
    

    ProjectUser Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProjectUser resource accepts the following input properties:

    Email string
    Email address of the user. This property cannot be changed, doing so forces recreation of the resource.
    MemberType string
    Project membership type. The possible values are admin, developer and operator.
    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.
    MemberType string
    Project membership type. The possible values are admin, developer and operator.
    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.
    memberType String
    Project membership type. The possible values are admin, developer and operator.
    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.
    memberType string
    Project membership type. The possible values are admin, developer and operator.
    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.
    member_type str
    Project membership type. The possible values are admin, developer and operator.
    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.
    memberType String
    Project membership type. The possible values are admin, developer and operator.
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectUser resource produces the following output properties:

    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.
    Id string
    The provider-assigned unique ID for this managed 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.
    Id string
    The provider-assigned unique ID for this managed 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.
    id String
    The provider-assigned unique ID for this managed 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.
    id string
    The provider-assigned unique ID for this managed 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.
    id str
    The provider-assigned unique ID for this managed 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.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProjectUser Resource

    Get an existing ProjectUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectUserState, opts?: CustomResourceOptions): ProjectUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accepted: Optional[bool] = None,
            email: Optional[str] = None,
            member_type: Optional[str] = None,
            project: Optional[str] = None) -> ProjectUser
    func GetProjectUser(ctx *Context, name string, id IDInput, state *ProjectUserState, opts ...ResourceOption) (*ProjectUser, error)
    public static ProjectUser Get(string name, Input<string> id, ProjectUserState? state, CustomResourceOptions? opts = null)
    public static ProjectUser get(String name, Output<String> id, ProjectUserState state, CustomResourceOptions options)
    resources:  _:    type: aiven:ProjectUser    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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.
    MemberType string
    Project membership type. The possible values are admin, developer and operator.
    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.
    MemberType string
    Project membership type. The possible values are admin, developer and operator.
    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.
    memberType String
    Project membership type. The possible values are admin, developer and operator.
    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.
    memberType string
    Project membership type. The possible values are admin, developer and operator.
    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.
    member_type str
    Project membership type. The possible values are admin, developer and operator.
    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.
    memberType String
    Project membership type. The possible values are admin, developer and operator.
    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.
    aiven logo
    Viewing docs for Aiven v4.5.2 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.