@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
86 lines (85 loc) • 2.62 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* This data source can be used to get a single tag policy by its tag key. Manage tag policy permissions using the `databricks.AccessControlRuleSet` resource.
*
* > **Note** This resource can only be used with a workspace-level provider!
*
* ## Example Usage
*
* Referring to a tag policy by its tag key:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const exampleTagPolicy = databricks.getTagPolicy({
* tagKey: "example_tag_key",
* });
* ```
*/
export declare function getTagPolicy(args: GetTagPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetTagPolicyResult>;
/**
* A collection of arguments for invoking getTagPolicy.
*/
export interface GetTagPolicyArgs {
tagKey: string;
}
/**
* A collection of values returned by getTagPolicy.
*/
export interface GetTagPolicyResult {
/**
* (string) - Timestamp when the tag policy was created
*/
readonly createTime: string;
/**
* (string)
*/
readonly description: string;
/**
* (string)
*/
readonly id: string;
/**
* (string)
*/
readonly tagKey: string;
/**
* (string) - Timestamp when the tag policy was last updated
*/
readonly updateTime: string;
/**
* (list of Value)
*/
readonly values: outputs.GetTagPolicyValue[];
}
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* This data source can be used to get a single tag policy by its tag key. Manage tag policy permissions using the `databricks.AccessControlRuleSet` resource.
*
* > **Note** This resource can only be used with a workspace-level provider!
*
* ## Example Usage
*
* Referring to a tag policy by its tag key:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const exampleTagPolicy = databricks.getTagPolicy({
* tagKey: "example_tag_key",
* });
* ```
*/
export declare function getTagPolicyOutput(args: GetTagPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagPolicyResult>;
/**
* A collection of arguments for invoking getTagPolicy.
*/
export interface GetTagPolicyOutputArgs {
tagKey: pulumi.Input<string>;
}