Module resourcemanager

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

Resources

Others

Resources

Resource Lien

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

public static isInstance(obj: any): obj is Lien

Returns true if the given object is an instance of Lien. 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>;

Time of creation

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>;

A system-generated unique identifier for this Lien.

property origin

public origin: pulumi.Output<string>;

A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters.

property parent

public parent: pulumi.Output<string>;

A reference to the resource this Lien is attached to. The server will validate the parent against those for which Liens are supported. Since a variety of objects can have Liens against them, you must provide the type prefix (e.g. “projects/my-project-name”).

property reason

public reason: pulumi.Output<string>;

Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters.

property restrictions

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

The types of operations which should be blocked as a result of this Lien. Each value should correspond to an IAM permission. The server will validate the permissions against those for which Liens are supported. An empty list is meaningless and will be rejected. e.g. [‘resourcemanager.projects.delete’]

property urn

urn: Output<URN>;

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

Others

interface LienArgs

interface LienArgs

The set of arguments for constructing a Lien resource.

property origin

origin: pulumi.Input<string>;

A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters.

property parent

parent: pulumi.Input<string>;

A reference to the resource this Lien is attached to. The server will validate the parent against those for which Liens are supported. Since a variety of objects can have Liens against them, you must provide the type prefix (e.g. “projects/my-project-name”).

property reason

reason: pulumi.Input<string>;

Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters.

property restrictions

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

The types of operations which should be blocked as a result of this Lien. Each value should correspond to an IAM permission. The server will validate the permissions against those for which Liens are supported. An empty list is meaningless and will be rejected. e.g. [‘resourcemanager.projects.delete’]

interface LienState

interface LienState

Input properties used for looking up and filtering Lien resources.

property createTime

createTime?: pulumi.Input<string>;

Time of creation

property name

name?: pulumi.Input<string>;

A system-generated unique identifier for this Lien.

property origin

origin?: pulumi.Input<string>;

A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters.

property parent

parent?: pulumi.Input<string>;

A reference to the resource this Lien is attached to. The server will validate the parent against those for which Liens are supported. Since a variety of objects can have Liens against them, you must provide the type prefix (e.g. “projects/my-project-name”).

property reason

reason?: pulumi.Input<string>;

Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters.

property restrictions

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

The types of operations which should be blocked as a result of this Lien. Each value should correspond to an IAM permission. The server will validate the permissions against those for which Liens are supported. An empty list is meaningless and will be rejected. e.g. [‘resourcemanager.projects.delete’]