Show / Hide Table of Contents

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
System.Object
Pulumi.Resource
Pulumi.CustomResource
TeamMembership
Inherited Members
Pulumi.CustomResource.Id
Pulumi.Resource.GetResourceType()
Pulumi.Resource.GetResourceName()
Pulumi.Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class TeamMembership : CustomResource

Constructors

View Source

TeamMembership(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 Source

Role

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.