UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

124 lines (123 loc) 4.02 kB
import * as pulumi from "@pulumi/pulumi"; /** * This data source can be used to fetch information about a specific * QuickSight user. By using this data source, you can reference QuickSight user * properties without having to hard code ARNs or unique IDs as input. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.quicksight.getQuicksightUser({ * userName: "example", * }); * ``` */ export declare function getQuicksightUser(args: GetQuicksightUserArgs, opts?: pulumi.InvokeOptions): Promise<GetQuicksightUserResult>; /** * A collection of arguments for invoking getQuicksightUser. */ export interface GetQuicksightUserArgs { awsAccountId?: string; /** * QuickSight namespace. Defaults to `default`. */ namespace?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * The name of the user that you want to match. * * The following arguments are optional: */ userName: string; } /** * A collection of values returned by getQuicksightUser. */ export interface GetQuicksightUserResult { /** * The active status of user. When you create an Amazon QuickSight user that’s not an IAM user or an Active Directory user, that user is inactive until they sign in and provide a password. */ readonly active: boolean; /** * The Amazon Resource Name (ARN) for the user. */ readonly arn: string; readonly awsAccountId: string; /** * The custom permissions profile associated with this user. */ readonly customPermissionsName: string; /** * The user's email address. */ readonly email: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The type of identity authentication used by the user. */ readonly identityType: string; readonly namespace?: string; /** * The principal ID of the user. */ readonly principalId: string; readonly region: string; readonly userName: string; /** * The Amazon QuickSight role for the user. The user role can be one of the following:. * - `READER`: A user who has read-only access to dashboards. * - `AUTHOR`: A user who can create data sources, datasets, analyzes, and dashboards. * - `ADMIN`: A user who is an author, who can also manage Amazon QuickSight settings. */ readonly userRole: string; } /** * This data source can be used to fetch information about a specific * QuickSight user. By using this data source, you can reference QuickSight user * properties without having to hard code ARNs or unique IDs as input. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.quicksight.getQuicksightUser({ * userName: "example", * }); * ``` */ export declare function getQuicksightUserOutput(args: GetQuicksightUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetQuicksightUserResult>; /** * A collection of arguments for invoking getQuicksightUser. */ export interface GetQuicksightUserOutputArgs { awsAccountId?: pulumi.Input<string>; /** * QuickSight namespace. Defaults to `default`. */ namespace?: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * The name of the user that you want to match. * * The following arguments are optional: */ userName: pulumi.Input<string>; }