1. Packages
  2. Rollbar Provider
  3. API Docs
  4. TeamUser
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

rollbar.TeamUser

Explore with Pulumi AI

rollbar logo
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

    rollbar.TeamUser Resource

    =========================

    Manage a single Rollbar team member assignment. If a registered Rollbar user exists, they will be assigned to the team, otherwise they will be invited to join.

    Example Usage


    import * as pulumi from "@pulumi/pulumi";
    import * as rollbar from "@pulumi/rollbar";
    
    // Create a team
    const developers = new rollbar.Team("developers", {});
    // Create a project
    const foo = new rollbar.TeamUser("foo", {
        teamId: developers.teamId,
        email: "some_dev@company.com",
    });
    
    import pulumi
    import pulumi_rollbar as rollbar
    
    # Create a team
    developers = rollbar.Team("developers")
    # Create a project
    foo = rollbar.TeamUser("foo",
        team_id=developers.team_id,
        email="some_dev@company.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/rollbar/rollbar"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a team
    		developers, err := rollbar.NewTeam(ctx, "developers", nil)
    		if err != nil {
    			return err
    		}
    		// Create a project
    		_, err = rollbar.NewTeamUser(ctx, "foo", &rollbar.TeamUserArgs{
    			TeamId: developers.TeamId,
    			Email:  pulumi.String("some_dev@company.com"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rollbar = Pulumi.Rollbar;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a team
        var developers = new Rollbar.Team("developers");
    
        // Create a project
        var foo = new Rollbar.TeamUser("foo", new()
        {
            TeamId = developers.TeamId,
            Email = "some_dev@company.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rollbar.Team;
    import com.pulumi.rollbar.TeamUser;
    import com.pulumi.rollbar.TeamUserArgs;
    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) {
            // Create a team
            var developers = new Team("developers");
    
            // Create a project
            var foo = new TeamUser("foo", TeamUserArgs.builder()
                .teamId(developers.teamId())
                .email("some_dev@company.com")
                .build());
    
        }
    }
    
    resources:
      # Create a team
      developers:
        type: rollbar:Team
      # Create a project
      foo:
        type: rollbar:TeamUser
        properties:
          teamId: ${developers.teamId}
          email: some_dev@company.com
    

    !> NOTE When using this resource in conjunction with rollbar.User resource it is advisable to add the following lifecycle argument to prevent the teams being unassigned on subsequent runs:

    import * as pulumi from "@pulumi/pulumi";
    import * as rollbar from "@pulumi/rollbar";
    
    const devs = new rollbar.Team("devs", {});
    
    import pulumi
    import pulumi_rollbar as rollbar
    
    devs = rollbar.Team("devs")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/rollbar/rollbar"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rollbar.NewTeam(ctx, "devs", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rollbar = Pulumi.Rollbar;
    
    return await Deployment.RunAsync(() => 
    {
        var devs = new Rollbar.Team("devs");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rollbar.Team;
    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 devs = new Team("devs");
    
        }
    }
    
    resources:
      devs:
        type: rollbar:Team
    

    Create TeamUser Resource

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

    Constructor syntax

    new TeamUser(name: string, args: TeamUserArgs, opts?: CustomResourceOptions);
    @overload
    def TeamUser(resource_name: str,
                 args: TeamUserArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamUser(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 email: Optional[str] = None,
                 team_id: Optional[float] = None,
                 team_user_id: Optional[str] = None)
    func NewTeamUser(ctx *Context, name string, args TeamUserArgs, opts ...ResourceOption) (*TeamUser, error)
    public TeamUser(string name, TeamUserArgs args, CustomResourceOptions? opts = null)
    public TeamUser(String name, TeamUserArgs args)
    public TeamUser(String name, TeamUserArgs args, CustomResourceOptions options)
    
    type: rollbar:TeamUser
    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 TeamUserArgs
    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 TeamUserArgs
    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 TeamUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamUserArgs
    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 teamUserResource = new Rollbar.TeamUser("teamUserResource", new()
    {
        Email = "string",
        TeamId = 0,
        TeamUserId = "string",
    });
    
    example, err := rollbar.NewTeamUser(ctx, "teamUserResource", &rollbar.TeamUserArgs{
    	Email:      pulumi.String("string"),
    	TeamId:     pulumi.Float64(0),
    	TeamUserId: pulumi.String("string"),
    })
    
    var teamUserResource = new TeamUser("teamUserResource", TeamUserArgs.builder()
        .email("string")
        .teamId(0)
        .teamUserId("string")
        .build());
    
    team_user_resource = rollbar.TeamUser("teamUserResource",
        email="string",
        team_id=0,
        team_user_id="string")
    
    const teamUserResource = new rollbar.TeamUser("teamUserResource", {
        email: "string",
        teamId: 0,
        teamUserId: "string",
    });
    
    type: rollbar:TeamUser
    properties:
        email: string
        teamId: 0
        teamUserId: string
    

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

    Email string
    The user's email address
    TeamId double
    ID of the team to which this user belongs
    TeamUserId string
    Email string
    The user's email address
    TeamId float64
    ID of the team to which this user belongs
    TeamUserId string
    email String
    The user's email address
    teamId Double
    ID of the team to which this user belongs
    teamUserId String
    email string
    The user's email address
    teamId number
    ID of the team to which this user belongs
    teamUserId string
    email str
    The user's email address
    team_id float
    ID of the team to which this user belongs
    team_user_id str
    email String
    The user's email address
    teamId Number
    ID of the team to which this user belongs
    teamUserId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    InviteId double
    Invitation ID if status is invited
    Status string
    Status of the user. Either invited or registered
    UserId double
    The ID of the user if status is registered
    Id string
    The provider-assigned unique ID for this managed resource.
    InviteId float64
    Invitation ID if status is invited
    Status string
    Status of the user. Either invited or registered
    UserId float64
    The ID of the user if status is registered
    id String
    The provider-assigned unique ID for this managed resource.
    inviteId Double
    Invitation ID if status is invited
    status String
    Status of the user. Either invited or registered
    userId Double
    The ID of the user if status is registered
    id string
    The provider-assigned unique ID for this managed resource.
    inviteId number
    Invitation ID if status is invited
    status string
    Status of the user. Either invited or registered
    userId number
    The ID of the user if status is registered
    id str
    The provider-assigned unique ID for this managed resource.
    invite_id float
    Invitation ID if status is invited
    status str
    Status of the user. Either invited or registered
    user_id float
    The ID of the user if status is registered
    id String
    The provider-assigned unique ID for this managed resource.
    inviteId Number
    Invitation ID if status is invited
    status String
    Status of the user. Either invited or registered
    userId Number
    The ID of the user if status is registered

    Look up Existing TeamUser Resource

    Get an existing TeamUser 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?: TeamUserState, opts?: CustomResourceOptions): TeamUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email: Optional[str] = None,
            invite_id: Optional[float] = None,
            status: Optional[str] = None,
            team_id: Optional[float] = None,
            team_user_id: Optional[str] = None,
            user_id: Optional[float] = None) -> TeamUser
    func GetTeamUser(ctx *Context, name string, id IDInput, state *TeamUserState, opts ...ResourceOption) (*TeamUser, error)
    public static TeamUser Get(string name, Input<string> id, TeamUserState? state, CustomResourceOptions? opts = null)
    public static TeamUser get(String name, Output<String> id, TeamUserState state, CustomResourceOptions options)
    resources:  _:    type: rollbar:TeamUser    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:
    Email string
    The user's email address
    InviteId double
    Invitation ID if status is invited
    Status string
    Status of the user. Either invited or registered
    TeamId double
    ID of the team to which this user belongs
    TeamUserId string
    UserId double
    The ID of the user if status is registered
    Email string
    The user's email address
    InviteId float64
    Invitation ID if status is invited
    Status string
    Status of the user. Either invited or registered
    TeamId float64
    ID of the team to which this user belongs
    TeamUserId string
    UserId float64
    The ID of the user if status is registered
    email String
    The user's email address
    inviteId Double
    Invitation ID if status is invited
    status String
    Status of the user. Either invited or registered
    teamId Double
    ID of the team to which this user belongs
    teamUserId String
    userId Double
    The ID of the user if status is registered
    email string
    The user's email address
    inviteId number
    Invitation ID if status is invited
    status string
    Status of the user. Either invited or registered
    teamId number
    ID of the team to which this user belongs
    teamUserId string
    userId number
    The ID of the user if status is registered
    email str
    The user's email address
    invite_id float
    Invitation ID if status is invited
    status str
    Status of the user. Either invited or registered
    team_id float
    ID of the team to which this user belongs
    team_user_id str
    user_id float
    The ID of the user if status is registered
    email String
    The user's email address
    inviteId Number
    Invitation ID if status is invited
    status String
    Status of the user. Either invited or registered
    teamId Number
    ID of the team to which this user belongs
    teamUserId String
    userId Number
    The ID of the user if status is registered

    Import


    Resource can be imported using the team ID and email address separated by a comma e.g.

    $ pulumi import rollbar:index/teamUser:TeamUser foo 689493,some_dev@company.com
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    rollbar rollbar/terraform-provider-rollbar
    License
    Notes
    This Pulumi package is based on the rollbar Terraform Provider.
    rollbar logo
    rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar