@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
111 lines (110 loc) • 3.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about an RDB backup.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const findByName = scaleway.getDatabaseBackup({
* name: "mybackup",
* });
* const findByNameAndInstance = scaleway.getDatabaseBackup({
* instanceId: "11111111-1111-1111-1111-111111111111",
* name: "mybackup",
* });
* const findById = scaleway.getDatabaseBackup({
* backupId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getDatabaseBackup(args?: GetDatabaseBackupArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseBackupResult>;
/**
* A collection of arguments for invoking getDatabaseBackup.
*/
export interface GetDatabaseBackupArgs {
/**
* The RDB backup ID.
* Only one of the `name` and `backupId` should be specified.
*/
backupId?: string;
/**
* The RDB instance ID.
*/
instanceId?: string;
/**
* The name of the RDB instance.
* Only one of the `name` and `backupId` should be specified.
*/
name?: string;
/**
* `region`) The region in which the Database Instance should be created.
*/
region?: string;
}
/**
* A collection of values returned by getDatabaseBackup.
*/
export interface GetDatabaseBackupResult {
readonly backupId?: string;
readonly createdAt: string;
readonly databaseName: string;
readonly expiresAt: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId?: string;
readonly instanceName: string;
readonly name?: string;
readonly region?: string;
readonly size: number;
readonly updatedAt: string;
}
/**
* Gets information about an RDB backup.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const findByName = scaleway.getDatabaseBackup({
* name: "mybackup",
* });
* const findByNameAndInstance = scaleway.getDatabaseBackup({
* instanceId: "11111111-1111-1111-1111-111111111111",
* name: "mybackup",
* });
* const findById = scaleway.getDatabaseBackup({
* backupId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getDatabaseBackupOutput(args?: GetDatabaseBackupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseBackupResult>;
/**
* A collection of arguments for invoking getDatabaseBackup.
*/
export interface GetDatabaseBackupOutputArgs {
/**
* The RDB backup ID.
* Only one of the `name` and `backupId` should be specified.
*/
backupId?: pulumi.Input<string>;
/**
* The RDB instance ID.
*/
instanceId?: pulumi.Input<string>;
/**
* The name of the RDB instance.
* Only one of the `name` and `backupId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* `region`) The region in which the Database Instance should be created.
*/
region?: pulumi.Input<string>;
}