@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
70 lines • 3.06 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.getPolicyInfoOutput = exports.getPolicyInfo = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* Retrieves information about a specific ABAC (Attribute-Based Access Control) policy in Unity Catalog. Use this data source to query details of an existing policy by its securable type, securable name, and policy name.
*
* ABAC policies provide governance for enforcing compliance through data attributes, allowing flexible and comprehensive access control based on conditions rather than specific resources.
*
* ## Example Usage
*
* ### Get Policy Information
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const piiPolicy = databricks.getPolicyInfo({
* onSecurableType: "catalog",
* onSecurableFullname: "main",
* name: "pii_data_policy",
* });
* ```
*/
function getPolicyInfo(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getPolicyInfo:getPolicyInfo", {
"name": args.name,
"onSecurableFullname": args.onSecurableFullname,
"onSecurableType": args.onSecurableType,
}, opts);
}
exports.getPolicyInfo = getPolicyInfo;
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* Retrieves information about a specific ABAC (Attribute-Based Access Control) policy in Unity Catalog. Use this data source to query details of an existing policy by its securable type, securable name, and policy name.
*
* ABAC policies provide governance for enforcing compliance through data attributes, allowing flexible and comprehensive access control based on conditions rather than specific resources.
*
* ## Example Usage
*
* ### Get Policy Information
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const piiPolicy = databricks.getPolicyInfo({
* onSecurableType: "catalog",
* onSecurableFullname: "main",
* name: "pii_data_policy",
* });
* ```
*/
function getPolicyInfoOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getPolicyInfo:getPolicyInfo", {
"name": args.name,
"onSecurableFullname": args.onSecurableFullname,
"onSecurableType": args.onSecurableType,
}, opts);
}
exports.getPolicyInfoOutput = getPolicyInfoOutput;
//# sourceMappingURL=getPolicyInfo.js.map