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 objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `object_type` is `database` or `schema`.
/// 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.
87
98
/// </summary>
@@ -101,7 +112,7 @@ public partial class Grant : Pulumi.CustomResource
@@ -159,11 +170,23 @@ public sealed class GrantArgs : Pulumi.ResourceArgs
159
170
publicInput<string>Database{get;set;}=null!;
160
171
161
172
/// <summary>
162
-
/// The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function).
173
+
/// The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function, foreign_data_wrapper, foreign_server).
163
174
/// </summary>
164
175
[Input("objectType",required:true)]
165
176
publicInput<string>ObjectType{get;set;}=null!;
166
177
178
+
[Input("objects")]
179
+
privateInputList<string>?_objects;
180
+
181
+
/// <summary>
182
+
/// The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `object_type` is `database` or `schema`.
183
+
/// </summary>
184
+
publicInputList<string>Objects
185
+
{
186
+
get=>_objects??(_objects=newInputList<string>());
187
+
set=>_objects=value;
188
+
}
189
+
167
190
[Input("privileges",required:true)]
168
191
privateInputList<string>?_privileges;
169
192
@@ -189,7 +212,7 @@ public InputList<string> Privileges
189
212
publicInput<string>?Schema{get;set;}
190
213
191
214
/// <summary>
192
-
/// Permit the grant recipient to grant it to others
215
+
/// Whether the recipient of these privileges can grant the same privileges to others. Defaults to false.
193
216
/// </summary>
194
217
[Input("withGrantOption")]
195
218
publicInput<bool>?WithGrantOption{get;set;}
@@ -208,11 +231,23 @@ public sealed class GrantState : Pulumi.ResourceArgs
208
231
publicInput<string>?Database{get;set;}
209
232
210
233
/// <summary>
211
-
/// The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function).
234
+
/// The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function, foreign_data_wrapper, foreign_server).
212
235
/// </summary>
213
236
[Input("objectType")]
214
237
publicInput<string>?ObjectType{get;set;}
215
238
239
+
[Input("objects")]
240
+
privateInputList<string>?_objects;
241
+
242
+
/// <summary>
243
+
/// The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `object_type` is `database` or `schema`.
244
+
/// </summary>
245
+
publicInputList<string>Objects
246
+
{
247
+
get=>_objects??(_objects=newInputList<string>());
248
+
set=>_objects=value;
249
+
}
250
+
216
251
[Input("privileges")]
217
252
privateInputList<string>?_privileges;
218
253
@@ -238,7 +273,7 @@ public InputList<string> Privileges
238
273
publicInput<string>?Schema{get;set;}
239
274
240
275
/// <summary>
241
-
/// Permit the grant recipient to grant it to others
276
+
/// Whether the recipient of these privileges can grant the same privileges to others. Defaults to false.
0 commit comments