Try AWS Native preview for resources not in the classic version.
aws.quicksight.getQuicksightUser
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.quicksight.getQuicksightUser({
userName: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.quicksight.get_quicksight_user(user_name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := quicksight.GetQuicksightUser(ctx, &quicksight.GetQuicksightUserArgs{
UserName: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Quicksight.GetQuicksightUser.Invoke(new()
{
UserName = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.quicksight.QuicksightFunctions;
import com.pulumi.aws.quicksight.inputs.GetQuicksightUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = QuicksightFunctions.getQuicksightUser(GetQuicksightUserArgs.builder()
.userName("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:quicksight:getQuicksightUser
Arguments:
userName: example
Using getQuicksightUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getQuicksightUser(args: GetQuicksightUserArgs, opts?: InvokeOptions): Promise<GetQuicksightUserResult>
function getQuicksightUserOutput(args: GetQuicksightUserOutputArgs, opts?: InvokeOptions): Output<GetQuicksightUserResult>
def get_quicksight_user(aws_account_id: Optional[str] = None,
namespace: Optional[str] = None,
user_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQuicksightUserResult
def get_quicksight_user_output(aws_account_id: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
user_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetQuicksightUserResult]
func GetQuicksightUser(ctx *Context, args *GetQuicksightUserArgs, opts ...InvokeOption) (*GetQuicksightUserResult, error)
func GetQuicksightUserOutput(ctx *Context, args *GetQuicksightUserOutputArgs, opts ...InvokeOption) GetQuicksightUserResultOutput
> Note: This function is named GetQuicksightUser
in the Go SDK.
public static class GetQuicksightUser
{
public static Task<GetQuicksightUserResult> InvokeAsync(GetQuicksightUserArgs args, InvokeOptions? opts = null)
public static Output<GetQuicksightUserResult> Invoke(GetQuicksightUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQuicksightUserResult> getQuicksightUser(GetQuicksightUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:quicksight/getQuicksightUser:getQuicksightUser
arguments:
# arguments dictionary
The following arguments are supported:
- User
Name string The name of the user that you want to match.
The following arguments are optional:
- Aws
Account stringId - AWS account ID.
- Namespace string
- QuickSight namespace. Defaults to
default
.
- User
Name string The name of the user that you want to match.
The following arguments are optional:
- Aws
Account stringId - AWS account ID.
- Namespace string
- QuickSight namespace. Defaults to
default
.
- user
Name String The name of the user that you want to match.
The following arguments are optional:
- aws
Account StringId - AWS account ID.
- namespace String
- QuickSight namespace. Defaults to
default
.
- user
Name string The name of the user that you want to match.
The following arguments are optional:
- aws
Account stringId - AWS account ID.
- namespace string
- QuickSight namespace. Defaults to
default
.
- user_
name str The name of the user that you want to match.
The following arguments are optional:
- aws_
account_ strid - AWS account ID.
- namespace str
- QuickSight namespace. Defaults to
default
.
- user
Name String The name of the user that you want to match.
The following arguments are optional:
- aws
Account StringId - AWS account ID.
- namespace String
- QuickSight namespace. Defaults to
default
.
getQuicksightUser Result
The following output properties are available:
- Active bool
- 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.
- Arn string
- The Amazon Resource Name (ARN) for the user.
- Aws
Account stringId - Email string
- The user's email address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Type string - The type of identity authentication used by the user.
- Principal
Id string - The principal ID of the user.
- User
Name string - User
Role 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.
- Namespace string
- Active bool
- 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.
- Arn string
- The Amazon Resource Name (ARN) for the user.
- Aws
Account stringId - Email string
- The user's email address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Type string - The type of identity authentication used by the user.
- Principal
Id string - The principal ID of the user.
- User
Name string - User
Role 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.
- Namespace string
- active Boolean
- 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.
- arn String
- The Amazon Resource Name (ARN) for the user.
- aws
Account StringId - email String
- The user's email address.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Type String - The type of identity authentication used by the user.
- principal
Id String - The principal ID of the user.
- user
Name String - user
Role 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.
- namespace String
- active boolean
- 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.
- arn string
- The Amazon Resource Name (ARN) for the user.
- aws
Account stringId - email string
- The user's email address.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Type string - The type of identity authentication used by the user.
- principal
Id string - The principal ID of the user.
- user
Name string - user
Role 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.
- namespace string
- active bool
- 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.
- arn str
- The Amazon Resource Name (ARN) for the user.
- aws_
account_ strid - email str
- The user's email address.
- id str
- The provider-assigned unique ID for this managed resource.
- identity_
type str - The type of identity authentication used by the user.
- principal_
id str - The principal ID of the user.
- user_
name str - user_
role str - 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.
- namespace str
- active Boolean
- 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.
- arn String
- The Amazon Resource Name (ARN) for the user.
- aws
Account StringId - email String
- The user's email address.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Type String - The type of identity authentication used by the user.
- principal
Id String - The principal ID of the user.
- user
Name String - user
Role 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.
- namespace String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.