@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
85 lines (84 loc) • 2.58 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of RDS storage types.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const instanceId = config.require("instanceId");
*
* const test = pulumi.output(huaweicloud.Rds.getStorageTypes({
* dbType: "MySQL",
* dbVersion: "8.0",
* }));
* ```
*/
export declare function getStorageTypes(args: GetStorageTypesArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageTypesResult>;
/**
* A collection of arguments for invoking getStorageTypes.
*/
export interface GetStorageTypesArgs {
/**
* DB engine. The valid values are **MySQL**, **PostgreSQL**, **SQLServer**, **MariaDB**.
*/
dbType: string;
/**
* DB version number.
*/
dbVersion: string;
/**
* HA mode. The valid values are **single**, **ha**, **replica**.
*/
instanceMode?: 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 getStorageTypes.
*/
export interface GetStorageTypesResult {
readonly dbType: string;
readonly dbVersion: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceMode?: string;
readonly region: string;
/**
* Storage type list. For details, see Data structure of the storageType field.
* The storageType structure is documented below.
*/
readonly storageTypes: outputs.Rds.GetStorageTypesStorageType[];
}
export declare function getStorageTypesOutput(args: GetStorageTypesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetStorageTypesResult>;
/**
* A collection of arguments for invoking getStorageTypes.
*/
export interface GetStorageTypesOutputArgs {
/**
* DB engine. The valid values are **MySQL**, **PostgreSQL**, **SQLServer**, **MariaDB**.
*/
dbType: pulumi.Input<string>;
/**
* DB version number.
*/
dbVersion: pulumi.Input<string>;
/**
* HA mode. The valid values are **single**, **ha**, **replica**.
*/
instanceMode?: 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>;
}