@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
77 lines (76 loc) • 2.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the proxy list of a RDS MySQL instance.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const instanceId = config.requireObject("instanceId");
* const test = huaweicloud.Rds.getMysqlProxies({
* instanceId: instanceId,
* });
* ```
*/
export declare function getMysqlProxies(args: GetMysqlProxiesArgs, opts?: pulumi.InvokeOptions): Promise<GetMysqlProxiesResult>;
/**
* A collection of arguments for invoking getMysqlProxies.
*/
export interface GetMysqlProxiesArgs {
/**
* Specifies the ID of RDS MySQL instance.
*/
instanceId: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getMysqlProxies.
*/
export interface GetMysqlProxiesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
/**
* Indicates the maximum number of proxy nodes that can be selected for a database proxy.
*/
readonly maxProxyNodeNum: number;
/**
* Indicates the maximum number of database proxies that can be enabled at the same time.
*/
readonly maxProxyNum: number;
/**
* Indicates the proxy information list of a RDS MySQL instance.
*/
readonly proxyLists: outputs.Rds.GetMysqlProxiesProxyList[];
readonly region: string;
/**
* Indicates whether the load balancing routing mode can be set when
* the database proxy is created.
*/
readonly supportBalanceRouteModeForFavoredVersion: boolean;
}
export declare function getMysqlProxiesOutput(args: GetMysqlProxiesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMysqlProxiesResult>;
/**
* A collection of arguments for invoking getMysqlProxies.
*/
export interface GetMysqlProxiesOutputArgs {
/**
* Specifies the ID of RDS MySQL instance.
*/
instanceId: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}