Skip to content

googleDataCatalogTaxonomy

A collection of policy tags that classify data along a common axis.

To get more information about Taxonomy, see:

Example Usage - Data Catalog Taxonomy 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.*/
new google.dataCatalogTaxonomy.DataCatalogTaxonomy(this, "basic_taxonomy", {
  activated_policy_types: ["FINE_GRAINED_ACCESS_CONTROL"],
  description: "A collection of policy tags",
  display_name: "my_taxonomy",
});

Argument Reference

The following arguments are supported:

  • displayName - (Required) User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.

  • description - (Optional) Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description.

  • activatedPolicyTypes - (Optional) A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. Each value may be one of policyTypeUnspecified and fineGrainedAccessControl.

  • region - (Optional) Taxonomy location region.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format {{name}}

  • name - Resource name of this taxonomy, whose format is: "projects/{project}/locations/{region}/taxonomies/{taxonomy}".

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

Taxonomy can be imported using any of these accepted formats:

$ terraform import google_data_catalog_taxonomy.default {{name}}

User Project Overrides

This resource supports User Project Overrides.