UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

77 lines (76 loc) 2.91 kB
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; export declare class Database_privilege extends pulumi.CustomResource { /** * Get an existing Database_privilege resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: Database_privilegeState, opts?: pulumi.CustomResourceOptions): Database_privilege; /** * Returns true if the given object is an instance of Database_privilege. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Database_privilege; /** * Specifies the database name. */ readonly dbName: pulumi.Output<string>; /** * Specifies the ID of the RDS Mysql instance. */ readonly instanceId: pulumi.Output<string>; readonly region: pulumi.Output<string>; /** * Specifies the account that associated with the database. */ readonly users: pulumi.Output<outputs.Rds.Database_privilegeUser[]>; /** * Create a Database_privilege resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: Database_privilegeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Database_privilege resources. */ export interface Database_privilegeState { /** * Specifies the database name. */ dbName?: pulumi.Input<string>; /** * Specifies the ID of the RDS Mysql instance. */ instanceId?: pulumi.Input<string>; region?: pulumi.Input<string>; /** * Specifies the account that associated with the database. */ users?: pulumi.Input<pulumi.Input<inputs.Rds.Database_privilegeUser>[]>; } /** * The set of arguments for constructing a Database_privilege resource. */ export interface Database_privilegeArgs { /** * Specifies the database name. */ dbName: pulumi.Input<string>; /** * Specifies the ID of the RDS Mysql instance. */ instanceId: pulumi.Input<string>; region?: pulumi.Input<string>; /** * Specifies the account that associated with the database. */ users: pulumi.Input<pulumi.Input<inputs.Rds.Database_privilegeUser>[]>; }