lacework.TeamMember
Explore with Pulumi AI
Team members can be granted access to multiple Lacework accounts and have different roles for each account. Team members can also be granted organization-level roles.
Lacework supports the following account roles:
- Administrator Role - Full access to all functionalities
- User Role - View only and no access to API keys
Lacework supports the following organization roles:
- Org Administrator Role - The member has admin privileges for organization settings and admin privileges for all accounts within the organization
- Org User Role - The member has user privileges for organization settings and user privileges for all accounts within the organization
For more information, see the Team Members documentation.
Example Usage
Standalone Account
Team member that has User Role access into a Lacework standalone account.
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const harry = new lacework.TeamMember("harry", {
email: "harry@hogwarts.io",
firstName: "Harry",
lastName: "Potter",
});
import pulumi
import pulumi_lacework as lacework
harry = lacework.TeamMember("harry",
email="harry@hogwarts.io",
first_name="Harry",
last_name="Potter")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewTeamMember(ctx, "harry", &lacework.TeamMemberArgs{
Email: pulumi.String("harry@hogwarts.io"),
FirstName: pulumi.String("Harry"),
LastName: pulumi.String("Potter"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var harry = new Lacework.TeamMember("harry", new()
{
Email = "harry@hogwarts.io",
FirstName = "Harry",
LastName = "Potter",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
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 harry = new TeamMember("harry", TeamMemberArgs.builder()
.email("harry@hogwarts.io")
.firstName("Harry")
.lastName("Potter")
.build());
}
}
resources:
harry:
type: lacework:TeamMember
properties:
email: harry@hogwarts.io
firstName: Harry
lastName: Potter
Team member with Administrator Role access.
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const hermione = new lacework.TeamMember("hermione", {
administrator: true,
email: "hermione@hogwarts.io",
firstName: "Hermione",
lastName: "Granger",
});
import pulumi
import pulumi_lacework as lacework
hermione = lacework.TeamMember("hermione",
administrator=True,
email="hermione@hogwarts.io",
first_name="Hermione",
last_name="Granger")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewTeamMember(ctx, "hermione", &lacework.TeamMemberArgs{
Administrator: pulumi.Bool(true),
Email: pulumi.String("hermione@hogwarts.io"),
FirstName: pulumi.String("Hermione"),
LastName: pulumi.String("Granger"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var hermione = new Lacework.TeamMember("hermione", new()
{
Administrator = true,
Email = "hermione@hogwarts.io",
FirstName = "Hermione",
LastName = "Granger",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
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 hermione = new TeamMember("hermione", TeamMemberArgs.builder()
.administrator(true)
.email("hermione@hogwarts.io")
.firstName("Hermione")
.lastName("Granger")
.build());
}
}
resources:
hermione:
type: lacework:TeamMember
properties:
administrator: true
email: hermione@hogwarts.io
firstName: Hermione
lastName: Granger
Organizational Account
To manage team members at the organization-level you need to define a Lacework provider with the
organization
argument set to true
.
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const org = new lacework.Provider("org", {organization: true});
import pulumi
import pulumi_lacework as lacework
org = lacework.Provider("org", organization=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewProvider(ctx, "org", &lacework.ProviderArgs{
Organization: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var org = new Lacework.Provider("org", new()
{
Organization = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.Provider;
import com.pulumi.lacework.ProviderArgs;
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 org = new Provider("org", ProviderArgs.builder()
.organization(true)
.build());
}
}
resources:
org:
type: pulumi:providers:lacework
properties:
organization: true
Team member that has User Role access for all accounts within the Lacework organization.
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const ron = new lacework.TeamMember("ron", {
firstName: "Ron",
lastName: "Weasley",
email: "ron@hogwarts.io",
organization: {
user: true,
},
}, {
provider: lacework.org,
});
import pulumi
import pulumi_lacework as lacework
ron = lacework.TeamMember("ron",
first_name="Ron",
last_name="Weasley",
email="ron@hogwarts.io",
organization={
"user": True,
},
opts = pulumi.ResourceOptions(provider=lacework["org"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewTeamMember(ctx, "ron", &lacework.TeamMemberArgs{
FirstName: pulumi.String("Ron"),
LastName: pulumi.String("Weasley"),
Email: pulumi.String("ron@hogwarts.io"),
Organization: &lacework.TeamMemberOrganizationArgs{
User: pulumi.Bool(true),
},
}, pulumi.Provider(lacework.Org))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var ron = new Lacework.TeamMember("ron", new()
{
FirstName = "Ron",
LastName = "Weasley",
Email = "ron@hogwarts.io",
Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
{
User = true,
},
}, new CustomResourceOptions
{
Provider = lacework.Org,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import com.pulumi.lacework.inputs.TeamMemberOrganizationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 ron = new TeamMember("ron", TeamMemberArgs.builder()
.firstName("Ron")
.lastName("Weasley")
.email("ron@hogwarts.io")
.organization(TeamMemberOrganizationArgs.builder()
.user(true)
.build())
.build(), CustomResourceOptions.builder()
.provider(lacework.org())
.build());
}
}
resources:
ron:
type: lacework:TeamMember
properties:
firstName: Ron
lastName: Weasley
email: ron@hogwarts.io
organization:
user: true
options:
provider: ${lacework.org}
Team member with Administrator privileges for all accounts within the organization.
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const albus = new lacework.TeamMember("albus", {
firstName: "Albus",
lastName: "Dumbledore",
email: "albus@hogwarts.io",
organization: {
administrator: true,
},
}, {
provider: lacework.org,
});
import pulumi
import pulumi_lacework as lacework
albus = lacework.TeamMember("albus",
first_name="Albus",
last_name="Dumbledore",
email="albus@hogwarts.io",
organization={
"administrator": True,
},
opts = pulumi.ResourceOptions(provider=lacework["org"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewTeamMember(ctx, "albus", &lacework.TeamMemberArgs{
FirstName: pulumi.String("Albus"),
LastName: pulumi.String("Dumbledore"),
Email: pulumi.String("albus@hogwarts.io"),
Organization: &lacework.TeamMemberOrganizationArgs{
Administrator: pulumi.Bool(true),
},
}, pulumi.Provider(lacework.Org))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var albus = new Lacework.TeamMember("albus", new()
{
FirstName = "Albus",
LastName = "Dumbledore",
Email = "albus@hogwarts.io",
Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
{
Administrator = true,
},
}, new CustomResourceOptions
{
Provider = lacework.Org,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import com.pulumi.lacework.inputs.TeamMemberOrganizationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 albus = new TeamMember("albus", TeamMemberArgs.builder()
.firstName("Albus")
.lastName("Dumbledore")
.email("albus@hogwarts.io")
.organization(TeamMemberOrganizationArgs.builder()
.administrator(true)
.build())
.build(), CustomResourceOptions.builder()
.provider(lacework.org())
.build());
}
}
resources:
albus:
type: lacework:TeamMember
properties:
firstName: Albus
lastName: Dumbledore
email: albus@hogwarts.io
organization:
administrator: true
options:
provider: ${lacework.org}
Team Member that has access to multiple accounts within a Lacework organization. The member is an
administrator for SLYTHERIN
account, and a regular user for HUFFLEPUFF
, RAVENCLAW
, and GRYFFINDOR
.
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const severus = new lacework.TeamMember("severus", {
firstName: "Severus",
lastName: "Snape",
email: "severus@hogwarts.io",
organization: {
adminAccounts: ["SLYTHERIN"],
userAccounts: [
"HUFFLEPUFF",
"RAVENCLAW",
"GRYFFINDOR",
],
},
}, {
provider: lacework.org,
});
import pulumi
import pulumi_lacework as lacework
severus = lacework.TeamMember("severus",
first_name="Severus",
last_name="Snape",
email="severus@hogwarts.io",
organization={
"admin_accounts": ["SLYTHERIN"],
"user_accounts": [
"HUFFLEPUFF",
"RAVENCLAW",
"GRYFFINDOR",
],
},
opts = pulumi.ResourceOptions(provider=lacework["org"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewTeamMember(ctx, "severus", &lacework.TeamMemberArgs{
FirstName: pulumi.String("Severus"),
LastName: pulumi.String("Snape"),
Email: pulumi.String("severus@hogwarts.io"),
Organization: &lacework.TeamMemberOrganizationArgs{
AdminAccounts: pulumi.StringArray{
pulumi.String("SLYTHERIN"),
},
UserAccounts: pulumi.StringArray{
pulumi.String("HUFFLEPUFF"),
pulumi.String("RAVENCLAW"),
pulumi.String("GRYFFINDOR"),
},
},
}, pulumi.Provider(lacework.Org))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var severus = new Lacework.TeamMember("severus", new()
{
FirstName = "Severus",
LastName = "Snape",
Email = "severus@hogwarts.io",
Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
{
AdminAccounts = new[]
{
"SLYTHERIN",
},
UserAccounts = new[]
{
"HUFFLEPUFF",
"RAVENCLAW",
"GRYFFINDOR",
},
},
}, new CustomResourceOptions
{
Provider = lacework.Org,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import com.pulumi.lacework.inputs.TeamMemberOrganizationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 severus = new TeamMember("severus", TeamMemberArgs.builder()
.firstName("Severus")
.lastName("Snape")
.email("severus@hogwarts.io")
.organization(TeamMemberOrganizationArgs.builder()
.adminAccounts("SLYTHERIN")
.userAccounts(
"HUFFLEPUFF",
"RAVENCLAW",
"GRYFFINDOR")
.build())
.build(), CustomResourceOptions.builder()
.provider(lacework.org())
.build());
}
}
resources:
severus:
type: lacework:TeamMember
properties:
firstName: Severus
lastName: Snape
email: severus@hogwarts.io
organization:
adminAccounts:
- SLYTHERIN
userAccounts:
- HUFFLEPUFF
- RAVENCLAW
- GRYFFINDOR
options:
provider: ${lacework.org}
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,
company: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
administrator: Optional[bool] = None,
enabled: Optional[bool] = None,
organization: Optional[TeamMemberOrganizationArgs] = None,
team_member_id: 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: lacework:TeamMember
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 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 Lacework.TeamMember("teamMemberResource", new()
{
Company = "string",
Email = "string",
FirstName = "string",
LastName = "string",
Administrator = false,
Enabled = false,
Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
{
AdminAccounts = new[]
{
"string",
},
Administrator = false,
User = false,
UserAccounts = new[]
{
"string",
},
},
TeamMemberId = "string",
});
example, err := lacework.NewTeamMember(ctx, "teamMemberResource", &lacework.TeamMemberArgs{
Company: pulumi.String("string"),
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
Administrator: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
Organization: &lacework.TeamMemberOrganizationArgs{
AdminAccounts: pulumi.StringArray{
pulumi.String("string"),
},
Administrator: pulumi.Bool(false),
User: pulumi.Bool(false),
UserAccounts: pulumi.StringArray{
pulumi.String("string"),
},
},
TeamMemberId: pulumi.String("string"),
})
var teamMemberResource = new TeamMember("teamMemberResource", TeamMemberArgs.builder()
.company("string")
.email("string")
.firstName("string")
.lastName("string")
.administrator(false)
.enabled(false)
.organization(TeamMemberOrganizationArgs.builder()
.adminAccounts("string")
.administrator(false)
.user(false)
.userAccounts("string")
.build())
.teamMemberId("string")
.build());
team_member_resource = lacework.TeamMember("teamMemberResource",
company="string",
email="string",
first_name="string",
last_name="string",
administrator=False,
enabled=False,
organization={
"admin_accounts": ["string"],
"administrator": False,
"user": False,
"user_accounts": ["string"],
},
team_member_id="string")
const teamMemberResource = new lacework.TeamMember("teamMemberResource", {
company: "string",
email: "string",
firstName: "string",
lastName: "string",
administrator: false,
enabled: false,
organization: {
adminAccounts: ["string"],
administrator: false,
user: false,
userAccounts: ["string"],
},
teamMemberId: "string",
});
type: lacework:TeamMember
properties:
administrator: false
company: string
email: string
enabled: false
firstName: string
lastName: string
organization:
adminAccounts:
- string
administrator: false
user: false
userAccounts:
- string
teamMemberId: 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:
- Company string
- The company name
- Email string
- The team member email address, which will also be used as the username.
- First
Name string - The team member first name.
- Last
Name string - The team member last name.
- Administrator bool
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - Enabled bool
- The state of the team member. Defaults to
true
. - Organization
Team
Member Organization - Use this block to manage organization-level team members. See Organization below for details.
- Team
Member stringId
- Company string
- The company name
- Email string
- The team member email address, which will also be used as the username.
- First
Name string - The team member first name.
- Last
Name string - The team member last name.
- Administrator bool
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - Enabled bool
- The state of the team member. Defaults to
true
. - Organization
Team
Member Organization Args - Use this block to manage organization-level team members. See Organization below for details.
- Team
Member stringId
- company String
- The company name
- email String
- The team member email address, which will also be used as the username.
- first
Name String - The team member first name.
- last
Name String - The team member last name.
- administrator Boolean
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - enabled Boolean
- The state of the team member. Defaults to
true
. - organization
Team
Member Organization - Use this block to manage organization-level team members. See Organization below for details.
- team
Member StringId
- company string
- The company name
- email string
- The team member email address, which will also be used as the username.
- first
Name string - The team member first name.
- last
Name string - The team member last name.
- administrator boolean
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - enabled boolean
- The state of the team member. Defaults to
true
. - organization
Team
Member Organization - Use this block to manage organization-level team members. See Organization below for details.
- team
Member stringId
- company str
- The company name
- email str
- The team member email address, which will also be used as the username.
- first_
name str - The team member first name.
- last_
name str - The team member last name.
- administrator bool
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - enabled bool
- The state of the team member. Defaults to
true
. - organization
Team
Member Organization Args - Use this block to manage organization-level team members. See Organization below for details.
- team_
member_ strid
- company String
- The company name
- email String
- The team member email address, which will also be used as the username.
- first
Name String - The team member first name.
- last
Name String - The team member last name.
- administrator Boolean
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - enabled Boolean
- The state of the team member. Defaults to
true
. - organization Property Map
- Use this block to manage organization-level team members. See Organization below for details.
- team
Member StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamMember resource produces the following output properties:
- Created
Time string - Guid string
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
By string - Updated
Time string
- Created
Time string - Guid string
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
By string - Updated
Time string
- created
Time String - guid String
- id String
- The provider-assigned unique ID for this managed resource.
- updated
By String - updated
Time String
- created
Time string - guid string
- id string
- The provider-assigned unique ID for this managed resource.
- updated
By string - updated
Time string
- created_
time str - guid str
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
by str - updated_
time str
- created
Time String - guid String
- id String
- The provider-assigned unique ID for this managed resource.
- updated
By String - updated
Time String
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,
administrator: Optional[bool] = None,
company: Optional[str] = None,
created_time: Optional[str] = None,
email: Optional[str] = None,
enabled: Optional[bool] = None,
first_name: Optional[str] = None,
guid: Optional[str] = None,
last_name: Optional[str] = None,
organization: Optional[TeamMemberOrganizationArgs] = None,
team_member_id: Optional[str] = None,
updated_by: Optional[str] = None,
updated_time: Optional[str] = None) -> TeamMember
func 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: _: type: lacework:TeamMember 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.
- Administrator bool
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - Company string
- The company name
- Created
Time string - Email string
- The team member email address, which will also be used as the username.
- Enabled bool
- The state of the team member. Defaults to
true
. - First
Name string - The team member first name.
- Guid string
- Last
Name string - The team member last name.
- Organization
Team
Member Organization - Use this block to manage organization-level team members. See Organization below for details.
- Team
Member stringId - Updated
By string - Updated
Time string
- Administrator bool
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - Company string
- The company name
- Created
Time string - Email string
- The team member email address, which will also be used as the username.
- Enabled bool
- The state of the team member. Defaults to
true
. - First
Name string - The team member first name.
- Guid string
- Last
Name string - The team member last name.
- Organization
Team
Member Organization Args - Use this block to manage organization-level team members. See Organization below for details.
- Team
Member stringId - Updated
By string - Updated
Time string
- administrator Boolean
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - company String
- The company name
- created
Time String - email String
- The team member email address, which will also be used as the username.
- enabled Boolean
- The state of the team member. Defaults to
true
. - first
Name String - The team member first name.
- guid String
- last
Name String - The team member last name.
- organization
Team
Member Organization - Use this block to manage organization-level team members. See Organization below for details.
- team
Member StringId - updated
By String - updated
Time String
- administrator boolean
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - company string
- The company name
- created
Time string - email string
- The team member email address, which will also be used as the username.
- enabled boolean
- The state of the team member. Defaults to
true
. - first
Name string - The team member first name.
- guid string
- last
Name string - The team member last name.
- organization
Team
Member Organization - Use this block to manage organization-level team members. See Organization below for details.
- team
Member stringId - updated
By string - updated
Time string
- administrator bool
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - company str
- The company name
- created_
time str - email str
- The team member email address, which will also be used as the username.
- enabled bool
- The state of the team member. Defaults to
true
. - first_
name str - The team member first name.
- guid str
- last_
name str - The team member last name.
- organization
Team
Member Organization Args - Use this block to manage organization-level team members. See Organization below for details.
- team_
member_ strid - updated_
by str - updated_
time str
- administrator Boolean
- Set to
true
to make the team member an administrator, otherwise the member will be a regular user. Defaults tofalse
. - company String
- The company name
- created
Time String - email String
- The team member email address, which will also be used as the username.
- enabled Boolean
- The state of the team member. Defaults to
true
. - first
Name String - The team member first name.
- guid String
- last
Name String - The team member last name.
- organization Property Map
- Use this block to manage organization-level team members. See Organization below for details.
- team
Member StringId - updated
By String - updated
Time String
Supporting Types
TeamMemberOrganization, TeamMemberOrganizationArgs
- Admin
Accounts List<string> - List of accounts the team member is an administrator.
- Administrator bool
- Whether the team member is an organization-level administrator. Defaults to
false
. - User bool
- Whether the team member is an organization-level user. Defaults to
false
. - User
Accounts List<string> - List of accounts the team member is a user.
- Admin
Accounts []string - List of accounts the team member is an administrator.
- Administrator bool
- Whether the team member is an organization-level administrator. Defaults to
false
. - User bool
- Whether the team member is an organization-level user. Defaults to
false
. - User
Accounts []string - List of accounts the team member is a user.
- admin
Accounts List<String> - List of accounts the team member is an administrator.
- administrator Boolean
- Whether the team member is an organization-level administrator. Defaults to
false
. - user Boolean
- Whether the team member is an organization-level user. Defaults to
false
. - user
Accounts List<String> - List of accounts the team member is a user.
- admin
Accounts string[] - List of accounts the team member is an administrator.
- administrator boolean
- Whether the team member is an organization-level administrator. Defaults to
false
. - user boolean
- Whether the team member is an organization-level user. Defaults to
false
. - user
Accounts string[] - List of accounts the team member is a user.
- admin_
accounts Sequence[str] - List of accounts the team member is an administrator.
- administrator bool
- Whether the team member is an organization-level administrator. Defaults to
false
. - user bool
- Whether the team member is an organization-level user. Defaults to
false
. - user_
accounts Sequence[str] - List of accounts the team member is a user.
- admin
Accounts List<String> - List of accounts the team member is an administrator.
- administrator Boolean
- Whether the team member is an organization-level administrator. Defaults to
false
. - user Boolean
- Whether the team member is an organization-level user. Defaults to
false
. - user
Accounts List<String> - List of accounts the team member is a user.
Import
Import Organizational Team Member
A Lacework organization-level team member can be imported using the email
, e.g.
$ pulumi import lacework:index/teamMember:TeamMember albus albus@hogwarts.io
use the Lacework CLI command lacework team-member list
. To install this tool follow
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- lacework lacework/terraform-provider-lacework
- License
- Notes
- This Pulumi package is based on the
lacework
Terraform Provider.