@pulumi/databricks 1.35.0-alpha.1711603543 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalogWorkspaceBinding.d.ts +5 -1
- package/catalogWorkspaceBinding.js +5 -1
- package/catalogWorkspaceBinding.js.map +1 -1
- package/getAwsCrossAccountPolicy.d.ts +47 -0
- package/getAwsCrossAccountPolicy.js +5 -0
- package/getAwsCrossAccountPolicy.js.map +1 -1
- package/getStorageCredentials.d.ts +11 -2
- package/getStorageCredentials.js +2 -2
- package/getStorageCredentials.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +17 -2
- package/index.js.map +1 -1
- package/job.d.ts +3 -3
- package/lakehouseMonitor.d.ts +301 -0
- package/lakehouseMonitor.js +145 -0
- package/lakehouseMonitor.js.map +1 -0
- package/modelServing.d.ts +25 -5
- package/modelServing.js +7 -5
- package/modelServing.js.map +1 -1
- package/onlineTable.d.ts +100 -0
- package/onlineTable.js +83 -0
- package/onlineTable.js.map +1 -0
- package/package.json +1 -1
- package/registeredModel.d.ts +12 -0
- package/registeredModel.js +2 -0
- package/registeredModel.js.map +1 -1
- package/servicePrincipal.d.ts +32 -25
- package/servicePrincipal.js +26 -19
- package/servicePrincipal.js.map +1 -1
- package/types/input.d.ts +577 -75
- package/types/output.d.ts +549 -56
- package/user.d.ts +6 -4
- package/user.js +3 -1
- package/user.js.map +1 -1
- package/vectorSearchEndpoint.d.ts +10 -10
- package/vectorSearchIndex.d.ts +164 -0
- package/vectorSearchIndex.js +110 -0
- package/vectorSearchIndex.js.map +1 -0
package/user.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* > **Note** Entitlements, like, `allowClusterCreate`, `allowInstancePoolCreate`, `databricksSqlAccess`, `workspaceAccess` applicable only for workspace-level users. Use databricks.Entitlements resource to assign entitlements inside a workspace to account-level users.
|
|
8
8
|
*
|
|
9
|
-
* To create users in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments
|
|
9
|
+
* To create users in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments.
|
|
10
|
+
*
|
|
11
|
+
* The default behavior when deleting a `databricks.User` resource depends on whether the provider is configured at the workspace-level or account-level. When the provider is configured at the workspace-level, the user will be deleted from the workspace. When the provider is configured at the account-level, the user will be deactivated but not deleted. When the provider is configured at the account level, to delete the user from the account when the resource is deleted, set `disableAsUserDeletion = false`. Conversely, when the provider is configured at the account-level, to deactivate the user when the resource is deleted, set `disableAsUserDeletion = true`.
|
|
10
12
|
*
|
|
11
13
|
* ## Example Usage
|
|
12
14
|
*
|
|
@@ -158,7 +160,7 @@ export declare class User extends pulumi.CustomResource {
|
|
|
158
160
|
*/
|
|
159
161
|
readonly databricksSqlAccess: pulumi.Output<boolean | undefined>;
|
|
160
162
|
/**
|
|
161
|
-
*
|
|
163
|
+
* Deactivate the user when deleting the resource, rather than deleting the user entirely. Defaults to `true` when the provider is configured at the account-level and `false` when configured at the workspace-level. This flag is exclusive to forceDeleteRepos and forceDeleteHomeDir flags.
|
|
162
164
|
*/
|
|
163
165
|
readonly disableAsUserDeletion: pulumi.Output<boolean>;
|
|
164
166
|
/**
|
|
@@ -225,7 +227,7 @@ export interface UserState {
|
|
|
225
227
|
*/
|
|
226
228
|
databricksSqlAccess?: pulumi.Input<boolean>;
|
|
227
229
|
/**
|
|
228
|
-
*
|
|
230
|
+
* Deactivate the user when deleting the resource, rather than deleting the user entirely. Defaults to `true` when the provider is configured at the account-level and `false` when configured at the workspace-level. This flag is exclusive to forceDeleteRepos and forceDeleteHomeDir flags.
|
|
229
231
|
*/
|
|
230
232
|
disableAsUserDeletion?: pulumi.Input<boolean>;
|
|
231
233
|
/**
|
|
@@ -284,7 +286,7 @@ export interface UserArgs {
|
|
|
284
286
|
*/
|
|
285
287
|
databricksSqlAccess?: pulumi.Input<boolean>;
|
|
286
288
|
/**
|
|
287
|
-
*
|
|
289
|
+
* Deactivate the user when deleting the resource, rather than deleting the user entirely. Defaults to `true` when the provider is configured at the account-level and `false` when configured at the workspace-level. This flag is exclusive to forceDeleteRepos and forceDeleteHomeDir flags.
|
|
288
290
|
*/
|
|
289
291
|
disableAsUserDeletion?: pulumi.Input<boolean>;
|
|
290
292
|
/**
|
package/user.js
CHANGED
|
@@ -12,7 +12,9 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* > **Note** Entitlements, like, `allowClusterCreate`, `allowInstancePoolCreate`, `databricksSqlAccess`, `workspaceAccess` applicable only for workspace-level users. Use databricks.Entitlements resource to assign entitlements inside a workspace to account-level users.
|
|
14
14
|
*
|
|
15
|
-
* To create users in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments
|
|
15
|
+
* To create users in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments.
|
|
16
|
+
*
|
|
17
|
+
* The default behavior when deleting a `databricks.User` resource depends on whether the provider is configured at the workspace-level or account-level. When the provider is configured at the workspace-level, the user will be deleted from the workspace. When the provider is configured at the account-level, the user will be deactivated but not deleted. When the provider is configured at the account level, to delete the user from the account when the resource is deleted, set `disableAsUserDeletion = false`. Conversely, when the provider is configured at the account-level, to deactivate the user when the resource is deleted, set `disableAsUserDeletion = true`.
|
|
16
18
|
*
|
|
17
19
|
* ## Example Usage
|
|
18
20
|
*
|
package/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../user.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF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
|
|
58
58
|
/**
|
|
59
|
-
* Object describing the current status of the endpoint consisting of following fields:
|
|
59
|
+
* Object describing the current status of the endpoint consisting of the following fields:
|
|
60
60
|
*/
|
|
61
61
|
readonly endpointStatuses: pulumi.Output<outputs.VectorSearchEndpointEndpointStatus[]>;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Type of Vector Search Endpoint. Currently only accepting single value: `STANDARD` (See [documentation](https://docs.databricks.com/api/workspace/vectorsearchendpoints/createendpoint) for the list of currently supported values).
|
|
64
64
|
*/
|
|
65
65
|
readonly endpointType: pulumi.Output<string>;
|
|
66
66
|
/**
|
|
67
|
-
* Timestamp of last update to the endpoint (milliseconds).
|
|
67
|
+
* Timestamp of the last update to the endpoint (milliseconds).
|
|
68
68
|
*/
|
|
69
69
|
readonly lastUpdatedTimestamp: pulumi.Output<number>;
|
|
70
70
|
/**
|
|
@@ -72,7 +72,7 @@ export declare class VectorSearchEndpoint extends pulumi.CustomResource {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly lastUpdatedUser: pulumi.Output<string>;
|
|
74
74
|
/**
|
|
75
|
-
* Name of the Vector Search Endpoint to create.
|
|
75
|
+
* Name of the Vector Search Endpoint to create.
|
|
76
76
|
*/
|
|
77
77
|
readonly name: pulumi.Output<string>;
|
|
78
78
|
/**
|
|
@@ -105,15 +105,15 @@ export interface VectorSearchEndpointState {
|
|
|
105
105
|
*/
|
|
106
106
|
endpointId?: pulumi.Input<string>;
|
|
107
107
|
/**
|
|
108
|
-
* Object describing the current status of the endpoint consisting of following fields:
|
|
108
|
+
* Object describing the current status of the endpoint consisting of the following fields:
|
|
109
109
|
*/
|
|
110
110
|
endpointStatuses?: pulumi.Input<pulumi.Input<inputs.VectorSearchEndpointEndpointStatus>[]>;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Type of Vector Search Endpoint. Currently only accepting single value: `STANDARD` (See [documentation](https://docs.databricks.com/api/workspace/vectorsearchendpoints/createendpoint) for the list of currently supported values).
|
|
113
113
|
*/
|
|
114
114
|
endpointType?: pulumi.Input<string>;
|
|
115
115
|
/**
|
|
116
|
-
* Timestamp of last update to the endpoint (milliseconds).
|
|
116
|
+
* Timestamp of the last update to the endpoint (milliseconds).
|
|
117
117
|
*/
|
|
118
118
|
lastUpdatedTimestamp?: pulumi.Input<number>;
|
|
119
119
|
/**
|
|
@@ -121,7 +121,7 @@ export interface VectorSearchEndpointState {
|
|
|
121
121
|
*/
|
|
122
122
|
lastUpdatedUser?: pulumi.Input<string>;
|
|
123
123
|
/**
|
|
124
|
-
* Name of the Vector Search Endpoint to create.
|
|
124
|
+
* Name of the Vector Search Endpoint to create.
|
|
125
125
|
*/
|
|
126
126
|
name?: pulumi.Input<string>;
|
|
127
127
|
/**
|
|
@@ -134,11 +134,11 @@ export interface VectorSearchEndpointState {
|
|
|
134
134
|
*/
|
|
135
135
|
export interface VectorSearchEndpointArgs {
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* Type of Vector Search Endpoint. Currently only accepting single value: `STANDARD` (See [documentation](https://docs.databricks.com/api/workspace/vectorsearchendpoints/createendpoint) for the list of currently supported values).
|
|
138
138
|
*/
|
|
139
139
|
endpointType: pulumi.Input<string>;
|
|
140
140
|
/**
|
|
141
|
-
* Name of the Vector Search Endpoint to create.
|
|
141
|
+
* Name of the Vector Search Endpoint to create.
|
|
142
142
|
*/
|
|
143
143
|
name?: pulumi.Input<string>;
|
|
144
144
|
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* > **Note** This resource could be only used on Unity Catalog-enabled workspace!
|
|
6
|
+
*
|
|
7
|
+
* This resource allows you to create [Vector Search Index](https://docs.databricks.com/en/generative-ai/create-query-vector-search.html) in Databricks. 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 Vector Search Index provides the ability to search data in the linked Delta Table.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as databricks from "@pulumi/databricks";
|
|
15
|
+
*
|
|
16
|
+
* const sync = new databricks.VectorSearchIndex("sync", {
|
|
17
|
+
* endpointName: databricks_vector_search_endpoint["this"].name,
|
|
18
|
+
* primaryKey: "id",
|
|
19
|
+
* indexType: "DELTA_SYNC",
|
|
20
|
+
* deltaSyncIndexSpec: {
|
|
21
|
+
* sourceTable: "main.default.source_table",
|
|
22
|
+
* pipelineType: "TRIGGERED",
|
|
23
|
+
* embeddingSourceColumns: [{
|
|
24
|
+
* name: "text",
|
|
25
|
+
* embeddingModelEndpointName: databricks_model_serving["this"].name,
|
|
26
|
+
* }],
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
* <!--End PulumiCodeChooser -->
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* The resource can be imported using the name of the Vector Search Index
|
|
35
|
+
*
|
|
36
|
+
* bash
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import databricks:index/vectorSearchIndex:VectorSearchIndex this <index-name>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class VectorSearchIndex extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing VectorSearchIndex resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VectorSearchIndexState, opts?: pulumi.CustomResourceOptions): VectorSearchIndex;
|
|
53
|
+
/**
|
|
54
|
+
* Returns true if the given object is an instance of VectorSearchIndex. This is designed to work even
|
|
55
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
+
*/
|
|
57
|
+
static isInstance(obj: any): obj is VectorSearchIndex;
|
|
58
|
+
/**
|
|
59
|
+
* Creator of the endpoint.
|
|
60
|
+
*/
|
|
61
|
+
readonly creator: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Specification for Delta Sync Index. Required if `indexType` is `DELTA_SYNC`.
|
|
64
|
+
*/
|
|
65
|
+
readonly deltaSyncIndexSpec: pulumi.Output<outputs.VectorSearchIndexDeltaSyncIndexSpec | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Specification for Direct Vector Access Index. Required if `indexType` is `DIRECT_ACCESS`.
|
|
68
|
+
*/
|
|
69
|
+
readonly directAccessIndexSpec: pulumi.Output<outputs.VectorSearchIndexDirectAccessIndexSpec | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* The name of the Vector Search Endpoint that will be used for indexing the data.
|
|
72
|
+
*/
|
|
73
|
+
readonly endpointName: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Vector Search index type. Currently supported values are:
|
|
76
|
+
*/
|
|
77
|
+
readonly indexType: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The name of the column.
|
|
80
|
+
*/
|
|
81
|
+
readonly name: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The column name that will be used as a primary key.
|
|
84
|
+
*/
|
|
85
|
+
readonly primaryKey: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Object describing the current status of the index consisting of the following fields:
|
|
88
|
+
*/
|
|
89
|
+
readonly statuses: pulumi.Output<outputs.VectorSearchIndexStatus[]>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a VectorSearchIndex resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args: VectorSearchIndexArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering VectorSearchIndex resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface VectorSearchIndexState {
|
|
103
|
+
/**
|
|
104
|
+
* Creator of the endpoint.
|
|
105
|
+
*/
|
|
106
|
+
creator?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Specification for Delta Sync Index. Required if `indexType` is `DELTA_SYNC`.
|
|
109
|
+
*/
|
|
110
|
+
deltaSyncIndexSpec?: pulumi.Input<inputs.VectorSearchIndexDeltaSyncIndexSpec>;
|
|
111
|
+
/**
|
|
112
|
+
* Specification for Direct Vector Access Index. Required if `indexType` is `DIRECT_ACCESS`.
|
|
113
|
+
*/
|
|
114
|
+
directAccessIndexSpec?: pulumi.Input<inputs.VectorSearchIndexDirectAccessIndexSpec>;
|
|
115
|
+
/**
|
|
116
|
+
* The name of the Vector Search Endpoint that will be used for indexing the data.
|
|
117
|
+
*/
|
|
118
|
+
endpointName?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Vector Search index type. Currently supported values are:
|
|
121
|
+
*/
|
|
122
|
+
indexType?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The name of the column.
|
|
125
|
+
*/
|
|
126
|
+
name?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The column name that will be used as a primary key.
|
|
129
|
+
*/
|
|
130
|
+
primaryKey?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Object describing the current status of the index consisting of the following fields:
|
|
133
|
+
*/
|
|
134
|
+
statuses?: pulumi.Input<pulumi.Input<inputs.VectorSearchIndexStatus>[]>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The set of arguments for constructing a VectorSearchIndex resource.
|
|
138
|
+
*/
|
|
139
|
+
export interface VectorSearchIndexArgs {
|
|
140
|
+
/**
|
|
141
|
+
* Specification for Delta Sync Index. Required if `indexType` is `DELTA_SYNC`.
|
|
142
|
+
*/
|
|
143
|
+
deltaSyncIndexSpec?: pulumi.Input<inputs.VectorSearchIndexDeltaSyncIndexSpec>;
|
|
144
|
+
/**
|
|
145
|
+
* Specification for Direct Vector Access Index. Required if `indexType` is `DIRECT_ACCESS`.
|
|
146
|
+
*/
|
|
147
|
+
directAccessIndexSpec?: pulumi.Input<inputs.VectorSearchIndexDirectAccessIndexSpec>;
|
|
148
|
+
/**
|
|
149
|
+
* The name of the Vector Search Endpoint that will be used for indexing the data.
|
|
150
|
+
*/
|
|
151
|
+
endpointName: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Vector Search index type. Currently supported values are:
|
|
154
|
+
*/
|
|
155
|
+
indexType: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The name of the column.
|
|
158
|
+
*/
|
|
159
|
+
name?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The column name that will be used as a primary key.
|
|
162
|
+
*/
|
|
163
|
+
primaryKey: pulumi.Input<string>;
|
|
164
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.VectorSearchIndex = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > **Note** This resource could be only used on Unity Catalog-enabled workspace!
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create [Vector Search Index](https://docs.databricks.com/en/generative-ai/create-query-vector-search.html) in Databricks. 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 Vector Search Index provides the ability to search data in the linked Delta Table.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as databricks from "@pulumi/databricks";
|
|
19
|
+
*
|
|
20
|
+
* const sync = new databricks.VectorSearchIndex("sync", {
|
|
21
|
+
* endpointName: databricks_vector_search_endpoint["this"].name,
|
|
22
|
+
* primaryKey: "id",
|
|
23
|
+
* indexType: "DELTA_SYNC",
|
|
24
|
+
* deltaSyncIndexSpec: {
|
|
25
|
+
* sourceTable: "main.default.source_table",
|
|
26
|
+
* pipelineType: "TRIGGERED",
|
|
27
|
+
* embeddingSourceColumns: [{
|
|
28
|
+
* name: "text",
|
|
29
|
+
* embeddingModelEndpointName: databricks_model_serving["this"].name,
|
|
30
|
+
* }],
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
* <!--End PulumiCodeChooser -->
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* The resource can be imported using the name of the Vector Search Index
|
|
39
|
+
*
|
|
40
|
+
* bash
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import databricks:index/vectorSearchIndex:VectorSearchIndex this <index-name>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class VectorSearchIndex extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing VectorSearchIndex resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new VectorSearchIndex(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of VectorSearchIndex. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === VectorSearchIndex.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
constructor(name, argsOrState, opts) {
|
|
70
|
+
let resourceInputs = {};
|
|
71
|
+
opts = opts || {};
|
|
72
|
+
if (opts.id) {
|
|
73
|
+
const state = argsOrState;
|
|
74
|
+
resourceInputs["creator"] = state ? state.creator : undefined;
|
|
75
|
+
resourceInputs["deltaSyncIndexSpec"] = state ? state.deltaSyncIndexSpec : undefined;
|
|
76
|
+
resourceInputs["directAccessIndexSpec"] = state ? state.directAccessIndexSpec : undefined;
|
|
77
|
+
resourceInputs["endpointName"] = state ? state.endpointName : undefined;
|
|
78
|
+
resourceInputs["indexType"] = state ? state.indexType : undefined;
|
|
79
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
80
|
+
resourceInputs["primaryKey"] = state ? state.primaryKey : undefined;
|
|
81
|
+
resourceInputs["statuses"] = state ? state.statuses : undefined;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
const args = argsOrState;
|
|
85
|
+
if ((!args || args.endpointName === undefined) && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'endpointName'");
|
|
87
|
+
}
|
|
88
|
+
if ((!args || args.indexType === undefined) && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'indexType'");
|
|
90
|
+
}
|
|
91
|
+
if ((!args || args.primaryKey === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'primaryKey'");
|
|
93
|
+
}
|
|
94
|
+
resourceInputs["deltaSyncIndexSpec"] = args ? args.deltaSyncIndexSpec : undefined;
|
|
95
|
+
resourceInputs["directAccessIndexSpec"] = args ? args.directAccessIndexSpec : undefined;
|
|
96
|
+
resourceInputs["endpointName"] = args ? args.endpointName : undefined;
|
|
97
|
+
resourceInputs["indexType"] = args ? args.indexType : undefined;
|
|
98
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
99
|
+
resourceInputs["primaryKey"] = args ? args.primaryKey : undefined;
|
|
100
|
+
resourceInputs["creator"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["statuses"] = undefined /*out*/;
|
|
102
|
+
}
|
|
103
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
104
|
+
super(VectorSearchIndex.__pulumiType, name, resourceInputs, opts);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.VectorSearchIndex = VectorSearchIndex;
|
|
108
|
+
/** @internal */
|
|
109
|
+
VectorSearchIndex.__pulumiType = 'databricks:index/vectorSearchIndex:VectorSearchIndex';
|
|
110
|
+
//# sourceMappingURL=vectorSearchIndex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorSearchIndex.js","sourceRoot":"","sources":["../vectorSearchIndex.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KA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