UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

135 lines (134 loc) 3.64 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of cens * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooCen: volcengine.cen.Cen[] = []; * for (const range = {value: 0}; range.value < 2; range.value++) { * fooCen.push(new volcengine.cen.Cen(`fooCen-${range.value}`, { * cenName: "acc-test-cen", * description: "acc-test", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * })); * } * const fooCens = volcengine.cen.getCensOutput({ * ids: fooCen.map(__item => __item.id), * }); * ``` */ /** @deprecated volcengine.cen.Cens has been deprecated in favor of volcengine.cen.getCens */ export declare function cens(args?: CensArgs, opts?: pulumi.InvokeOptions): Promise<CensResult>; /** * A collection of arguments for invoking Cens. */ export interface CensArgs { /** * A list of cen names. */ cenNames?: string[]; /** * A list of cen IDs. */ ids?: string[]; /** * A Name Regex of cen. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * Tags. */ tags?: inputs.cen.CensTag[]; } /** * A collection of values returned by Cens. */ export interface CensResult { readonly cenNames?: string[]; /** * The collection of cen query. */ readonly cens: outputs.cen.CensCen[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly nameRegex?: string; readonly outputFile?: string; /** * Tags. */ readonly tags?: outputs.cen.CensTag[]; /** * The total count of cen query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of cens * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooCen: volcengine.cen.Cen[] = []; * for (const range = {value: 0}; range.value < 2; range.value++) { * fooCen.push(new volcengine.cen.Cen(`fooCen-${range.value}`, { * cenName: "acc-test-cen", * description: "acc-test", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * })); * } * const fooCens = volcengine.cen.getCensOutput({ * ids: fooCen.map(__item => __item.id), * }); * ``` */ /** @deprecated volcengine.cen.Cens has been deprecated in favor of volcengine.cen.getCens */ export declare function censOutput(args?: CensOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CensResult>; /** * A collection of arguments for invoking Cens. */ export interface CensOutputArgs { /** * A list of cen names. */ cenNames?: pulumi.Input<pulumi.Input<string>[]>; /** * A list of cen IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * A Name Regex of cen. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.cen.CensTagArgs>[]>; }