UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

83 lines (82 loc) 2.57 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get available HuaweiCloud gaussdb mysql flavors. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const flavors = pulumi.output(huaweicloud.GaussDB.getMysqlFlavors()); * ``` */ export declare function getMysqlFlavors(args?: GetMysqlFlavorsArgs, opts?: pulumi.InvokeOptions): Promise<GetMysqlFlavorsResult>; /** * A collection of arguments for invoking getMysqlFlavors. */ export interface GetMysqlFlavorsArgs { /** * Specifies the availability zone mode. Currently support `single` and ' * multi'. Defaults to `single`. */ availabilityZoneMode?: string; /** * Specifies the database engine. Only "gaussdb-mysql" is supported now. */ engine?: string; /** * The region in which to obtain the flavors. If omitted, the provider-level region will be * used. */ region?: string; /** * Specifies the database version. Only "8.0" is supported now. */ version?: string; } /** * A collection of values returned by getMysqlFlavors. */ export interface GetMysqlFlavorsResult { readonly availabilityZoneMode?: string; readonly engine?: string; /** * Indicates the flavors information. Structure is documented below. */ readonly flavors: outputs.GaussDB.GetMysqlFlavorsFlavor[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; /** * Indicates the database version. */ readonly version?: string; } export declare function getMysqlFlavorsOutput(args?: GetMysqlFlavorsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMysqlFlavorsResult>; /** * A collection of arguments for invoking getMysqlFlavors. */ export interface GetMysqlFlavorsOutputArgs { /** * Specifies the availability zone mode. Currently support `single` and ' * multi'. Defaults to `single`. */ availabilityZoneMode?: pulumi.Input<string>; /** * Specifies the database engine. Only "gaussdb-mysql" is supported now. */ engine?: pulumi.Input<string>; /** * The region in which to obtain the flavors. If omitted, the provider-level region will be * used. */ region?: pulumi.Input<string>; /** * Specifies the database version. Only "8.0" is supported now. */ version?: pulumi.Input<string>; }