ProjectUser
# Project User Resource
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
{
Email = "john.doe@example.com",
MemberType = "admin",
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.NewProjectUser(ctx, "mytestuser", &aiven.ProjectUserArgs{
Email: pulumi.String("john.doe@example.com"),
MemberType: pulumi.String("admin"),
Project: pulumi.Any(aiven_project.Myproject.Project),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_aiven as aiven
mytestuser = aiven.ProjectUser("mytestuser",
email="john.doe@example.com",
member_type="admin",
project=aiven_project["myproject"]["project"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mytestuser = new aiven.ProjectUser("mytestuser", {
email: "john.doe@example.com",
memberType: "admin",
project: aiven_project_myproject.project,
});
Create a ProjectUser Resource
new ProjectUser(name: string, args: ProjectUserArgs, opts?: CustomResourceOptions);
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)
- 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.
- opts ResourceOptions
- A bag of options that control this 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.
ProjectUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ProjectUser resource accepts the following input properties:
- Email string
identifies the email address of the user.
- Member
Type string defines the access level the user has to the project.
- Project string
defines the project the user is a member of.
- Email string
identifies the email address of the user.
- Member
Type string defines the access level the user has to the project.
- Project string
defines the project the user is a member of.
- email string
identifies the email address of the user.
- member
Type string defines the access level the user has to the project.
- project string
defines the project the user is a member of.
- email str
identifies the email address of the user.
- member_
type str defines the access level the user has to the project.
- project str
defines the project the user is a member of.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectUser resource produces the following output properties:
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an 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)
- 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.
The following state arguments are supported:
- 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
identifies the email address of the user.
- Member
Type string defines the access level the user has to the project.
- 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.
- Email string
identifies the email address of the user.
- Member
Type string defines the access level the user has to the project.
- 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.
- email string
identifies the email address of the user.
- member
Type string defines the access level the user has to the project.
- 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.
- email str
identifies the email address of the user.
- member_
type str defines the access level the user has to the project.
- project str
defines the project the user is a member of.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.