Class Database
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mydatabase = new Aiven.Database("mydatabase", new Aiven.DatabaseArgs
{
DatabaseName = "<DATABASE_NAME>",
Project = aiven_project.Myproject.Project,
ServiceName = aiven_service.Myservice.Service_name,
});
}
}
Inherited Members
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class Database : CustomResource
Constructors
View SourceDatabase(String, DatabaseArgs, CustomResourceOptions)
Create a Database resource with the given unique name, arguments, and options.
Declaration
public Database(string name, DatabaseArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DatabaseArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDatabaseName
Service database name
Declaration
public Output<string> DatabaseName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LcCollate
Default string sort order (LC_COLLATE) of the database. Default value: en_US.UTF-8
Declaration
public Output<string> LcCollate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LcCtype
Default character classification (LC_CTYPE) of the database. Default value: en_US.UTF-8
Declaration
public Output<string> LcCtype { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
Project to link the database to
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceName
Service to link the database to
Declaration
public Output<string> ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TerminationProtection
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data.
Declaration
public Output<bool?> TerminationProtection { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, DatabaseState, CustomResourceOptions)
Get an existing Database resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Database Get(string name, Input<string> id, DatabaseState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| DatabaseState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Database |