UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

81 lines (80 loc) 2.34 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of ecs instance types * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.ecs.getInstanceTypes({}); * ``` */ export declare function getInstanceTypes(args?: GetInstanceTypesArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceTypesResult>; /** * A collection of arguments for invoking getInstanceTypes. */ export interface GetInstanceTypesArgs { /** * A list of instance type IDs. When the number of ids is greater than 10, only the first 10 are effective. */ ids?: string[]; /** * The id of image. */ imageId?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getInstanceTypes. */ export interface GetInstanceTypesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly imageId?: string; /** * The collection of query. */ readonly instanceTypes: outputs.ecs.GetInstanceTypesInstanceType[]; readonly outputFile?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of ecs instance types * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.ecs.getInstanceTypes({}); * ``` */ export declare function getInstanceTypesOutput(args?: GetInstanceTypesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceTypesResult>; /** * A collection of arguments for invoking getInstanceTypes. */ export interface GetInstanceTypesOutputArgs { /** * A list of instance type IDs. When the number of ids is greater than 10, only the first 10 are effective. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The id of image. */ imageId?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }