@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
106 lines • 4.14 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEntityTagAssignmentOutput = exports.getEntityTagAssignment = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* [](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 entity using the entity type, entity name, and tag key.
*
* ## Example Usage
*
* ### Get environment tag from a catalog
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const catalogTag = databricks.getEntityTagAssignment({
* entityType: "catalogs",
* entityName: "production_catalog",
* tagKey: "environment",
* });
* const schemaTag = databricks.getEntityTagAssignment({
* entityType: "schemas",
* entityName: "production_catalog.analytics_data",
* tagKey: "cost_center",
* });
* const tableTag = databricks.getEntityTagAssignment({
* entityType: "tables",
* entityName: "production_catalog.sales_data.customer_orders",
* tagKey: "owner",
* });
* const columnTag = databricks.getEntityTagAssignment({
* entityType: "columns",
* entityName: "production_catalog.customer_data.users.email_address",
* tagKey: "pii_classification",
* });
* const volumeTag = databricks.getEntityTagAssignment({
* entityType: "volumes",
* entityName: "production_catalog.raw_data.landing_zone",
* tagKey: "purpose",
* });
* ```
*/
function getEntityTagAssignment(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getEntityTagAssignment:getEntityTagAssignment", {
"entityName": args.entityName,
"entityType": args.entityType,
"tagKey": args.tagKey,
}, opts);
}
exports.getEntityTagAssignment = getEntityTagAssignment;
/**
* [](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 entity using the entity type, entity name, and tag key.
*
* ## Example Usage
*
* ### Get environment tag from a catalog
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const catalogTag = databricks.getEntityTagAssignment({
* entityType: "catalogs",
* entityName: "production_catalog",
* tagKey: "environment",
* });
* const schemaTag = databricks.getEntityTagAssignment({
* entityType: "schemas",
* entityName: "production_catalog.analytics_data",
* tagKey: "cost_center",
* });
* const tableTag = databricks.getEntityTagAssignment({
* entityType: "tables",
* entityName: "production_catalog.sales_data.customer_orders",
* tagKey: "owner",
* });
* const columnTag = databricks.getEntityTagAssignment({
* entityType: "columns",
* entityName: "production_catalog.customer_data.users.email_address",
* tagKey: "pii_classification",
* });
* const volumeTag = databricks.getEntityTagAssignment({
* entityType: "volumes",
* entityName: "production_catalog.raw_data.landing_zone",
* tagKey: "purpose",
* });
* ```
*/
function getEntityTagAssignmentOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getEntityTagAssignment:getEntityTagAssignment", {
"entityName": args.entityName,
"entityType": args.entityType,
"tagKey": args.tagKey,
}, opts);
}
exports.getEntityTagAssignmentOutput = getEntityTagAssignmentOutput;
//# sourceMappingURL=getEntityTagAssignment.js.map