Class TeamMembership
A team membership manages memberships within a team.
Example Usage
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
class MyStack : Stack
{
public MyStack()
{
var fooUser = new Pagerduty.User("fooUser", new Pagerduty.UserArgs
{
Email = "foo@bar.com",
});
var fooTeam = new Pagerduty.Team("fooTeam", new Pagerduty.TeamArgs
{
Description = "foo",
});
var fooTeamMembership = new Pagerduty.TeamMembership("fooTeamMembership", new Pagerduty.TeamMembershipArgs
{
Role = "manager",
TeamId = fooTeam.Id,
UserId = fooUser.Id,
});
}
}
Inheritance
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class TeamMembership : CustomResource
Constructors
View SourceTeamMembership(String, TeamMembershipArgs, CustomResourceOptions)
Create a TeamMembership resource with the given unique name, arguments, and options.
Declaration
public TeamMembership(string name, TeamMembershipArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TeamMembershipArgs | args | The arguments used to populate this resource's properties |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceRole
The role of the user in the team. One of observer, responder, or manager. Defaults to manager.
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
TeamId
The ID of the team in which the user will belong.
Declaration
public Output<string> TeamId { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
UserId
The ID of the user to add to the team.
Declaration
public Output<string> UserId { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Methods
View SourceGet(String, Input<String>, TeamMembershipState, CustomResourceOptions)
Get an existing TeamMembership resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static TeamMembership Get(string name, Input<string> id, TeamMembershipState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Pulumi.Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TeamMembershipState | state | Any extra arguments used during the lookup. |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| TeamMembership |