1. Packages
  2. AWS Classic
  3. API Docs
  4. quicksight
  5. User

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.24.0 published on Tuesday, Feb 27, 2024 by Pulumi

aws.quicksight.User

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.24.0 published on Tuesday, Feb 27, 2024 by Pulumi

    Resource for managing QuickSight User

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Quicksight.User("example", new()
        {
            Email = "author@example.com",
            IamArn = "arn:aws:iam::123456789012:user/Example",
            IdentityType = "IAM",
            Namespace = "foo",
            SessionName = "an-author",
            UserRole = "AUTHOR",
        });
    
    });
    
    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.NewUser(ctx, "example", &quicksight.UserArgs{
    			Email:        pulumi.String("author@example.com"),
    			IamArn:       pulumi.String("arn:aws:iam::123456789012:user/Example"),
    			IdentityType: pulumi.String("IAM"),
    			Namespace:    pulumi.String("foo"),
    			SessionName:  pulumi.String("an-author"),
    			UserRole:     pulumi.String("AUTHOR"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.quicksight.User;
    import com.pulumi.aws.quicksight.UserArgs;
    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) {
            var example = new User("example", UserArgs.builder()        
                .email("author@example.com")
                .iamArn("arn:aws:iam::123456789012:user/Example")
                .identityType("IAM")
                .namespace("foo")
                .sessionName("an-author")
                .userRole("AUTHOR")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.quicksight.User("example",
        email="author@example.com",
        iam_arn="arn:aws:iam::123456789012:user/Example",
        identity_type="IAM",
        namespace="foo",
        session_name="an-author",
        user_role="AUTHOR")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.quicksight.User("example", {
        email: "author@example.com",
        iamArn: "arn:aws:iam::123456789012:user/Example",
        identityType: "IAM",
        namespace: "foo",
        sessionName: "an-author",
        userRole: "AUTHOR",
    });
    
    resources:
      example:
        type: aws:quicksight:User
        properties:
          email: author@example.com
          iamArn: arn:aws:iam::123456789012:user/Example
          identityType: IAM
          namespace: foo
          sessionName: an-author
          userRole: AUTHOR
    

    Create User Resource

    new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
    @overload
    def User(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             aws_account_id: Optional[str] = None,
             email: Optional[str] = None,
             iam_arn: Optional[str] = None,
             identity_type: Optional[str] = None,
             namespace: Optional[str] = None,
             session_name: Optional[str] = None,
             user_name: Optional[str] = None,
             user_role: Optional[str] = None)
    @overload
    def User(resource_name: str,
             args: UserArgs,
             opts: Optional[ResourceOptions] = None)
    func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
    public User(string name, UserArgs args, CustomResourceOptions? opts = null)
    public User(String name, UserArgs args)
    public User(String name, UserArgs args, CustomResourceOptions options)
    
    type: aws:quicksight:User
    properties: # The arguments to resource properties.
    options: # 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.
    resource_name str
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control 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.
    name String
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    options 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 Architecture and Concepts docs.

    Inputs

    The User resource accepts the following input properties:

    Email string
    The email address of the user that you want to register.
    IdentityType string
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    UserRole string
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    AwsAccountId string
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    IamArn string
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    Namespace string
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    SessionName string
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    UserName string
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    Email string
    The email address of the user that you want to register.
    IdentityType string
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    UserRole string
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    AwsAccountId string
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    IamArn string
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    Namespace string
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    SessionName string
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    UserName string
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    email String
    The email address of the user that you want to register.
    identityType String
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    userRole String
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    awsAccountId String
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    iamArn String
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    namespace String
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    sessionName String
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    userName String
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    email string
    The email address of the user that you want to register.
    identityType string
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    userRole string
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    awsAccountId string
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    iamArn string
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    namespace string
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    sessionName string
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    userName string
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    email str
    The email address of the user that you want to register.
    identity_type str
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    user_role str
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    aws_account_id str
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    iam_arn str
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    namespace str
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    session_name str
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    user_name str
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    email String
    The email address of the user that you want to register.
    identityType String
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    userRole String
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    awsAccountId String
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    iamArn String
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    namespace String
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    sessionName String
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    userName String
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:

    Arn string
    Amazon Resource Name (ARN) of the user
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    Amazon Resource Name (ARN) of the user
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    Amazon Resource Name (ARN) of the user
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    Amazon Resource Name (ARN) of the user
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    Amazon Resource Name (ARN) of the user
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    Amazon Resource Name (ARN) of the user
    id String
    The provider-assigned unique ID for this managed resource.

    Look up 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): User
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            aws_account_id: Optional[str] = None,
            email: Optional[str] = None,
            iam_arn: Optional[str] = None,
            identity_type: Optional[str] = None,
            namespace: Optional[str] = None,
            session_name: Optional[str] = None,
            user_name: Optional[str] = None,
            user_role: Optional[str] = None) -> User
    func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
    public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
    public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    Arn string
    Amazon Resource Name (ARN) of the user
    AwsAccountId string
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    Email string
    The email address of the user that you want to register.
    IamArn string
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    IdentityType string
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    Namespace string
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    SessionName string
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    UserName string
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    UserRole string
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    Arn string
    Amazon Resource Name (ARN) of the user
    AwsAccountId string
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    Email string
    The email address of the user that you want to register.
    IamArn string
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    IdentityType string
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    Namespace string
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    SessionName string
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    UserName string
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    UserRole string
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    arn String
    Amazon Resource Name (ARN) of the user
    awsAccountId String
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    email String
    The email address of the user that you want to register.
    iamArn String
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    identityType String
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    namespace String
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    sessionName String
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    userName String
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    userRole String
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    arn string
    Amazon Resource Name (ARN) of the user
    awsAccountId string
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    email string
    The email address of the user that you want to register.
    iamArn string
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    identityType string
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    namespace string
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    sessionName string
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    userName string
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    userRole string
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    arn str
    Amazon Resource Name (ARN) of the user
    aws_account_id str
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    email str
    The email address of the user that you want to register.
    iam_arn str
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    identity_type str
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    namespace str
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    session_name str
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    user_name str
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    user_role str
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN
    arn String
    Amazon Resource Name (ARN) of the user
    awsAccountId String
    The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
    email String
    The email address of the user that you want to register.
    iamArn String
    The ARN of the IAM user or role that you are registering with Amazon QuickSight.
    identityType String
    Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified.
    namespace String
    The Amazon Quicksight namespace to create the user in. Defaults to default.
    sessionName String
    The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name.
    userName String
    The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT.
    userRole String
    The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN

    Import

    You cannot import this resource.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.24.0 published on Tuesday, Feb 27, 2024 by Pulumi