Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

DefaultPrivileg

Deprecated: postgresql.DefaultPrivileg has been deprecated in favor of postgresql.DefaultPrivileges

Create a DefaultPrivileg Resource

new DefaultPrivileg(name: string, args: DefaultPrivilegArgs, opts?: CustomResourceOptions);
def DefaultPrivileg(resource_name: str, opts: Optional[ResourceOptions] = None, database: Optional[str] = None, object_type: Optional[str] = None, owner: Optional[str] = None, privileges: Optional[Sequence[str]] = None, role: Optional[str] = None, schema: Optional[str] = None)
func NewDefaultPrivileg(ctx *Context, name string, args DefaultPrivilegArgs, opts ...ResourceOption) (*DefaultPrivileg, error)
public DefaultPrivileg(string name, DefaultPrivilegArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args DefaultPrivilegArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DefaultPrivilegArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DefaultPrivilegArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DefaultPrivileg Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The DefaultPrivileg resource accepts the following input properties:

Database string

The database to grant default privileges for this role

ObjectType string

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

Owner string

Target role for which to alter default privileges.

Privileges List<string>

The list of privileges to apply as default privileges

Role string

The name of the role to which grant default privileges on

Schema string

The database schema to set default privileges for this role

Database string

The database to grant default privileges for this role

ObjectType string

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

Owner string

Target role for which to alter default privileges.

Privileges []string

The list of privileges to apply as default privileges

Role string

The name of the role to which grant default privileges on

Schema string

The database schema to set default privileges for this role

database string

The database to grant default privileges for this role

objectType string

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

owner string

Target role for which to alter default privileges.

privileges string[]

The list of privileges to apply as default privileges

role string

The name of the role to which grant default privileges on

schema string

The database schema to set default privileges for this role

database str

The database to grant default privileges for this role

object_type str

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

owner str

Target role for which to alter default privileges.

privileges Sequence[str]

The list of privileges to apply as default privileges

role str

The name of the role to which grant default privileges on

schema str

The database schema to set default privileges for this role

Outputs

All input properties are implicitly available as output properties. Additionally, the DefaultPrivileg resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing DefaultPrivileg Resource

Get an existing DefaultPrivileg resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DefaultPrivilegState, opts?: CustomResourceOptions): DefaultPrivileg
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, database: Optional[str] = None, object_type: Optional[str] = None, owner: Optional[str] = None, privileges: Optional[Sequence[str]] = None, role: Optional[str] = None, schema: Optional[str] = None) -> DefaultPrivileg
func GetDefaultPrivileg(ctx *Context, name string, id IDInput, state *DefaultPrivilegState, opts ...ResourceOption) (*DefaultPrivileg, error)
public static DefaultPrivileg Get(string name, Input<string> id, DefaultPrivilegState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Database string

The database to grant default privileges for this role

ObjectType string

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

Owner string

Target role for which to alter default privileges.

Privileges List<string>

The list of privileges to apply as default privileges

Role string

The name of the role to which grant default privileges on

Schema string

The database schema to set default privileges for this role

Database string

The database to grant default privileges for this role

ObjectType string

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

Owner string

Target role for which to alter default privileges.

Privileges []string

The list of privileges to apply as default privileges

Role string

The name of the role to which grant default privileges on

Schema string

The database schema to set default privileges for this role

database string

The database to grant default privileges for this role

objectType string

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

owner string

Target role for which to alter default privileges.

privileges string[]

The list of privileges to apply as default privileges

role string

The name of the role to which grant default privileges on

schema string

The database schema to set default privileges for this role

database str

The database to grant default privileges for this role

object_type str

The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)

owner str

Target role for which to alter default privileges.

privileges Sequence[str]

The list of privileges to apply as default privileges

role str

The name of the role to which grant default privileges on

schema str

The database schema to set default privileges for this role

Package Details

Repository
https://github.com/pulumi/pulumi-postgresql
License
Apache-2.0
Notes
This Pulumi package is based on the postgresql Terraform Provider.