Module resourcemanager

@pulumi/gcp > resourcemanager

class Lien

extends CustomResource

A Lien represents an encumbrance on the actions that can be performed on a resource.

Example Usage - Resource Manager Lien

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const project = new gcp.organizations.Project("project", {
    projectId: "staging-project",
});
const lien = new gcp.resourcemanager.Lien("lien", {
    origin: "machine-readable-explanation",
    parent: pulumi.interpolate`projects/${project.number}`,
    reason: "This project is an important environment",
    restrictions: ["resourcemanager.projects.delete"],
});

constructor

new Lien(name: string, args: LienArgs, opts?: pulumi.CustomResourceOptions)

Create a Lien resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LienState, opts?: pulumi.CustomResourceOptions): Lien

Get an existing Lien resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property createTime

public createTime: pulumi.Output<string>;

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

property origin

public origin: pulumi.Output<string>;

property parent

public parent: pulumi.Output<string>;

property reason

public reason: pulumi.Output<string>;

property restrictions

public restrictions: pulumi.Output<string[]>;

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

interface LienArgs

The set of arguments for constructing a Lien resource.

property origin

origin: pulumi.Input<string>;

property parent

parent: pulumi.Input<string>;

property reason

reason: pulumi.Input<string>;

property restrictions

restrictions: pulumi.Input<pulumi.Input<string>[]>;

interface LienState

Input properties used for looking up and filtering Lien resources.

property createTime

createTime?: pulumi.Input<string>;

property name

name?: pulumi.Input<string>;

property origin

origin?: pulumi.Input<string>;

property parent

parent?: pulumi.Input<string>;

property reason

reason?: pulumi.Input<string>;

property restrictions

restrictions?: pulumi.Input<pulumi.Input<string>[]>;