@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
56 lines • 1.81 kB
JavaScript
;
// *** 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.getAccountProjectOutput = exports.getAccountProject = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about an existing Project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byName = scaleway.getAccountProject({
* name: "default",
* });
* const byId = scaleway.getAccountProject({
* projectId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
* });
* ```
*/
function getAccountProject(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getAccountProject:getAccountProject", {
"name": args.name,
"organizationId": args.organizationId,
"projectId": args.projectId,
}, opts);
}
exports.getAccountProject = getAccountProject;
/**
* Gets information about an existing Project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byName = scaleway.getAccountProject({
* name: "default",
* });
* const byId = scaleway.getAccountProject({
* projectId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
* });
* ```
*/
function getAccountProjectOutput(args, opts) {
return pulumi.output(args).apply((a) => getAccountProject(a, opts));
}
exports.getAccountProjectOutput = getAccountProjectOutput;
//# sourceMappingURL=getAccountProject.js.map