@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
89 lines (88 loc) • 2.49 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of RDS MySQL databases.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = huaweicloud.Rds.getMysqlDatabases({
* instanceId: _var.instance_id,
* name: "test",
* characterSet: "utf8",
* });
* ```
*/
export declare function getMysqlDatabases(args: GetMysqlDatabasesArgs, opts?: pulumi.InvokeOptions): Promise<GetMysqlDatabasesResult>;
/**
* A collection of arguments for invoking getMysqlDatabases.
*/
export interface GetMysqlDatabasesArgs {
/**
* Specifies the character set used by the database.
*/
characterSet?: string;
/**
* Specifies the ID of the RDS instance.
*/
instanceId: string;
/**
* Specifies the database name.
*/
name?: string;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getMysqlDatabases.
*/
export interface GetMysqlDatabasesResult {
/**
* Indicates the character set used by the database.
*/
readonly characterSet?: string;
/**
* The list of databases.
* The databases structure is documented below.
*/
readonly databases: outputs.Rds.GetMysqlDatabasesDatabase[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
/**
* Indicates the database name.
*/
readonly name?: string;
readonly region: string;
}
export declare function getMysqlDatabasesOutput(args: GetMysqlDatabasesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMysqlDatabasesResult>;
/**
* A collection of arguments for invoking getMysqlDatabases.
*/
export interface GetMysqlDatabasesOutputArgs {
/**
* Specifies the character set used by the database.
*/
characterSet?: pulumi.Input<string>;
/**
* Specifies the ID of the RDS instance.
*/
instanceId: pulumi.Input<string>;
/**
* Specifies the database name.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}