twingate.TwingateUser
Explore with Pulumi AI
Users provides different levels of write capabilities across the Twingate Admin Console. For more information, see Twingate’s documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@twingate/pulumi-twingate";
const user = new twingate.TwingateUser("user", {
email: "sample@company.com",
firstName: "Twin",
lastName: "Gate",
role: "DEVOPS",
sendInvite: true,
});
import pulumi
import pulumi_twingate as twingate
user = twingate.TwingateUser("user",
email="sample@company.com",
first_name="Twin",
last_name="Gate",
role="DEVOPS",
send_invite=True)
package main
import (
"github.com/Twingate/pulumi-twingate/sdk/v3/go/twingate"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := twingate.NewTwingateUser(ctx, "user", &twingate.TwingateUserArgs{
Email: pulumi.String("sample@company.com"),
FirstName: pulumi.String("Twin"),
LastName: pulumi.String("Gate"),
Role: pulumi.String("DEVOPS"),
SendInvite: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Twingate = Twingate.Twingate;
return await Deployment.RunAsync(() =>
{
var user = new Twingate.TwingateUser("user", new()
{
Email = "sample@company.com",
FirstName = "Twin",
LastName = "Gate",
Role = "DEVOPS",
SendInvite = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.twingate.TwingateUser;
import com.pulumi.twingate.TwingateUserArgs;
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 user = new TwingateUser("user", TwingateUserArgs.builder()
.email("sample@company.com")
.firstName("Twin")
.lastName("Gate")
.role("DEVOPS")
.sendInvite(true)
.build());
}
}
resources:
user:
type: twingate:TwingateUser
properties:
email: sample@company.com
firstName: Twin
lastName: Gate
role: DEVOPS
sendInvite: true
Create TwingateUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TwingateUser(name: string, args: TwingateUserArgs, opts?: CustomResourceOptions);
@overload
def TwingateUser(resource_name: str,
args: TwingateUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TwingateUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
is_active: Optional[bool] = None,
last_name: Optional[str] = None,
role: Optional[str] = None,
send_invite: Optional[bool] = None)
func NewTwingateUser(ctx *Context, name string, args TwingateUserArgs, opts ...ResourceOption) (*TwingateUser, error)
public TwingateUser(string name, TwingateUserArgs args, CustomResourceOptions? opts = null)
public TwingateUser(String name, TwingateUserArgs args)
public TwingateUser(String name, TwingateUserArgs args, CustomResourceOptions options)
type: twingate:TwingateUser
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 TwingateUserArgs
- 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 TwingateUserArgs
- 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 TwingateUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TwingateUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TwingateUserArgs
- 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 twingateUserResource = new Twingate.TwingateUser("twingateUserResource", new()
{
Email = "string",
FirstName = "string",
IsActive = false,
LastName = "string",
Role = "string",
SendInvite = false,
});
example, err := twingate.NewTwingateUser(ctx, "twingateUserResource", &twingate.TwingateUserArgs{
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
IsActive: pulumi.Bool(false),
LastName: pulumi.String("string"),
Role: pulumi.String("string"),
SendInvite: pulumi.Bool(false),
})
var twingateUserResource = new TwingateUser("twingateUserResource", TwingateUserArgs.builder()
.email("string")
.firstName("string")
.isActive(false)
.lastName("string")
.role("string")
.sendInvite(false)
.build());
twingate_user_resource = twingate.TwingateUser("twingateUserResource",
email="string",
first_name="string",
is_active=False,
last_name="string",
role="string",
send_invite=False)
const twingateUserResource = new twingate.TwingateUser("twingateUserResource", {
email: "string",
firstName: "string",
isActive: false,
lastName: "string",
role: "string",
sendInvite: false,
});
type: twingate:TwingateUser
properties:
email: string
firstName: string
isActive: false
lastName: string
role: string
sendInvite: false
TwingateUser 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 TwingateUser resource accepts the following input properties:
- Email string
- The User's email address
- First
Name string - The User's first name
- Is
Active bool - Determines whether the User is active or not. Inactive users will be not able to sign in.
- Last
Name string - The User's last name
- Role string
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- Send
Invite bool - Determines whether to send an email invitation to the User. True by default.
- Email string
- The User's email address
- First
Name string - The User's first name
- Is
Active bool - Determines whether the User is active or not. Inactive users will be not able to sign in.
- Last
Name string - The User's last name
- Role string
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- Send
Invite bool - Determines whether to send an email invitation to the User. True by default.
- email String
- The User's email address
- first
Name String - The User's first name
- is
Active Boolean - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last
Name String - The User's last name
- role String
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send
Invite Boolean - Determines whether to send an email invitation to the User. True by default.
- email string
- The User's email address
- first
Name string - The User's first name
- is
Active boolean - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last
Name string - The User's last name
- role string
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send
Invite boolean - Determines whether to send an email invitation to the User. True by default.
- email str
- The User's email address
- first_
name str - The User's first name
- is_
active bool - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last_
name str - The User's last name
- role str
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send_
invite bool - Determines whether to send an email invitation to the User. True by default.
- email String
- The User's email address
- first
Name String - The User's first name
- is
Active Boolean - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last
Name String - The User's last name
- role String
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send
Invite Boolean - Determines whether to send an email invitation to the User. True by default.
Outputs
All input properties are implicitly available as output properties. Additionally, the TwingateUser resource produces the following output properties:
Look up Existing TwingateUser Resource
Get an existing TwingateUser 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?: TwingateUserState, opts?: CustomResourceOptions): TwingateUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
is_active: Optional[bool] = None,
last_name: Optional[str] = None,
role: Optional[str] = None,
send_invite: Optional[bool] = None,
type: Optional[str] = None) -> TwingateUser
func GetTwingateUser(ctx *Context, name string, id IDInput, state *TwingateUserState, opts ...ResourceOption) (*TwingateUser, error)
public static TwingateUser Get(string name, Input<string> id, TwingateUserState? state, CustomResourceOptions? opts = null)
public static TwingateUser get(String name, Output<String> id, TwingateUserState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Email string
- The User's email address
- First
Name string - The User's first name
- Is
Active bool - Determines whether the User is active or not. Inactive users will be not able to sign in.
- Last
Name string - The User's last name
- Role string
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- Send
Invite bool - Determines whether to send an email invitation to the User. True by default.
- Type string
- Indicates the User's type. Either MANUAL or SYNCED.
- Email string
- The User's email address
- First
Name string - The User's first name
- Is
Active bool - Determines whether the User is active or not. Inactive users will be not able to sign in.
- Last
Name string - The User's last name
- Role string
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- Send
Invite bool - Determines whether to send an email invitation to the User. True by default.
- Type string
- Indicates the User's type. Either MANUAL or SYNCED.
- email String
- The User's email address
- first
Name String - The User's first name
- is
Active Boolean - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last
Name String - The User's last name
- role String
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send
Invite Boolean - Determines whether to send an email invitation to the User. True by default.
- type String
- Indicates the User's type. Either MANUAL or SYNCED.
- email string
- The User's email address
- first
Name string - The User's first name
- is
Active boolean - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last
Name string - The User's last name
- role string
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send
Invite boolean - Determines whether to send an email invitation to the User. True by default.
- type string
- Indicates the User's type. Either MANUAL or SYNCED.
- email str
- The User's email address
- first_
name str - The User's first name
- is_
active bool - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last_
name str - The User's last name
- role str
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send_
invite bool - Determines whether to send an email invitation to the User. True by default.
- type str
- Indicates the User's type. Either MANUAL or SYNCED.
- email String
- The User's email address
- first
Name String - The User's first name
- is
Active Boolean - Determines whether the User is active or not. Inactive users will be not able to sign in.
- last
Name String - The User's last name
- role String
- Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
- send
Invite Boolean - Determines whether to send an email invitation to the User. True by default.
- type String
- Indicates the User's type. Either MANUAL or SYNCED.
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingate
Terraform Provider.