Documentation ¶
Index ¶
- type Database
- func (r *Database) AllowConnections() *pulumi.BoolOutput
- func (r *Database) ConnectionLimit() *pulumi.IntOutput
- func (r *Database) Encoding() *pulumi.StringOutput
- func (r *Database) ID() *pulumi.IDOutput
- func (r *Database) IsTemplate() *pulumi.BoolOutput
- func (r *Database) LcCollate() *pulumi.StringOutput
- func (r *Database) LcCtype() *pulumi.StringOutput
- func (r *Database) Name() *pulumi.StringOutput
- func (r *Database) Owner() *pulumi.StringOutput
- func (r *Database) TablespaceName() *pulumi.StringOutput
- func (r *Database) Template() *pulumi.StringOutput
- func (r *Database) URN() *pulumi.URNOutput
- type DatabaseArgs
- type DatabaseState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
The “postgresql_database“ resource creates and manages [database objects](https://www.postgresql.org/docs/current/static/managing-databases.html) within a PostgreSQL server instance.
func GetDatabase ¶
func GetDatabase(ctx *pulumi.Context, name string, id pulumi.ID, state *DatabaseState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Database, error)
NewDatabase registers a new resource with the given unique name, arguments, and options.
func (*Database) AllowConnections ¶
func (r *Database) AllowConnections() *pulumi.BoolOutput
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`).
func (*Database) ConnectionLimit ¶
How many concurrent connections can be established to this database. `-1` (the default) means no limit.
func (*Database) Encoding ¶
func (r *Database) Encoding() *pulumi.StringOutput
Character set encoding to use in the database. Specify a string constant (e.g. `UTF8` or `SQL_ASCII`), or an integer encoding number. If unset or set to an empty string the default encoding is set to `UTF8`. If set to `DEFAULT` Terraform will use the same encoding as the template database. Changing this value will force the creation of a new resource as this value can only be changed when a database is created.
func (*Database) IsTemplate ¶
func (r *Database) IsTemplate() *pulumi.BoolOutput
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.
func (*Database) LcCollate ¶
func (r *Database) LcCollate() *pulumi.StringOutput
Collation order (`LC_COLLATE`) to use in the database. This affects the sort order applied to strings, e.g. in queries with `ORDER BY`, as well as the order used in indexes on text columns. If unset or set to an empty string the default collation is set to `C`. If set to `DEFAULT` Terraform will use the same collation order as the specified `template` database. Changing this value will force the creation of a new resource as this value can only be changed when a database is created.
func (*Database) LcCtype ¶
func (r *Database) LcCtype() *pulumi.StringOutput
Character classification (`LC_CTYPE`) to use in the database. This affects the categorization of characters, e.g. lower, upper and digit. If unset or set to an empty string the default character classification is set to `C`. If set to `DEFAULT` Terraform will use the character classification of the specified `template` database. Changing this value will force the creation of a new resource as this value can only be changed when a database is created.
func (*Database) Name ¶
func (r *Database) Name() *pulumi.StringOutput
The name of the database. Must be unique on the PostgreSQL server instance where it is configured.
func (*Database) Owner ¶
func (r *Database) Owner() *pulumi.StringOutput
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.
func (*Database) TablespaceName ¶
func (r *Database) TablespaceName() *pulumi.StringOutput
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.
func (*Database) Template ¶
func (r *Database) Template() *pulumi.StringOutput
The name of the template database from which to create the database, or `DEFAULT` to use the default template (`template0`). NOTE: the default in Terraform is `template0`, not `template1`. Changing this value will force the creation of a new resource as this value can only be changed when a database is created.
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 interface{} // How many concurrent connections can be // established to this database. `-1` (the default) means no limit. ConnectionLimit interface{} // Character set encoding to use in the database. // Specify a string constant (e.g. `UTF8` or `SQL_ASCII`), or an integer encoding // number. If unset or set to an empty string the default encoding is set to // `UTF8`. If set to `DEFAULT` Terraform will use the same encoding as the // template database. Changing this value will force the creation of a new // resource as this value can only be changed when a database is created. Encoding interface{} // 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 interface{} // Collation order (`LC_COLLATE`) to use in the // database. This affects the sort order applied to strings, e.g. in queries // with `ORDER BY`, as well as the order used in indexes on text columns. If // unset or set to an empty string the default collation is set to `C`. If set // to `DEFAULT` Terraform will use the same collation order as the specified // `template` database. Changing this value will force the creation of a new // resource as this value can only be changed when a database is created. LcCollate interface{} // Character classification (`LC_CTYPE`) to use in the // database. This affects the categorization of characters, e.g. lower, upper and // digit. If unset or set to an empty string the default character classification // is set to `C`. If set to `DEFAULT` Terraform will use the character // classification of the specified `template` database. Changing this value will // force the creation of a new resource as this value can only be changed when a // database is created. LcCtype interface{} // The name of the database. Must be unique on the PostgreSQL // server instance where it is configured. Name interface{} // 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 interface{} // 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 interface{} // The name of the template database from which to create // the database, or `DEFAULT` to use the default template (`template0`). NOTE: // the default in Terraform is `template0`, not `template1`. Changing this value // will force the creation of a new resource as this value can only be changed // when a database is created. Template interface{} }
The set of arguments for constructing a Database resource.
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 interface{} // How many concurrent connections can be // established to this database. `-1` (the default) means no limit. ConnectionLimit interface{} // Character set encoding to use in the database. // Specify a string constant (e.g. `UTF8` or `SQL_ASCII`), or an integer encoding // number. If unset or set to an empty string the default encoding is set to // `UTF8`. If set to `DEFAULT` Terraform will use the same encoding as the // template database. Changing this value will force the creation of a new // resource as this value can only be changed when a database is created. Encoding interface{} // 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 interface{} // Collation order (`LC_COLLATE`) to use in the // database. This affects the sort order applied to strings, e.g. in queries // with `ORDER BY`, as well as the order used in indexes on text columns. If // unset or set to an empty string the default collation is set to `C`. If set // to `DEFAULT` Terraform will use the same collation order as the specified // `template` database. Changing this value will force the creation of a new // resource as this value can only be changed when a database is created. LcCollate interface{} // Character classification (`LC_CTYPE`) to use in the // database. This affects the categorization of characters, e.g. lower, upper and // digit. If unset or set to an empty string the default character classification // is set to `C`. If set to `DEFAULT` Terraform will use the character // classification of the specified `template` database. Changing this value will // force the creation of a new resource as this value can only be changed when a // database is created. LcCtype interface{} // The name of the database. Must be unique on the PostgreSQL // server instance where it is configured. Name interface{} // 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 interface{} // 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 interface{} // The name of the template database from which to create // the database, or `DEFAULT` to use the default template (`template0`). NOTE: // the default in Terraform is `template0`, not `template1`. Changing this value // will force the creation of a new resource as this value can only be changed // when a database is created. Template interface{} }
Input properties used for looking up and filtering Database resources.