@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
56 lines (55 loc) • 1.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get available HuaweiCloud CDM flavors.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const flavor = pulumi.output(huaweicloud.Cdm.getFlavors());
* ```
*/
export declare function getFlavors(args?: GetFlavorsArgs, opts?: pulumi.InvokeOptions): Promise<GetFlavorsResult>;
/**
* A collection of arguments for invoking getFlavors.
*/
export interface GetFlavorsArgs {
/**
* The region in which to obtain the CDM flavors.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getFlavors.
*/
export interface GetFlavorsResult {
/**
* Indicates the flavors information. Structure is documented below.
* The flavors structure is documented below.
*/
readonly flavors: outputs.Cdm.GetFlavorsFlavor[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
/**
* The version of the CDM cluster.
*/
readonly version: string;
}
export declare function getFlavorsOutput(args?: GetFlavorsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFlavorsResult>;
/**
* A collection of arguments for invoking getFlavors.
*/
export interface GetFlavorsOutputArgs {
/**
* The region in which to obtain the CDM flavors.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}