UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

56 lines 1.93 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.getProjectOutput = exports.getProject = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const tfProject1 = equinix.metal.getProject({ * name: "Terraform Fun", * }); * export const usersOfTerraformFun = tfProject1.then(tfProject1 => tfProject1.userIds); * ``` */ function getProject(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("equinix:metal/getProject:getProject", { "name": args.name, "projectId": args.projectId, }, opts); } exports.getProject = getProject; /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const tfProject1 = equinix.metal.getProject({ * name: "Terraform Fun", * }); * export const usersOfTerraformFun = tfProject1.then(tfProject1 => tfProject1.userIds); * ``` */ function getProjectOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("equinix:metal/getProject:getProject", { "name": args.name, "projectId": args.projectId, }, opts); } exports.getProjectOutput = getProjectOutput; //# sourceMappingURL=getProject.js.map