User
Resource for managing QuickSight User
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Quicksight.User("example", new Aws.Quicksight.UserArgs
{
Email = "author@example.com",
IdentityType = "IAM",
UserName = "an-author",
UserRole = "AUTHOR",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/quicksight"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := quicksight.NewUser(ctx, "example", &quicksight.UserArgs{
Email: pulumi.String("author@example.com"),
IdentityType: pulumi.String("IAM"),
UserName: pulumi.String("an-author"),
UserRole: pulumi.String("AUTHOR"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.quicksight.User("example",
email="author@example.com",
identity_type="IAM",
user_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",
identityType: "IAM",
userName: "an-author",
userRole: "AUTHOR",
});Create a User Resource
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);def User(resource_name, opts=None, aws_account_id=None, email=None, iam_arn=None, identity_type=None, namespace=None, session_name=None, user_name=None, user_role=None, __props__=None);public User(string name, UserArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The User resource accepts the following input properties:
- Email string
The email address of the user that you want to register.
- Identity
Type string Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either
IAMorQUICKSIGHT.- User
Role string The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN- Aws
Account stringId 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 string The ARN of the IAM user or role that you are registering with Amazon QuickSight.
- Namespace string
The namespace. Currently, you should set this to
default.- Session
Name string The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- User
Name string The Amazon QuickSight user name that you want to create for the user you are registering.
- Email string
The email address of the user that you want to register.
- Identity
Type string Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either
IAMorQUICKSIGHT.- User
Role string The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN- Aws
Account stringId 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 string The ARN of the IAM user or role that you are registering with Amazon QuickSight.
- Namespace string
The namespace. Currently, you should set this to
default.- Session
Name string The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- User
Name string The Amazon QuickSight user name that you want to create for the user you are registering.
- email string
The email address of the user that you want to register.
- identity
Type string Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either
IAMorQUICKSIGHT.- user
Role string The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN- aws
Account stringId 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 string The ARN of the IAM user or role that you are registering with Amazon QuickSight.
- namespace string
The namespace. Currently, you should set this to
default.- session
Name string The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- user
Name string The Amazon QuickSight user name that you want to create for the user you are registering.
- 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
IAMorQUICKSIGHT.- user_
role str The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN- aws_
account_ strid 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 namespace. Currently, you should set this to
default.- session_
name str The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- user_
name str The Amazon QuickSight user name that you want to create for the user you are registering.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Look up an 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): Userstatic get(resource_name, id, opts=None, arn=None, aws_account_id=None, email=None, iam_arn=None, identity_type=None, namespace=None, session_name=None, user_name=None, user_role=None, __props__=None);public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Arn string
Amazon Resource Name (ARN) of the user
- Aws
Account stringId 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.
- Iam
Arn string The ARN of the IAM user or role that you are registering with Amazon QuickSight.
- Identity
Type string Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either
IAMorQUICKSIGHT.- Namespace string
The namespace. Currently, you should set this to
default.- Session
Name string The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- User
Name string The Amazon QuickSight user name that you want to create for the user you are registering.
- User
Role string The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN
- Arn string
Amazon Resource Name (ARN) of the user
- Aws
Account stringId 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.
- Iam
Arn string The ARN of the IAM user or role that you are registering with Amazon QuickSight.
- Identity
Type string Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either
IAMorQUICKSIGHT.- Namespace string
The namespace. Currently, you should set this to
default.- Session
Name string The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- User
Name string The Amazon QuickSight user name that you want to create for the user you are registering.
- User
Role string The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN
- arn string
Amazon Resource Name (ARN) of the user
- aws
Account stringId 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.
- iam
Arn string The ARN of the IAM user or role that you are registering with Amazon QuickSight.
- identity
Type string Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either
IAMorQUICKSIGHT.- namespace string
The namespace. Currently, you should set this to
default.- session
Name string The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- user
Name string The Amazon QuickSight user name that you want to create for the user you are registering.
- user
Role string The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN
- arn str
Amazon Resource Name (ARN) of the user
- aws_
account_ strid 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
IAMorQUICKSIGHT.- namespace str
The namespace. Currently, you should set this to
default.- session_
name str The name of the IAM session to use when assuming roles that can embed QuickSight dashboards.
- user_
name str The Amazon QuickSight user name that you want to create for the user you are registering.
- user_
role str The Amazon QuickSight role of the user. The user role can be one of the following:
READER,AUTHOR, orADMIN
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.