TaxonomyArgs

data class TaxonomyArgs(val activatedPolicyTypes: Output<List<String>>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val project: Output<String>? = null, val region: Output<String>? = null) : ConvertibleToJava<TaxonomyArgs>

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

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basicTaxonomy = new gcp.datacatalog.Taxonomy("basic_taxonomy", {
displayName: "my_taxonomy",
description: "A collection of policy tags",
activatedPolicyTypes: ["FINE_GRAINED_ACCESS_CONTROL"],
});
import pulumi
import pulumi_gcp as gcp
basic_taxonomy = gcp.datacatalog.Taxonomy("basic_taxonomy",
display_name="my_taxonomy",
description="A collection of policy tags",
activated_policy_types=["FINE_GRAINED_ACCESS_CONTROL"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basicTaxonomy = new Gcp.DataCatalog.Taxonomy("basic_taxonomy", new()
{
DisplayName = "my_taxonomy",
Description = "A collection of policy tags",
ActivatedPolicyTypes = new[]
{
"FINE_GRAINED_ACCESS_CONTROL",
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datacatalog.NewTaxonomy(ctx, "basic_taxonomy", &datacatalog.TaxonomyArgs{
DisplayName: pulumi.String("my_taxonomy"),
Description: pulumi.String("A collection of policy tags"),
ActivatedPolicyTypes: pulumi.StringArray{
pulumi.String("FINE_GRAINED_ACCESS_CONTROL"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.datacatalog.Taxonomy;
import com.pulumi.gcp.datacatalog.TaxonomyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basicTaxonomy = new Taxonomy("basicTaxonomy", TaxonomyArgs.builder()
.displayName("my_taxonomy")
.description("A collection of policy tags")
.activatedPolicyTypes("FINE_GRAINED_ACCESS_CONTROL")
.build());
}
}
resources:
basicTaxonomy:
type: gcp:datacatalog:Taxonomy
name: basic_taxonomy
properties:
displayName: my_taxonomy
description: A collection of policy tags
activatedPolicyTypes:
- FINE_GRAINED_ACCESS_CONTROL

Import

Taxonomy can be imported using any of these accepted formats:

  • {{name}} When using the pulumi import command, Taxonomy can be imported using one of the formats above. For example:

$ pulumi import gcp:datacatalog/taxonomy:Taxonomy default {{name}}

Constructors

Link copied to clipboard
constructor(activatedPolicyTypes: Output<List<String>>? = null, description: Output<String>? = null, displayName: Output<String>? = null, project: Output<String>? = null, region: Output<String>? = null)

Properties

Link copied to clipboard
val activatedPolicyTypes: Output<List<String>>? = null

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: POLICY_TYPE_UNSPECIFIED, FINE_GRAINED_ACCESS_CONTROL.

Link copied to clipboard
val description: Output<String>? = null

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.

Link copied to clipboard
val displayName: Output<String>? = null

User defined name of this taxonomy. The taxonomy display name must be unique within an organization. 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.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val region: Output<String>? = null

Taxonomy location region.

Functions

Link copied to clipboard
open override fun toJava(): TaxonomyArgs