UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

114 lines (113 loc) 3.93 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * Define tag policies to manage governed tags in your account. Manage tag policy permissions using the `databricks.AccessControlRuleSet` resource. * * > **Note** This resource can only be used with a workspace-level provider! * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const exampleTagPolicy = new databricks.TagPolicy("example_tag_policy", { * tagKey: "example_tag_key", * description: "Example description.", * values: [ * { * name: "example_value_1", * }, * { * name: "example_value_2", * }, * { * name: "example_value_3", * }, * ], * }); * ``` * * ## Import * * As of Pulumi v1.5, resources can be imported through configuration. * * hcl * * import { * * id = "tag_key" * * to = databricks_tag_policy.this * * } * * If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows: * * ```sh * $ pulumi import databricks:index/tagPolicy:TagPolicy this "tag_key" * ``` */ export declare class TagPolicy extends pulumi.CustomResource { /** * Get an existing TagPolicy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TagPolicyState, opts?: pulumi.CustomResourceOptions): TagPolicy; /** * Returns true if the given object is an instance of TagPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TagPolicy; /** * (string) - Timestamp when the tag policy was created */ readonly createTime: pulumi.Output<string>; readonly description: pulumi.Output<string | undefined>; readonly tagKey: pulumi.Output<string>; /** * (string) - Timestamp when the tag policy was last updated */ readonly updateTime: pulumi.Output<string>; readonly values: pulumi.Output<outputs.TagPolicyValue[] | undefined>; /** * Create a TagPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TagPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TagPolicy resources. */ export interface TagPolicyState { /** * (string) - Timestamp when the tag policy was created */ createTime?: pulumi.Input<string>; description?: pulumi.Input<string>; tagKey?: pulumi.Input<string>; /** * (string) - Timestamp when the tag policy was last updated */ updateTime?: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<inputs.TagPolicyValue>[]>; } /** * The set of arguments for constructing a TagPolicy resource. */ export interface TagPolicyArgs { description?: pulumi.Input<string>; tagKey: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<inputs.TagPolicyValue>[]>; }