UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

88 lines (87 loc) 2.48 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **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, * }); * ``` */ export declare function getLock(args: GetLockArgs, opts?: pulumi.InvokeOptions): Promise<GetLockResult>; /** * A collection of arguments for invoking getLock. */ export interface GetLockArgs { /** * The unique ID of the Lock. */ id: number; } /** * A collection of values returned by getLock. */ export interface GetLockResult { /** * The ID of the locked entity. */ readonly entityId: number; /** * The label of the locked entity. */ readonly entityLabel: string; /** * The type of the locked entity. */ readonly entityType: string; /** * The URL of the locked entity. */ readonly entityUrl: string; readonly id: number; /** * The type of lock. */ readonly lockType: string; } /** * > **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, * }); * ``` */ export declare function getLockOutput(args: GetLockOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLockResult>; /** * A collection of arguments for invoking getLock. */ export interface GetLockOutputArgs { /** * The unique ID of the Lock. */ id: pulumi.Input<number>; }