UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

60 lines 2.61 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.getAppsSettingsCustomTemplatesOutput = exports.getAppsSettingsCustomTemplates = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types) * * This data source can be used to fetch the list of Custom Templates within the workspace. * The list can then be accessed via the data object's `templates` field. * * ## Example Usage * * Getting a list of all Custom Templates: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getAppsSettingsCustomTemplates({}); * export const allCustomTemplates = all.then(all => all.templates); * ``` */ function getAppsSettingsCustomTemplates(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getAppsSettingsCustomTemplates:getAppsSettingsCustomTemplates", { "pageSize": args.pageSize, }, opts); } exports.getAppsSettingsCustomTemplates = getAppsSettingsCustomTemplates; /** * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types) * * This data source can be used to fetch the list of Custom Templates within the workspace. * The list can then be accessed via the data object's `templates` field. * * ## Example Usage * * Getting a list of all Custom Templates: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getAppsSettingsCustomTemplates({}); * export const allCustomTemplates = all.then(all => all.templates); * ``` */ function getAppsSettingsCustomTemplatesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getAppsSettingsCustomTemplates:getAppsSettingsCustomTemplates", { "pageSize": args.pageSize, }, opts); } exports.getAppsSettingsCustomTemplatesOutput = getAppsSettingsCustomTemplatesOutput; //# sourceMappingURL=getAppsSettingsCustomTemplates.js.map