published on Thursday, Nov 5, 2026 by Aten Security
Thothpublished on Thursday, Nov 5, 2026 by Aten Security
Create TeamMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeamMember(name: string, args: TeamMemberArgs, opts?: CustomResourceOptions);@overload
def TeamMember(resource_name: str,
args: TeamMemberArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeamMember(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
role: Optional[str] = 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: thoth:governance:TeamMember
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "thoth_governance_team_member" "name" {
# resource properties
}Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var teamMemberResource = new Thoth.Governance.TeamMember("teamMemberResource", new()
{
Email = "string",
Role = "string",
});
example, err := governance.NewTeamMember(ctx, "teamMemberResource", &governance.TeamMemberArgs{
Email: pulumi.String("string"),
Role: pulumi.String("string"),
})
resource "thoth_governance_team_member" "teamMemberResource" {
lifecycle {
create_before_destroy = true
}
email = "string"
role = "string"
}
var teamMemberResource = new TeamMember("teamMemberResource", TeamMemberArgs.builder()
.email("string")
.role("string")
.build());
team_member_resource = thoth.governance.TeamMember("teamMemberResource",
email="string",
role="string")
const teamMemberResource = new thoth.governance.TeamMember("teamMemberResource", {
email: "string",
role: "string",
});
type: thoth:governance:TeamMember
properties:
email: string
role: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TeamMember resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamMember resource produces the following output properties:
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,
email: Optional[str] = None,
role: Optional[str] = None,
status: Optional[str] = None,
user_id: Optional[str] = None) -> TeamMemberfunc 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)resources: existingTeamMember: type: thoth:governance:TeamMember get: id: ${id}import {
to = thoth_governance_team_member.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state TeamMemberState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state TeamMemberState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state TeamMemberState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state TeamMemberState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Email string
- The person's email address.
- Role string
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- Status string
- invited, or the membership status (active once they join).
- User
Id string - The person's user ID once they have joined.
- Email string
- The person's email address.
- Role string
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- Status string
- invited, or the membership status (active once they join).
- User
Id string - The person's user ID once they have joined.
- email string
- The person's email address.
- role string
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- status string
- invited, or the membership status (active once they join).
- user_
id string - The person's user ID once they have joined.
- email String
- The person's email address.
- role String
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- status String
- invited, or the membership status (active once they join).
- user
Id String - The person's user ID once they have joined.
- email string
- The person's email address.
- role string
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- status string
- invited, or the membership status (active once they join).
- user
Id string - The person's user ID once they have joined.
- email str
- The person's email address.
- role str
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- status str
- invited, or the membership status (active once they join).
- user_
id str - The person's user ID once they have joined.
- email String
- The person's email address.
- role String
- admin, or viewer on self-serve and trial workspaces and member on dedicated ones. On self-serve and trial workspaces invitees join as viewers, and a role other than viewer is applied by the first apply after they join.
- status String
- invited, or the membership status (active once they join).
- user
Id String - The person's user ID once they have joined.
Package Details
- Repository
- thoth atensecurity/pulumi-thoth
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
thothTerraform Provider.
Thothpublished on Thursday, Nov 5, 2026 by Aten Security