You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: redshift/data_source_redshift_user.go
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,12 +52,17 @@ This data source can be used to fetch information about a specific database user
52
52
Computed: true,
53
53
Description: `Indicates whether the user is a superuser with all database privileges.`,
54
54
},
55
+
userSessionTimeoutAttr: {
56
+
Type: schema.TypeInt,
57
+
Computed: true,
58
+
Description: "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.",
Copy file name to clipboardExpand all lines: redshift/resource_redshift_user.go
+52-9Lines changed: 52 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,14 @@ import (
16
16
)
17
17
18
18
const (
19
-
userNameAttr="name"
20
-
userPasswordAttr="password"
21
-
userValidUntilAttr="valid_until"
22
-
userCreateDBAttr="create_database"
23
-
userConnLimitAttr="connection_limit"
24
-
userSyslogAccessAttr="syslog_access"
25
-
userSuperuserAttr="superuser"
19
+
userNameAttr="name"
20
+
userPasswordAttr="password"
21
+
userValidUntilAttr="valid_until"
22
+
userCreateDBAttr="create_database"
23
+
userConnLimitAttr="connection_limit"
24
+
userSyslogAccessAttr="syslog_access"
25
+
userSuperuserAttr="superuser"
26
+
userSessionTimeoutAttr="session_timeout"
26
27
27
28
// defaults
28
29
defaultUserSyslogAccess="RESTRICTED"
@@ -123,6 +124,13 @@ Amazon Redshift user accounts can only be created and dropped by a database supe
123
124
Default: false,
124
125
Description: `Determine whether the user is a superuser with all database privileges.`,
125
126
},
127
+
userSessionTimeoutAttr: {
128
+
Type: schema.TypeInt,
129
+
Optional: true,
130
+
Default: 0,
131
+
Description: "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.",
0 commit comments