1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudresourcemanager
  5. cloudresourcemanager/v1
  6. Lien

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudresourcemanager/v1.Lien

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Create a Lien which applies to the resource denoted by the parent field. Callers of this method will require permission on the parent resource. For example, applying to projects/1234 requires permission resourcemanager.projects.updateLiens. NOTE: Some resources may limit the number of Liens which may be applied.

    Create Lien Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Lien(name: string, args?: LienArgs, opts?: CustomResourceOptions);
    @overload
    def Lien(resource_name: str,
             args: Optional[LienArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Lien(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             create_time: Optional[str] = None,
             name: Optional[str] = None,
             origin: Optional[str] = None,
             parent: Optional[str] = None,
             reason: Optional[str] = None,
             restrictions: Optional[Sequence[str]] = None)
    func NewLien(ctx *Context, name string, args *LienArgs, opts ...ResourceOption) (*Lien, error)
    public Lien(string name, LienArgs? args = null, CustomResourceOptions? opts = null)
    public Lien(String name, LienArgs args)
    public Lien(String name, LienArgs args, CustomResourceOptions options)
    
    type: google-native:cloudresourcemanager/v1:Lien
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    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.
    args LienArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control 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.
    name String
    The unique name of the resource.
    args LienArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var lienResource = new GoogleNative.CloudResourceManager.V1.Lien("lienResource", new()
    {
        CreateTime = "string",
        Name = "string",
        Origin = "string",
        Parent = "string",
        Reason = "string",
        Restrictions = new[]
        {
            "string",
        },
    });
    
    example, err := cloudresourcemanager.NewLien(ctx, "lienResource", &cloudresourcemanager.LienArgs{
    	CreateTime: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Origin:     pulumi.String("string"),
    	Parent:     pulumi.String("string"),
    	Reason:     pulumi.String("string"),
    	Restrictions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var lienResource = new Lien("lienResource", LienArgs.builder()
        .createTime("string")
        .name("string")
        .origin("string")
        .parent("string")
        .reason("string")
        .restrictions("string")
        .build());
    
    lien_resource = google_native.cloudresourcemanager.v1.Lien("lienResource",
        create_time="string",
        name="string",
        origin="string",
        parent="string",
        reason="string",
        restrictions=["string"])
    
    const lienResource = new google_native.cloudresourcemanager.v1.Lien("lienResource", {
        createTime: "string",
        name: "string",
        origin: "string",
        parent: "string",
        reason: "string",
        restrictions: ["string"],
    });
    
    type: google-native:cloudresourcemanager/v1:Lien
    properties:
        createTime: string
        name: string
        origin: string
        parent: string
        reason: string
        restrictions:
            - string
    

    Lien Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Lien resource accepts the following input properties:

    CreateTime string
    The creation time of this Lien.
    Name string
    A system-generated unique identifier for this Lien. Example: liens/1234abcd
    Origin string
    A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
    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. Example: projects/1234
    Reason string
    Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
    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. Example: ['resourcemanager.projects.delete']
    CreateTime string
    The creation time of this Lien.
    Name string
    A system-generated unique identifier for this Lien. Example: liens/1234abcd
    Origin string
    A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
    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. Example: projects/1234
    Reason string
    Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
    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. Example: ['resourcemanager.projects.delete']
    createTime String
    The creation time of this Lien.
    name String
    A system-generated unique identifier for this Lien. Example: liens/1234abcd
    origin String
    A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
    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. Example: projects/1234
    reason String
    Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
    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. Example: ['resourcemanager.projects.delete']
    createTime string
    The creation time of this Lien.
    name string
    A system-generated unique identifier for this Lien. Example: liens/1234abcd
    origin string
    A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
    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. Example: projects/1234
    reason string
    Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
    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. Example: ['resourcemanager.projects.delete']
    create_time str
    The creation time of this Lien.
    name str
    A system-generated unique identifier for this Lien. Example: liens/1234abcd
    origin str
    A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
    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. Example: projects/1234
    reason str
    Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
    restrictions Sequence[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. Example: ['resourcemanager.projects.delete']
    createTime String
    The creation time of this Lien.
    name String
    A system-generated unique identifier for this Lien. Example: liens/1234abcd
    origin String
    A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
    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. Example: projects/1234
    reason String
    Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
    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. Example: ['resourcemanager.projects.delete']

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi