formal.User
Explore with Pulumi AI
User in Formal.
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
app_type: Optional[str] = None,
email: Optional[str] = None,
expire_at: Optional[int] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
name: Optional[str] = None,
termination_protection: Optional[bool] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: formal:User
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 UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- 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 userResource = new Pulumi.User("userResource", new()
{
Type = "string",
AppType = "string",
Email = "string",
ExpireAt = 0,
FirstName = "string",
LastName = "string",
Name = "string",
TerminationProtection = false,
});
example, err := formal.NewUser(ctx, "userResource", &formal.UserArgs{
Type: pulumi.String("string"),
AppType: pulumi.String("string"),
Email: pulumi.String("string"),
ExpireAt: pulumi.Int(0),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
Name: pulumi.String("string"),
TerminationProtection: pulumi.Bool(false),
})
var userResource = new User("userResource", UserArgs.builder()
.type("string")
.appType("string")
.email("string")
.expireAt(0)
.firstName("string")
.lastName("string")
.name("string")
.terminationProtection(false)
.build());
user_resource = formal.User("userResource",
type="string",
app_type="string",
email="string",
expire_at=0,
first_name="string",
last_name="string",
name="string",
termination_protection=False)
const userResource = new formal.User("userResource", {
type: "string",
appType: "string",
email: "string",
expireAt: 0,
firstName: "string",
lastName: "string",
name: "string",
terminationProtection: false,
});
type: formal:User
properties:
appType: string
email: string
expireAt: 0
firstName: string
lastName: string
name: string
terminationProtection: false
type: string
User 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 User resource accepts the following input properties:
- Type string
- Either 'human' or 'machine'.
- App
Type string - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - Email string
- For human users, their email.
- Expire
At int - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- First
Name string - For human users, their first name.
- Last
Name string - For human users, their last name.
- Name string
- For machine users, the name of the user.
- Termination
Protection bool - If set to true, this User cannot be deleted.
- Type string
- Either 'human' or 'machine'.
- App
Type string - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - Email string
- For human users, their email.
- Expire
At int - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- First
Name string - For human users, their first name.
- Last
Name string - For human users, their last name.
- Name string
- For machine users, the name of the user.
- Termination
Protection bool - If set to true, this User cannot be deleted.
- type String
- Either 'human' or 'machine'.
- app
Type String - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - email String
- For human users, their email.
- expire
At Integer - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first
Name String - For human users, their first name.
- last
Name String - For human users, their last name.
- name String
- For machine users, the name of the user.
- termination
Protection Boolean - If set to true, this User cannot be deleted.
- type string
- Either 'human' or 'machine'.
- app
Type string - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - email string
- For human users, their email.
- expire
At number - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first
Name string - For human users, their first name.
- last
Name string - For human users, their last name.
- name string
- For machine users, the name of the user.
- termination
Protection boolean - If set to true, this User cannot be deleted.
- type str
- Either 'human' or 'machine'.
- app_
type str - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - email str
- For human users, their email.
- expire_
at int - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first_
name str - For human users, their first name.
- last_
name str - For human users, their last name.
- name str
- For machine users, the name of the user.
- termination_
protection bool - If set to true, this User cannot be deleted.
- type String
- Either 'human' or 'machine'.
- app
Type String - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - email String
- For human users, their email.
- expire
At Number - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first
Name String - For human users, their first name.
- last
Name String - For human users, their last name.
- name String
- For machine users, the name of the user.
- termination
Protection Boolean - If set to true, this User cannot be deleted.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Db
Username string - The username that the user will use to access the sidecar.
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
User stringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user.
- Db
Username string - The username that the user will use to access the sidecar.
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
User stringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user.
- db
Username String - The username that the user will use to access the sidecar.
- id String
- The provider-assigned unique ID for this managed resource.
- machine
User StringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user.
- db
Username string - The username that the user will use to access the sidecar.
- id string
- The provider-assigned unique ID for this managed resource.
- machine
User stringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user.
- db_
username str - The username that the user will use to access the sidecar.
- id str
- The provider-assigned unique ID for this managed resource.
- machine_
user_ straccess_ token - If the user is of type
machine
, this is the access token (database password) of this user.
- db
Username String - The username that the user will use to access the sidecar.
- id String
- The provider-assigned unique ID for this managed resource.
- machine
User StringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user.
Look up Existing User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_type: Optional[str] = None,
db_username: Optional[str] = None,
email: Optional[str] = None,
expire_at: Optional[int] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
machine_user_access_token: Optional[str] = None,
name: Optional[str] = None,
termination_protection: Optional[bool] = None,
type: Optional[str] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
resources: _: type: formal:User 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.
- App
Type string - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - Db
Username string - The username that the user will use to access the sidecar.
- Email string
- For human users, their email.
- Expire
At int - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- First
Name string - For human users, their first name.
- Last
Name string - For human users, their last name.
- Machine
User stringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user. - Name string
- For machine users, the name of the user.
- Termination
Protection bool - If set to true, this User cannot be deleted.
- Type string
- Either 'human' or 'machine'.
- App
Type string - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - Db
Username string - The username that the user will use to access the sidecar.
- Email string
- For human users, their email.
- Expire
At int - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- First
Name string - For human users, their first name.
- Last
Name string - For human users, their last name.
- Machine
User stringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user. - Name string
- For machine users, the name of the user.
- Termination
Protection bool - If set to true, this User cannot be deleted.
- Type string
- Either 'human' or 'machine'.
- app
Type String - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - db
Username String - The username that the user will use to access the sidecar.
- email String
- For human users, their email.
- expire
At Integer - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first
Name String - For human users, their first name.
- last
Name String - For human users, their last name.
- machine
User StringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user. - name String
- For machine users, the name of the user.
- termination
Protection Boolean - If set to true, this User cannot be deleted.
- type String
- Either 'human' or 'machine'.
- app
Type string - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - db
Username string - The username that the user will use to access the sidecar.
- email string
- For human users, their email.
- expire
At number - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first
Name string - For human users, their first name.
- last
Name string - For human users, their last name.
- machine
User stringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user. - name string
- For machine users, the name of the user.
- termination
Protection boolean - If set to true, this User cannot be deleted.
- type string
- Either 'human' or 'machine'.
- app_
type str - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - db_
username str - The username that the user will use to access the sidecar.
- email str
- For human users, their email.
- expire_
at int - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first_
name str - For human users, their first name.
- last_
name str - For human users, their last name.
- machine_
user_ straccess_ token - If the user is of type
machine
, this is the access token (database password) of this user. - name str
- For machine users, the name of the user.
- termination_
protection bool - If set to true, this User cannot be deleted.
- type str
- Either 'human' or 'machine'.
- app
Type String - If the user is of type
machine
, this is an optional designation for the app that this user will be used for. Supported values aremetabase
,tableau
, andpopsql
. - db
Username String - The username that the user will use to access the sidecar.
- email String
- For human users, their email.
- expire
At Number - When the Role should be deleted and access revoked. Value should be provided in Unix epoch time, in seconds since midnight UTC of January 1, 1970.
- first
Name String - For human users, their first name.
- last
Name String - For human users, their last name.
- machine
User StringAccess Token - If the user is of type
machine
, this is the access token (database password) of this user. - name String
- For machine users, the name of the user.
- termination
Protection Boolean - If set to true, this User cannot be deleted.
- type String
- Either 'human' or 'machine'.
Package Details
- Repository
- formal formalco/pulumi-formal
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
formal
Terraform Provider.