UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

95 lines 4.63 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.VectorSearchEndpoint = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > This resource can only be used on a Unity Catalog-enabled workspace! * * This resource allows you to create [Mosaic AI Vector Search Endpoint](https://docs.databricks.com/en/generative-ai/vector-search.html) in Databricks. Mosaic AI Vector Search is a serverless similarity search engine that allows you to store a vector representation of your data, including metadata, in a vector database. The Mosaic AI Vector Search Endpoint is used to create and access vector search indexes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = new databricks.VectorSearchEndpoint("this", { * name: "vector-search-test", * endpointType: "STANDARD", * }); * ``` * * ## Import * * The resource can be imported using the name of the Mosaic AI Vector Search Endpoint * * bash * * ```sh * $ pulumi import databricks:index/vectorSearchEndpoint:VectorSearchEndpoint this <endpoint-name> * ``` */ class VectorSearchEndpoint extends pulumi.CustomResource { /** * Get an existing VectorSearchEndpoint resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new VectorSearchEndpoint(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of VectorSearchEndpoint. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === VectorSearchEndpoint.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["creationTimestamp"] = state ? state.creationTimestamp : undefined; resourceInputs["creator"] = state ? state.creator : undefined; resourceInputs["endpointId"] = state ? state.endpointId : undefined; resourceInputs["endpointStatuses"] = state ? state.endpointStatuses : undefined; resourceInputs["endpointType"] = state ? state.endpointType : undefined; resourceInputs["lastUpdatedTimestamp"] = state ? state.lastUpdatedTimestamp : undefined; resourceInputs["lastUpdatedUser"] = state ? state.lastUpdatedUser : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["numIndexes"] = state ? state.numIndexes : undefined; } else { const args = argsOrState; if ((!args || args.endpointType === undefined) && !opts.urn) { throw new Error("Missing required property 'endpointType'"); } resourceInputs["endpointType"] = args ? args.endpointType : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["creationTimestamp"] = undefined /*out*/; resourceInputs["creator"] = undefined /*out*/; resourceInputs["endpointId"] = undefined /*out*/; resourceInputs["endpointStatuses"] = undefined /*out*/; resourceInputs["lastUpdatedTimestamp"] = undefined /*out*/; resourceInputs["lastUpdatedUser"] = undefined /*out*/; resourceInputs["numIndexes"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(VectorSearchEndpoint.__pulumiType, name, resourceInputs, opts); } } exports.VectorSearchEndpoint = VectorSearchEndpoint; /** @internal */ VectorSearchEndpoint.__pulumiType = 'databricks:index/vectorSearchEndpoint:VectorSearchEndpoint'; //# sourceMappingURL=vectorSearchEndpoint.js.map