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.
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.
- class
pulumi_gcp.resourcemanager.Lien(resource_name, opts=None, origin=None, parent=None, reason=None, restrictions=None, __props__=None, __name__=None, __opts__=None)¶ A Lien represents an encumbrance on the actions that can be performed on a resource.
import pulumi import pulumi_gcp as gcp project = gcp.organizations.Project("project", project_id="staging-project") lien = gcp.resourcemanager.Lien("lien", origin="machine-readable-explanation", parent=project.number.apply(lambda number: f"projects/{number}"), reason="This project is an important environment", restrictions=["resourcemanager.projects.delete"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
origin (pulumi.Input[str]) – A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters.
parent (pulumi.Input[str]) – 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”).
reason (pulumi.Input[str]) – Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters.
restrictions (pulumi.Input[list]) – 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’]
create_time: pulumi.Output[str] = None¶Time of creation
name: pulumi.Output[str] = None¶A system-generated unique identifier for this Lien.
origin: pulumi.Output[str] = None¶A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters.
parent: pulumi.Output[str] = None¶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”).
reason: pulumi.Output[str] = None¶Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters.
restrictions: pulumi.Output[list] = None¶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’]
- static
get(resource_name, id, opts=None, create_time=None, name=None, origin=None, parent=None, reason=None, restrictions=None)¶ Get an existing Lien resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
create_time (pulumi.Input[str]) – Time of creation
name (pulumi.Input[str]) – A system-generated unique identifier for this Lien.
origin (pulumi.Input[str]) – A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters.
parent (pulumi.Input[str]) – 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”).
reason (pulumi.Input[str]) – Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters.
restrictions (pulumi.Input[list]) – 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’]
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str