published on Wednesday, Jul 29, 2026 by Pulumi
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:
- Full
Resource stringName - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- 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.
- Full
Resource stringName - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- 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_ stringname - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- 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.
- full
Resource StringName - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- 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 stringName - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- {[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_ strname - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- 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.
- full
Resource StringName - The full resource name of the resource to which the tags are bound. E.g. //cloudresourcemanager.googleapis.com/projects/123
- 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:
- 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}
- 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}
- 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}
- 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}
- {[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}
- 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}
- 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) -> TagBindingCollectionfunc 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.
- 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.
- Full
Resource stringName - 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}
- 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.
- 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.
- Full
Resource stringName - 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}
- 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.
- 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_ stringname - 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}
- 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.
- 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.
- full
Resource StringName - 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}
- 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.
- {[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.
- full
Resource stringName - 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}
- {[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.
- 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_ strname - 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}
- 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.
- 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 StringName - 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}
- 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-betaTerraform Provider.
published on Wednesday, Jul 29, 2026 by Pulumi