Skip to content

googleTagsTagValue

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:

Example Usage - Tag Value Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const googleTagsTagKeyKey = new google.tagsTagKey.TagsTagKey(this, "key", {
  description: "For keyname resources.",
  parent: "organizations/123456789",
  short_name: "keyname",
});
new google.tagsTagValue.TagsTagValue(this, "value", {
  description: "For valuename resources.",
  parent: `tagKeys/\${${googleTagsTagKeyKey.name}}`,
  short_name: "valuename",
});

Argument Reference

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}.

  • shortName - (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.

Attributes Reference

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.

  • namespacedName - Output only. Namespaced name of the TagValue. Will be in the format {organizationId}/{tag_key_short_name}/{shortName}.

  • createTime - 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".

  • updateTime - 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".

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • update - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

TagValue can be imported using any of these accepted formats:

$ terraform import google_tags_tag_value.default tagValues/{{name}}
$ terraform import google_tags_tag_value.default {{name}}