Class DefaultPrivileg
Inherited Members
Namespace: Pulumi.PostgreSql
Assembly: Pulumi.PostgreSql.dll
Syntax
[Obsolete("postgresql.DefaultPrivileg has been deprecated in favor of postgresql.DefaultPrivileges")]
public class DefaultPrivileg : CustomResource
Constructors
View SourceDefaultPrivileg(String, DefaultPrivilegArgs, CustomResourceOptions)
Create a DefaultPrivileg resource with the given unique name, arguments, and options.
Declaration
public DefaultPrivileg(string name, DefaultPrivilegArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DefaultPrivilegArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDatabase
The database to grant default privileges for this role
Declaration
public Output<string> Database { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ObjectType
The PostgreSQL object type to set the default privileges on (one of: table, sequence)
Declaration
public Output<string> ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Owner
Target role for which to alter default privileges.
Declaration
public Output<string> Owner { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Privileges
The list of privileges to apply as default privileges
Declaration
public Output<ImmutableArray<string>> Privileges { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Role
The name of the role to which grant default privileges on
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Schema
The database schema to set default privileges for this role
Declaration
public Output<string> Schema { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, DefaultPrivilegState, CustomResourceOptions)
Get an existing DefaultPrivileg resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static DefaultPrivileg Get(string name, Input<string> id, DefaultPrivilegState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| DefaultPrivilegState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| DefaultPrivileg |