Lien

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

Create a Lien Resource

new Lien(name: string, args: LienArgs, opts?: CustomResourceOptions);
def Lien(resource_name, opts=None, origin=None, parent=None, reason=None, restrictions=None, __props__=None);
func NewLien(ctx *Context, name string, args LienArgs, opts ...ResourceOption) (*Lien, error)
public Lien(string name, LienArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LienArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LienArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LienArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Lien Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Lien resource accepts the following input properties:

Origin string

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

Parent 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”).

Reason string

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

Restrictions List<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’]

Origin string

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

Parent 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”).

Reason string

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

Restrictions []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’]

origin string

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

parent 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”).

reason string

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

restrictions 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’]

origin str

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

parent 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 str

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

restrictions List[str]

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

Outputs

All input properties are implicitly available as output properties. Additionally, the Lien resource produces the following output properties:

CreateTime string

Time of creation

Id string
The provider-assigned unique ID for this managed resource.
Name string

A system-generated unique identifier for this Lien.

CreateTime string

Time of creation

Id string
The provider-assigned unique ID for this managed resource.
Name string

A system-generated unique identifier for this Lien.

createTime string

Time of creation

id string
The provider-assigned unique ID for this managed resource.
name string

A system-generated unique identifier for this Lien.

create_time str

Time of creation

id str
The provider-assigned unique ID for this managed resource.
name str

A system-generated unique identifier for this Lien.

Look up an Existing Lien Resource

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

public static get(name: string, id: Input<ID>, state?: LienState, opts?: CustomResourceOptions): Lien
static get(resource_name, id, opts=None, create_time=None, name=None, origin=None, parent=None, reason=None, restrictions=None, __props__=None);
func GetLien(ctx *Context, name string, id IDInput, state *LienState, opts ...ResourceOption) (*Lien, error)
public static Lien Get(string name, Input<string> id, LienState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CreateTime string

Time of creation

Name string

A system-generated unique identifier for this Lien.

Origin string

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

Parent 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”).

Reason string

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

Restrictions List<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’]

CreateTime string

Time of creation

Name string

A system-generated unique identifier for this Lien.

Origin string

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

Parent 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”).

Reason string

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

Restrictions []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’]

createTime string

Time of creation

name string

A system-generated unique identifier for this Lien.

origin string

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

parent 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”).

reason string

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

restrictions 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’]

create_time str

Time of creation

name str

A system-generated unique identifier for this Lien.

origin str

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

parent 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 str

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

restrictions List[str]

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

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.