UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

79 lines 2.77 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.censOutput = exports.cens = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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 */ function cens(args, opts) { pulumi.log.warn("cens is deprecated: volcengine.cen.Cens has been deprecated in favor of volcengine.cen.getCens"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:cen/cens:Cens", { "cenNames": args.cenNames, "ids": args.ids, "nameRegex": args.nameRegex, "outputFile": args.outputFile, "tags": args.tags, }, opts); } exports.cens = cens; /** * 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 */ function censOutput(args, opts) { return pulumi.output(args).apply((a) => cens(a, opts)); } exports.censOutput = censOutput; //# sourceMappingURL=cens.js.map