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, opts=None, database=None, object_type=None, owner=None, privileges=None, role=None, schema=None, __props__=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
- Object
Type string The PostgreSQL object type to set the default privileges on (one of: table, sequence)
- 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
- Object
Type string The PostgreSQL object type to set the default privileges on (one of: table, sequence)
- 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
- object
Type string The PostgreSQL object type to set the default privileges on (one of: table, sequence)
- 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)
- owner str
Target role for which to alter default privileges.
- privileges List[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:
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): DefaultPrivilegstatic get(resource_name, id, opts=None, database=None, object_type=None, owner=None, privileges=None, role=None, schema=None, __props__=None);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
- Object
Type string The PostgreSQL object type to set the default privileges on (one of: table, sequence)
- 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
- Object
Type string The PostgreSQL object type to set the default privileges on (one of: table, sequence)
- 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
- object
Type string The PostgreSQL object type to set the default privileges on (one of: table, sequence)
- 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)
- owner str
Target role for which to alter default privileges.
- privileges List[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
postgresqlTerraform Provider.