@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
109 lines (108 loc) • 3.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* This data source allows you to get information about a tag assignment for a specific workspace scoped entity using the entity type, entity id, and tag key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const dashboardTag = databricks.getWorkspaceEntityTagAssignment({
* entityType: "dashboards",
* entityId: "2807324866692453",
* tagKey: "sensitivity_level",
* });
* const geniespaceTag = databricks.getWorkspaceEntityTagAssignment({
* entityType: "geniespaces",
* entityId: "2807324866692453",
* tagKey: "sensitivity_level",
* });
* ```
*/
export declare function getWorkspaceEntityTagAssignment(args: GetWorkspaceEntityTagAssignmentArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspaceEntityTagAssignmentResult>;
/**
* A collection of arguments for invoking getWorkspaceEntityTagAssignment.
*/
export interface GetWorkspaceEntityTagAssignmentArgs {
/**
* The identifier of the entity to which the tag is assigned
*/
entityId: string;
/**
* The type of entity to which the tag is assigned. Allowed values are dashboards, geniespaces
*/
entityType: string;
/**
* The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
*/
tagKey: string;
}
/**
* A collection of values returned by getWorkspaceEntityTagAssignment.
*/
export interface GetWorkspaceEntityTagAssignmentResult {
/**
* (string) - The identifier of the entity to which the tag is assigned
*/
readonly entityId: string;
/**
* (string) - The type of entity to which the tag is assigned. Allowed values are dashboards, geniespaces
*/
readonly entityType: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
*/
readonly tagKey: string;
/**
* (string) - The value of the tag
*/
readonly tagValue: string;
}
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* This data source allows you to get information about a tag assignment for a specific workspace scoped entity using the entity type, entity id, and tag key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const dashboardTag = databricks.getWorkspaceEntityTagAssignment({
* entityType: "dashboards",
* entityId: "2807324866692453",
* tagKey: "sensitivity_level",
* });
* const geniespaceTag = databricks.getWorkspaceEntityTagAssignment({
* entityType: "geniespaces",
* entityId: "2807324866692453",
* tagKey: "sensitivity_level",
* });
* ```
*/
export declare function getWorkspaceEntityTagAssignmentOutput(args: GetWorkspaceEntityTagAssignmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkspaceEntityTagAssignmentResult>;
/**
* A collection of arguments for invoking getWorkspaceEntityTagAssignment.
*/
export interface GetWorkspaceEntityTagAssignmentOutputArgs {
/**
* The identifier of the entity to which the tag is assigned
*/
entityId: pulumi.Input<string>;
/**
* The type of entity to which the tag is assigned. Allowed values are dashboards, geniespaces
*/
entityType: pulumi.Input<string>;
/**
* The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
*/
tagKey: pulumi.Input<string>;
}