Show / Hide Table of Contents

Class Lien

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

Example Usage - Resource Manager Lien

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var project = new Gcp.Organizations.Project("project", new Gcp.Organizations.ProjectArgs
    {
        ProjectId = "staging-project",
    });
    var lien = new Gcp.ResourceManager.Lien("lien", new Gcp.ResourceManager.LienArgs
    {
        Origin = "machine-readable-explanation",
        Parent = project.Number.Apply(number => $"projects/{number}"),
        Reason = "This project is an important environment",
        Restrictions = 
        {
            "resourcemanager.projects.delete",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Lien
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.ResourceManager
Assembly: Pulumi.Gcp.dll
Syntax
public class Lien : CustomResource

Constructors

View Source

Lien(String, LienArgs, CustomResourceOptions)

Create a Lien resource with the given unique name, arguments, and options.

Declaration
public Lien(string name, LienArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

LienArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CreateTime

Time of creation

Declaration
public Output<string> CreateTime { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A system-generated unique identifier for this Lien.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Origin

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

Declaration
public Output<string> Origin { get; }
Property Value
Type Description
Output<System.String>
View Source

Parent

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").

Declaration
public Output<string> Parent { get; }
Property Value
Type Description
Output<System.String>
View Source

Reason

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

Declaration
public Output<string> Reason { get; }
Property Value
Type Description
Output<System.String>
View Source

Restrictions

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']

Declaration
public Output<ImmutableArray<string>> Restrictions { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, LienState, CustomResourceOptions)

Get an existing Lien resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Lien Get(string name, Input<string> id, LienState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

LienState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Lien
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.