@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
46 lines • 2.43 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.getFolderOutput = exports.getFolder = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides an easy way to retrieve a folder.
*
* You must specify the absolute path of the folder to retrieve. The content library has "Library"
* folder at the root level. For items in "Personal" folder, the base path is "/Library/Users/user@sumologic.com"
* where "user@sumologic.com" is the email address of the user. For example, if a user with email address
* `wile@acme.com` has `Rockets` folder inside Personal folder, the path of Rockets folder will be
* `/Library/Users/wile@acme.com/Rockets`.
*
* For items in "Admin Recommended" folder, the base path is "/Library/Admin Recommended". For example,
* given a folder `Acme` in Admin Recommended folder, the path will be `/Library/Admin Recommended/Acme`.
*/
function getFolder(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("sumologic:index/getFolder:getFolder", {
"path": args.path,
}, opts);
}
exports.getFolder = getFolder;
/**
* Provides an easy way to retrieve a folder.
*
* You must specify the absolute path of the folder to retrieve. The content library has "Library"
* folder at the root level. For items in "Personal" folder, the base path is "/Library/Users/user@sumologic.com"
* where "user@sumologic.com" is the email address of the user. For example, if a user with email address
* `wile@acme.com` has `Rockets` folder inside Personal folder, the path of Rockets folder will be
* `/Library/Users/wile@acme.com/Rockets`.
*
* For items in "Admin Recommended" folder, the base path is "/Library/Admin Recommended". For example,
* given a folder `Acme` in Admin Recommended folder, the path will be `/Library/Admin Recommended/Acme`.
*/
function getFolderOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("sumologic:index/getFolder:getFolder", {
"path": args.path,
}, opts);
}
exports.getFolderOutput = getFolderOutput;
//# sourceMappingURL=getFolder.js.map