UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

66 lines 2.36 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.getDependenciesOutput = exports.getDependencies = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query dependency packages within HuaweiCloud. * * > Between `1.64.2` and `1.72.1`, the version list of each dependency package is queried by default. * <br>This will cause the query to take up a lot of time and may trigger flow control. * <br>There are not recommended to use. * * ## Example Usage * ### Obtain all public dependency packages * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = pulumi.output(huaweicloud.FunctionGraph.getDependencies()); * ``` * ### Obtain specific public dependency package by name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = pulumi.output(huaweicloud.FunctionGraph.getDependencies({ * name: "obssdk-3.0.2", * type: "public", * })); * ``` * ### Obtain all public Python2.7 dependency packages * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = pulumi.output(huaweicloud.FunctionGraph.getDependencies({ * runtime: "Python2.7", * type: "public", * })); * ``` */ function getDependencies(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:FunctionGraph/getDependencies:getDependencies", { "isVersionsQueryAllowed": args.isVersionsQueryAllowed, "name": args.name, "region": args.region, "runtime": args.runtime, "type": args.type, }, opts); } exports.getDependencies = getDependencies; function getDependenciesOutput(args, opts) { return pulumi.output(args).apply(a => getDependencies(a, opts)); } exports.getDependenciesOutput = getDependenciesOutput; //# sourceMappingURL=getDependencies.js.map