UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

58 lines 1.98 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** 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"); /** * Get information on a single DigitalOcean project. If neither the `id` nor `name` attributes are provided, * then this data source returns the default project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const _default = digitalocean.getProject({}); * const staging = digitalocean.getProject({ * name: "My Staging Project", * }); * ``` */ function getProject(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("digitalocean:index/getProject:getProject", { "id": args.id, "name": args.name, }, opts); } exports.getProject = getProject; /** * Get information on a single DigitalOcean project. If neither the `id` nor `name` attributes are provided, * then this data source returns the default project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const _default = digitalocean.getProject({}); * const staging = digitalocean.getProject({ * name: "My Staging Project", * }); * ``` */ function getProjectOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("digitalocean:index/getProject:getProject", { "id": args.id, "name": args.name, }, opts); } exports.getProjectOutput = getProjectOutput; //# sourceMappingURL=getProject.js.map