Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Database
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class Database : CustomResource

Constructors

View Source

Database(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 Source

DatabaseName

Service database name

Declaration
public Output<string> DatabaseName { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

Project

Project to link the database to

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

ServiceName

Service to link the database to

Declaration
public Output<string> ServiceName { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.