@upcloud/pulumi-upcloud
Version:
A Pulumi package for creating and managing UpCloud resources.
118 lines (117 loc) • 4.16 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This resource represents a logical database in managed database
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as upcloud from "@upcloud/pulumi-upcloud";
*
* // PostgreSQL managed database with additional logical database: example_db
* const example = new upcloud.ManagedDatabasePostgresql("example", {
* name: "postgres",
* plan: "1x1xCPU-2GB-25GB",
* title: "postgres",
* zone: "fi-hel1",
* });
* const exampleDb = new upcloud.ManagedDatabaseLogicalDatabase("example_db", {
* service: example.id,
* name: "example_db",
* });
* // MySQL managed database with additional logical database: example2_db
* const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", {
* name: "mysql",
* plan: "1x1xCPU-2GB-25GB",
* title: "mysql",
* zone: "fi-hel1",
* });
* const example2Db = new upcloud.ManagedDatabaseLogicalDatabase("example2_db", {
* service: exampleManagedDatabaseMysql.id,
* name: "example2_db",
* });
* ```
*/
export declare class ManagedDatabaseLogicalDatabase extends pulumi.CustomResource {
/**
* Get an existing ManagedDatabaseLogicalDatabase resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedDatabaseLogicalDatabaseState, opts?: pulumi.CustomResourceOptions): ManagedDatabaseLogicalDatabase;
/**
* Returns true if the given object is an instance of ManagedDatabaseLogicalDatabase. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ManagedDatabaseLogicalDatabase;
/**
* Default character set for the database (LC_CTYPE)
*/
readonly characterSet: pulumi.Output<string>;
/**
* Default collation for the database (LC_COLLATE)
*/
readonly collation: pulumi.Output<string>;
/**
* Name of the logical database
*/
readonly name: pulumi.Output<string>;
/**
* Service's UUID for which this user belongs to
*/
readonly service: pulumi.Output<string>;
/**
* Create a ManagedDatabaseLogicalDatabase resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ManagedDatabaseLogicalDatabaseArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ManagedDatabaseLogicalDatabase resources.
*/
export interface ManagedDatabaseLogicalDatabaseState {
/**
* Default character set for the database (LC_CTYPE)
*/
characterSet?: pulumi.Input<string>;
/**
* Default collation for the database (LC_COLLATE)
*/
collation?: pulumi.Input<string>;
/**
* Name of the logical database
*/
name?: pulumi.Input<string>;
/**
* Service's UUID for which this user belongs to
*/
service?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ManagedDatabaseLogicalDatabase resource.
*/
export interface ManagedDatabaseLogicalDatabaseArgs {
/**
* Default character set for the database (LC_CTYPE)
*/
characterSet?: pulumi.Input<string>;
/**
* Default collation for the database (LC_COLLATE)
*/
collation?: pulumi.Input<string>;
/**
* Name of the logical database
*/
name?: pulumi.Input<string>;
/**
* Service's UUID for which this user belongs to
*/
service: pulumi.Input<string>;
}