UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

104 lines 4.01 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getServingEndpointsOutput = exports.getServingEndpoints = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > This resource can only be used with a workspace-level provider! * * This resource allows you to get information about [Model Serving](https://docs.databricks.com/machine-learning/model-serving/index.html) endpoints in Databricks. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getServingEndpoints({}); * const mlServingUsage: databricks.Permissions[] = []; * for (const range = {value: 0}; range.value < allDatabricksServingEndpoints.endpoints; range.value++) { * mlServingUsage.push(new databricks.Permissions(`ml_serving_usage-${range.value}`, { * servingEndpointId: range.value.id, * accessControls: [ * { * groupName: "users", * permissionLevel: "CAN_VIEW", * }, * { * groupName: auto.displayName, * permissionLevel: "CAN_MANAGE", * }, * { * groupName: eng.displayName, * permissionLevel: "CAN_QUERY", * }, * ], * })); * } * ``` * * ## Related Resources * * The following resources are often used in the same context: * * * databricks.Permissions can control which groups or individual users can *Manage*, *Query* or *View* individual serving endpoints. */ function getServingEndpoints(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getServingEndpoints:getServingEndpoints", { "endpoints": args.endpoints, }, opts); } exports.getServingEndpoints = getServingEndpoints; /** * > This resource can only be used with a workspace-level provider! * * This resource allows you to get information about [Model Serving](https://docs.databricks.com/machine-learning/model-serving/index.html) endpoints in Databricks. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getServingEndpoints({}); * const mlServingUsage: databricks.Permissions[] = []; * for (const range = {value: 0}; range.value < allDatabricksServingEndpoints.endpoints; range.value++) { * mlServingUsage.push(new databricks.Permissions(`ml_serving_usage-${range.value}`, { * servingEndpointId: range.value.id, * accessControls: [ * { * groupName: "users", * permissionLevel: "CAN_VIEW", * }, * { * groupName: auto.displayName, * permissionLevel: "CAN_MANAGE", * }, * { * groupName: eng.displayName, * permissionLevel: "CAN_QUERY", * }, * ], * })); * } * ``` * * ## Related Resources * * The following resources are often used in the same context: * * * databricks.Permissions can control which groups or individual users can *Manage*, *Query* or *View* individual serving endpoints. */ function getServingEndpointsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getServingEndpoints:getServingEndpoints", { "endpoints": args.endpoints, }, opts); } exports.getServingEndpointsOutput = getServingEndpointsOutput; //# sourceMappingURL=getServingEndpoints.js.map