Class User
Provides a Datadog user resource. This can be used to create and manage Datadog users.
Example Usage
using Pulumi;
using Datadog = Pulumi.Datadog;
class MyStack : Stack
{
public MyStack()
{
// Create a new Datadog user
var foo = new Datadog.User("foo", new Datadog.UserArgs
{
Email = "new@example.com",
Handle = "new@example.com",
Name = "New User",
});
}
}
Inherited Members
Namespace: Pulumi.Datadog
Assembly: Pulumi.Datadog.dll
Syntax
public class User : CustomResource
Constructors
View SourceUser(String, UserArgs, CustomResourceOptions)
Create a User resource with the given unique name, arguments, and options.
Declaration
public User(string name, UserArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| UserArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessRole
Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.
Declaration
public Output<string> AccessRole { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Disabled
Whether the user is disabled
Declaration
public Output<bool?> Disabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Email address for user
Declaration
public Output<string> Email { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Handle
The user handle, must be a valid email.
Declaration
public Output<string> Handle { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IsAdmin
(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
Declaration
public Output<bool> IsAdmin { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Name
Name for user
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Role
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Verified
Returns true if Datadog user is verified
Declaration
public Output<bool> Verified { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Methods
View SourceGet(String, Input<String>, UserState, CustomResourceOptions)
Get an existing User resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static User Get(string name, Input<string> id, UserState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| UserState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| User |