UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

64 lines 2.73 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.getServicePrincipalFederationPoliciesOutput = exports.getServicePrincipalFederationPolicies = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * [![GA](https://img.shields.io/badge/Release_Stage-GA-green)](https://docs.databricks.com/aws/en/release-notes/release-types) * * This data source can be used to fetch the list of federation policies for a service principal. * * > **Note** This data source can only be used with an account-level provider! * * ## Example Usage * * Getting a list of all service principal federation policies: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getServicePrincipalFederationPolicies({ * servicePrincipalId: 1234, * }); * ``` */ function getServicePrincipalFederationPolicies(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getServicePrincipalFederationPolicies:getServicePrincipalFederationPolicies", { "pageSize": args.pageSize, "servicePrincipalId": args.servicePrincipalId, }, opts); } exports.getServicePrincipalFederationPolicies = getServicePrincipalFederationPolicies; /** * [![GA](https://img.shields.io/badge/Release_Stage-GA-green)](https://docs.databricks.com/aws/en/release-notes/release-types) * * This data source can be used to fetch the list of federation policies for a service principal. * * > **Note** This data source can only be used with an account-level provider! * * ## Example Usage * * Getting a list of all service principal federation policies: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getServicePrincipalFederationPolicies({ * servicePrincipalId: 1234, * }); * ``` */ function getServicePrincipalFederationPoliciesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getServicePrincipalFederationPolicies:getServicePrincipalFederationPolicies", { "pageSize": args.pageSize, "servicePrincipalId": args.servicePrincipalId, }, opts); } exports.getServicePrincipalFederationPoliciesOutput = getServicePrincipalFederationPoliciesOutput; //# sourceMappingURL=getServicePrincipalFederationPolicies.js.map