A TagValue is a child of a particular TagKey. TagValues are used to group cloud resources for the purpose of controlling them using policies.
To get more information about TagValue, see:
resource "google_tags_tag_key" "key" {
parent = "organizations/123456789"
short_name = "keyname"
description = "For keyname resources."
}
resource "google_tags_tag_value" "value" {
parent = "tagKeys/${google_tags_tag_key.key.name}"
short_name = "valuename"
description = "For valuename resources."
}
The following arguments are supported:
parent
-
(Required)
Input only. The resource name of the new TagValue's parent. Must be of the form tagKeys/{tag_key_id}.
short_name
-
(Required)
Input only. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
description
-
(Optional)
User-assigned description of the TagValue. Must not exceed 256 characters.In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format tagValues/{{name}}
name
-
The generated numeric id for the TagValue.
namespaced_name
-
Output only. Namespaced name of the TagValue. Will be in the format {parentNamespace}/{tagKeyShortName}/{shortName}.
create_time
-
Output only. Creation time.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
update_time
-
Output only. Update time.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.TagValue can be imported using any of these accepted formats:
tagValues/{{name}}
{{name}}
In Terraform v1.5.0 and later, use an import
block to import TagValue using one of the formats above. For example:
import {
id = "tagValues/{{name}}"
to = google_tags_tag_value.default
}
When using the terraform import
command, TagValue can be imported using one of the formats above. For example:
$ terraform import google_tags_tag_value.default tagValues/{{name}}
$ terraform import google_tags_tag_value.default {{name}}