UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

47 lines 1.61 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.getVaultsOutput = exports.getVaults = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get available CBR vaults within Huaweicloud. * * ## Example Usage * ### Get vaults for all server type * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = pulumi.output(huaweicloud.Cbr.getVaults({ * type: "server", * })); * ``` */ function getVaults(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:Cbr/getVaults:getVaults", { "autoExpandEnabled": args.autoExpandEnabled, "consistentLevel": args.consistentLevel, "enterpriseProjectId": args.enterpriseProjectId, "name": args.name, "policyId": args.policyId, "protectionType": args.protectionType, "region": args.region, "size": args.size, "status": args.status, "type": args.type, }, opts); } exports.getVaults = getVaults; function getVaultsOutput(args, opts) { return pulumi.output(args).apply(a => getVaults(a, opts)); } exports.getVaultsOutput = getVaultsOutput; //# sourceMappingURL=getVaults.js.map