@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
76 lines • 3.12 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.getRegisteredModelOutput = exports.getRegisteredModel = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource allows you to get information about [Model in Unity Catalog](https://docs.databricks.com/en/mlflow/models-in-uc.html) in Databricks.
*
* > This data source can only be used with a workspace-level provider!
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getRegisteredModel({
* fullName: "main.default.my_model",
* });
* ```
*
* ## Related Resources
*
* The following resources are often used in the same context:
*
* * databricks.RegisteredModel resource to manage models within Unity Catalog.
* * databricks.ModelServing to serve this model on a Databricks serving endpoint.
* * databricks.MlflowExperiment to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.html) in Databricks.
*/
function getRegisteredModel(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getRegisteredModel:getRegisteredModel", {
"fullName": args.fullName,
"includeAliases": args.includeAliases,
"includeBrowse": args.includeBrowse,
"modelInfos": args.modelInfos,
}, opts);
}
exports.getRegisteredModel = getRegisteredModel;
/**
* This resource allows you to get information about [Model in Unity Catalog](https://docs.databricks.com/en/mlflow/models-in-uc.html) in Databricks.
*
* > This data source can only be used with a workspace-level provider!
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getRegisteredModel({
* fullName: "main.default.my_model",
* });
* ```
*
* ## Related Resources
*
* The following resources are often used in the same context:
*
* * databricks.RegisteredModel resource to manage models within Unity Catalog.
* * databricks.ModelServing to serve this model on a Databricks serving endpoint.
* * databricks.MlflowExperiment to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.html) in Databricks.
*/
function getRegisteredModelOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getRegisteredModel:getRegisteredModel", {
"fullName": args.fullName,
"includeAliases": args.includeAliases,
"includeBrowse": args.includeBrowse,
"modelInfos": args.modelInfos,
}, opts);
}
exports.getRegisteredModelOutput = getRegisteredModelOutput;
//# sourceMappingURL=getRegisteredModel.js.map