Module resourcemanager
This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Others
Resources
Resource Lien
class Lien extends CustomResourceA 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.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA 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): LienGet 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 | undefinedmethod isInstance
public static isInstance(obj: any): obj is LienReturns 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 LienArgsThe 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 LienStateInput 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’]