import * as pulumi from "@pulumi/pulumi"; /** * Manages a user in an AWS Directory Service directory. * * ## Example Usage * * ### Basic Usage * * The following example assumes an existing Directory Service directory with Directory Service Data access enabled. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.directoryservicedata.User("example", { * directoryId: "d-1234567890", * samAccountName: "exampleuser", * emailAddress: "exampleuser@example.com", * givenName: "Example", * surname: "User", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `directoryId` (String) ID of the Directory Service directory where the user is managed. * * `samAccountName` (String) SAM account name of the user. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Directory Service Data User using the directory ID and SAM account name separated by a comma. For example: * * ```sh * $ pulumi import aws:directoryservicedata/user:User example d-1234567890,exampleuser * ``` */ 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; /** * Check whether an existing User resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: UserState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * 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; /** * ID of the Directory that's associated with the user. */ readonly directoryId: pulumi.Output; /** * Distinguished name of the user. */ readonly distinguishedName: pulumi.Output; /** * Email address of the user. */ readonly emailAddress: pulumi.Output; /** * Whether the user is active. */ readonly enabled: pulumi.Output; /** * First name of the user. */ readonly givenName: pulumi.Output; /** * Realm of the user. */ readonly realm: pulumi.Output; /** * Region where the user is managed. Defaults to the provider region. */ readonly region: pulumi.Output; /** * SAM account name of the user. Must contain only word characters, hyphens, and periods. * * The following arguments are optional: */ readonly samAccountName: pulumi.Output; /** * Unique Security identifier (SID) of the user. */ readonly sid: pulumi.Output; /** * Last name of the user. */ readonly surname: pulumi.Output; /** * User principal name of the user. */ readonly userPrincipalName: 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 { /** * ID of the Directory that's associated with the user. */ directoryId?: pulumi.Input; /** * Distinguished name of the user. */ distinguishedName?: pulumi.Input; /** * Email address of the user. */ emailAddress?: pulumi.Input; /** * Whether the user is active. */ enabled?: pulumi.Input; /** * First name of the user. */ givenName?: pulumi.Input; /** * Realm of the user. */ realm?: pulumi.Input; /** * Region where the user is managed. Defaults to the provider region. */ region?: pulumi.Input; /** * SAM account name of the user. Must contain only word characters, hyphens, and periods. * * The following arguments are optional: */ samAccountName?: pulumi.Input; /** * Unique Security identifier (SID) of the user. */ sid?: pulumi.Input; /** * Last name of the user. */ surname?: pulumi.Input; /** * User principal name of the user. */ userPrincipalName?: pulumi.Input; } /** * The set of arguments for constructing a User resource. */ export interface UserArgs { /** * ID of the Directory that's associated with the user. */ directoryId: pulumi.Input; /** * Email address of the user. */ emailAddress?: pulumi.Input; /** * First name of the user. */ givenName?: pulumi.Input; /** * Region where the user is managed. Defaults to the provider region. */ region?: pulumi.Input; /** * SAM account name of the user. Must contain only word characters, hyphens, and periods. * * The following arguments are optional: */ samAccountName: pulumi.Input; /** * Last name of the user. */ surname?: pulumi.Input; } //# sourceMappingURL=user.d.ts.map