← All types

TeamMembershipState

An individually managed team membership

Fields

Unique membership identity

teamId

TeamID!Non-null

Team containing this membership

userId

UserID!Non-null

Existing user who belongs to the team

MEMBER or ADMIN. Admins of a stack's owning team administer that stack. Set with setTeamMemberRole.

Possible values (2)
MEMBER

Does the team's work on the stacks it owns

ADMIN

Also administers the stacks the team owns: rules, bypass, review dismissal and secrets

Referenced by (3)
Exact type SDL
"""An individually managed team membership"""
type TeamMembershipState @iac_resource(name: "team_membership") @iac_topic(names: ["iam"]) @iac_ops(create: "createTeamMembership", read: "getTeamMembership", delete: "deleteTeamMembership") @iac_replace(strategy: DESTROY_BEFORE_CREATE) {
  """Unique membership identity"""
  id: TeamMembershipID! @iac_identity(assignedBy: SERVER) @iac_computed
  """Team containing this membership"""
  teamId: TeamID! @iac_ref(resource: "team") @iac_forcesReplace
  """Existing user who belongs to the team"""
  userId: UserID! @iac_ref(resource: "service_account") @iac_forcesReplace
  """
  MEMBER or ADMIN. Admins of a stack's owning team administer that stack. Set with setTeamMemberRole.
  """
  role: TeamMemberRole! @iac_computed
}