Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation support for QuickSight PRO user roles #39220

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/39220.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
resource/aws_quicksight_user: Add validation for `PRO` user roles - `READER_PRO`, `AUTHOR_PRO`, and `ADMIN_PRO`
```
3 changes: 3 additions & 0 deletions internal/service/quicksight/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func resourceUser() *schema.Resource {
awstypes.UserRoleReader,
awstypes.UserRoleAuthor,
awstypes.UserRoleAdmin,
awstypes.UserRoleReaderPro,
awstypes.UserRoleAuthorPro,
awstypes.UserRoleAdminPro,
), false),
},
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/quicksight_user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This resource supports the following arguments:

* `email` - (Required) The email address of the user that you want to register.
* `identity_type` - (Required) 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` - (Required) The Amazon QuickSight role of the user. The user role can be one of the following: `READER`, `AUTHOR`, or `ADMIN`
* `user_role` - (Required) The Amazon QuickSight role of the user. The user role can be one of the following: `READER`, `AUTHOR`, `ADMIN`, `READER_PRO`, `AUTHOR_PRO` or `ADMIN_PRO`.
* `user_name` - (Optional) 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`.
* `aws_account_id` - (Optional) 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` - (Optional) The ARN of the IAM user or role that you are registering with Amazon QuickSight.
Expand Down
Loading