@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
117 lines (116 loc) • 4.3 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* > 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.
*/
export declare function getServingEndpoints(args?: GetServingEndpointsArgs, opts?: pulumi.InvokeOptions): Promise<GetServingEndpointsResult>;
/**
* A collection of arguments for invoking getServingEndpoints.
*/
export interface GetServingEndpointsArgs {
/**
* List of objects describing the serving endpoints. Each object consists of following attributes:
*/
endpoints?: inputs.GetServingEndpointsEndpoint[];
}
/**
* A collection of values returned by getServingEndpoints.
*/
export interface GetServingEndpointsResult {
/**
* List of objects describing the serving endpoints. Each object consists of following attributes:
*/
readonly endpoints: outputs.GetServingEndpointsEndpoint[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}
/**
* > 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.
*/
export declare function getServingEndpointsOutput(args?: GetServingEndpointsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServingEndpointsResult>;
/**
* A collection of arguments for invoking getServingEndpoints.
*/
export interface GetServingEndpointsOutputArgs {
/**
* List of objects describing the serving endpoints. Each object consists of following attributes:
*/
endpoints?: pulumi.Input<pulumi.Input<inputs.GetServingEndpointsEndpointArgs>[]>;
}