symbiosis logo
Symbiosis v1.0.4, Mar 16 23

symbiosis.TeamMember

Explore with Pulumi AI

Manages team membership and invitations.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Symbiosis = Symbiosis.Pulumi.Symbiosis;

return await Deployment.RunAsync(() => 
{
    var example = new Symbiosis.TeamMember("example", new()
    {
        Email = "my-user@email.com",
        Role = "MEMBER",
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/symbiosis-cloud/pulumi-symbiosis/sdk/go/symbiosis"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := symbiosis.NewTeamMember(ctx, "example", &symbiosis.TeamMemberArgs{
			Email: pulumi.String("my-user@email.com"),
			Role:  pulumi.String("MEMBER"),
		})
		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.symbiosis.TeamMember;
import com.pulumi.symbiosis.TeamMemberArgs;
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 example = new TeamMember("example", TeamMemberArgs.builder()        
            .email("my-user@email.com")
            .role("MEMBER")
            .build());

    }
}
import pulumi
import symbiosis_pulumi as symbiosis

example = symbiosis.TeamMember("example",
    email="my-user@email.com",
    role="MEMBER")
import * as pulumi from "@pulumi/pulumi";
import * as symbiosis from "@symbiosis-cloud/symbiosis-pulumi";

const example = new symbiosis.TeamMember("example", {
    email: "my-user@email.com",
    role: "MEMBER",
});
resources:
  example:
    type: symbiosis:TeamMember
    properties:
      email: my-user@email.com
      role: MEMBER

Create TeamMember Resource

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

name string
The unique name of the resource.
args TeamMemberArgs
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 TeamMemberArgs
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 TeamMemberArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TeamMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TeamMemberArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TeamMember 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 TeamMember resource accepts the following input properties:

Email string

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

Role string

User role. Valid values include [MEMBER, ADMIN].

Email string

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

Role string

User role. Valid values include [MEMBER, ADMIN].

email String

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role String

User role. Valid values include [MEMBER, ADMIN].

email string

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role string

User role. Valid values include [MEMBER, ADMIN].

email str

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role str

User role. Valid values include [MEMBER, ADMIN].

email String

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role String

User role. Valid values include [MEMBER, ADMIN].

Outputs

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

AcceptedInvitation string

Whether the user has accepted the invitation to the team.

Id string

The provider-assigned unique ID for this managed resource.

AcceptedInvitation string

Whether the user has accepted the invitation to the team.

Id string

The provider-assigned unique ID for this managed resource.

acceptedInvitation String

Whether the user has accepted the invitation to the team.

id String

The provider-assigned unique ID for this managed resource.

acceptedInvitation string

Whether the user has accepted the invitation to the team.

id string

The provider-assigned unique ID for this managed resource.

accepted_invitation str

Whether the user has accepted the invitation to the team.

id str

The provider-assigned unique ID for this managed resource.

acceptedInvitation String

Whether the user has accepted the invitation to the team.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing TeamMember Resource

Get an existing TeamMember 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?: TeamMemberState, opts?: CustomResourceOptions): TeamMember
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accepted_invitation: Optional[str] = None,
        email: Optional[str] = None,
        role: Optional[str] = None) -> TeamMember
func GetTeamMember(ctx *Context, name string, id IDInput, state *TeamMemberState, opts ...ResourceOption) (*TeamMember, error)
public static TeamMember Get(string name, Input<string> id, TeamMemberState? state, CustomResourceOptions? opts = null)
public static TeamMember get(String name, Output<String> id, TeamMemberState 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:
AcceptedInvitation string

Whether the user has accepted the invitation to the team.

Email string

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

Role string

User role. Valid values include [MEMBER, ADMIN].

AcceptedInvitation string

Whether the user has accepted the invitation to the team.

Email string

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

Role string

User role. Valid values include [MEMBER, ADMIN].

acceptedInvitation String

Whether the user has accepted the invitation to the team.

email String

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role String

User role. Valid values include [MEMBER, ADMIN].

acceptedInvitation string

Whether the user has accepted the invitation to the team.

email string

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role string

User role. Valid values include [MEMBER, ADMIN].

accepted_invitation str

Whether the user has accepted the invitation to the team.

email str

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role str

User role. Valid values include [MEMBER, ADMIN].

acceptedInvitation String

Whether the user has accepted the invitation to the team.

email String

User email to invite. Adding an team member will send the user an invitation. Deleting a team member will either delete the invitation or the user depending on whether the user has accepted the invitation.

role String

User role. Valid values include [MEMBER, ADMIN].

Package Details

Repository
symbiosis symbiosis-cloud/pulumi-symbiosis
License
Apache-2.0
Notes

This Pulumi package is based on the symbiosis Terraform Provider.