UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

98 lines (97 loc) 3.1 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of RDS MySQL database privileges. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = huaweicloud.Rds.getMysqlDatabasePrivileges({ * instanceId: _var.instance_id, * dbName: _var.db_name, * }); * ``` */ export declare function getMysqlDatabasePrivileges(args: GetMysqlDatabasePrivilegesArgs, opts?: pulumi.InvokeOptions): Promise<GetMysqlDatabasePrivilegesResult>; /** * A collection of arguments for invoking getMysqlDatabasePrivileges. */ export interface GetMysqlDatabasePrivilegesArgs { /** * Specifies the database name. */ dbName: string; /** * Specifies the ID of the RDS MySQL instance. */ instanceId: string; /** * Specifies whether the database permission is **read-only**. Values option: * + **true**: indicates the database is read-only. * + **false**: indicates the database is readable and writable. */ readonly?: boolean; /** * Specifies the region in which to query the data source. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the username of the database account. */ userName?: string; } /** * A collection of values returned by getMysqlDatabasePrivileges. */ export interface GetMysqlDatabasePrivilegesResult { readonly dbName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; /** * The read-only permission. */ readonly readonly?: boolean; readonly region: string; readonly userName?: string; /** * The list of the accounts that accociated with the database. * The users structure is documented below. */ readonly users: outputs.Rds.GetMysqlDatabasePrivilegesUser[]; } export declare function getMysqlDatabasePrivilegesOutput(args: GetMysqlDatabasePrivilegesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMysqlDatabasePrivilegesResult>; /** * A collection of arguments for invoking getMysqlDatabasePrivileges. */ export interface GetMysqlDatabasePrivilegesOutputArgs { /** * Specifies the database name. */ dbName: pulumi.Input<string>; /** * Specifies the ID of the RDS MySQL instance. */ instanceId: pulumi.Input<string>; /** * Specifies whether the database permission is **read-only**. Values option: * + **true**: indicates the database is read-only. * + **false**: indicates the database is readable and writable. */ readonly?: pulumi.Input<boolean>; /** * Specifies the region in which to query the data source. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; /** * Specifies the username of the database account. */ userName?: pulumi.Input<string>; }