Lien Args
data class LienArgs(val origin: Output<String>? = null, val parent: Output<String>? = null, val reason: Output<String>? = null, val restrictions: Output<List<String>>? = null) : ConvertibleToJava<LienArgs>
A Lien represents an encumbrance on the actions that can be performed on a resource.
Example Usage
Resource Manager Lien
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.resourcemanager.Lien;
import com.pulumi.gcp.resourcemanager.LienArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var project = new Project("project", ProjectArgs.builder()
.projectId("staging-project")
.build());
var lien = new Lien("lien", LienArgs.builder()
.origin("machine-readable-explanation")
.parent(project.number().applyValue(number -> String.format("projects/%s", number)))
.reason("This project is an important environment")
.restrictions("resourcemanager.projects.delete")
.build());
}
}
Content copied to clipboard
Import
Lien can be imported using any of these accepted formats:
$ pulumi import gcp:resourcemanager/lien:Lien default {{parent}}/{{name}}
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
Link copied to clipboard
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'