@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
62 lines • 2.25 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.getLockOutput = exports.getLock = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Early Access:** Lock functionality is in early access and may not be available to all users.
*
* > **Important** Only unrestricted users can view locks. Restricted users cannot access lock information even if they have permissions for the resource.
*
* Provides information about a Linode Lock. Locks prevent accidental deletion, rebuild operations, and service transfers of resources.
*
* For more information, see the Linode APIv4 docs (TBD).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myLock = linode.getLock({
* id: 123456,
* });
* ```
*/
function getLock(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getLock:getLock", {
"id": args.id,
}, opts);
}
exports.getLock = getLock;
/**
* > **Early Access:** Lock functionality is in early access and may not be available to all users.
*
* > **Important** Only unrestricted users can view locks. Restricted users cannot access lock information even if they have permissions for the resource.
*
* Provides information about a Linode Lock. Locks prevent accidental deletion, rebuild operations, and service transfers of resources.
*
* For more information, see the Linode APIv4 docs (TBD).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myLock = linode.getLock({
* id: 123456,
* });
* ```
*/
function getLockOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getLock:getLock", {
"id": args.id,
}, opts);
}
exports.getLockOutput = getLockOutput;
//# sourceMappingURL=getLock.js.map