From 623b8c732200bbc8a4b56d3e63d234518a66d415 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Tue, 17 Jan 2023 07:26:18 +0200 Subject: [PATCH] Update documentation with recent changes go generate --- docs/data-sources/user.md | 1 + docs/resources/user.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index 7081198..b0e417d 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -33,6 +33,7 @@ data "redshift_user" "user" { - **connection_limit** (Number) The maximum number of database connections the user is permitted to have open concurrently. The limit isn't enforced for superusers. - **create_database** (Boolean) Indicates whether the user is allowed to create new databases. +- **session_timeout** (Number) The maximum time in seconds that a session remains inactive or idle. The range is 60 seconds (one minute) to 1,728,000 seconds (20 days). If no session timeout is set for the user, the cluster setting applies. - **superuser** (Boolean) Indicates whether the user is a superuser with all database privileges. - **syslog_access** (String) A clause that specifies the level of access that the user has to the Amazon Redshift system tables and views. If `RESTRICTED` (default) is specified, the user can see only the rows generated by that user in user-visible system tables and views. If `UNRESTRICTED` is specified, the user can see all rows in user-visible system tables and views, including rows generated by another user. `UNRESTRICTED` doesn't give a regular user access to superuser-visible tables. Only superusers can see superuser-visible tables. - **valid_until** (String) Date and time after which the user's password is no longer valid. By default the password has no time limit. diff --git a/docs/resources/user.md b/docs/resources/user.md index 6cd11f9..e199032 100644 --- a/docs/resources/user.md +++ b/docs/resources/user.md @@ -37,7 +37,8 @@ resource "redshift_user" "user_with_unrestricted_syslog" { - **connection_limit** (Number) The maximum number of database connections the user is permitted to have open concurrently. The limit isn't enforced for superusers. - **create_database** (Boolean) Allows the user to create new databases. By default user can't create new databases. - **id** (String) The ID of this resource. -- **password** (String, Sensitive) Sets the user's password. Users can change their own passwords, unless the password is disabled. To disable password, omit this parameter or set it to `null`. +- **password** (String, Sensitive) Sets the user's password. Users can change their own passwords, unless the password is disabled. To disable password, omit this parameter or set it to `null`. Can also be a hashed password rather than the plaintext password. Please refer to the Redshift [CREATE USER documentation](https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html) for information on creating a password hash. +- **session_timeout** (Number) The maximum time in seconds that a session remains inactive or idle. The range is 60 seconds (one minute) to 1,728,000 seconds (20 days). If no session timeout is set for the user, the cluster setting applies. - **superuser** (Boolean) Determine whether the user is a superuser with all database privileges. - **syslog_access** (String) A clause that specifies the level of access that the user has to the Amazon Redshift system tables and views. If `RESTRICTED` (default) is specified, the user can see only the rows generated by that user in user-visible system tables and views. If `UNRESTRICTED` is specified, the user can see all rows in user-visible system tables and views, including rows generated by another user. `UNRESTRICTED` doesn't give a regular user access to superuser-visible tables. Only superusers can see superuser-visible tables. - **valid_until** (String) Sets a date and time after which the user's password is no longer valid. By default the password has no time limit.