@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
70 lines • 3.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.getPolicyInfosOutput = exports.getPolicyInfos = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* [](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;
/**
* [](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