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
/// The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE.
86
+
/// The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE. An empty list could be provided to revoke all privileges for this role.
@@ -134,7 +159,7 @@ public sealed class GrantArgs : Pulumi.ResourceArgs
134
159
publicInput<string>Database{get;set;}=null!;
135
160
136
161
/// <summary>
137
-
/// The PostgreSQL object type to grant the privileges on (one of: database, table, sequence,function).
162
+
/// The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function).
138
163
/// </summary>
139
164
[Input("objectType",required:true)]
140
165
publicInput<string>ObjectType{get;set;}=null!;
@@ -143,7 +168,7 @@ public sealed class GrantArgs : Pulumi.ResourceArgs
143
168
privateInputList<string>?_privileges;
144
169
145
170
/// <summary>
146
-
/// The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE.
171
+
/// The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE. An empty list could be provided to revoke all privileges for this role.
147
172
/// </summary>
148
173
publicInputList<string>Privileges
149
174
{
@@ -152,13 +177,13 @@ public InputList<string> Privileges
152
177
}
153
178
154
179
/// <summary>
155
-
/// The name of the role to grant privileges on.
180
+
/// The name of the role to grant privileges on, Set it to "public" for all roles.
156
181
/// </summary>
157
182
[Input("role",required:true)]
158
183
publicInput<string>Role{get;set;}=null!;
159
184
160
185
/// <summary>
161
-
/// The database schema to grant privileges on for this role.
186
+
/// The database schema to grant privileges on for this role (Required except if object_type is "database")
162
187
/// </summary>
163
188
[Input("schema")]
164
189
publicInput<string>?Schema{get;set;}
@@ -183,7 +208,7 @@ public sealed class GrantState : Pulumi.ResourceArgs
183
208
publicInput<string>?Database{get;set;}
184
209
185
210
/// <summary>
186
-
/// The PostgreSQL object type to grant the privileges on (one of: database, table, sequence,function).
211
+
/// The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function).
187
212
/// </summary>
188
213
[Input("objectType")]
189
214
publicInput<string>?ObjectType{get;set;}
@@ -192,7 +217,7 @@ public sealed class GrantState : Pulumi.ResourceArgs
192
217
privateInputList<string>?_privileges;
193
218
194
219
/// <summary>
195
-
/// The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE.
220
+
/// The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE. An empty list could be provided to revoke all privileges for this role.
196
221
/// </summary>
197
222
publicInputList<string>Privileges
198
223
{
@@ -201,13 +226,13 @@ public InputList<string> Privileges
201
226
}
202
227
203
228
/// <summary>
204
-
/// The name of the role to grant privileges on.
229
+
/// The name of the role to grant privileges on, Set it to "public" for all roles.
205
230
/// </summary>
206
231
[Input("role")]
207
232
publicInput<string>?Role{get;set;}
208
233
209
234
/// <summary>
210
-
/// The database schema to grant privileges on for this role.
235
+
/// The database schema to grant privileges on for this role (Required except if object_type is "database")
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+
usingSystem;
5
+
usingSystem.Collections.Generic;
6
+
usingSystem.Collections.Immutable;
7
+
usingSystem.Threading.Tasks;
8
+
usingPulumi.Serialization;
9
+
10
+
namespacePulumi.PostgreSql
11
+
{
12
+
/// <summary>
13
+
/// The ``postgresql.GrantRole`` resource creates and manages membership in a role to one or more other roles in a non-authoritative way.
14
+
///
15
+
/// When using ``postgresql.GrantRole`` resource it is likely because the PostgreSQL role you are modifying was created outside of this provider.
16
+
///
17
+
/// > **Note:** This resource needs PostgreSQL version 9 or above.
18
+
///
19
+
/// > **Note:** `postgresql.GrantRole` **cannot** be used in conjunction with `postgresql.Role` or they will fight over what your role grants should be.
20
+
///
21
+
/// ## Usage
22
+
///
23
+
/// ```csharp
24
+
/// using Pulumi;
25
+
/// using PostgreSql = Pulumi.PostgreSql;
26
+
///
27
+
/// class MyStack : Stack
28
+
/// {
29
+
/// public MyStack()
30
+
/// {
31
+
/// var grantRoot = new PostgreSql.GrantRole("grantRoot", new PostgreSql.GrantRoleArgs
0 commit comments