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",
});
}
}
Coming soon!
import pulumi
import pulumi_datadog as datadog
# Create a new Datadog user
foo = datadog.User("foo",
email="new@example.com",
handle="new@example.com",
name="New User")import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Create a new Datadog user
const foo = new datadog.User("foo", {
email: "new@example.com",
handle: "new@example.com",
name: "New User",
});Create a User Resource
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);def User(resource_name, opts=None, access_role=None, disabled=None, email=None, handle=None, is_admin=None, name=None, role=None, __props__=None);public User(string name, UserArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The User resource accepts the following input properties:
- Email string
Email address for user
- Handle string
The user handle, must be a valid email.
- Name string
Name for user
- Access
Role string Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- Disabled bool
Whether the user is disabled
- Is
Admin bool (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.
- Role string
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- Email string
Email address for user
- Handle string
The user handle, must be a valid email.
- Name string
Name for user
- Access
Role string Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- Disabled bool
Whether the user is disabled
- Is
Admin bool (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.
- Role string
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- email string
Email address for user
- handle string
The user handle, must be a valid email.
- name string
Name for user
- access
Role string Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- disabled boolean
Whether the user is disabled
- is
Admin boolean (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.
- role string
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- email str
Email address for user
- handle str
The user handle, must be a valid email.
- name str
Name for user
- access_
role str Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- disabled bool
Whether the user is disabled
- is_
admin bool (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.
- role str
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Look up an 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): Userstatic get(resource_name, id, opts=None, access_role=None, disabled=None, email=None, handle=None, is_admin=None, name=None, role=None, verified=None, __props__=None);public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Access
Role string Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- Disabled bool
Whether the user is disabled
- Email string
Email address for user
- Handle string
The user handle, must be a valid email.
- Is
Admin bool (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.
- Name string
Name for user
- Role string
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- Verified bool
Returns true if Datadog user is verified
- Access
Role string Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- Disabled bool
Whether the user is disabled
- Email string
Email address for user
- Handle string
The user handle, must be a valid email.
- Is
Admin bool (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.
- Name string
Name for user
- Role string
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- Verified bool
Returns true if Datadog user is verified
- access
Role string Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- disabled boolean
Whether the user is disabled
- email string
Email address for user
- handle string
The user handle, must be a valid email.
- is
Admin boolean (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.
- name string
Name for user
- role string
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- verified boolean
Returns true if Datadog user is verified
- access_
role str Role description for user. Can be
st(standard user),adm(admin user) orro(read-only user). Default isst.- disabled bool
Whether the user is disabled
- email str
Email address for user
- handle str
The user handle, must be a valid email.
- is_
admin bool (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.
- name str
Name for user
- role str
Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.
- verified bool
Returns true if Datadog user is verified
Package Details
- Repository
- https://github.com/pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.