import * as pulumi from "@pulumi/pulumi"; /** * Gets information about the privileges in a database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const main = scaleway.getRdbPrivilege({ * databaseName: "my-database", * instanceId: "11111111-1111-111111111111", * userName: "my-user", * }); * ``` */ export declare function getRdbPrivilege(args: GetRdbPrivilegeArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRdbPrivilege. */ export interface GetRdbPrivilegeArgs { /** * The database name. */ databaseName: string; /** * The Database Instance ID. */ instanceId: string; /** * `region`) The region in which the resource exists. */ region?: string; /** * The user name. */ userName: string; } /** * A collection of values returned by getRdbPrivilege. */ export interface GetRdbPrivilegeResult { readonly databaseName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; /** * The permission for this user on the database. Possible values are `readonly`, `readwrite`, `all` * , `custom` and `none`. */ readonly permission: string; readonly region?: string; readonly userName: string; } /** * Gets information about the privileges in a database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const main = scaleway.getRdbPrivilege({ * databaseName: "my-database", * instanceId: "11111111-1111-111111111111", * userName: "my-user", * }); * ``` */ export declare function getRdbPrivilegeOutput(args: GetRdbPrivilegeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRdbPrivilege. */ export interface GetRdbPrivilegeOutputArgs { /** * The database name. */ databaseName: pulumi.Input; /** * The Database Instance ID. */ instanceId: pulumi.Input; /** * `region`) The region in which the resource exists. */ region?: pulumi.Input; /** * The user name. */ userName: pulumi.Input; }