UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

87 lines (86 loc) 3.01 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about an RDB instance. For further information see our [developers website](https://developers.scaleway.com/en/products/rdb/api/#database-instance) */ export declare function getDatabaseInstance(args?: GetDatabaseInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseInstanceResult>; /** * A collection of arguments for invoking getDatabaseInstance. */ export interface GetDatabaseInstanceArgs { /** * The RDB instance ID. * Only one of `name` and `instanceId` should be specified. */ instanceId?: string; /** * The name of the RDB instance. * Only one of `name` and `instanceId` should be specified. */ name?: string; /** * `region`) The region in which the RDB instance exists. */ region?: string; } /** * A collection of values returned by getDatabaseInstance. */ export interface GetDatabaseInstanceResult { readonly backupSameRegion: boolean; readonly backupScheduleFrequency: number; readonly backupScheduleRetention: number; readonly certificate: string; readonly disableBackup: boolean; readonly endpointIp: string; readonly endpointPort: number; readonly engine: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly initSettings: { [key: string]: string; }; readonly instanceId?: string; readonly isHaCluster: boolean; readonly loadBalancers: outputs.GetDatabaseInstanceLoadBalancer[]; readonly name?: string; readonly nodeType: string; readonly organizationId: string; readonly password: string; readonly privateNetworks: outputs.GetDatabaseInstancePrivateNetwork[]; readonly projectId: string; readonly readReplicas: outputs.GetDatabaseInstanceReadReplica[]; readonly region?: string; readonly settings: { [key: string]: string; }; readonly tags: string[]; readonly userName: string; readonly volumeSizeInGb: number; readonly volumeType: string; } /** * Gets information about an RDB instance. For further information see our [developers website](https://developers.scaleway.com/en/products/rdb/api/#database-instance) */ export declare function getDatabaseInstanceOutput(args?: GetDatabaseInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseInstanceResult>; /** * A collection of arguments for invoking getDatabaseInstance. */ export interface GetDatabaseInstanceOutputArgs { /** * The RDB instance ID. * Only one of `name` and `instanceId` should be specified. */ instanceId?: pulumi.Input<string>; /** * The name of the RDB instance. * Only one of `name` and `instanceId` should be specified. */ name?: pulumi.Input<string>; /** * `region`) The region in which the RDB instance exists. */ region?: pulumi.Input<string>; }