@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
42 lines • 1.46 kB
JavaScript
;
// *** 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.getNfsSnapshotOutput = exports.getNfsSnapshot = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a DigitalOcean NFS snapshot.
*
* ## Example Usage
*
* Get the NFS snapshot by ID:
*/
function getNfsSnapshot(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("digitalocean:index/getNfsSnapshot:getNfsSnapshot", {
"name": args.name,
"nameRegex": args.nameRegex,
"region": args.region,
"shareId": args.shareId,
}, opts);
}
exports.getNfsSnapshot = getNfsSnapshot;
/**
* Get information about a DigitalOcean NFS snapshot.
*
* ## Example Usage
*
* Get the NFS snapshot by ID:
*/
function getNfsSnapshotOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("digitalocean:index/getNfsSnapshot:getNfsSnapshot", {
"name": args.name,
"nameRegex": args.nameRegex,
"region": args.region,
"shareId": args.shareId,
}, opts);
}
exports.getNfsSnapshotOutput = getNfsSnapshotOutput;
//# sourceMappingURL=getNfsSnapshot.js.map