google_resource_manager_lien

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

Example Usage - Resource Manager Lien

resource "google_resource_manager_lien" "lien" {
  parent       = "projects/${google_project.project.number}"
  restrictions = ["resourcemanager.projects.delete"]
  origin       = "machine-readable-explanation"
  reason       = "This project is an important environment"
}

resource "google_project" "project" {
  project_id = "staging-project"
  name       = "A very important project!"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Lien can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Lien using one of the formats above. For example:

import {
  id = "{{parent}}/{{name}}"
  to = google_resource_manager_lien.default
}

When using the terraform import command, Lien can be imported using one of the formats above. For example:

$ terraform import google_resource_manager_lien.default {{parent}}/{{name}}