1. Packages
  2. Aiven
  3. API Docs
  4. ProjectUser
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.ProjectUser

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

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

    Example Usage

    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")
    
    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.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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var mytestuser = new Aiven.ProjectUser("mytestuser", new()
        {
            Project = aiven_project.Myproject.Project,
            Email = "john.doe@example.com",
            MemberType = "admin",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.ProjectUser;
    import com.pulumi.aiven.ProjectUserArgs;
    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) {
            var mytestuser = new ProjectUser("mytestuser", ProjectUserArgs.builder()        
                .project(aiven_project.myproject().project())
                .email("john.doe@example.com")
                .memberType("admin")
                .build());
    
        }
    }
    
    resources:
      mytestuser:
        type: aiven:ProjectUser
        properties:
          project: ${aiven_project.myproject.project}
          email: john.doe@example.com
          memberType: admin
    

    Create ProjectUser Resource

    new ProjectUser(name: string, args: ProjectUserArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectUser(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    email: Optional[str] = None,
                    member_type: Optional[str] = None,
                    project: Optional[str] = None)
    @overload
    def ProjectUser(resource_name: str,
                    args: ProjectUserArgs,
                    opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The ProjectUser resource accepts the following input properties:

    Email string
    Email address of the user. Should be lowercase. Changing this property 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. Changing this property forces recreation of the resource.
    Email string
    Email address of the user. Should be lowercase. Changing this property 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. Changing this property forces recreation of the resource.
    email String
    Email address of the user. Should be lowercase. Changing this property 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. Changing this property forces recreation of the resource.
    email string
    Email address of the user. Should be lowercase. Changing this property 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. Changing this property forces recreation of the resource.
    email str
    Email address of the user. Should be lowercase. Changing this property 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. Changing this property forces recreation of the resource.
    email String
    Email address of the user. Should be lowercase. Changing this property 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. Changing this property 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)
    Resource lookup is not supported in YAML
    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. Should be lowercase. Changing this property 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. Changing this property 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. Should be lowercase. Changing this property 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. Changing this property 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. Should be lowercase. Changing this property 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. Changing this property 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. Should be lowercase. Changing this property 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. Changing this property 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. Should be lowercase. Changing this property 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. Changing this property 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. Should be lowercase. Changing this property 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. Changing this property forces recreation of the resource.

    Import

    $ pulumi import aiven:index/projectUser:ProjectUser mytestuser project/email
    

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi