1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. tags
  6. TagBindingCollection
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi

    Create TagBindingCollection Resource

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

    Constructor syntax

    new TagBindingCollection(name: string, args: TagBindingCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def TagBindingCollection(resource_name: str,
                             args: TagBindingCollectionArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def TagBindingCollection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             full_resource_name: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             location: Optional[str] = None)
    func NewTagBindingCollection(ctx *Context, name string, args TagBindingCollectionArgs, opts ...ResourceOption) (*TagBindingCollection, error)
    public TagBindingCollection(string name, TagBindingCollectionArgs args, CustomResourceOptions? opts = null)
    public TagBindingCollection(String name, TagBindingCollectionArgs args)
    public TagBindingCollection(String name, TagBindingCollectionArgs args, CustomResourceOptions options)
    
    type: gcp:tags:TagBindingCollection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_tags_tag_binding_collection" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TagBindingCollectionArgs
    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 TagBindingCollectionArgs
    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 TagBindingCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagBindingCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagBindingCollectionArgs
    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 tagBindingCollectionResource = new Gcp.Tags.TagBindingCollection("tagBindingCollectionResource", new()
    {
        FullResourceName = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Location = "string",
    });
    
    example, err := tags.NewTagBindingCollection(ctx, "tagBindingCollectionResource", &tags.TagBindingCollectionArgs{
    	FullResourceName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    })
    
    resource "gcp_tags_tag_binding_collection" "tagBindingCollectionResource" {
      lifecycle {
        create_before_destroy = true
      }
      full_resource_name = "string"
      tags = {
        "string" = "string"
      }
      location = "string"
    }
    
    var tagBindingCollectionResource = new TagBindingCollection("tagBindingCollectionResource", TagBindingCollectionArgs.builder()
        .fullResourceName("string")
        .tags(Map.of("string", "string"))
        .location("string")
        .build());
    
    tag_binding_collection_resource = gcp.tags.TagBindingCollection("tagBindingCollectionResource",
        full_resource_name="string",
        tags={
            "string": "string",
        },
        location="string")
    
    const tagBindingCollectionResource = new gcp.tags.TagBindingCollection("tagBindingCollectionResource", {
        fullResourceName: "string",
        tags: {
            string: "string",
        },
        location: "string",
    });
    
    type: gcp:tags:TagBindingCollection
    properties:
        fullResourceName: string
        location: string
        tags:
            string: string
    

    TagBindingCollection 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 TagBindingCollection resource accepts the following input properties:

    FullResourceName string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    Tags Dictionary<string, string>
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    Location string
    The location of the TagBindingCollection.
    FullResourceName string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    Tags map[string]string
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    Location string
    The location of the TagBindingCollection.
    full_resource_name string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    tags map(string)
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    location string
    The location of the TagBindingCollection.
    fullResourceName String
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    tags Map<String,String>
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    location String
    The location of the TagBindingCollection.
    fullResourceName string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    tags {[key: string]: string}
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    location string
    The location of the TagBindingCollection.
    full_resource_name str
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    tags Mapping[str, str]
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    location str
    The location of the TagBindingCollection.
    fullResourceName String
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    tags Map<String>
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    location String
    The location of the TagBindingCollection.

    Outputs

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

    ActiveTags Dictionary<string, string>
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    ActiveTags map[string]string
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    active_tags map(string)
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    activeTags Map<String,String>
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    activeTags {[key: string]: string}
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    active_tags Mapping[str, str]
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    activeTags Map<String>
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}

    Look up Existing TagBindingCollection Resource

    Get an existing TagBindingCollection 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?: TagBindingCollectionState, opts?: CustomResourceOptions): TagBindingCollection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active_tags: Optional[Mapping[str, str]] = None,
            full_resource_name: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> TagBindingCollection
    func GetTagBindingCollection(ctx *Context, name string, id IDInput, state *TagBindingCollectionState, opts ...ResourceOption) (*TagBindingCollection, error)
    public static TagBindingCollection Get(string name, Input<string> id, TagBindingCollectionState? state, CustomResourceOptions? opts = null)
    public static TagBindingCollection get(String name, Output<String> id, TagBindingCollectionState state, CustomResourceOptions options)
    resources:  _:    type: gcp:tags:TagBindingCollection    get:      id: ${id}
    import {
      to = gcp_tags_tag_binding_collection.example
      id = "${id}"
    }
    
    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.
    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:
    ActiveTags Dictionary<string, string>
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    FullResourceName string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    Location string
    The location of the TagBindingCollection.
    Name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    Tags Dictionary<string, string>
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    ActiveTags map[string]string
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    FullResourceName string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    Location string
    The location of the TagBindingCollection.
    Name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    Tags map[string]string
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    active_tags map(string)
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    full_resource_name string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    location string
    The location of the TagBindingCollection.
    name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    tags map(string)
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    activeTags Map<String,String>
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    fullResourceName String
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    location String
    The location of the TagBindingCollection.
    name String
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    tags Map<String,String>
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    activeTags {[key: string]: string}
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    fullResourceName string
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    location string
    The location of the TagBindingCollection.
    name string
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    tags {[key: string]: string}
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    active_tags Mapping[str, str]
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    full_resource_name str
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    location str
    The location of the TagBindingCollection.
    name str
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    tags Mapping[str, str]
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.
    activeTags Map<String>
    (Output) The most recent state of all direct tags on the resource, as reported by the API. This includes the tags configured through Terraform, Google system tags, and tags attached by other clients.
    fullResourceName String
    The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
    location String
    The location of the TagBindingCollection.
    name String
    The name of the TagBindingCollection, in the format: locations/{location}/tagBindingCollections/{encoded_full_resource_name}
    tags Map<String>
    A map of tag keys to values directly bound to this resource, specified in namespaced format. For example: "123/environment": "production" Keys must be namespaced names of TagKeys, and values must be short names of TagValues. This field is non-authoritative. Terraform will only manage the precise tags present in this map.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.32.1
    published on Wednesday, Jul 29, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial