@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
96 lines (95 loc) • 2.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about the privilege on RDB database.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = scaleway.getDatabasePrivilege({
* databaseName: "my-database",
* instanceId: "11111111-1111-111111111111",
* userName: "my-user",
* });
* ```
*/
export declare function getDatabasePrivilege(args: GetDatabasePrivilegeArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabasePrivilegeResult>;
/**
* A collection of arguments for invoking getDatabasePrivilege.
*/
export interface GetDatabasePrivilegeArgs {
/**
* The database name.
*/
databaseName: string;
/**
* The RDB 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 getDatabasePrivilege.
*/
export interface GetDatabasePrivilegeResult {
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 privilege on RDB database.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = scaleway.getDatabasePrivilege({
* databaseName: "my-database",
* instanceId: "11111111-1111-111111111111",
* userName: "my-user",
* });
* ```
*/
export declare function getDatabasePrivilegeOutput(args: GetDatabasePrivilegeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabasePrivilegeResult>;
/**
* A collection of arguments for invoking getDatabasePrivilege.
*/
export interface GetDatabasePrivilegeOutputArgs {
/**
* The database name.
*/
databaseName: pulumi.Input<string>;
/**
* The RDB instance ID.
*/
instanceId: pulumi.Input<string>;
/**
* `region`) The region in which the resource exists.
*/
region?: pulumi.Input<string>;
/**
* The user name.
*/
userName: pulumi.Input<string>;
}