UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

70 lines 3.14 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.getPolicyInfosOutput = exports.getPolicyInfos = 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) * * Retrieves a list of all ABAC (Attribute-Based Access Control) policies defined on a specific securable in Unity Catalog. Use this data source to query all policies for a given securable type and 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 * * ### List All Policies on a Securable * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const catalogPolicies = databricks.getPolicyInfos({ * onSecurableType: "catalog", * onSecurableFullname: "main", * }); * ``` */ function getPolicyInfos(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getPolicyInfos:getPolicyInfos", { "includeInherited": args.includeInherited, "maxResults": args.maxResults, "onSecurableFullname": args.onSecurableFullname, "onSecurableType": args.onSecurableType, }, opts); } exports.getPolicyInfos = getPolicyInfos; /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * Retrieves a list of all ABAC (Attribute-Based Access Control) policies defined on a specific securable in Unity Catalog. Use this data source to query all policies for a given securable type and 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 * * ### List All Policies on a Securable * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const catalogPolicies = databricks.getPolicyInfos({ * onSecurableType: "catalog", * onSecurableFullname: "main", * }); * ``` */ function getPolicyInfosOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getPolicyInfos:getPolicyInfos", { "includeInherited": args.includeInherited, "maxResults": args.maxResults, "onSecurableFullname": args.onSecurableFullname, "onSecurableType": args.onSecurableType, }, opts); } exports.getPolicyInfosOutput = getPolicyInfosOutput; //# sourceMappingURL=getPolicyInfos.js.map