UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

90 lines 3.63 kB
"use strict"; // *** 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.getDataQualityRefreshesOutput = exports.getDataQualityRefreshes = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * This data source can be used to fetch the list of data quality refreshes on a Unity Catalog table. * * The caller must either: * 1. be an owner of the table's parent catalog * 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema. * 3. have the following permissions: * - **USE_CATALOG** on the table's parent catalog * - **USE_SCHEMA** on the table's parent schema * - **SELECT** privilege on the table. * * > **Note** This data source can only be used with a workspace-level provider! * * ## Example Usage * * Getting a list of all data quality refresh for a given table: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getTable({ * name: "my_catalog.my_schema.my_table", * }); * const all = _this.then(_this => databricks.getDataQualityRefreshes({ * objectType: "table", * objectId: _this.id, * })); * ``` */ function getDataQualityRefreshes(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getDataQualityRefreshes:getDataQualityRefreshes", { "objectId": args.objectId, "objectType": args.objectType, "pageSize": args.pageSize, }, opts); } exports.getDataQualityRefreshes = getDataQualityRefreshes; /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * This data source can be used to fetch the list of data quality refreshes on a Unity Catalog table. * * The caller must either: * 1. be an owner of the table's parent catalog * 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema. * 3. have the following permissions: * - **USE_CATALOG** on the table's parent catalog * - **USE_SCHEMA** on the table's parent schema * - **SELECT** privilege on the table. * * > **Note** This data source can only be used with a workspace-level provider! * * ## Example Usage * * Getting a list of all data quality refresh for a given table: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getTable({ * name: "my_catalog.my_schema.my_table", * }); * const all = _this.then(_this => databricks.getDataQualityRefreshes({ * objectType: "table", * objectId: _this.id, * })); * ``` */ function getDataQualityRefreshesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getDataQualityRefreshes:getDataQualityRefreshes", { "objectId": args.objectId, "objectType": args.objectType, "pageSize": args.pageSize, }, opts); } exports.getDataQualityRefreshesOutput = getDataQualityRefreshesOutput; //# sourceMappingURL=getDataQualityRefreshes.js.map