@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
86 lines (85 loc) • 2.07 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about a RDB database.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myDb = scaleway.getDatabase({
* instanceId: "11111111-1111-1111-1111-111111111111",
* name: "foobar",
* });
* ```
*/
export declare function getDatabase(args: GetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseResult>;
/**
* A collection of arguments for invoking getDatabase.
*/
export interface GetDatabaseArgs {
/**
* The RDB instance ID.
*/
instanceId: string;
/**
* The name of the RDB instance.
*/
name: string;
region?: string;
}
/**
* A collection of values returned by getDatabase.
*/
export interface GetDatabaseResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
/**
* Whether the database is managed or not.
*/
readonly managed: boolean;
readonly name: string;
/**
* The name of the owner of the database.
*/
readonly owner: string;
readonly region?: string;
/**
* Size of the database (in bytes).
*/
readonly size: string;
}
/**
* Gets information about a RDB database.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myDb = scaleway.getDatabase({
* instanceId: "11111111-1111-1111-1111-111111111111",
* name: "foobar",
* });
* ```
*/
export declare function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseResult>;
/**
* A collection of arguments for invoking getDatabase.
*/
export interface GetDatabaseOutputArgs {
/**
* The RDB instance ID.
*/
instanceId: pulumi.Input<string>;
/**
* The name of the RDB instance.
*/
name: pulumi.Input<string>;
region?: pulumi.Input<string>;
}