import * as pulumi from "@pulumi/pulumi"; /** * The `newrelic.User` resource may be used to create, update and delete users in New Relic. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = newrelic.getAuthenticationDomain({ * name: "Test Authentication Domain", * }); * const fooUser = new newrelic.User("foo", { * name: "Test New User", * emailId: "test_user@test.com", * authenticationDomainId: foo.then(foo => foo.id), * userType: "CORE_USER_TIER", * }); * ``` * * ## Import * * A user can be imported using its ID. Example: * * ```sh * $ pulumi import newrelic:index/user:User foo 1999999999 * ``` */ export declare class User extends pulumi.CustomResource { /** * Get an existing User resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: UserState, opts?: pulumi.CustomResourceOptions): User; /** * Returns true if the given object is an instance of User. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is User; /** * The ID of the authentication domain to which the user to be created would belong. */ readonly authenticationDomainId: pulumi.Output; /** * The email ID of the user to be created. */ readonly emailId: pulumi.Output; /** * The name of the user to be created. */ readonly name: pulumi.Output; /** * The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`. * * > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `newrelic.getAuthenticationDomain`, as shown in the example above. Head over to the documentation of this data source for more details and examples. * * > **WARNING:** Changing the `authenticationDomainId` of a `newrelic.User` resource that has already been applied would result in a **replacement** of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating the `authenticationDomainId` of an existing user is not supported. */ readonly userType: pulumi.Output; /** * Create a User resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: UserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering User resources. */ export interface UserState { /** * The ID of the authentication domain to which the user to be created would belong. */ authenticationDomainId?: pulumi.Input; /** * The email ID of the user to be created. */ emailId?: pulumi.Input; /** * The name of the user to be created. */ name?: pulumi.Input; /** * The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`. * * > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `newrelic.getAuthenticationDomain`, as shown in the example above. Head over to the documentation of this data source for more details and examples. * * > **WARNING:** Changing the `authenticationDomainId` of a `newrelic.User` resource that has already been applied would result in a **replacement** of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating the `authenticationDomainId` of an existing user is not supported. */ userType?: pulumi.Input; } /** * The set of arguments for constructing a User resource. */ export interface UserArgs { /** * The ID of the authentication domain to which the user to be created would belong. */ authenticationDomainId: pulumi.Input; /** * The email ID of the user to be created. */ emailId: pulumi.Input; /** * The name of the user to be created. */ name?: pulumi.Input; /** * The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`. * * > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `newrelic.getAuthenticationDomain`, as shown in the example above. Head over to the documentation of this data source for more details and examples. * * > **WARNING:** Changing the `authenticationDomainId` of a `newrelic.User` resource that has already been applied would result in a **replacement** of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating the `authenticationDomainId` of an existing user is not supported. */ userType?: pulumi.Input; } //# sourceMappingURL=user.d.ts.map