UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

85 lines (84 loc) 2.97 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Define tag policies to manage governed tags in your account. * * > **Note** This resource can only be used with an account-level provider! * * ## 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 databricks_tag_policy "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; readonly description: pulumi.Output<string | undefined>; readonly tagKey: pulumi.Output<string>; readonly values: pulumi.Output<outputs.TagPolicyValue[] | undefined>; /** * Workspace ID of the resource */ readonly workspaceId: pulumi.Output<string | 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 { description?: pulumi.Input<string>; tagKey?: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<inputs.TagPolicyValue>[]>; /** * Workspace ID of the resource */ workspaceId?: pulumi.Input<string>; } /** * 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>[]>; /** * Workspace ID of the resource */ workspaceId?: pulumi.Input<string>; }