Documentation ¶
Overview ¶
A Pulumi package for creating and managing postgresql cloud resources.
Index ¶
- func PkgVersion() (semver.Version, error)
- type Database
- func (*Database) ElementType() reflect.Type
- func (i *Database) ToDatabaseOutput() DatabaseOutput
- func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
- func (i *Database) ToDatabasePtrOutput() DatabasePtrOutput
- func (i *Database) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput
- type DatabaseArgs
- type DatabaseArray
- type DatabaseArrayInput
- type DatabaseArrayOutput
- type DatabaseInput
- type DatabaseMap
- type DatabaseMapInput
- type DatabaseMapOutput
- type DatabaseOutput
- func (DatabaseOutput) ElementType() reflect.Type
- func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput
- func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
- func (o DatabaseOutput) ToDatabasePtrOutput() DatabasePtrOutput
- func (o DatabaseOutput) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput
- type DatabasePtrInput
- type DatabasePtrOutput
- type DatabaseState
- type DefaultPrivilegdeprecated
- func (*DefaultPrivileg) ElementType() reflect.Type
- func (i *DefaultPrivileg) ToDefaultPrivilegOutput() DefaultPrivilegOutput
- func (i *DefaultPrivileg) ToDefaultPrivilegOutputWithContext(ctx context.Context) DefaultPrivilegOutput
- func (i *DefaultPrivileg) ToDefaultPrivilegPtrOutput() DefaultPrivilegPtrOutput
- func (i *DefaultPrivileg) ToDefaultPrivilegPtrOutputWithContext(ctx context.Context) DefaultPrivilegPtrOutput
- type DefaultPrivilegArgs
- type DefaultPrivilegArray
- type DefaultPrivilegArrayInput
- type DefaultPrivilegArrayOutput
- func (DefaultPrivilegArrayOutput) ElementType() reflect.Type
- func (o DefaultPrivilegArrayOutput) Index(i pulumi.IntInput) DefaultPrivilegOutput
- func (o DefaultPrivilegArrayOutput) ToDefaultPrivilegArrayOutput() DefaultPrivilegArrayOutput
- func (o DefaultPrivilegArrayOutput) ToDefaultPrivilegArrayOutputWithContext(ctx context.Context) DefaultPrivilegArrayOutput
- type DefaultPrivilegInput
- type DefaultPrivilegMap
- type DefaultPrivilegMapInput
- type DefaultPrivilegMapOutput
- func (DefaultPrivilegMapOutput) ElementType() reflect.Type
- func (o DefaultPrivilegMapOutput) MapIndex(k pulumi.StringInput) DefaultPrivilegOutput
- func (o DefaultPrivilegMapOutput) ToDefaultPrivilegMapOutput() DefaultPrivilegMapOutput
- func (o DefaultPrivilegMapOutput) ToDefaultPrivilegMapOutputWithContext(ctx context.Context) DefaultPrivilegMapOutput
- type DefaultPrivilegOutput
- func (DefaultPrivilegOutput) ElementType() reflect.Type
- func (o DefaultPrivilegOutput) ToDefaultPrivilegOutput() DefaultPrivilegOutput
- func (o DefaultPrivilegOutput) ToDefaultPrivilegOutputWithContext(ctx context.Context) DefaultPrivilegOutput
- func (o DefaultPrivilegOutput) ToDefaultPrivilegPtrOutput() DefaultPrivilegPtrOutput
- func (o DefaultPrivilegOutput) ToDefaultPrivilegPtrOutputWithContext(ctx context.Context) DefaultPrivilegPtrOutput
- type DefaultPrivilegPtrInput
- type DefaultPrivilegPtrOutput
- type DefaultPrivilegState
- type DefaultPrivileges
- func (*DefaultPrivileges) ElementType() reflect.Type
- func (i *DefaultPrivileges) ToDefaultPrivilegesOutput() DefaultPrivilegesOutput
- func (i *DefaultPrivileges) ToDefaultPrivilegesOutputWithContext(ctx context.Context) DefaultPrivilegesOutput
- func (i *DefaultPrivileges) ToDefaultPrivilegesPtrOutput() DefaultPrivilegesPtrOutput
- func (i *DefaultPrivileges) ToDefaultPrivilegesPtrOutputWithContext(ctx context.Context) DefaultPrivilegesPtrOutput
- type DefaultPrivilegesArgs
- type DefaultPrivilegesArray
- type DefaultPrivilegesArrayInput
- type DefaultPrivilegesArrayOutput
- func (DefaultPrivilegesArrayOutput) ElementType() reflect.Type
- func (o DefaultPrivilegesArrayOutput) Index(i pulumi.IntInput) DefaultPrivilegesOutput
- func (o DefaultPrivilegesArrayOutput) ToDefaultPrivilegesArrayOutput() DefaultPrivilegesArrayOutput
- func (o DefaultPrivilegesArrayOutput) ToDefaultPrivilegesArrayOutputWithContext(ctx context.Context) DefaultPrivilegesArrayOutput
- type DefaultPrivilegesInput
- type DefaultPrivilegesMap
- type DefaultPrivilegesMapInput
- type DefaultPrivilegesMapOutput
- func (DefaultPrivilegesMapOutput) ElementType() reflect.Type
- func (o DefaultPrivilegesMapOutput) MapIndex(k pulumi.StringInput) DefaultPrivilegesOutput
- func (o DefaultPrivilegesMapOutput) ToDefaultPrivilegesMapOutput() DefaultPrivilegesMapOutput
- func (o DefaultPrivilegesMapOutput) ToDefaultPrivilegesMapOutputWithContext(ctx context.Context) DefaultPrivilegesMapOutput
- type DefaultPrivilegesOutput
- func (DefaultPrivilegesOutput) ElementType() reflect.Type
- func (o DefaultPrivilegesOutput) ToDefaultPrivilegesOutput() DefaultPrivilegesOutput
- func (o DefaultPrivilegesOutput) ToDefaultPrivilegesOutputWithContext(ctx context.Context) DefaultPrivilegesOutput
- func (o DefaultPrivilegesOutput) ToDefaultPrivilegesPtrOutput() DefaultPrivilegesPtrOutput
- func (o DefaultPrivilegesOutput) ToDefaultPrivilegesPtrOutputWithContext(ctx context.Context) DefaultPrivilegesPtrOutput
- type DefaultPrivilegesPtrInput
- type DefaultPrivilegesPtrOutput
- type DefaultPrivilegesState
- type Extension
- func (*Extension) ElementType() reflect.Type
- func (i *Extension) ToExtensionOutput() ExtensionOutput
- func (i *Extension) ToExtensionOutputWithContext(ctx context.Context) ExtensionOutput
- func (i *Extension) ToExtensionPtrOutput() ExtensionPtrOutput
- func (i *Extension) ToExtensionPtrOutputWithContext(ctx context.Context) ExtensionPtrOutput
- type ExtensionArgs
- type ExtensionArray
- type ExtensionArrayInput
- type ExtensionArrayOutput
- func (ExtensionArrayOutput) ElementType() reflect.Type
- func (o ExtensionArrayOutput) Index(i pulumi.IntInput) ExtensionOutput
- func (o ExtensionArrayOutput) ToExtensionArrayOutput() ExtensionArrayOutput
- func (o ExtensionArrayOutput) ToExtensionArrayOutputWithContext(ctx context.Context) ExtensionArrayOutput
- type ExtensionInput
- type ExtensionMap
- type ExtensionMapInput
- type ExtensionMapOutput
- type ExtensionOutput
- func (ExtensionOutput) ElementType() reflect.Type
- func (o ExtensionOutput) ToExtensionOutput() ExtensionOutput
- func (o ExtensionOutput) ToExtensionOutputWithContext(ctx context.Context) ExtensionOutput
- func (o ExtensionOutput) ToExtensionPtrOutput() ExtensionPtrOutput
- func (o ExtensionOutput) ToExtensionPtrOutputWithContext(ctx context.Context) ExtensionPtrOutput
- type ExtensionPtrInput
- type ExtensionPtrOutput
- type ExtensionState
- type Grant
- type GrantArgs
- type GrantArray
- type GrantArrayInput
- type GrantArrayOutput
- type GrantInput
- type GrantMap
- type GrantMapInput
- type GrantMapOutput
- type GrantOutput
- func (GrantOutput) ElementType() reflect.Type
- func (o GrantOutput) ToGrantOutput() GrantOutput
- func (o GrantOutput) ToGrantOutputWithContext(ctx context.Context) GrantOutput
- func (o GrantOutput) ToGrantPtrOutput() GrantPtrOutput
- func (o GrantOutput) ToGrantPtrOutputWithContext(ctx context.Context) GrantPtrOutput
- type GrantPtrInput
- type GrantPtrOutput
- type GrantRole
- func (*GrantRole) ElementType() reflect.Type
- func (i *GrantRole) ToGrantRoleOutput() GrantRoleOutput
- func (i *GrantRole) ToGrantRoleOutputWithContext(ctx context.Context) GrantRoleOutput
- func (i *GrantRole) ToGrantRolePtrOutput() GrantRolePtrOutput
- func (i *GrantRole) ToGrantRolePtrOutputWithContext(ctx context.Context) GrantRolePtrOutput
- type GrantRoleArgs
- type GrantRoleArray
- type GrantRoleArrayInput
- type GrantRoleArrayOutput
- func (GrantRoleArrayOutput) ElementType() reflect.Type
- func (o GrantRoleArrayOutput) Index(i pulumi.IntInput) GrantRoleOutput
- func (o GrantRoleArrayOutput) ToGrantRoleArrayOutput() GrantRoleArrayOutput
- func (o GrantRoleArrayOutput) ToGrantRoleArrayOutputWithContext(ctx context.Context) GrantRoleArrayOutput
- type GrantRoleInput
- type GrantRoleMap
- type GrantRoleMapInput
- type GrantRoleMapOutput
- type GrantRoleOutput
- func (GrantRoleOutput) ElementType() reflect.Type
- func (o GrantRoleOutput) ToGrantRoleOutput() GrantRoleOutput
- func (o GrantRoleOutput) ToGrantRoleOutputWithContext(ctx context.Context) GrantRoleOutput
- func (o GrantRoleOutput) ToGrantRolePtrOutput() GrantRolePtrOutput
- func (o GrantRoleOutput) ToGrantRolePtrOutputWithContext(ctx context.Context) GrantRolePtrOutput
- type GrantRolePtrInput
- type GrantRolePtrOutput
- type GrantRoleState
- type GrantState
- type Provider
- func (*Provider) ElementType() reflect.Type
- func (i *Provider) ToProviderOutput() ProviderOutput
- func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (i *Provider) ToProviderPtrOutput() ProviderPtrOutput
- func (i *Provider) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput
- type ProviderArgs
- type ProviderClientcert
- type ProviderClientcertArgs
- func (ProviderClientcertArgs) ElementType() reflect.Type
- func (i ProviderClientcertArgs) ToProviderClientcertOutput() ProviderClientcertOutput
- func (i ProviderClientcertArgs) ToProviderClientcertOutputWithContext(ctx context.Context) ProviderClientcertOutput
- func (i ProviderClientcertArgs) ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput
- func (i ProviderClientcertArgs) ToProviderClientcertPtrOutputWithContext(ctx context.Context) ProviderClientcertPtrOutput
- type ProviderClientcertInput
- type ProviderClientcertOutput
- func (o ProviderClientcertOutput) Cert() pulumi.StringOutput
- func (ProviderClientcertOutput) ElementType() reflect.Type
- func (o ProviderClientcertOutput) Key() pulumi.StringOutput
- func (o ProviderClientcertOutput) ToProviderClientcertOutput() ProviderClientcertOutput
- func (o ProviderClientcertOutput) ToProviderClientcertOutputWithContext(ctx context.Context) ProviderClientcertOutput
- func (o ProviderClientcertOutput) ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput
- func (o ProviderClientcertOutput) ToProviderClientcertPtrOutputWithContext(ctx context.Context) ProviderClientcertPtrOutput
- type ProviderClientcertPtrInput
- type ProviderClientcertPtrOutput
- func (o ProviderClientcertPtrOutput) Cert() pulumi.StringPtrOutput
- func (o ProviderClientcertPtrOutput) Elem() ProviderClientcertOutput
- func (ProviderClientcertPtrOutput) ElementType() reflect.Type
- func (o ProviderClientcertPtrOutput) Key() pulumi.StringPtrOutput
- func (o ProviderClientcertPtrOutput) ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput
- func (o ProviderClientcertPtrOutput) ToProviderClientcertPtrOutputWithContext(ctx context.Context) ProviderClientcertPtrOutput
- type ProviderInput
- type ProviderOutput
- func (ProviderOutput) ElementType() reflect.Type
- func (o ProviderOutput) ToProviderOutput() ProviderOutput
- func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (o ProviderOutput) ToProviderPtrOutput() ProviderPtrOutput
- func (o ProviderOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput
- type ProviderPtrInput
- type ProviderPtrOutput
- type Role
- type RoleArgs
- type RoleArray
- type RoleArrayInput
- type RoleArrayOutput
- type RoleInput
- type RoleMap
- type RoleMapInput
- type RoleMapOutput
- type RoleOutput
- func (RoleOutput) ElementType() reflect.Type
- func (o RoleOutput) ToRoleOutput() RoleOutput
- func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
- func (o RoleOutput) ToRolePtrOutput() RolePtrOutput
- func (o RoleOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
- type RolePtrInput
- type RolePtrOutput
- type RoleState
- type Schema
- func (*Schema) ElementType() reflect.Type
- func (i *Schema) ToSchemaOutput() SchemaOutput
- func (i *Schema) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput
- func (i *Schema) ToSchemaPtrOutput() SchemaPtrOutput
- func (i *Schema) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput
- type SchemaArgs
- type SchemaArray
- type SchemaArrayInput
- type SchemaArrayOutput
- type SchemaInput
- type SchemaMap
- type SchemaMapInput
- type SchemaMapOutput
- type SchemaOutput
- func (SchemaOutput) ElementType() reflect.Type
- func (o SchemaOutput) ToSchemaOutput() SchemaOutput
- func (o SchemaOutput) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput
- func (o SchemaOutput) ToSchemaPtrOutput() SchemaPtrOutput
- func (o SchemaOutput) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput
- type SchemaPolicy
- type SchemaPolicyArgs
- type SchemaPolicyArray
- type SchemaPolicyArrayInput
- type SchemaPolicyArrayOutput
- func (SchemaPolicyArrayOutput) ElementType() reflect.Type
- func (o SchemaPolicyArrayOutput) Index(i pulumi.IntInput) SchemaPolicyOutput
- func (o SchemaPolicyArrayOutput) ToSchemaPolicyArrayOutput() SchemaPolicyArrayOutput
- func (o SchemaPolicyArrayOutput) ToSchemaPolicyArrayOutputWithContext(ctx context.Context) SchemaPolicyArrayOutput
- type SchemaPolicyInput
- type SchemaPolicyOutput
- func (o SchemaPolicyOutput) Create() pulumi.BoolPtrOutput
- func (o SchemaPolicyOutput) CreateWithGrant() pulumi.BoolPtrOutput
- func (SchemaPolicyOutput) ElementType() reflect.Type
- func (o SchemaPolicyOutput) Role() pulumi.StringPtrOutput
- func (o SchemaPolicyOutput) ToSchemaPolicyOutput() SchemaPolicyOutput
- func (o SchemaPolicyOutput) ToSchemaPolicyOutputWithContext(ctx context.Context) SchemaPolicyOutput
- func (o SchemaPolicyOutput) Usage() pulumi.BoolPtrOutput
- func (o SchemaPolicyOutput) UsageWithGrant() pulumi.BoolPtrOutput
- type SchemaPtrInput
- type SchemaPtrOutput
- type SchemaState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v2.6.0
PkgVersion uses reflection to determine the version of the current package.
Types ¶
type Database ¶
type Database struct { pulumi.CustomResourceState // If `false` then no one can connect to this // database. The default is `true`, allowing connections (except as restricted by // other mechanisms, such as `GRANT` or `REVOKE CONNECT`). AllowConnections pulumi.BoolPtrOutput `pulumi:"allowConnections"` // How many concurrent connections can be // established to this database. `-1` (the default) means no limit. ConnectionLimit pulumi.IntPtrOutput `pulumi:"connectionLimit"` // Character set encoding to use in the new database Encoding pulumi.StringOutput `pulumi:"encoding"` // If `true`, then this database can be cloned by any // user with `CREATEDB` privileges; if `false` (the default), then only // superusers or the owner of the database can clone it. IsTemplate pulumi.BoolOutput `pulumi:"isTemplate"` // Collation order (LC_COLLATE) to use in the new database LcCollate pulumi.StringOutput `pulumi:"lcCollate"` // Character classification (LC_CTYPE) to use in the new database LcCtype pulumi.StringOutput `pulumi:"lcCtype"` // The name of the database. Must be unique on the PostgreSQL // server instance where it is configured. Name pulumi.StringOutput `pulumi:"name"` // The role name of the user who will own the database, or // `DEFAULT` to use the default (namely, the user executing the command). To // create a database owned by another role or to change the owner of an existing // database, you must be a direct or indirect member of the specified role, or // the username in the provider is a superuser. Owner pulumi.StringOutput `pulumi:"owner"` // The name of the tablespace that will be // associated with the database, or `DEFAULT` to use the template database's // tablespace. This tablespace will be the default tablespace used for objects // created in this database. TablespaceName pulumi.StringOutput `pulumi:"tablespaceName"` // The name of the template from which to create the new database Template pulumi.StringOutput `pulumi:"template"` }
func GetDatabase ¶
func GetDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatabaseState, opts ...pulumi.ResourceOption) (*Database, error)
GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDatabase ¶
func NewDatabase(ctx *pulumi.Context, name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error)
NewDatabase registers a new resource with the given unique name, arguments, and options.
func (*Database) ElementType ¶ added in v2.5.2
func (*Database) ToDatabaseOutput ¶ added in v2.5.2
func (i *Database) ToDatabaseOutput() DatabaseOutput
func (*Database) ToDatabaseOutputWithContext ¶ added in v2.5.2
func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
func (*Database) ToDatabasePtrOutput ¶ added in v2.7.1
func (i *Database) ToDatabasePtrOutput() DatabasePtrOutput
func (*Database) ToDatabasePtrOutputWithContext ¶ added in v2.7.1
func (i *Database) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput
type DatabaseArgs ¶
type DatabaseArgs struct { // If `false` then no one can connect to this // database. The default is `true`, allowing connections (except as restricted by // other mechanisms, such as `GRANT` or `REVOKE CONNECT`). AllowConnections pulumi.BoolPtrInput // How many concurrent connections can be // established to this database. `-1` (the default) means no limit. ConnectionLimit pulumi.IntPtrInput // Character set encoding to use in the new database Encoding pulumi.StringPtrInput // If `true`, then this database can be cloned by any // user with `CREATEDB` privileges; if `false` (the default), then only // superusers or the owner of the database can clone it. IsTemplate pulumi.BoolPtrInput // Collation order (LC_COLLATE) to use in the new database LcCollate pulumi.StringPtrInput // Character classification (LC_CTYPE) to use in the new database LcCtype pulumi.StringPtrInput // The name of the database. Must be unique on the PostgreSQL // server instance where it is configured. Name pulumi.StringPtrInput // The role name of the user who will own the database, or // `DEFAULT` to use the default (namely, the user executing the command). To // create a database owned by another role or to change the owner of an existing // database, you must be a direct or indirect member of the specified role, or // the username in the provider is a superuser. Owner pulumi.StringPtrInput // The name of the tablespace that will be // associated with the database, or `DEFAULT` to use the template database's // tablespace. This tablespace will be the default tablespace used for objects // created in this database. TablespaceName pulumi.StringPtrInput // The name of the template from which to create the new database Template pulumi.StringPtrInput }
The set of arguments for constructing a Database resource.
func (DatabaseArgs) ElementType ¶
func (DatabaseArgs) ElementType() reflect.Type
type DatabaseArray ¶ added in v2.7.1
type DatabaseArray []DatabaseInput
func (DatabaseArray) ElementType ¶ added in v2.7.1
func (DatabaseArray) ElementType() reflect.Type
func (DatabaseArray) ToDatabaseArrayOutput ¶ added in v2.7.1
func (i DatabaseArray) ToDatabaseArrayOutput() DatabaseArrayOutput
func (DatabaseArray) ToDatabaseArrayOutputWithContext ¶ added in v2.7.1
func (i DatabaseArray) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput
type DatabaseArrayInput ¶ added in v2.7.1
type DatabaseArrayInput interface { pulumi.Input ToDatabaseArrayOutput() DatabaseArrayOutput ToDatabaseArrayOutputWithContext(context.Context) DatabaseArrayOutput }
DatabaseArrayInput is an input type that accepts DatabaseArray and DatabaseArrayOutput values. You can construct a concrete instance of `DatabaseArrayInput` via:
DatabaseArray{ DatabaseArgs{...} }
type DatabaseArrayOutput ¶ added in v2.7.1
type DatabaseArrayOutput struct{ *pulumi.OutputState }
func (DatabaseArrayOutput) ElementType ¶ added in v2.7.1
func (DatabaseArrayOutput) ElementType() reflect.Type
func (DatabaseArrayOutput) Index ¶ added in v2.7.1
func (o DatabaseArrayOutput) Index(i pulumi.IntInput) DatabaseOutput
func (DatabaseArrayOutput) ToDatabaseArrayOutput ¶ added in v2.7.1
func (o DatabaseArrayOutput) ToDatabaseArrayOutput() DatabaseArrayOutput
func (DatabaseArrayOutput) ToDatabaseArrayOutputWithContext ¶ added in v2.7.1
func (o DatabaseArrayOutput) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput
type DatabaseInput ¶ added in v2.5.2
type DatabaseInput interface { pulumi.Input ToDatabaseOutput() DatabaseOutput ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput }
type DatabaseMap ¶ added in v2.7.1
type DatabaseMap map[string]DatabaseInput
func (DatabaseMap) ElementType ¶ added in v2.7.1
func (DatabaseMap) ElementType() reflect.Type
func (DatabaseMap) ToDatabaseMapOutput ¶ added in v2.7.1
func (i DatabaseMap) ToDatabaseMapOutput() DatabaseMapOutput
func (DatabaseMap) ToDatabaseMapOutputWithContext ¶ added in v2.7.1
func (i DatabaseMap) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput
type DatabaseMapInput ¶ added in v2.7.1
type DatabaseMapInput interface { pulumi.Input ToDatabaseMapOutput() DatabaseMapOutput ToDatabaseMapOutputWithContext(context.Context) DatabaseMapOutput }
DatabaseMapInput is an input type that accepts DatabaseMap and DatabaseMapOutput values. You can construct a concrete instance of `DatabaseMapInput` via:
DatabaseMap{ "key": DatabaseArgs{...} }
type DatabaseMapOutput ¶ added in v2.7.1
type DatabaseMapOutput struct{ *pulumi.OutputState }
func (DatabaseMapOutput) ElementType ¶ added in v2.7.1
func (DatabaseMapOutput) ElementType() reflect.Type
func (DatabaseMapOutput) MapIndex ¶ added in v2.7.1
func (o DatabaseMapOutput) MapIndex(k pulumi.StringInput) DatabaseOutput
func (DatabaseMapOutput) ToDatabaseMapOutput ¶ added in v2.7.1
func (o DatabaseMapOutput) ToDatabaseMapOutput() DatabaseMapOutput
func (DatabaseMapOutput) ToDatabaseMapOutputWithContext ¶ added in v2.7.1
func (o DatabaseMapOutput) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput
type DatabaseOutput ¶ added in v2.5.2
type DatabaseOutput struct {
*pulumi.OutputState
}
func (DatabaseOutput) ElementType ¶ added in v2.5.2
func (DatabaseOutput) ElementType() reflect.Type
func (DatabaseOutput) ToDatabaseOutput ¶ added in v2.5.2
func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput
func (DatabaseOutput) ToDatabaseOutputWithContext ¶ added in v2.5.2
func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
func (DatabaseOutput) ToDatabasePtrOutput ¶ added in v2.7.1
func (o DatabaseOutput) ToDatabasePtrOutput() DatabasePtrOutput
func (DatabaseOutput) ToDatabasePtrOutputWithContext ¶ added in v2.7.1
func (o DatabaseOutput) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput
type DatabasePtrInput ¶ added in v2.7.1
type DatabasePtrInput interface { pulumi.Input ToDatabasePtrOutput() DatabasePtrOutput ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput }
type DatabasePtrOutput ¶ added in v2.7.1
type DatabasePtrOutput struct {
*pulumi.OutputState
}
func (DatabasePtrOutput) ElementType ¶ added in v2.7.1
func (DatabasePtrOutput) ElementType() reflect.Type
func (DatabasePtrOutput) ToDatabasePtrOutput ¶ added in v2.7.1
func (o DatabasePtrOutput) ToDatabasePtrOutput() DatabasePtrOutput
func (DatabasePtrOutput) ToDatabasePtrOutputWithContext ¶ added in v2.7.1
func (o DatabasePtrOutput) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput
type DatabaseState ¶
type DatabaseState struct { // If `false` then no one can connect to this // database. The default is `true`, allowing connections (except as restricted by // other mechanisms, such as `GRANT` or `REVOKE CONNECT`). AllowConnections pulumi.BoolPtrInput // How many concurrent connections can be // established to this database. `-1` (the default) means no limit. ConnectionLimit pulumi.IntPtrInput // Character set encoding to use in the new database Encoding pulumi.StringPtrInput // If `true`, then this database can be cloned by any // user with `CREATEDB` privileges; if `false` (the default), then only // superusers or the owner of the database can clone it. IsTemplate pulumi.BoolPtrInput // Collation order (LC_COLLATE) to use in the new database LcCollate pulumi.StringPtrInput // Character classification (LC_CTYPE) to use in the new database LcCtype pulumi.StringPtrInput // The name of the database. Must be unique on the PostgreSQL // server instance where it is configured. Name pulumi.StringPtrInput // The role name of the user who will own the database, or // `DEFAULT` to use the default (namely, the user executing the command). To // create a database owned by another role or to change the owner of an existing // database, you must be a direct or indirect member of the specified role, or // the username in the provider is a superuser. Owner pulumi.StringPtrInput // The name of the tablespace that will be // associated with the database, or `DEFAULT` to use the template database's // tablespace. This tablespace will be the default tablespace used for objects // created in this database. TablespaceName pulumi.StringPtrInput // The name of the template from which to create the new database Template pulumi.StringPtrInput }
func (DatabaseState) ElementType ¶
func (DatabaseState) ElementType() reflect.Type
type DefaultPrivileg
deprecated
type DefaultPrivileg struct { pulumi.CustomResourceState // The database to grant default privileges for this role Database pulumi.StringOutput `pulumi:"database"` // The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type) ObjectType pulumi.StringOutput `pulumi:"objectType"` // Target role for which to alter default privileges. Owner pulumi.StringOutput `pulumi:"owner"` // The list of privileges to apply as default privileges Privileges pulumi.StringArrayOutput `pulumi:"privileges"` // The name of the role to which grant default privileges on Role pulumi.StringOutput `pulumi:"role"` // The database schema to set default privileges for this role Schema pulumi.StringPtrOutput `pulumi:"schema"` // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"` }
Deprecated: postgresql.DefaultPrivileg has been deprecated in favor of postgresql.DefaultPrivileges
func GetDefaultPrivileg ¶
func GetDefaultPrivileg(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DefaultPrivilegState, opts ...pulumi.ResourceOption) (*DefaultPrivileg, error)
GetDefaultPrivileg gets an existing DefaultPrivileg resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDefaultPrivileg ¶
func NewDefaultPrivileg(ctx *pulumi.Context, name string, args *DefaultPrivilegArgs, opts ...pulumi.ResourceOption) (*DefaultPrivileg, error)
NewDefaultPrivileg registers a new resource with the given unique name, arguments, and options.
func (*DefaultPrivileg) ElementType ¶ added in v2.5.2
func (*DefaultPrivileg) ElementType() reflect.Type
func (*DefaultPrivileg) ToDefaultPrivilegOutput ¶ added in v2.5.2
func (i *DefaultPrivileg) ToDefaultPrivilegOutput() DefaultPrivilegOutput
func (*DefaultPrivileg) ToDefaultPrivilegOutputWithContext ¶ added in v2.5.2
func (i *DefaultPrivileg) ToDefaultPrivilegOutputWithContext(ctx context.Context) DefaultPrivilegOutput
func (*DefaultPrivileg) ToDefaultPrivilegPtrOutput ¶ added in v2.7.1
func (i *DefaultPrivileg) ToDefaultPrivilegPtrOutput() DefaultPrivilegPtrOutput
func (*DefaultPrivileg) ToDefaultPrivilegPtrOutputWithContext ¶ added in v2.7.1
func (i *DefaultPrivileg) ToDefaultPrivilegPtrOutputWithContext(ctx context.Context) DefaultPrivilegPtrOutput
type DefaultPrivilegArgs ¶
type DefaultPrivilegArgs struct { // The database to grant default privileges for this role Database pulumi.StringInput // The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type) ObjectType pulumi.StringInput // Target role for which to alter default privileges. Owner pulumi.StringInput // The list of privileges to apply as default privileges Privileges pulumi.StringArrayInput // The name of the role to which grant default privileges on Role pulumi.StringInput // The database schema to set default privileges for this role Schema pulumi.StringPtrInput // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrInput }
The set of arguments for constructing a DefaultPrivileg resource.
func (DefaultPrivilegArgs) ElementType ¶
func (DefaultPrivilegArgs) ElementType() reflect.Type
type DefaultPrivilegArray ¶ added in v2.7.1
type DefaultPrivilegArray []DefaultPrivilegInput
func (DefaultPrivilegArray) ElementType ¶ added in v2.7.1
func (DefaultPrivilegArray) ElementType() reflect.Type
func (DefaultPrivilegArray) ToDefaultPrivilegArrayOutput ¶ added in v2.7.1
func (i DefaultPrivilegArray) ToDefaultPrivilegArrayOutput() DefaultPrivilegArrayOutput
func (DefaultPrivilegArray) ToDefaultPrivilegArrayOutputWithContext ¶ added in v2.7.1
func (i DefaultPrivilegArray) ToDefaultPrivilegArrayOutputWithContext(ctx context.Context) DefaultPrivilegArrayOutput
type DefaultPrivilegArrayInput ¶ added in v2.7.1
type DefaultPrivilegArrayInput interface { pulumi.Input ToDefaultPrivilegArrayOutput() DefaultPrivilegArrayOutput ToDefaultPrivilegArrayOutputWithContext(context.Context) DefaultPrivilegArrayOutput }
DefaultPrivilegArrayInput is an input type that accepts DefaultPrivilegArray and DefaultPrivilegArrayOutput values. You can construct a concrete instance of `DefaultPrivilegArrayInput` via:
DefaultPrivilegArray{ DefaultPrivilegArgs{...} }
type DefaultPrivilegArrayOutput ¶ added in v2.7.1
type DefaultPrivilegArrayOutput struct{ *pulumi.OutputState }
func (DefaultPrivilegArrayOutput) ElementType ¶ added in v2.7.1
func (DefaultPrivilegArrayOutput) ElementType() reflect.Type
func (DefaultPrivilegArrayOutput) Index ¶ added in v2.7.1
func (o DefaultPrivilegArrayOutput) Index(i pulumi.IntInput) DefaultPrivilegOutput
func (DefaultPrivilegArrayOutput) ToDefaultPrivilegArrayOutput ¶ added in v2.7.1
func (o DefaultPrivilegArrayOutput) ToDefaultPrivilegArrayOutput() DefaultPrivilegArrayOutput
func (DefaultPrivilegArrayOutput) ToDefaultPrivilegArrayOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegArrayOutput) ToDefaultPrivilegArrayOutputWithContext(ctx context.Context) DefaultPrivilegArrayOutput
type DefaultPrivilegInput ¶ added in v2.5.2
type DefaultPrivilegInput interface { pulumi.Input ToDefaultPrivilegOutput() DefaultPrivilegOutput ToDefaultPrivilegOutputWithContext(ctx context.Context) DefaultPrivilegOutput }
type DefaultPrivilegMap ¶ added in v2.7.1
type DefaultPrivilegMap map[string]DefaultPrivilegInput
func (DefaultPrivilegMap) ElementType ¶ added in v2.7.1
func (DefaultPrivilegMap) ElementType() reflect.Type
func (DefaultPrivilegMap) ToDefaultPrivilegMapOutput ¶ added in v2.7.1
func (i DefaultPrivilegMap) ToDefaultPrivilegMapOutput() DefaultPrivilegMapOutput
func (DefaultPrivilegMap) ToDefaultPrivilegMapOutputWithContext ¶ added in v2.7.1
func (i DefaultPrivilegMap) ToDefaultPrivilegMapOutputWithContext(ctx context.Context) DefaultPrivilegMapOutput
type DefaultPrivilegMapInput ¶ added in v2.7.1
type DefaultPrivilegMapInput interface { pulumi.Input ToDefaultPrivilegMapOutput() DefaultPrivilegMapOutput ToDefaultPrivilegMapOutputWithContext(context.Context) DefaultPrivilegMapOutput }
DefaultPrivilegMapInput is an input type that accepts DefaultPrivilegMap and DefaultPrivilegMapOutput values. You can construct a concrete instance of `DefaultPrivilegMapInput` via:
DefaultPrivilegMap{ "key": DefaultPrivilegArgs{...} }
type DefaultPrivilegMapOutput ¶ added in v2.7.1
type DefaultPrivilegMapOutput struct{ *pulumi.OutputState }
func (DefaultPrivilegMapOutput) ElementType ¶ added in v2.7.1
func (DefaultPrivilegMapOutput) ElementType() reflect.Type
func (DefaultPrivilegMapOutput) MapIndex ¶ added in v2.7.1
func (o DefaultPrivilegMapOutput) MapIndex(k pulumi.StringInput) DefaultPrivilegOutput
func (DefaultPrivilegMapOutput) ToDefaultPrivilegMapOutput ¶ added in v2.7.1
func (o DefaultPrivilegMapOutput) ToDefaultPrivilegMapOutput() DefaultPrivilegMapOutput
func (DefaultPrivilegMapOutput) ToDefaultPrivilegMapOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegMapOutput) ToDefaultPrivilegMapOutputWithContext(ctx context.Context) DefaultPrivilegMapOutput
type DefaultPrivilegOutput ¶ added in v2.5.2
type DefaultPrivilegOutput struct {
*pulumi.OutputState
}
func (DefaultPrivilegOutput) ElementType ¶ added in v2.5.2
func (DefaultPrivilegOutput) ElementType() reflect.Type
func (DefaultPrivilegOutput) ToDefaultPrivilegOutput ¶ added in v2.5.2
func (o DefaultPrivilegOutput) ToDefaultPrivilegOutput() DefaultPrivilegOutput
func (DefaultPrivilegOutput) ToDefaultPrivilegOutputWithContext ¶ added in v2.5.2
func (o DefaultPrivilegOutput) ToDefaultPrivilegOutputWithContext(ctx context.Context) DefaultPrivilegOutput
func (DefaultPrivilegOutput) ToDefaultPrivilegPtrOutput ¶ added in v2.7.1
func (o DefaultPrivilegOutput) ToDefaultPrivilegPtrOutput() DefaultPrivilegPtrOutput
func (DefaultPrivilegOutput) ToDefaultPrivilegPtrOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegOutput) ToDefaultPrivilegPtrOutputWithContext(ctx context.Context) DefaultPrivilegPtrOutput
type DefaultPrivilegPtrInput ¶ added in v2.7.1
type DefaultPrivilegPtrInput interface { pulumi.Input ToDefaultPrivilegPtrOutput() DefaultPrivilegPtrOutput ToDefaultPrivilegPtrOutputWithContext(ctx context.Context) DefaultPrivilegPtrOutput }
type DefaultPrivilegPtrOutput ¶ added in v2.7.1
type DefaultPrivilegPtrOutput struct {
*pulumi.OutputState
}
func (DefaultPrivilegPtrOutput) ElementType ¶ added in v2.7.1
func (DefaultPrivilegPtrOutput) ElementType() reflect.Type
func (DefaultPrivilegPtrOutput) ToDefaultPrivilegPtrOutput ¶ added in v2.7.1
func (o DefaultPrivilegPtrOutput) ToDefaultPrivilegPtrOutput() DefaultPrivilegPtrOutput
func (DefaultPrivilegPtrOutput) ToDefaultPrivilegPtrOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegPtrOutput) ToDefaultPrivilegPtrOutputWithContext(ctx context.Context) DefaultPrivilegPtrOutput
type DefaultPrivilegState ¶
type DefaultPrivilegState struct { // The database to grant default privileges for this role Database pulumi.StringPtrInput // The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type) ObjectType pulumi.StringPtrInput // Target role for which to alter default privileges. Owner pulumi.StringPtrInput // The list of privileges to apply as default privileges Privileges pulumi.StringArrayInput // The name of the role to which grant default privileges on Role pulumi.StringPtrInput // The database schema to set default privileges for this role Schema pulumi.StringPtrInput // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrInput }
func (DefaultPrivilegState) ElementType ¶
func (DefaultPrivilegState) ElementType() reflect.Type
type DefaultPrivileges ¶
type DefaultPrivileges struct { pulumi.CustomResourceState // The database to grant default privileges for this role. Database pulumi.StringOutput `pulumi:"database"` // The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type). ObjectType pulumi.StringOutput `pulumi:"objectType"` // Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of). Owner pulumi.StringOutput `pulumi:"owner"` // The list of privileges to apply as default privileges. Privileges pulumi.StringArrayOutput `pulumi:"privileges"` // The name of the role to which grant default privileges on. Role pulumi.StringOutput `pulumi:"role"` // The database schema to set default privileges for this role. Schema pulumi.StringPtrOutput `pulumi:"schema"` // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"` }
The “DefaultPrivileges“ resource creates and manages default privileges given to a user for a database schema.
> **Note:** This resource needs Postgresql version 9 or above.
## Usage
```go package main
import (
"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := postgresql.NewDefaultPrivileges(ctx, "readOnlyTables", &postgresql.DefaultPrivilegesArgs{ Database: pulumi.String("test_db"), ObjectType: pulumi.String("table"), Owner: pulumi.String("db_owner"), Privileges: pulumi.StringArray{ pulumi.String("SELECT"), }, Role: pulumi.String("test_role"), Schema: pulumi.String("public"), }) if err != nil { return err } return nil }) }
```
func GetDefaultPrivileges ¶
func GetDefaultPrivileges(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DefaultPrivilegesState, opts ...pulumi.ResourceOption) (*DefaultPrivileges, error)
GetDefaultPrivileges gets an existing DefaultPrivileges resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDefaultPrivileges ¶
func NewDefaultPrivileges(ctx *pulumi.Context, name string, args *DefaultPrivilegesArgs, opts ...pulumi.ResourceOption) (*DefaultPrivileges, error)
NewDefaultPrivileges registers a new resource with the given unique name, arguments, and options.
func (*DefaultPrivileges) ElementType ¶ added in v2.5.2
func (*DefaultPrivileges) ElementType() reflect.Type
func (*DefaultPrivileges) ToDefaultPrivilegesOutput ¶ added in v2.5.2
func (i *DefaultPrivileges) ToDefaultPrivilegesOutput() DefaultPrivilegesOutput
func (*DefaultPrivileges) ToDefaultPrivilegesOutputWithContext ¶ added in v2.5.2
func (i *DefaultPrivileges) ToDefaultPrivilegesOutputWithContext(ctx context.Context) DefaultPrivilegesOutput
func (*DefaultPrivileges) ToDefaultPrivilegesPtrOutput ¶ added in v2.7.1
func (i *DefaultPrivileges) ToDefaultPrivilegesPtrOutput() DefaultPrivilegesPtrOutput
func (*DefaultPrivileges) ToDefaultPrivilegesPtrOutputWithContext ¶ added in v2.7.1
func (i *DefaultPrivileges) ToDefaultPrivilegesPtrOutputWithContext(ctx context.Context) DefaultPrivilegesPtrOutput
type DefaultPrivilegesArgs ¶
type DefaultPrivilegesArgs struct { // The database to grant default privileges for this role. Database pulumi.StringInput // The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type). ObjectType pulumi.StringInput // Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of). Owner pulumi.StringInput // The list of privileges to apply as default privileges. Privileges pulumi.StringArrayInput // The name of the role to which grant default privileges on. Role pulumi.StringInput // The database schema to set default privileges for this role. Schema pulumi.StringPtrInput // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrInput }
The set of arguments for constructing a DefaultPrivileges resource.
func (DefaultPrivilegesArgs) ElementType ¶
func (DefaultPrivilegesArgs) ElementType() reflect.Type
type DefaultPrivilegesArray ¶ added in v2.7.1
type DefaultPrivilegesArray []DefaultPrivilegesInput
func (DefaultPrivilegesArray) ElementType ¶ added in v2.7.1
func (DefaultPrivilegesArray) ElementType() reflect.Type
func (DefaultPrivilegesArray) ToDefaultPrivilegesArrayOutput ¶ added in v2.7.1
func (i DefaultPrivilegesArray) ToDefaultPrivilegesArrayOutput() DefaultPrivilegesArrayOutput
func (DefaultPrivilegesArray) ToDefaultPrivilegesArrayOutputWithContext ¶ added in v2.7.1
func (i DefaultPrivilegesArray) ToDefaultPrivilegesArrayOutputWithContext(ctx context.Context) DefaultPrivilegesArrayOutput
type DefaultPrivilegesArrayInput ¶ added in v2.7.1
type DefaultPrivilegesArrayInput interface { pulumi.Input ToDefaultPrivilegesArrayOutput() DefaultPrivilegesArrayOutput ToDefaultPrivilegesArrayOutputWithContext(context.Context) DefaultPrivilegesArrayOutput }
DefaultPrivilegesArrayInput is an input type that accepts DefaultPrivilegesArray and DefaultPrivilegesArrayOutput values. You can construct a concrete instance of `DefaultPrivilegesArrayInput` via:
DefaultPrivilegesArray{ DefaultPrivilegesArgs{...} }
type DefaultPrivilegesArrayOutput ¶ added in v2.7.1
type DefaultPrivilegesArrayOutput struct{ *pulumi.OutputState }
func (DefaultPrivilegesArrayOutput) ElementType ¶ added in v2.7.1
func (DefaultPrivilegesArrayOutput) ElementType() reflect.Type
func (DefaultPrivilegesArrayOutput) Index ¶ added in v2.7.1
func (o DefaultPrivilegesArrayOutput) Index(i pulumi.IntInput) DefaultPrivilegesOutput
func (DefaultPrivilegesArrayOutput) ToDefaultPrivilegesArrayOutput ¶ added in v2.7.1
func (o DefaultPrivilegesArrayOutput) ToDefaultPrivilegesArrayOutput() DefaultPrivilegesArrayOutput
func (DefaultPrivilegesArrayOutput) ToDefaultPrivilegesArrayOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegesArrayOutput) ToDefaultPrivilegesArrayOutputWithContext(ctx context.Context) DefaultPrivilegesArrayOutput
type DefaultPrivilegesInput ¶ added in v2.5.2
type DefaultPrivilegesInput interface { pulumi.Input ToDefaultPrivilegesOutput() DefaultPrivilegesOutput ToDefaultPrivilegesOutputWithContext(ctx context.Context) DefaultPrivilegesOutput }
type DefaultPrivilegesMap ¶ added in v2.7.1
type DefaultPrivilegesMap map[string]DefaultPrivilegesInput
func (DefaultPrivilegesMap) ElementType ¶ added in v2.7.1
func (DefaultPrivilegesMap) ElementType() reflect.Type
func (DefaultPrivilegesMap) ToDefaultPrivilegesMapOutput ¶ added in v2.7.1
func (i DefaultPrivilegesMap) ToDefaultPrivilegesMapOutput() DefaultPrivilegesMapOutput
func (DefaultPrivilegesMap) ToDefaultPrivilegesMapOutputWithContext ¶ added in v2.7.1
func (i DefaultPrivilegesMap) ToDefaultPrivilegesMapOutputWithContext(ctx context.Context) DefaultPrivilegesMapOutput
type DefaultPrivilegesMapInput ¶ added in v2.7.1
type DefaultPrivilegesMapInput interface { pulumi.Input ToDefaultPrivilegesMapOutput() DefaultPrivilegesMapOutput ToDefaultPrivilegesMapOutputWithContext(context.Context) DefaultPrivilegesMapOutput }
DefaultPrivilegesMapInput is an input type that accepts DefaultPrivilegesMap and DefaultPrivilegesMapOutput values. You can construct a concrete instance of `DefaultPrivilegesMapInput` via:
DefaultPrivilegesMap{ "key": DefaultPrivilegesArgs{...} }
type DefaultPrivilegesMapOutput ¶ added in v2.7.1
type DefaultPrivilegesMapOutput struct{ *pulumi.OutputState }
func (DefaultPrivilegesMapOutput) ElementType ¶ added in v2.7.1
func (DefaultPrivilegesMapOutput) ElementType() reflect.Type
func (DefaultPrivilegesMapOutput) MapIndex ¶ added in v2.7.1
func (o DefaultPrivilegesMapOutput) MapIndex(k pulumi.StringInput) DefaultPrivilegesOutput
func (DefaultPrivilegesMapOutput) ToDefaultPrivilegesMapOutput ¶ added in v2.7.1
func (o DefaultPrivilegesMapOutput) ToDefaultPrivilegesMapOutput() DefaultPrivilegesMapOutput
func (DefaultPrivilegesMapOutput) ToDefaultPrivilegesMapOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegesMapOutput) ToDefaultPrivilegesMapOutputWithContext(ctx context.Context) DefaultPrivilegesMapOutput
type DefaultPrivilegesOutput ¶ added in v2.5.2
type DefaultPrivilegesOutput struct {
*pulumi.OutputState
}
func (DefaultPrivilegesOutput) ElementType ¶ added in v2.5.2
func (DefaultPrivilegesOutput) ElementType() reflect.Type
func (DefaultPrivilegesOutput) ToDefaultPrivilegesOutput ¶ added in v2.5.2
func (o DefaultPrivilegesOutput) ToDefaultPrivilegesOutput() DefaultPrivilegesOutput
func (DefaultPrivilegesOutput) ToDefaultPrivilegesOutputWithContext ¶ added in v2.5.2
func (o DefaultPrivilegesOutput) ToDefaultPrivilegesOutputWithContext(ctx context.Context) DefaultPrivilegesOutput
func (DefaultPrivilegesOutput) ToDefaultPrivilegesPtrOutput ¶ added in v2.7.1
func (o DefaultPrivilegesOutput) ToDefaultPrivilegesPtrOutput() DefaultPrivilegesPtrOutput
func (DefaultPrivilegesOutput) ToDefaultPrivilegesPtrOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegesOutput) ToDefaultPrivilegesPtrOutputWithContext(ctx context.Context) DefaultPrivilegesPtrOutput
type DefaultPrivilegesPtrInput ¶ added in v2.7.1
type DefaultPrivilegesPtrInput interface { pulumi.Input ToDefaultPrivilegesPtrOutput() DefaultPrivilegesPtrOutput ToDefaultPrivilegesPtrOutputWithContext(ctx context.Context) DefaultPrivilegesPtrOutput }
type DefaultPrivilegesPtrOutput ¶ added in v2.7.1
type DefaultPrivilegesPtrOutput struct {
*pulumi.OutputState
}
func (DefaultPrivilegesPtrOutput) ElementType ¶ added in v2.7.1
func (DefaultPrivilegesPtrOutput) ElementType() reflect.Type
func (DefaultPrivilegesPtrOutput) ToDefaultPrivilegesPtrOutput ¶ added in v2.7.1
func (o DefaultPrivilegesPtrOutput) ToDefaultPrivilegesPtrOutput() DefaultPrivilegesPtrOutput
func (DefaultPrivilegesPtrOutput) ToDefaultPrivilegesPtrOutputWithContext ¶ added in v2.7.1
func (o DefaultPrivilegesPtrOutput) ToDefaultPrivilegesPtrOutputWithContext(ctx context.Context) DefaultPrivilegesPtrOutput
type DefaultPrivilegesState ¶
type DefaultPrivilegesState struct { // The database to grant default privileges for this role. Database pulumi.StringPtrInput // The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type). ObjectType pulumi.StringPtrInput // Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of). Owner pulumi.StringPtrInput // The list of privileges to apply as default privileges. Privileges pulumi.StringArrayInput // The name of the role to which grant default privileges on. Role pulumi.StringPtrInput // The database schema to set default privileges for this role. Schema pulumi.StringPtrInput // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrInput }
func (DefaultPrivilegesState) ElementType ¶
func (DefaultPrivilegesState) ElementType() reflect.Type
type Extension ¶
type Extension struct { pulumi.CustomResourceState // Which database to create the extension on. Defaults to provider database. Database pulumi.StringOutput `pulumi:"database"` // When true, will also drop all the objects that depend on the extension, and in turn all objects that depend on those // objects DropCascade pulumi.BoolPtrOutput `pulumi:"dropCascade"` // The name of the extension. Name pulumi.StringOutput `pulumi:"name"` // Sets the schema of an extension. Schema pulumi.StringOutput `pulumi:"schema"` // Sets the version number of the extension. Version pulumi.StringOutput `pulumi:"version"` }
The “Extension“ resource creates and manages an extension on a PostgreSQL server.
## Usage
```go package main
import (
"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := postgresql.NewExtension(ctx, "myExtension", nil) if err != nil { return err } return nil }) }
```
func GetExtension ¶
func GetExtension(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ExtensionState, opts ...pulumi.ResourceOption) (*Extension, error)
GetExtension gets an existing Extension resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewExtension ¶
func NewExtension(ctx *pulumi.Context, name string, args *ExtensionArgs, opts ...pulumi.ResourceOption) (*Extension, error)
NewExtension registers a new resource with the given unique name, arguments, and options.
func (*Extension) ElementType ¶ added in v2.5.2
func (*Extension) ToExtensionOutput ¶ added in v2.5.2
func (i *Extension) ToExtensionOutput() ExtensionOutput
func (*Extension) ToExtensionOutputWithContext ¶ added in v2.5.2
func (i *Extension) ToExtensionOutputWithContext(ctx context.Context) ExtensionOutput
func (*Extension) ToExtensionPtrOutput ¶ added in v2.7.1
func (i *Extension) ToExtensionPtrOutput() ExtensionPtrOutput
func (*Extension) ToExtensionPtrOutputWithContext ¶ added in v2.7.1
func (i *Extension) ToExtensionPtrOutputWithContext(ctx context.Context) ExtensionPtrOutput
type ExtensionArgs ¶
type ExtensionArgs struct { // Which database to create the extension on. Defaults to provider database. Database pulumi.StringPtrInput // When true, will also drop all the objects that depend on the extension, and in turn all objects that depend on those // objects DropCascade pulumi.BoolPtrInput // The name of the extension. Name pulumi.StringPtrInput // Sets the schema of an extension. Schema pulumi.StringPtrInput // Sets the version number of the extension. Version pulumi.StringPtrInput }
The set of arguments for constructing a Extension resource.
func (ExtensionArgs) ElementType ¶
func (ExtensionArgs) ElementType() reflect.Type
type ExtensionArray ¶ added in v2.7.1
type ExtensionArray []ExtensionInput
func (ExtensionArray) ElementType ¶ added in v2.7.1
func (ExtensionArray) ElementType() reflect.Type
func (ExtensionArray) ToExtensionArrayOutput ¶ added in v2.7.1
func (i ExtensionArray) ToExtensionArrayOutput() ExtensionArrayOutput
func (ExtensionArray) ToExtensionArrayOutputWithContext ¶ added in v2.7.1
func (i ExtensionArray) ToExtensionArrayOutputWithContext(ctx context.Context) ExtensionArrayOutput
type ExtensionArrayInput ¶ added in v2.7.1
type ExtensionArrayInput interface { pulumi.Input ToExtensionArrayOutput() ExtensionArrayOutput ToExtensionArrayOutputWithContext(context.Context) ExtensionArrayOutput }
ExtensionArrayInput is an input type that accepts ExtensionArray and ExtensionArrayOutput values. You can construct a concrete instance of `ExtensionArrayInput` via:
ExtensionArray{ ExtensionArgs{...} }
type ExtensionArrayOutput ¶ added in v2.7.1
type ExtensionArrayOutput struct{ *pulumi.OutputState }
func (ExtensionArrayOutput) ElementType ¶ added in v2.7.1
func (ExtensionArrayOutput) ElementType() reflect.Type
func (ExtensionArrayOutput) Index ¶ added in v2.7.1
func (o ExtensionArrayOutput) Index(i pulumi.IntInput) ExtensionOutput
func (ExtensionArrayOutput) ToExtensionArrayOutput ¶ added in v2.7.1
func (o ExtensionArrayOutput) ToExtensionArrayOutput() ExtensionArrayOutput
func (ExtensionArrayOutput) ToExtensionArrayOutputWithContext ¶ added in v2.7.1
func (o ExtensionArrayOutput) ToExtensionArrayOutputWithContext(ctx context.Context) ExtensionArrayOutput
type ExtensionInput ¶ added in v2.5.2
type ExtensionInput interface { pulumi.Input ToExtensionOutput() ExtensionOutput ToExtensionOutputWithContext(ctx context.Context) ExtensionOutput }
type ExtensionMap ¶ added in v2.7.1
type ExtensionMap map[string]ExtensionInput
func (ExtensionMap) ElementType ¶ added in v2.7.1
func (ExtensionMap) ElementType() reflect.Type
func (ExtensionMap) ToExtensionMapOutput ¶ added in v2.7.1
func (i ExtensionMap) ToExtensionMapOutput() ExtensionMapOutput
func (ExtensionMap) ToExtensionMapOutputWithContext ¶ added in v2.7.1
func (i ExtensionMap) ToExtensionMapOutputWithContext(ctx context.Context) ExtensionMapOutput
type ExtensionMapInput ¶ added in v2.7.1
type ExtensionMapInput interface { pulumi.Input ToExtensionMapOutput() ExtensionMapOutput ToExtensionMapOutputWithContext(context.Context) ExtensionMapOutput }
ExtensionMapInput is an input type that accepts ExtensionMap and ExtensionMapOutput values. You can construct a concrete instance of `ExtensionMapInput` via:
ExtensionMap{ "key": ExtensionArgs{...} }
type ExtensionMapOutput ¶ added in v2.7.1
type ExtensionMapOutput struct{ *pulumi.OutputState }
func (ExtensionMapOutput) ElementType ¶ added in v2.7.1
func (ExtensionMapOutput) ElementType() reflect.Type
func (ExtensionMapOutput) MapIndex ¶ added in v2.7.1
func (o ExtensionMapOutput) MapIndex(k pulumi.StringInput) ExtensionOutput
func (ExtensionMapOutput) ToExtensionMapOutput ¶ added in v2.7.1
func (o ExtensionMapOutput) ToExtensionMapOutput() ExtensionMapOutput
func (ExtensionMapOutput) ToExtensionMapOutputWithContext ¶ added in v2.7.1
func (o ExtensionMapOutput) ToExtensionMapOutputWithContext(ctx context.Context) ExtensionMapOutput
type ExtensionOutput ¶ added in v2.5.2
type ExtensionOutput struct {
*pulumi.OutputState
}
func (ExtensionOutput) ElementType ¶ added in v2.5.2
func (ExtensionOutput) ElementType() reflect.Type
func (ExtensionOutput) ToExtensionOutput ¶ added in v2.5.2
func (o ExtensionOutput) ToExtensionOutput() ExtensionOutput
func (ExtensionOutput) ToExtensionOutputWithContext ¶ added in v2.5.2
func (o ExtensionOutput) ToExtensionOutputWithContext(ctx context.Context) ExtensionOutput
func (ExtensionOutput) ToExtensionPtrOutput ¶ added in v2.7.1
func (o ExtensionOutput) ToExtensionPtrOutput() ExtensionPtrOutput
func (ExtensionOutput) ToExtensionPtrOutputWithContext ¶ added in v2.7.1
func (o ExtensionOutput) ToExtensionPtrOutputWithContext(ctx context.Context) ExtensionPtrOutput
type ExtensionPtrInput ¶ added in v2.7.1
type ExtensionPtrInput interface { pulumi.Input ToExtensionPtrOutput() ExtensionPtrOutput ToExtensionPtrOutputWithContext(ctx context.Context) ExtensionPtrOutput }
type ExtensionPtrOutput ¶ added in v2.7.1
type ExtensionPtrOutput struct {
*pulumi.OutputState
}
func (ExtensionPtrOutput) ElementType ¶ added in v2.7.1
func (ExtensionPtrOutput) ElementType() reflect.Type
func (ExtensionPtrOutput) ToExtensionPtrOutput ¶ added in v2.7.1
func (o ExtensionPtrOutput) ToExtensionPtrOutput() ExtensionPtrOutput
func (ExtensionPtrOutput) ToExtensionPtrOutputWithContext ¶ added in v2.7.1
func (o ExtensionPtrOutput) ToExtensionPtrOutputWithContext(ctx context.Context) ExtensionPtrOutput
type ExtensionState ¶
type ExtensionState struct { // Which database to create the extension on. Defaults to provider database. Database pulumi.StringPtrInput // When true, will also drop all the objects that depend on the extension, and in turn all objects that depend on those // objects DropCascade pulumi.BoolPtrInput // The name of the extension. Name pulumi.StringPtrInput // Sets the schema of an extension. Schema pulumi.StringPtrInput // Sets the version number of the extension. Version pulumi.StringPtrInput }
func (ExtensionState) ElementType ¶
func (ExtensionState) ElementType() reflect.Type
type Grant ¶
type Grant struct { pulumi.CustomResourceState // The database to grant privileges on for this role. Database pulumi.StringOutput `pulumi:"database"` // The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function). ObjectType pulumi.StringOutput `pulumi:"objectType"` // 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. Privileges pulumi.StringArrayOutput `pulumi:"privileges"` // The name of the role to grant privileges on, Set it to "public" for all roles. Role pulumi.StringOutput `pulumi:"role"` // The database schema to grant privileges on for this role (Required except if objectType is "database") Schema pulumi.StringPtrOutput `pulumi:"schema"` // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"` }
The “Grant“ resource creates and manages privileges given to a user for a database schema.
See [PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-grant.html)
> **Note:** This resource needs Postgresql version 9 or above.
## Usage
```go package main
import (
"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := postgresql.NewGrant(ctx, "readonlyTables", &postgresql.GrantArgs{ Database: pulumi.String("test_db"), ObjectType: pulumi.String("table"), Privileges: pulumi.StringArray{ pulumi.String("SELECT"), }, Role: pulumi.String("test_role"), Schema: pulumi.String("public"), }) if err != nil { return err } return nil }) }
```
## Examples
Revoke default accesses for public schema:
```go package main
import (
"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := postgresql.NewGrant(ctx, "revokePublic", &postgresql.GrantArgs{ Database: pulumi.String("test_db"), ObjectType: pulumi.String("schema"), Privileges: []interface{}{}, Role: pulumi.String("public"), Schema: pulumi.String("public"), }) if err != nil { return err } return nil }) }
```
func GetGrant ¶
func GetGrant(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GrantState, opts ...pulumi.ResourceOption) (*Grant, error)
GetGrant gets an existing Grant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGrant ¶
func NewGrant(ctx *pulumi.Context, name string, args *GrantArgs, opts ...pulumi.ResourceOption) (*Grant, error)
NewGrant registers a new resource with the given unique name, arguments, and options.
func (*Grant) ElementType ¶ added in v2.5.2
func (*Grant) ToGrantOutput ¶ added in v2.5.2
func (i *Grant) ToGrantOutput() GrantOutput
func (*Grant) ToGrantOutputWithContext ¶ added in v2.5.2
func (i *Grant) ToGrantOutputWithContext(ctx context.Context) GrantOutput
func (*Grant) ToGrantPtrOutput ¶ added in v2.7.1
func (i *Grant) ToGrantPtrOutput() GrantPtrOutput
func (*Grant) ToGrantPtrOutputWithContext ¶ added in v2.7.1
func (i *Grant) ToGrantPtrOutputWithContext(ctx context.Context) GrantPtrOutput
type GrantArgs ¶
type GrantArgs struct { // The database to grant privileges on for this role. Database pulumi.StringInput // The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function). ObjectType pulumi.StringInput // 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. Privileges pulumi.StringArrayInput // The name of the role to grant privileges on, Set it to "public" for all roles. Role pulumi.StringInput // The database schema to grant privileges on for this role (Required except if objectType is "database") Schema pulumi.StringPtrInput // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrInput }
The set of arguments for constructing a Grant resource.
func (GrantArgs) ElementType ¶
type GrantArray ¶ added in v2.7.1
type GrantArray []GrantInput
func (GrantArray) ElementType ¶ added in v2.7.1
func (GrantArray) ElementType() reflect.Type
func (GrantArray) ToGrantArrayOutput ¶ added in v2.7.1
func (i GrantArray) ToGrantArrayOutput() GrantArrayOutput
func (GrantArray) ToGrantArrayOutputWithContext ¶ added in v2.7.1
func (i GrantArray) ToGrantArrayOutputWithContext(ctx context.Context) GrantArrayOutput
type GrantArrayInput ¶ added in v2.7.1
type GrantArrayInput interface { pulumi.Input ToGrantArrayOutput() GrantArrayOutput ToGrantArrayOutputWithContext(context.Context) GrantArrayOutput }
GrantArrayInput is an input type that accepts GrantArray and GrantArrayOutput values. You can construct a concrete instance of `GrantArrayInput` via:
GrantArray{ GrantArgs{...} }
type GrantArrayOutput ¶ added in v2.7.1
type GrantArrayOutput struct{ *pulumi.OutputState }
func (GrantArrayOutput) ElementType ¶ added in v2.7.1
func (GrantArrayOutput) ElementType() reflect.Type
func (GrantArrayOutput) Index ¶ added in v2.7.1
func (o GrantArrayOutput) Index(i pulumi.IntInput) GrantOutput
func (GrantArrayOutput) ToGrantArrayOutput ¶ added in v2.7.1
func (o GrantArrayOutput) ToGrantArrayOutput() GrantArrayOutput
func (GrantArrayOutput) ToGrantArrayOutputWithContext ¶ added in v2.7.1
func (o GrantArrayOutput) ToGrantArrayOutputWithContext(ctx context.Context) GrantArrayOutput
type GrantInput ¶ added in v2.5.2
type GrantInput interface { pulumi.Input ToGrantOutput() GrantOutput ToGrantOutputWithContext(ctx context.Context) GrantOutput }
type GrantMap ¶ added in v2.7.1
type GrantMap map[string]GrantInput
func (GrantMap) ElementType ¶ added in v2.7.1
func (GrantMap) ToGrantMapOutput ¶ added in v2.7.1
func (i GrantMap) ToGrantMapOutput() GrantMapOutput
func (GrantMap) ToGrantMapOutputWithContext ¶ added in v2.7.1
func (i GrantMap) ToGrantMapOutputWithContext(ctx context.Context) GrantMapOutput
type GrantMapInput ¶ added in v2.7.1
type GrantMapInput interface { pulumi.Input ToGrantMapOutput() GrantMapOutput ToGrantMapOutputWithContext(context.Context) GrantMapOutput }
GrantMapInput is an input type that accepts GrantMap and GrantMapOutput values. You can construct a concrete instance of `GrantMapInput` via:
GrantMap{ "key": GrantArgs{...} }
type GrantMapOutput ¶ added in v2.7.1
type GrantMapOutput struct{ *pulumi.OutputState }
func (GrantMapOutput) ElementType ¶ added in v2.7.1
func (GrantMapOutput) ElementType() reflect.Type
func (GrantMapOutput) MapIndex ¶ added in v2.7.1
func (o GrantMapOutput) MapIndex(k pulumi.StringInput) GrantOutput
func (GrantMapOutput) ToGrantMapOutput ¶ added in v2.7.1
func (o GrantMapOutput) ToGrantMapOutput() GrantMapOutput
func (GrantMapOutput) ToGrantMapOutputWithContext ¶ added in v2.7.1
func (o GrantMapOutput) ToGrantMapOutputWithContext(ctx context.Context) GrantMapOutput
type GrantOutput ¶ added in v2.5.2
type GrantOutput struct {
*pulumi.OutputState
}
func (GrantOutput) ElementType ¶ added in v2.5.2
func (GrantOutput) ElementType() reflect.Type
func (GrantOutput) ToGrantOutput ¶ added in v2.5.2
func (o GrantOutput) ToGrantOutput() GrantOutput
func (GrantOutput) ToGrantOutputWithContext ¶ added in v2.5.2
func (o GrantOutput) ToGrantOutputWithContext(ctx context.Context) GrantOutput
func (GrantOutput) ToGrantPtrOutput ¶ added in v2.7.1
func (o GrantOutput) ToGrantPtrOutput() GrantPtrOutput
func (GrantOutput) ToGrantPtrOutputWithContext ¶ added in v2.7.1
func (o GrantOutput) ToGrantPtrOutputWithContext(ctx context.Context) GrantPtrOutput
type GrantPtrInput ¶ added in v2.7.1
type GrantPtrInput interface { pulumi.Input ToGrantPtrOutput() GrantPtrOutput ToGrantPtrOutputWithContext(ctx context.Context) GrantPtrOutput }
type GrantPtrOutput ¶ added in v2.7.1
type GrantPtrOutput struct {
*pulumi.OutputState
}
func (GrantPtrOutput) ElementType ¶ added in v2.7.1
func (GrantPtrOutput) ElementType() reflect.Type
func (GrantPtrOutput) ToGrantPtrOutput ¶ added in v2.7.1
func (o GrantPtrOutput) ToGrantPtrOutput() GrantPtrOutput
func (GrantPtrOutput) ToGrantPtrOutputWithContext ¶ added in v2.7.1
func (o GrantPtrOutput) ToGrantPtrOutputWithContext(ctx context.Context) GrantPtrOutput
type GrantRole ¶ added in v2.7.0
type GrantRole struct { pulumi.CustomResourceState // The name of the role that is added to `role`. GrantRole pulumi.StringOutput `pulumi:"grantRole"` // The name of the role that is granted a new membership. Role pulumi.StringOutput `pulumi:"role"` // Giving ability to grant membership to others or not for `role`. (Default: false) WithAdminOption pulumi.BoolPtrOutput `pulumi:"withAdminOption"` }
The “GrantRole“ resource creates and manages membership in a role to one or more other roles in a non-authoritative way.
When using “GrantRole“ resource it is likely because the PostgreSQL role you are modifying was created outside of this provider.
> **Note:** This resource needs PostgreSQL version 9 or above.
> **Note:** `GrantRole` **cannot** be used in conjunction with `Role` or they will fight over what your role grants should be.
## Usage
```go package main
import (
"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := postgresql.NewGrantRole(ctx, "grantRoot", &postgresql.GrantRoleArgs{ GrantRole: pulumi.String("application"), Role: pulumi.String("root"), WithAdminOption: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
```
func GetGrantRole ¶ added in v2.7.0
func GetGrantRole(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GrantRoleState, opts ...pulumi.ResourceOption) (*GrantRole, error)
GetGrantRole gets an existing GrantRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGrantRole ¶ added in v2.7.0
func NewGrantRole(ctx *pulumi.Context, name string, args *GrantRoleArgs, opts ...pulumi.ResourceOption) (*GrantRole, error)
NewGrantRole registers a new resource with the given unique name, arguments, and options.
func (*GrantRole) ElementType ¶ added in v2.7.0
func (*GrantRole) ToGrantRoleOutput ¶ added in v2.7.0
func (i *GrantRole) ToGrantRoleOutput() GrantRoleOutput
func (*GrantRole) ToGrantRoleOutputWithContext ¶ added in v2.7.0
func (i *GrantRole) ToGrantRoleOutputWithContext(ctx context.Context) GrantRoleOutput
func (*GrantRole) ToGrantRolePtrOutput ¶ added in v2.7.1
func (i *GrantRole) ToGrantRolePtrOutput() GrantRolePtrOutput
func (*GrantRole) ToGrantRolePtrOutputWithContext ¶ added in v2.7.1
func (i *GrantRole) ToGrantRolePtrOutputWithContext(ctx context.Context) GrantRolePtrOutput
type GrantRoleArgs ¶ added in v2.7.0
type GrantRoleArgs struct { // The name of the role that is added to `role`. GrantRole pulumi.StringInput // The name of the role that is granted a new membership. Role pulumi.StringInput // Giving ability to grant membership to others or not for `role`. (Default: false) WithAdminOption pulumi.BoolPtrInput }
The set of arguments for constructing a GrantRole resource.
func (GrantRoleArgs) ElementType ¶ added in v2.7.0
func (GrantRoleArgs) ElementType() reflect.Type
type GrantRoleArray ¶ added in v2.7.1
type GrantRoleArray []GrantRoleInput
func (GrantRoleArray) ElementType ¶ added in v2.7.1
func (GrantRoleArray) ElementType() reflect.Type
func (GrantRoleArray) ToGrantRoleArrayOutput ¶ added in v2.7.1
func (i GrantRoleArray) ToGrantRoleArrayOutput() GrantRoleArrayOutput
func (GrantRoleArray) ToGrantRoleArrayOutputWithContext ¶ added in v2.7.1
func (i GrantRoleArray) ToGrantRoleArrayOutputWithContext(ctx context.Context) GrantRoleArrayOutput
type GrantRoleArrayInput ¶ added in v2.7.1
type GrantRoleArrayInput interface { pulumi.Input ToGrantRoleArrayOutput() GrantRoleArrayOutput ToGrantRoleArrayOutputWithContext(context.Context) GrantRoleArrayOutput }
GrantRoleArrayInput is an input type that accepts GrantRoleArray and GrantRoleArrayOutput values. You can construct a concrete instance of `GrantRoleArrayInput` via:
GrantRoleArray{ GrantRoleArgs{...} }
type GrantRoleArrayOutput ¶ added in v2.7.1
type GrantRoleArrayOutput struct{ *pulumi.OutputState }
func (GrantRoleArrayOutput) ElementType ¶ added in v2.7.1
func (GrantRoleArrayOutput) ElementType() reflect.Type
func (GrantRoleArrayOutput) Index ¶ added in v2.7.1
func (o GrantRoleArrayOutput) Index(i pulumi.IntInput) GrantRoleOutput
func (GrantRoleArrayOutput) ToGrantRoleArrayOutput ¶ added in v2.7.1
func (o GrantRoleArrayOutput) ToGrantRoleArrayOutput() GrantRoleArrayOutput
func (GrantRoleArrayOutput) ToGrantRoleArrayOutputWithContext ¶ added in v2.7.1
func (o GrantRoleArrayOutput) ToGrantRoleArrayOutputWithContext(ctx context.Context) GrantRoleArrayOutput
type GrantRoleInput ¶ added in v2.7.0
type GrantRoleInput interface { pulumi.Input ToGrantRoleOutput() GrantRoleOutput ToGrantRoleOutputWithContext(ctx context.Context) GrantRoleOutput }
type GrantRoleMap ¶ added in v2.7.1
type GrantRoleMap map[string]GrantRoleInput
func (GrantRoleMap) ElementType ¶ added in v2.7.1
func (GrantRoleMap) ElementType() reflect.Type
func (GrantRoleMap) ToGrantRoleMapOutput ¶ added in v2.7.1
func (i GrantRoleMap) ToGrantRoleMapOutput() GrantRoleMapOutput
func (GrantRoleMap) ToGrantRoleMapOutputWithContext ¶ added in v2.7.1
func (i GrantRoleMap) ToGrantRoleMapOutputWithContext(ctx context.Context) GrantRoleMapOutput
type GrantRoleMapInput ¶ added in v2.7.1
type GrantRoleMapInput interface { pulumi.Input ToGrantRoleMapOutput() GrantRoleMapOutput ToGrantRoleMapOutputWithContext(context.Context) GrantRoleMapOutput }
GrantRoleMapInput is an input type that accepts GrantRoleMap and GrantRoleMapOutput values. You can construct a concrete instance of `GrantRoleMapInput` via:
GrantRoleMap{ "key": GrantRoleArgs{...} }
type GrantRoleMapOutput ¶ added in v2.7.1
type GrantRoleMapOutput struct{ *pulumi.OutputState }
func (GrantRoleMapOutput) ElementType ¶ added in v2.7.1
func (GrantRoleMapOutput) ElementType() reflect.Type
func (GrantRoleMapOutput) MapIndex ¶ added in v2.7.1
func (o GrantRoleMapOutput) MapIndex(k pulumi.StringInput) GrantRoleOutput
func (GrantRoleMapOutput) ToGrantRoleMapOutput ¶ added in v2.7.1
func (o GrantRoleMapOutput) ToGrantRoleMapOutput() GrantRoleMapOutput
func (GrantRoleMapOutput) ToGrantRoleMapOutputWithContext ¶ added in v2.7.1
func (o GrantRoleMapOutput) ToGrantRoleMapOutputWithContext(ctx context.Context) GrantRoleMapOutput
type GrantRoleOutput ¶ added in v2.7.0
type GrantRoleOutput struct {
*pulumi.OutputState
}
func (GrantRoleOutput) ElementType ¶ added in v2.7.0
func (GrantRoleOutput) ElementType() reflect.Type
func (GrantRoleOutput) ToGrantRoleOutput ¶ added in v2.7.0
func (o GrantRoleOutput) ToGrantRoleOutput() GrantRoleOutput
func (GrantRoleOutput) ToGrantRoleOutputWithContext ¶ added in v2.7.0
func (o GrantRoleOutput) ToGrantRoleOutputWithContext(ctx context.Context) GrantRoleOutput
func (GrantRoleOutput) ToGrantRolePtrOutput ¶ added in v2.7.1
func (o GrantRoleOutput) ToGrantRolePtrOutput() GrantRolePtrOutput
func (GrantRoleOutput) ToGrantRolePtrOutputWithContext ¶ added in v2.7.1
func (o GrantRoleOutput) ToGrantRolePtrOutputWithContext(ctx context.Context) GrantRolePtrOutput
type GrantRolePtrInput ¶ added in v2.7.1
type GrantRolePtrInput interface { pulumi.Input ToGrantRolePtrOutput() GrantRolePtrOutput ToGrantRolePtrOutputWithContext(ctx context.Context) GrantRolePtrOutput }
type GrantRolePtrOutput ¶ added in v2.7.1
type GrantRolePtrOutput struct {
*pulumi.OutputState
}
func (GrantRolePtrOutput) ElementType ¶ added in v2.7.1
func (GrantRolePtrOutput) ElementType() reflect.Type
func (GrantRolePtrOutput) ToGrantRolePtrOutput ¶ added in v2.7.1
func (o GrantRolePtrOutput) ToGrantRolePtrOutput() GrantRolePtrOutput
func (GrantRolePtrOutput) ToGrantRolePtrOutputWithContext ¶ added in v2.7.1
func (o GrantRolePtrOutput) ToGrantRolePtrOutputWithContext(ctx context.Context) GrantRolePtrOutput
type GrantRoleState ¶ added in v2.7.0
type GrantRoleState struct { // The name of the role that is added to `role`. GrantRole pulumi.StringPtrInput // The name of the role that is granted a new membership. Role pulumi.StringPtrInput // Giving ability to grant membership to others or not for `role`. (Default: false) WithAdminOption pulumi.BoolPtrInput }
func (GrantRoleState) ElementType ¶ added in v2.7.0
func (GrantRoleState) ElementType() reflect.Type
type GrantState ¶
type GrantState struct { // The database to grant privileges on for this role. Database pulumi.StringPtrInput // The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence,function). ObjectType pulumi.StringPtrInput // 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. Privileges pulumi.StringArrayInput // The name of the role to grant privileges on, Set it to "public" for all roles. Role pulumi.StringPtrInput // The database schema to grant privileges on for this role (Required except if objectType is "database") Schema pulumi.StringPtrInput // Permit the grant recipient to grant it to others WithGrantOption pulumi.BoolPtrInput }
func (GrantState) ElementType ¶
func (GrantState) ElementType() reflect.Type
type Provider ¶
type Provider struct {
pulumi.ProviderResourceState
}
The provider type for the postgresql package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶ added in v2.5.2
func (*Provider) ToProviderOutput ¶ added in v2.5.2
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶ added in v2.5.2
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
func (*Provider) ToProviderPtrOutput ¶ added in v2.7.1
func (i *Provider) ToProviderPtrOutput() ProviderPtrOutput
func (*Provider) ToProviderPtrOutputWithContext ¶ added in v2.7.1
func (i *Provider) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput
type ProviderArgs ¶
type ProviderArgs struct { // SSL client certificate if required by the database. Clientcert ProviderClientcertPtrInput // Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely. ConnectTimeout pulumi.IntPtrInput // The name of the database to connect to in order to conenct to (defaults to `postgres`). Database pulumi.StringPtrInput // Database username associated to the connected user (for user name maps) DatabaseUsername pulumi.StringPtrInput // Specify the expected version of PostgreSQL. ExpectedVersion pulumi.StringPtrInput // Name of PostgreSQL server address to connect to Host pulumi.StringPtrInput // Maximum number of connections to establish to the database. Zero means unlimited. MaxConnections pulumi.IntPtrInput // Password to be used if the PostgreSQL server demands password authentication Password pulumi.StringPtrInput // The PostgreSQL port number to connect to at the server host, or socket file name extension for Unix-domain connections Port pulumi.IntPtrInput Scheme pulumi.StringPtrInput // Deprecated: Rename PostgreSQL provider `ssl_mode` attribute to `sslmode` SslMode pulumi.StringPtrInput // This option determines whether or with what priority a secure SSL TCP/IP connection will be negotiated with the // PostgreSQL server Sslmode pulumi.StringPtrInput // The SSL server root certificate file path. The file must contain PEM encoded data. Sslrootcert pulumi.StringPtrInput // Specify if the user to connect as is a Postgres superuser or not.If not, some feature might be disabled (e.g.: // Refreshing state password from Postgres) Superuser pulumi.BoolPtrInput // PostgreSQL user name to connect as Username pulumi.StringPtrInput }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderClientcert ¶ added in v2.2.0
type ProviderClientcertArgs ¶ added in v2.2.0
type ProviderClientcertArgs struct { Cert pulumi.StringInput `pulumi:"cert"` Key pulumi.StringInput `pulumi:"key"` }
func (ProviderClientcertArgs) ElementType ¶ added in v2.2.0
func (ProviderClientcertArgs) ElementType() reflect.Type
func (ProviderClientcertArgs) ToProviderClientcertOutput ¶ added in v2.2.0
func (i ProviderClientcertArgs) ToProviderClientcertOutput() ProviderClientcertOutput
func (ProviderClientcertArgs) ToProviderClientcertOutputWithContext ¶ added in v2.2.0
func (i ProviderClientcertArgs) ToProviderClientcertOutputWithContext(ctx context.Context) ProviderClientcertOutput
func (ProviderClientcertArgs) ToProviderClientcertPtrOutput ¶ added in v2.2.0
func (i ProviderClientcertArgs) ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput
func (ProviderClientcertArgs) ToProviderClientcertPtrOutputWithContext ¶ added in v2.2.0
func (i ProviderClientcertArgs) ToProviderClientcertPtrOutputWithContext(ctx context.Context) ProviderClientcertPtrOutput
type ProviderClientcertInput ¶ added in v2.2.0
type ProviderClientcertInput interface { pulumi.Input ToProviderClientcertOutput() ProviderClientcertOutput ToProviderClientcertOutputWithContext(context.Context) ProviderClientcertOutput }
ProviderClientcertInput is an input type that accepts ProviderClientcertArgs and ProviderClientcertOutput values. You can construct a concrete instance of `ProviderClientcertInput` via:
ProviderClientcertArgs{...}
type ProviderClientcertOutput ¶ added in v2.2.0
type ProviderClientcertOutput struct{ *pulumi.OutputState }
func (ProviderClientcertOutput) Cert ¶ added in v2.2.0
func (o ProviderClientcertOutput) Cert() pulumi.StringOutput
func (ProviderClientcertOutput) ElementType ¶ added in v2.2.0
func (ProviderClientcertOutput) ElementType() reflect.Type
func (ProviderClientcertOutput) Key ¶ added in v2.2.0
func (o ProviderClientcertOutput) Key() pulumi.StringOutput
func (ProviderClientcertOutput) ToProviderClientcertOutput ¶ added in v2.2.0
func (o ProviderClientcertOutput) ToProviderClientcertOutput() ProviderClientcertOutput
func (ProviderClientcertOutput) ToProviderClientcertOutputWithContext ¶ added in v2.2.0
func (o ProviderClientcertOutput) ToProviderClientcertOutputWithContext(ctx context.Context) ProviderClientcertOutput
func (ProviderClientcertOutput) ToProviderClientcertPtrOutput ¶ added in v2.2.0
func (o ProviderClientcertOutput) ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput
func (ProviderClientcertOutput) ToProviderClientcertPtrOutputWithContext ¶ added in v2.2.0
func (o ProviderClientcertOutput) ToProviderClientcertPtrOutputWithContext(ctx context.Context) ProviderClientcertPtrOutput
type ProviderClientcertPtrInput ¶ added in v2.2.0
type ProviderClientcertPtrInput interface { pulumi.Input ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput ToProviderClientcertPtrOutputWithContext(context.Context) ProviderClientcertPtrOutput }
ProviderClientcertPtrInput is an input type that accepts ProviderClientcertArgs, ProviderClientcertPtr and ProviderClientcertPtrOutput values. You can construct a concrete instance of `ProviderClientcertPtrInput` via:
ProviderClientcertArgs{...} or: nil
func ProviderClientcertPtr ¶ added in v2.2.0
func ProviderClientcertPtr(v *ProviderClientcertArgs) ProviderClientcertPtrInput
type ProviderClientcertPtrOutput ¶ added in v2.2.0
type ProviderClientcertPtrOutput struct{ *pulumi.OutputState }
func (ProviderClientcertPtrOutput) Cert ¶ added in v2.2.0
func (o ProviderClientcertPtrOutput) Cert() pulumi.StringPtrOutput
func (ProviderClientcertPtrOutput) Elem ¶ added in v2.2.0
func (o ProviderClientcertPtrOutput) Elem() ProviderClientcertOutput
func (ProviderClientcertPtrOutput) ElementType ¶ added in v2.2.0
func (ProviderClientcertPtrOutput) ElementType() reflect.Type
func (ProviderClientcertPtrOutput) Key ¶ added in v2.2.0
func (o ProviderClientcertPtrOutput) Key() pulumi.StringPtrOutput
func (ProviderClientcertPtrOutput) ToProviderClientcertPtrOutput ¶ added in v2.2.0
func (o ProviderClientcertPtrOutput) ToProviderClientcertPtrOutput() ProviderClientcertPtrOutput
func (ProviderClientcertPtrOutput) ToProviderClientcertPtrOutputWithContext ¶ added in v2.2.0
func (o ProviderClientcertPtrOutput) ToProviderClientcertPtrOutputWithContext(ctx context.Context) ProviderClientcertPtrOutput
type ProviderInput ¶ added in v2.5.2
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶ added in v2.5.2
type ProviderOutput struct {
*pulumi.OutputState
}
func (ProviderOutput) ElementType ¶ added in v2.5.2
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) ToProviderOutput ¶ added in v2.5.2
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶ added in v2.5.2
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
func (ProviderOutput) ToProviderPtrOutput ¶ added in v2.7.1
func (o ProviderOutput) ToProviderPtrOutput() ProviderPtrOutput
func (ProviderOutput) ToProviderPtrOutputWithContext ¶ added in v2.7.1
func (o ProviderOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput
type ProviderPtrInput ¶ added in v2.7.1
type ProviderPtrInput interface { pulumi.Input ToProviderPtrOutput() ProviderPtrOutput ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput }
type ProviderPtrOutput ¶ added in v2.7.1
type ProviderPtrOutput struct {
*pulumi.OutputState
}
func (ProviderPtrOutput) ElementType ¶ added in v2.7.1
func (ProviderPtrOutput) ElementType() reflect.Type
func (ProviderPtrOutput) ToProviderPtrOutput ¶ added in v2.7.1
func (o ProviderPtrOutput) ToProviderPtrOutput() ProviderPtrOutput
func (ProviderPtrOutput) ToProviderPtrOutputWithContext ¶ added in v2.7.1
func (o ProviderPtrOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput
type Role ¶
type Role struct { pulumi.CustomResourceState // Defines whether a role bypasses every // row-level security (RLS) policy. Default value is `false`. BypassRowLevelSecurity pulumi.BoolPtrOutput `pulumi:"bypassRowLevelSecurity"` // If this role can log in, this specifies how // many concurrent connections the role can establish. `-1` (the default) means no // limit. ConnectionLimit pulumi.IntPtrOutput `pulumi:"connectionLimit"` // Defines a role's ability to execute `CREATE // DATABASE`. Default value is `false`. CreateDatabase pulumi.BoolPtrOutput `pulumi:"createDatabase"` // Defines a role's ability to execute `CREATE ROLE`. // A role with this privilege can also alter and drop other roles. Default value // is `false`. CreateRole pulumi.BoolPtrOutput `pulumi:"createRole"` // Deprecated: Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password" Encrypted pulumi.StringPtrOutput `pulumi:"encrypted"` // Defines whether the password is stored // encrypted in the system catalogs. Default value is `true`. NOTE: this value // is always set (to the conservative and safe value), but may interfere with the // behavior of // [PostgreSQL's `passwordEncryption` setting](https://www.postgresql.org/docs/current/static/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION). EncryptedPassword pulumi.BoolPtrOutput `pulumi:"encryptedPassword"` // Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds IdleInTransactionSessionTimeout pulumi.IntPtrOutput `pulumi:"idleInTransactionSessionTimeout"` // Defines whether a role "inherits" the privileges of // roles it is a member of. Default value is `true`. Inherit pulumi.BoolPtrOutput `pulumi:"inherit"` // Defines whether role is allowed to log in. Roles without // this attribute are useful for managing database privileges, but are not users // in the usual sense of the word. Default value is `false`. Login pulumi.BoolPtrOutput `pulumi:"login"` // The name of the role. Must be unique on the PostgreSQL // server instance where it is configured. Name pulumi.StringOutput `pulumi:"name"` // Sets the role's password. A password is only of use // for roles having the `login` attribute set to true. Password pulumi.StringPtrOutput `pulumi:"password"` // Defines whether a role is allowed to initiate // streaming replication or put the system in and out of backup mode. Default // value is `false` Replication pulumi.BoolPtrOutput `pulumi:"replication"` // Defines list of roles which will be granted to this new role. Roles pulumi.StringArrayOutput `pulumi:"roles"` // Alters the search path of this new role. Note that // due to limitations in the implementation, values cannot contain the substring // `", "`. SearchPaths pulumi.StringArrayOutput `pulumi:"searchPaths"` // When a PostgreSQL ROLE exists in multiple // databases and the ROLE is dropped, the // [cleanup of ownership of objects](https://www.postgresql.org/docs/current/static/role-removal.html) // in each of the respective databases must occur before the ROLE can be dropped // from the catalog. Set this option to true when there are multiple databases // in a PostgreSQL cluster using the same PostgreSQL ROLE for object ownership. // This is the third and final step taken when removing a ROLE from a database. SkipDropRole pulumi.BoolPtrOutput `pulumi:"skipDropRole"` // When a PostgreSQL ROLE exists in multiple // databases and the ROLE is dropped, a // [`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in // must be executed on each of the respective databases before the `DROP ROLE` // can be executed to dropped the ROLE from the catalog. This is the first and // second steps taken when removing a ROLE from a database (the second step being // an implicit // [`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)). SkipReassignOwned pulumi.BoolPtrOutput `pulumi:"skipReassignOwned"` // Defines [`statementTimeout`](https://www.postgresql.org/docs/current/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-STATEMENT) setting for this role which allows to abort any statement that takes more than the specified amount of time. StatementTimeout pulumi.IntPtrOutput `pulumi:"statementTimeout"` // Defines whether the role is a "superuser", and // therefore can override all access restrictions within the database. Default // value is `false`. Superuser pulumi.BoolPtrOutput `pulumi:"superuser"` // Defines the date and time after which the role's // password is no longer valid. Established connections past this `validTime` // will have to be manually terminated. This value corresponds to a PostgreSQL // datetime. If omitted or the magic value `NULL` is used, `validUntil` will be // set to `infinity`. Default is `NULL`, therefore `infinity`. ValidUntil pulumi.StringPtrOutput `pulumi:"validUntil"` }
func GetRole ¶
func GetRole(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)
GetRole gets an existing Role resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRole ¶
func NewRole(ctx *pulumi.Context, name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)
NewRole registers a new resource with the given unique name, arguments, and options.
func (*Role) ElementType ¶ added in v2.5.2
func (*Role) ToRoleOutput ¶ added in v2.5.2
func (i *Role) ToRoleOutput() RoleOutput
func (*Role) ToRoleOutputWithContext ¶ added in v2.5.2
func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput
func (*Role) ToRolePtrOutput ¶ added in v2.7.1
func (i *Role) ToRolePtrOutput() RolePtrOutput
func (*Role) ToRolePtrOutputWithContext ¶ added in v2.7.1
func (i *Role) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
type RoleArgs ¶
type RoleArgs struct { // Defines whether a role bypasses every // row-level security (RLS) policy. Default value is `false`. BypassRowLevelSecurity pulumi.BoolPtrInput // If this role can log in, this specifies how // many concurrent connections the role can establish. `-1` (the default) means no // limit. ConnectionLimit pulumi.IntPtrInput // Defines a role's ability to execute `CREATE // DATABASE`. Default value is `false`. CreateDatabase pulumi.BoolPtrInput // Defines a role's ability to execute `CREATE ROLE`. // A role with this privilege can also alter and drop other roles. Default value // is `false`. CreateRole pulumi.BoolPtrInput // Deprecated: Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password" Encrypted pulumi.StringPtrInput // Defines whether the password is stored // encrypted in the system catalogs. Default value is `true`. NOTE: this value // is always set (to the conservative and safe value), but may interfere with the // behavior of // [PostgreSQL's `passwordEncryption` setting](https://www.postgresql.org/docs/current/static/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION). EncryptedPassword pulumi.BoolPtrInput // Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds IdleInTransactionSessionTimeout pulumi.IntPtrInput // Defines whether a role "inherits" the privileges of // roles it is a member of. Default value is `true`. Inherit pulumi.BoolPtrInput // Defines whether role is allowed to log in. Roles without // this attribute are useful for managing database privileges, but are not users // in the usual sense of the word. Default value is `false`. Login pulumi.BoolPtrInput // The name of the role. Must be unique on the PostgreSQL // server instance where it is configured. Name pulumi.StringPtrInput // Sets the role's password. A password is only of use // for roles having the `login` attribute set to true. Password pulumi.StringPtrInput // Defines whether a role is allowed to initiate // streaming replication or put the system in and out of backup mode. Default // value is `false` Replication pulumi.BoolPtrInput // Defines list of roles which will be granted to this new role. Roles pulumi.StringArrayInput // Alters the search path of this new role. Note that // due to limitations in the implementation, values cannot contain the substring // `", "`. SearchPaths pulumi.StringArrayInput // When a PostgreSQL ROLE exists in multiple // databases and the ROLE is dropped, the // [cleanup of ownership of objects](https://www.postgresql.org/docs/current/static/role-removal.html) // in each of the respective databases must occur before the ROLE can be dropped // from the catalog. Set this option to true when there are multiple databases // in a PostgreSQL cluster using the same PostgreSQL ROLE for object ownership. // This is the third and final step taken when removing a ROLE from a database. SkipDropRole pulumi.BoolPtrInput // When a PostgreSQL ROLE exists in multiple // databases and the ROLE is dropped, a // [`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in // must be executed on each of the respective databases before the `DROP ROLE` // can be executed to dropped the ROLE from the catalog. This is the first and // second steps taken when removing a ROLE from a database (the second step being // an implicit // [`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)). SkipReassignOwned pulumi.BoolPtrInput // Defines [`statementTimeout`](https://www.postgresql.org/docs/current/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-STATEMENT) setting for this role which allows to abort any statement that takes more than the specified amount of time. StatementTimeout pulumi.IntPtrInput // Defines whether the role is a "superuser", and // therefore can override all access restrictions within the database. Default // value is `false`. Superuser pulumi.BoolPtrInput // Defines the date and time after which the role's // password is no longer valid. Established connections past this `validTime` // will have to be manually terminated. This value corresponds to a PostgreSQL // datetime. If omitted or the magic value `NULL` is used, `validUntil` will be // set to `infinity`. Default is `NULL`, therefore `infinity`. ValidUntil pulumi.StringPtrInput }
The set of arguments for constructing a Role resource.
func (RoleArgs) ElementType ¶
type RoleArray ¶ added in v2.7.1
type RoleArray []RoleInput
func (RoleArray) ElementType ¶ added in v2.7.1
func (RoleArray) ToRoleArrayOutput ¶ added in v2.7.1
func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput
func (RoleArray) ToRoleArrayOutputWithContext ¶ added in v2.7.1
func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleArrayInput ¶ added in v2.7.1
type RoleArrayInput interface { pulumi.Input ToRoleArrayOutput() RoleArrayOutput ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput }
RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:
RoleArray{ RoleArgs{...} }
type RoleArrayOutput ¶ added in v2.7.1
type RoleArrayOutput struct{ *pulumi.OutputState }
func (RoleArrayOutput) ElementType ¶ added in v2.7.1
func (RoleArrayOutput) ElementType() reflect.Type
func (RoleArrayOutput) Index ¶ added in v2.7.1
func (o RoleArrayOutput) Index(i pulumi.IntInput) RoleOutput
func (RoleArrayOutput) ToRoleArrayOutput ¶ added in v2.7.1
func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput
func (RoleArrayOutput) ToRoleArrayOutputWithContext ¶ added in v2.7.1
func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleInput ¶ added in v2.5.2
type RoleInput interface { pulumi.Input ToRoleOutput() RoleOutput ToRoleOutputWithContext(ctx context.Context) RoleOutput }
type RoleMap ¶ added in v2.7.1
func (RoleMap) ElementType ¶ added in v2.7.1
func (RoleMap) ToRoleMapOutput ¶ added in v2.7.1
func (i RoleMap) ToRoleMapOutput() RoleMapOutput
func (RoleMap) ToRoleMapOutputWithContext ¶ added in v2.7.1
func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleMapInput ¶ added in v2.7.1
type RoleMapInput interface { pulumi.Input ToRoleMapOutput() RoleMapOutput ToRoleMapOutputWithContext(context.Context) RoleMapOutput }
RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:
RoleMap{ "key": RoleArgs{...} }
type RoleMapOutput ¶ added in v2.7.1
type RoleMapOutput struct{ *pulumi.OutputState }
func (RoleMapOutput) ElementType ¶ added in v2.7.1
func (RoleMapOutput) ElementType() reflect.Type
func (RoleMapOutput) MapIndex ¶ added in v2.7.1
func (o RoleMapOutput) MapIndex(k pulumi.StringInput) RoleOutput
func (RoleMapOutput) ToRoleMapOutput ¶ added in v2.7.1
func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput
func (RoleMapOutput) ToRoleMapOutputWithContext ¶ added in v2.7.1
func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleOutput ¶ added in v2.5.2
type RoleOutput struct {
*pulumi.OutputState
}
func (RoleOutput) ElementType ¶ added in v2.5.2
func (RoleOutput) ElementType() reflect.Type
func (RoleOutput) ToRoleOutput ¶ added in v2.5.2
func (o RoleOutput) ToRoleOutput() RoleOutput
func (RoleOutput) ToRoleOutputWithContext ¶ added in v2.5.2
func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
func (RoleOutput) ToRolePtrOutput ¶ added in v2.7.1
func (o RoleOutput) ToRolePtrOutput() RolePtrOutput
func (RoleOutput) ToRolePtrOutputWithContext ¶ added in v2.7.1
func (o RoleOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
type RolePtrInput ¶ added in v2.7.1
type RolePtrInput interface { pulumi.Input ToRolePtrOutput() RolePtrOutput ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput }
type RolePtrOutput ¶ added in v2.7.1
type RolePtrOutput struct {
*pulumi.OutputState
}
func (RolePtrOutput) ElementType ¶ added in v2.7.1
func (RolePtrOutput) ElementType() reflect.Type
func (RolePtrOutput) ToRolePtrOutput ¶ added in v2.7.1
func (o RolePtrOutput) ToRolePtrOutput() RolePtrOutput
func (RolePtrOutput) ToRolePtrOutputWithContext ¶ added in v2.7.1
func (o RolePtrOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
type RoleState ¶
type RoleState struct { // Defines whether a role bypasses every // row-level security (RLS) policy. Default value is `false`. BypassRowLevelSecurity pulumi.BoolPtrInput // If this role can log in, this specifies how // many concurrent connections the role can establish. `-1` (the default) means no // limit. ConnectionLimit pulumi.IntPtrInput // Defines a role's ability to execute `CREATE // DATABASE`. Default value is `false`. CreateDatabase pulumi.BoolPtrInput // Defines a role's ability to execute `CREATE ROLE`. // A role with this privilege can also alter and drop other roles. Default value // is `false`. CreateRole pulumi.BoolPtrInput // Deprecated: Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password" Encrypted pulumi.StringPtrInput // Defines whether the password is stored // encrypted in the system catalogs. Default value is `true`. NOTE: this value // is always set (to the conservative and safe value), but may interfere with the // behavior of // [PostgreSQL's `passwordEncryption` setting](https://www.postgresql.org/docs/current/static/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION). EncryptedPassword pulumi.BoolPtrInput // Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds IdleInTransactionSessionTimeout pulumi.IntPtrInput // Defines whether a role "inherits" the privileges of // roles it is a member of. Default value is `true`. Inherit pulumi.BoolPtrInput // Defines whether role is allowed to log in. Roles without // this attribute are useful for managing database privileges, but are not users // in the usual sense of the word. Default value is `false`. Login pulumi.BoolPtrInput // The name of the role. Must be unique on the PostgreSQL // server instance where it is configured. Name pulumi.StringPtrInput // Sets the role's password. A password is only of use // for roles having the `login` attribute set to true. Password pulumi.StringPtrInput // Defines whether a role is allowed to initiate // streaming replication or put the system in and out of backup mode. Default // value is `false` Replication pulumi.BoolPtrInput // Defines list of roles which will be granted to this new role. Roles pulumi.StringArrayInput // Alters the search path of this new role. Note that // due to limitations in the implementation, values cannot contain the substring // `", "`. SearchPaths pulumi.StringArrayInput // When a PostgreSQL ROLE exists in multiple // databases and the ROLE is dropped, the // [cleanup of ownership of objects](https://www.postgresql.org/docs/current/static/role-removal.html) // in each of the respective databases must occur before the ROLE can be dropped // from the catalog. Set this option to true when there are multiple databases // in a PostgreSQL cluster using the same PostgreSQL ROLE for object ownership. // This is the third and final step taken when removing a ROLE from a database. SkipDropRole pulumi.BoolPtrInput // When a PostgreSQL ROLE exists in multiple // databases and the ROLE is dropped, a // [`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in // must be executed on each of the respective databases before the `DROP ROLE` // can be executed to dropped the ROLE from the catalog. This is the first and // second steps taken when removing a ROLE from a database (the second step being // an implicit // [`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)). SkipReassignOwned pulumi.BoolPtrInput // Defines [`statementTimeout`](https://www.postgresql.org/docs/current/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-STATEMENT) setting for this role which allows to abort any statement that takes more than the specified amount of time. StatementTimeout pulumi.IntPtrInput // Defines whether the role is a "superuser", and // therefore can override all access restrictions within the database. Default // value is `false`. Superuser pulumi.BoolPtrInput // Defines the date and time after which the role's // password is no longer valid. Established connections past this `validTime` // will have to be manually terminated. This value corresponds to a PostgreSQL // datetime. If omitted or the magic value `NULL` is used, `validUntil` will be // set to `infinity`. Default is `NULL`, therefore `infinity`. ValidUntil pulumi.StringPtrInput }
func (RoleState) ElementType ¶
type Schema ¶
type Schema struct { pulumi.CustomResourceState // The DATABASE in which where this schema will be created. (Default: The database used by your `provider` configuration) Database pulumi.StringOutput `pulumi:"database"` // When true, will also drop all the objects that are contained in the schema. (Default: false) DropCascade pulumi.BoolPtrOutput `pulumi:"dropCascade"` // When true, use the existing schema if it exists. (Default: true) IfNotExists pulumi.BoolPtrOutput `pulumi:"ifNotExists"` // The name of the schema. Must be unique in the PostgreSQL // database instance where it is configured. Name pulumi.StringOutput `pulumi:"name"` // The ROLE who owns the schema. Owner pulumi.StringOutput `pulumi:"owner"` // Can be specified multiple times for each policy. Each // policy block supports fields documented below. // // Deprecated: Use postgresql_grant resource instead (with object_type="schema") Policies SchemaPolicyArrayOutput `pulumi:"policies"` }
func GetSchema ¶
func GetSchema(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SchemaState, opts ...pulumi.ResourceOption) (*Schema, error)
GetSchema gets an existing Schema resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSchema ¶
func NewSchema(ctx *pulumi.Context, name string, args *SchemaArgs, opts ...pulumi.ResourceOption) (*Schema, error)
NewSchema registers a new resource with the given unique name, arguments, and options.
func (*Schema) ElementType ¶ added in v2.5.2
func (*Schema) ToSchemaOutput ¶ added in v2.5.2
func (i *Schema) ToSchemaOutput() SchemaOutput
func (*Schema) ToSchemaOutputWithContext ¶ added in v2.5.2
func (i *Schema) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput
func (*Schema) ToSchemaPtrOutput ¶ added in v2.7.1
func (i *Schema) ToSchemaPtrOutput() SchemaPtrOutput
func (*Schema) ToSchemaPtrOutputWithContext ¶ added in v2.7.1
func (i *Schema) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput
type SchemaArgs ¶
type SchemaArgs struct { // The DATABASE in which where this schema will be created. (Default: The database used by your `provider` configuration) Database pulumi.StringPtrInput // When true, will also drop all the objects that are contained in the schema. (Default: false) DropCascade pulumi.BoolPtrInput // When true, use the existing schema if it exists. (Default: true) IfNotExists pulumi.BoolPtrInput // The name of the schema. Must be unique in the PostgreSQL // database instance where it is configured. Name pulumi.StringPtrInput // The ROLE who owns the schema. Owner pulumi.StringPtrInput // Can be specified multiple times for each policy. Each // policy block supports fields documented below. // // Deprecated: Use postgresql_grant resource instead (with object_type="schema") Policies SchemaPolicyArrayInput }
The set of arguments for constructing a Schema resource.
func (SchemaArgs) ElementType ¶
func (SchemaArgs) ElementType() reflect.Type
type SchemaArray ¶ added in v2.7.1
type SchemaArray []SchemaInput
func (SchemaArray) ElementType ¶ added in v2.7.1
func (SchemaArray) ElementType() reflect.Type
func (SchemaArray) ToSchemaArrayOutput ¶ added in v2.7.1
func (i SchemaArray) ToSchemaArrayOutput() SchemaArrayOutput
func (SchemaArray) ToSchemaArrayOutputWithContext ¶ added in v2.7.1
func (i SchemaArray) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput
type SchemaArrayInput ¶ added in v2.7.1
type SchemaArrayInput interface { pulumi.Input ToSchemaArrayOutput() SchemaArrayOutput ToSchemaArrayOutputWithContext(context.Context) SchemaArrayOutput }
SchemaArrayInput is an input type that accepts SchemaArray and SchemaArrayOutput values. You can construct a concrete instance of `SchemaArrayInput` via:
SchemaArray{ SchemaArgs{...} }
type SchemaArrayOutput ¶ added in v2.7.1
type SchemaArrayOutput struct{ *pulumi.OutputState }
func (SchemaArrayOutput) ElementType ¶ added in v2.7.1
func (SchemaArrayOutput) ElementType() reflect.Type
func (SchemaArrayOutput) Index ¶ added in v2.7.1
func (o SchemaArrayOutput) Index(i pulumi.IntInput) SchemaOutput
func (SchemaArrayOutput) ToSchemaArrayOutput ¶ added in v2.7.1
func (o SchemaArrayOutput) ToSchemaArrayOutput() SchemaArrayOutput
func (SchemaArrayOutput) ToSchemaArrayOutputWithContext ¶ added in v2.7.1
func (o SchemaArrayOutput) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput
type SchemaInput ¶ added in v2.5.2
type SchemaInput interface { pulumi.Input ToSchemaOutput() SchemaOutput ToSchemaOutputWithContext(ctx context.Context) SchemaOutput }
type SchemaMap ¶ added in v2.7.1
type SchemaMap map[string]SchemaInput
func (SchemaMap) ElementType ¶ added in v2.7.1
func (SchemaMap) ToSchemaMapOutput ¶ added in v2.7.1
func (i SchemaMap) ToSchemaMapOutput() SchemaMapOutput
func (SchemaMap) ToSchemaMapOutputWithContext ¶ added in v2.7.1
func (i SchemaMap) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOutput
type SchemaMapInput ¶ added in v2.7.1
type SchemaMapInput interface { pulumi.Input ToSchemaMapOutput() SchemaMapOutput ToSchemaMapOutputWithContext(context.Context) SchemaMapOutput }
SchemaMapInput is an input type that accepts SchemaMap and SchemaMapOutput values. You can construct a concrete instance of `SchemaMapInput` via:
SchemaMap{ "key": SchemaArgs{...} }
type SchemaMapOutput ¶ added in v2.7.1
type SchemaMapOutput struct{ *pulumi.OutputState }
func (SchemaMapOutput) ElementType ¶ added in v2.7.1
func (SchemaMapOutput) ElementType() reflect.Type
func (SchemaMapOutput) MapIndex ¶ added in v2.7.1
func (o SchemaMapOutput) MapIndex(k pulumi.StringInput) SchemaOutput
func (SchemaMapOutput) ToSchemaMapOutput ¶ added in v2.7.1
func (o SchemaMapOutput) ToSchemaMapOutput() SchemaMapOutput
func (SchemaMapOutput) ToSchemaMapOutputWithContext ¶ added in v2.7.1
func (o SchemaMapOutput) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOutput
type SchemaOutput ¶ added in v2.5.2
type SchemaOutput struct {
*pulumi.OutputState
}
func (SchemaOutput) ElementType ¶ added in v2.5.2
func (SchemaOutput) ElementType() reflect.Type
func (SchemaOutput) ToSchemaOutput ¶ added in v2.5.2
func (o SchemaOutput) ToSchemaOutput() SchemaOutput
func (SchemaOutput) ToSchemaOutputWithContext ¶ added in v2.5.2
func (o SchemaOutput) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput
func (SchemaOutput) ToSchemaPtrOutput ¶ added in v2.7.1
func (o SchemaOutput) ToSchemaPtrOutput() SchemaPtrOutput
func (SchemaOutput) ToSchemaPtrOutputWithContext ¶ added in v2.7.1
func (o SchemaOutput) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput
type SchemaPolicy ¶
type SchemaPolicy struct { // Should the specified ROLE have CREATE privileges to the specified SCHEMA. Create *bool `pulumi:"create"` // Should the specified ROLE have CREATE privileges to the specified SCHEMA and the ability to GRANT the CREATE privilege to other ROLEs. CreateWithGrant *bool `pulumi:"createWithGrant"` // The ROLE who is receiving the policy. If this value is empty or not specified it implies the policy is referring to the [`PUBLIC` role](https://www.postgresql.org/docs/current/static/sql-grant.html). Role *string `pulumi:"role"` // Should the specified ROLE have USAGE privileges to the specified SCHEMA. Usage *bool `pulumi:"usage"` // Should the specified ROLE have USAGE privileges to the specified SCHEMA and the ability to GRANT the USAGE privilege to other ROLEs. UsageWithGrant *bool `pulumi:"usageWithGrant"` }
type SchemaPolicyArgs ¶
type SchemaPolicyArgs struct { // Should the specified ROLE have CREATE privileges to the specified SCHEMA. Create pulumi.BoolPtrInput `pulumi:"create"` // Should the specified ROLE have CREATE privileges to the specified SCHEMA and the ability to GRANT the CREATE privilege to other ROLEs. CreateWithGrant pulumi.BoolPtrInput `pulumi:"createWithGrant"` // The ROLE who is receiving the policy. If this value is empty or not specified it implies the policy is referring to the [`PUBLIC` role](https://www.postgresql.org/docs/current/static/sql-grant.html). Role pulumi.StringPtrInput `pulumi:"role"` // Should the specified ROLE have USAGE privileges to the specified SCHEMA. Usage pulumi.BoolPtrInput `pulumi:"usage"` // Should the specified ROLE have USAGE privileges to the specified SCHEMA and the ability to GRANT the USAGE privilege to other ROLEs. UsageWithGrant pulumi.BoolPtrInput `pulumi:"usageWithGrant"` }
func (SchemaPolicyArgs) ElementType ¶
func (SchemaPolicyArgs) ElementType() reflect.Type
func (SchemaPolicyArgs) ToSchemaPolicyOutput ¶
func (i SchemaPolicyArgs) ToSchemaPolicyOutput() SchemaPolicyOutput
func (SchemaPolicyArgs) ToSchemaPolicyOutputWithContext ¶
func (i SchemaPolicyArgs) ToSchemaPolicyOutputWithContext(ctx context.Context) SchemaPolicyOutput
type SchemaPolicyArray ¶
type SchemaPolicyArray []SchemaPolicyInput
func (SchemaPolicyArray) ElementType ¶
func (SchemaPolicyArray) ElementType() reflect.Type
func (SchemaPolicyArray) ToSchemaPolicyArrayOutput ¶
func (i SchemaPolicyArray) ToSchemaPolicyArrayOutput() SchemaPolicyArrayOutput
func (SchemaPolicyArray) ToSchemaPolicyArrayOutputWithContext ¶
func (i SchemaPolicyArray) ToSchemaPolicyArrayOutputWithContext(ctx context.Context) SchemaPolicyArrayOutput
type SchemaPolicyArrayInput ¶
type SchemaPolicyArrayInput interface { pulumi.Input ToSchemaPolicyArrayOutput() SchemaPolicyArrayOutput ToSchemaPolicyArrayOutputWithContext(context.Context) SchemaPolicyArrayOutput }
SchemaPolicyArrayInput is an input type that accepts SchemaPolicyArray and SchemaPolicyArrayOutput values. You can construct a concrete instance of `SchemaPolicyArrayInput` via:
SchemaPolicyArray{ SchemaPolicyArgs{...} }
type SchemaPolicyArrayOutput ¶
type SchemaPolicyArrayOutput struct{ *pulumi.OutputState }
func (SchemaPolicyArrayOutput) ElementType ¶
func (SchemaPolicyArrayOutput) ElementType() reflect.Type
func (SchemaPolicyArrayOutput) Index ¶
func (o SchemaPolicyArrayOutput) Index(i pulumi.IntInput) SchemaPolicyOutput
func (SchemaPolicyArrayOutput) ToSchemaPolicyArrayOutput ¶
func (o SchemaPolicyArrayOutput) ToSchemaPolicyArrayOutput() SchemaPolicyArrayOutput
func (SchemaPolicyArrayOutput) ToSchemaPolicyArrayOutputWithContext ¶
func (o SchemaPolicyArrayOutput) ToSchemaPolicyArrayOutputWithContext(ctx context.Context) SchemaPolicyArrayOutput
type SchemaPolicyInput ¶
type SchemaPolicyInput interface { pulumi.Input ToSchemaPolicyOutput() SchemaPolicyOutput ToSchemaPolicyOutputWithContext(context.Context) SchemaPolicyOutput }
SchemaPolicyInput is an input type that accepts SchemaPolicyArgs and SchemaPolicyOutput values. You can construct a concrete instance of `SchemaPolicyInput` via:
SchemaPolicyArgs{...}
type SchemaPolicyOutput ¶
type SchemaPolicyOutput struct{ *pulumi.OutputState }
func (SchemaPolicyOutput) Create ¶
func (o SchemaPolicyOutput) Create() pulumi.BoolPtrOutput
Should the specified ROLE have CREATE privileges to the specified SCHEMA.
func (SchemaPolicyOutput) CreateWithGrant ¶
func (o SchemaPolicyOutput) CreateWithGrant() pulumi.BoolPtrOutput
Should the specified ROLE have CREATE privileges to the specified SCHEMA and the ability to GRANT the CREATE privilege to other ROLEs.
func (SchemaPolicyOutput) ElementType ¶
func (SchemaPolicyOutput) ElementType() reflect.Type
func (SchemaPolicyOutput) Role ¶
func (o SchemaPolicyOutput) Role() pulumi.StringPtrOutput
The ROLE who is receiving the policy. If this value is empty or not specified it implies the policy is referring to the [`PUBLIC` role](https://www.postgresql.org/docs/current/static/sql-grant.html).
func (SchemaPolicyOutput) ToSchemaPolicyOutput ¶
func (o SchemaPolicyOutput) ToSchemaPolicyOutput() SchemaPolicyOutput
func (SchemaPolicyOutput) ToSchemaPolicyOutputWithContext ¶
func (o SchemaPolicyOutput) ToSchemaPolicyOutputWithContext(ctx context.Context) SchemaPolicyOutput
func (SchemaPolicyOutput) Usage ¶
func (o SchemaPolicyOutput) Usage() pulumi.BoolPtrOutput
Should the specified ROLE have USAGE privileges to the specified SCHEMA.
func (SchemaPolicyOutput) UsageWithGrant ¶
func (o SchemaPolicyOutput) UsageWithGrant() pulumi.BoolPtrOutput
Should the specified ROLE have USAGE privileges to the specified SCHEMA and the ability to GRANT the USAGE privilege to other ROLEs.
type SchemaPtrInput ¶ added in v2.7.1
type SchemaPtrInput interface { pulumi.Input ToSchemaPtrOutput() SchemaPtrOutput ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput }
type SchemaPtrOutput ¶ added in v2.7.1
type SchemaPtrOutput struct {
*pulumi.OutputState
}
func (SchemaPtrOutput) ElementType ¶ added in v2.7.1
func (SchemaPtrOutput) ElementType() reflect.Type
func (SchemaPtrOutput) ToSchemaPtrOutput ¶ added in v2.7.1
func (o SchemaPtrOutput) ToSchemaPtrOutput() SchemaPtrOutput
func (SchemaPtrOutput) ToSchemaPtrOutputWithContext ¶ added in v2.7.1
func (o SchemaPtrOutput) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput
type SchemaState ¶
type SchemaState struct { // The DATABASE in which where this schema will be created. (Default: The database used by your `provider` configuration) Database pulumi.StringPtrInput // When true, will also drop all the objects that are contained in the schema. (Default: false) DropCascade pulumi.BoolPtrInput // When true, use the existing schema if it exists. (Default: true) IfNotExists pulumi.BoolPtrInput // The name of the schema. Must be unique in the PostgreSQL // database instance where it is configured. Name pulumi.StringPtrInput // The ROLE who owns the schema. Owner pulumi.StringPtrInput // Can be specified multiple times for each policy. Each // policy block supports fields documented below. // // Deprecated: Use postgresql_grant resource instead (with object_type="schema") Policies SchemaPolicyArrayInput }
func (SchemaState) ElementType ¶
func (SchemaState) ElementType() reflect.Type