@pulumi/databricks 1.110.0-alpha.1789105339 → 1.110.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/aiGatewayMcpService.d.ts +48 -43
- package/aiGatewayMcpService.d.ts.map +1 -1
- package/aiGatewayMcpService.js +25 -3
- package/aiGatewayMcpService.js.map +1 -1
- package/aiGatewayModelProviderService.d.ts +60 -46
- package/aiGatewayModelProviderService.d.ts.map +1 -1
- package/aiGatewayModelProviderService.js +37 -3
- package/aiGatewayModelProviderService.js.map +1 -1
- package/aiGatewayModelService.d.ts +61 -47
- package/aiGatewayModelService.d.ts.map +1 -1
- package/aiGatewayModelService.js +32 -3
- package/aiGatewayModelService.js.map +1 -1
- package/app.d.ts +12 -3
- package/app.d.ts.map +1 -1
- package/app.js.map +1 -1
- package/domain.d.ts +232 -0
- package/domain.d.ts.map +1 -0
- package/domain.js +127 -0
- package/domain.js.map +1 -0
- package/featureEngineeringFeature.d.ts +9 -0
- package/featureEngineeringFeature.d.ts.map +1 -1
- package/featureEngineeringFeature.js +6 -0
- package/featureEngineeringFeature.js.map +1 -1
- package/featureEngineeringMaterializedFeature.d.ts +62 -0
- package/featureEngineeringMaterializedFeature.d.ts.map +1 -1
- package/featureEngineeringMaterializedFeature.js +8 -0
- package/featureEngineeringMaterializedFeature.js.map +1 -1
- package/getAiGatewayMcpService.d.ts +46 -21
- package/getAiGatewayMcpService.d.ts.map +1 -1
- package/getAiGatewayMcpService.js +34 -2
- package/getAiGatewayMcpService.js.map +1 -1
- package/getAiGatewayMcpServices.d.ts +46 -14
- package/getAiGatewayMcpServices.d.ts.map +1 -1
- package/getAiGatewayMcpServices.js +34 -2
- package/getAiGatewayMcpServices.js.map +1 -1
- package/getAiGatewayModelProviderService.d.ts +48 -24
- package/getAiGatewayModelProviderService.d.ts.map +1 -1
- package/getAiGatewayModelProviderService.js +34 -2
- package/getAiGatewayModelProviderService.js.map +1 -1
- package/getAiGatewayModelProviderServices.d.ts +51 -17
- package/getAiGatewayModelProviderServices.d.ts.map +1 -1
- package/getAiGatewayModelProviderServices.js +34 -2
- package/getAiGatewayModelProviderServices.js.map +1 -1
- package/getAiGatewayModelService.d.ts +47 -21
- package/getAiGatewayModelService.d.ts.map +1 -1
- package/getAiGatewayModelService.js +34 -2
- package/getAiGatewayModelService.js.map +1 -1
- package/getAiGatewayModelServices.d.ts +51 -17
- package/getAiGatewayModelServices.d.ts.map +1 -1
- package/getAiGatewayModelServices.js +34 -2
- package/getAiGatewayModelServices.js.map +1 -1
- package/getDomain.d.ts +135 -0
- package/getDomain.d.ts.map +1 -0
- package/getDomain.js +83 -0
- package/getDomain.js.map +1 -0
- package/getDomains.d.ts +85 -0
- package/getDomains.d.ts.map +1 -0
- package/getDomains.js +85 -0
- package/getDomains.js.map +1 -0
- package/getFeatureEngineeringFeature.d.ts +13 -1
- package/getFeatureEngineeringFeature.d.ts.map +1 -1
- package/getFeatureEngineeringFeature.js.map +1 -1
- package/getFeatureEngineeringKafkaConfig.d.ts +2 -1
- package/getFeatureEngineeringKafkaConfig.d.ts.map +1 -1
- package/getFeatureEngineeringKafkaConfig.js.map +1 -1
- package/getFeatureEngineeringMaterializedFeature.d.ts +25 -0
- package/getFeatureEngineeringMaterializedFeature.d.ts.map +1 -1
- package/getFeatureEngineeringMaterializedFeature.js.map +1 -1
- package/getPolicyInfo.d.ts +7 -1
- package/getPolicyInfo.d.ts.map +1 -1
- package/getPolicyInfo.js.map +1 -1
- package/getSandbox.d.ts +100 -0
- package/getSandbox.d.ts.map +1 -0
- package/getSandbox.js +85 -0
- package/getSandbox.js.map +1 -0
- package/getSandboxes.d.ts +68 -0
- package/getSandboxes.d.ts.map +1 -0
- package/getSandboxes.js +83 -0
- package/getSandboxes.js.map +1 -0
- package/grant.d.ts +18 -0
- package/grant.d.ts.map +1 -1
- package/grant.js +17 -0
- package/grant.js.map +1 -1
- package/grants.d.ts +20 -0
- package/grants.d.ts.map +1 -1
- package/grants.js +19 -0
- package/grants.js.map +1 -1
- package/index.d.ts +18 -0
- package/index.d.ts.map +1 -1
- package/index.js +34 -12
- package/index.js.map +1 -1
- package/mwsWorkspaces.d.ts +3 -3
- package/package.json +2 -2
- package/policyInfo.d.ts +21 -3
- package/policyInfo.d.ts.map +1 -1
- package/policyInfo.js +2 -0
- package/policyInfo.js.map +1 -1
- package/postgresBranch.d.ts +18 -0
- package/postgresBranch.d.ts.map +1 -1
- package/postgresBranch.js +18 -0
- package/postgresBranch.js.map +1 -1
- package/postgresSnapshotSchedule.d.ts +13 -1
- package/postgresSnapshotSchedule.d.ts.map +1 -1
- package/postgresSnapshotSchedule.js +5 -0
- package/postgresSnapshotSchedule.js.map +1 -1
- package/sandbox.d.ts +147 -0
- package/sandbox.d.ts.map +1 -0
- package/sandbox.js +117 -0
- package/sandbox.js.map +1 -0
- package/types/input.d.ts +462 -273
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1609 -984
- package/types/output.d.ts.map +1 -1
package/aiGatewayMcpService.d.ts
CHANGED
|
@@ -2,9 +2,33 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
6
6
|
*
|
|
7
7
|
* [API Documentation](https://docs.databricks.com/api/workspace/aigateway)
|
|
8
|
+
*
|
|
9
|
+
* Manages an MCP service in Unity Catalog. An MCP service governs access to an MCP server hosted through a Unity Catalog connection.
|
|
10
|
+
*
|
|
11
|
+
* The Unity Catalog connection must exist before you create the MCP service. MCP services are contained in a Unity Catalog schema and governed by Unity Catalog permissions.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* The following example registers an MCP service backed by a Unity Catalog connection:
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as databricks from "@pulumi/databricks";
|
|
20
|
+
*
|
|
21
|
+
* const example = new databricks.AiGatewayMcpService("example", {
|
|
22
|
+
* parent: "schemas/main.default",
|
|
23
|
+
* mcpServiceId: "knowledge_tools",
|
|
24
|
+
* comment: "Provides governed access to knowledge tools",
|
|
25
|
+
* config: {
|
|
26
|
+
* sourceConnection: {
|
|
27
|
+
* name: "connections/main.default.mcp_connection",
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
8
32
|
*/
|
|
9
33
|
export declare class AiGatewayMcpService extends pulumi.CustomResource {
|
|
10
34
|
/**
|
|
@@ -27,14 +51,13 @@ export declare class AiGatewayMcpService extends pulumi.CustomResource {
|
|
|
27
51
|
*/
|
|
28
52
|
readonly comment: pulumi.Output<string | undefined>;
|
|
29
53
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* subpath) appears in `updateMask`
|
|
54
|
+
* Connection, tool selectors, and rate limits. Required on Create. On Update,
|
|
55
|
+
* provide this field when `updateMask` contains `config` or one of its
|
|
56
|
+
* subpaths
|
|
34
57
|
*/
|
|
35
58
|
readonly config: pulumi.Output<outputs.AiGatewayMcpServiceConfig | undefined>;
|
|
36
59
|
/**
|
|
37
|
-
* (string) -
|
|
60
|
+
* (string) - Time the MCP service was created
|
|
38
61
|
*/
|
|
39
62
|
readonly createTime: pulumi.Output<string>;
|
|
40
63
|
/**
|
|
@@ -42,16 +65,14 @@ export declare class AiGatewayMcpService extends pulumi.CustomResource {
|
|
|
42
65
|
*/
|
|
43
66
|
readonly createdBy: pulumi.Output<string>;
|
|
44
67
|
/**
|
|
45
|
-
* (string) -
|
|
46
|
-
* when `owner` is not explicitly set on creation
|
|
68
|
+
* (string) - Owner of the MCP service
|
|
47
69
|
*/
|
|
48
70
|
readonly effectiveOwner: pulumi.Output<string>;
|
|
49
71
|
/**
|
|
50
|
-
* (string) - Optimistic concurrency
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* `etag`
|
|
54
|
-
* if the stored etag differs
|
|
72
|
+
* (string) - Optimistic concurrency token returned on every read. To make an Update or
|
|
73
|
+
* Delete conditional, pass the last-read value in that request's `etag`
|
|
74
|
+
* field. In REST responses, this value is a base64 string; URL-encode it when
|
|
75
|
+
* setting the `etag` query parameter
|
|
55
76
|
*/
|
|
56
77
|
readonly etag: pulumi.Output<string>;
|
|
57
78
|
/**
|
|
@@ -70,10 +91,6 @@ export declare class AiGatewayMcpService extends pulumi.CustomResource {
|
|
|
70
91
|
* `mcpServiceId`; required and immutable on Update/Get/Delete
|
|
71
92
|
*/
|
|
72
93
|
readonly name: pulumi.Output<string>;
|
|
73
|
-
/**
|
|
74
|
-
* The owner of the MCP service. Write-only; read owner via effective_owner
|
|
75
|
-
*/
|
|
76
|
-
readonly owner: pulumi.Output<string>;
|
|
77
94
|
/**
|
|
78
95
|
* Name of the parent schema.
|
|
79
96
|
* Format: `schemas/{catalog}.{schema}`.
|
|
@@ -85,7 +102,7 @@ export declare class AiGatewayMcpService extends pulumi.CustomResource {
|
|
|
85
102
|
*/
|
|
86
103
|
readonly providerConfig: pulumi.Output<outputs.AiGatewayMcpServiceProviderConfig>;
|
|
87
104
|
/**
|
|
88
|
-
* (string) -
|
|
105
|
+
* (string) - Time the MCP service was last modified
|
|
89
106
|
*/
|
|
90
107
|
readonly updateTime: pulumi.Output<string>;
|
|
91
108
|
/**
|
|
@@ -110,14 +127,13 @@ export interface AiGatewayMcpServiceState {
|
|
|
110
127
|
*/
|
|
111
128
|
comment?: pulumi.Input<string | undefined>;
|
|
112
129
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* subpath) appears in `updateMask`
|
|
130
|
+
* Connection, tool selectors, and rate limits. Required on Create. On Update,
|
|
131
|
+
* provide this field when `updateMask` contains `config` or one of its
|
|
132
|
+
* subpaths
|
|
117
133
|
*/
|
|
118
134
|
config?: pulumi.Input<inputs.AiGatewayMcpServiceConfig | undefined>;
|
|
119
135
|
/**
|
|
120
|
-
* (string) -
|
|
136
|
+
* (string) - Time the MCP service was created
|
|
121
137
|
*/
|
|
122
138
|
createTime?: pulumi.Input<string | undefined>;
|
|
123
139
|
/**
|
|
@@ -125,16 +141,14 @@ export interface AiGatewayMcpServiceState {
|
|
|
125
141
|
*/
|
|
126
142
|
createdBy?: pulumi.Input<string | undefined>;
|
|
127
143
|
/**
|
|
128
|
-
* (string) -
|
|
129
|
-
* when `owner` is not explicitly set on creation
|
|
144
|
+
* (string) - Owner of the MCP service
|
|
130
145
|
*/
|
|
131
146
|
effectiveOwner?: pulumi.Input<string | undefined>;
|
|
132
147
|
/**
|
|
133
|
-
* (string) - Optimistic concurrency
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* `etag`
|
|
137
|
-
* if the stored etag differs
|
|
148
|
+
* (string) - Optimistic concurrency token returned on every read. To make an Update or
|
|
149
|
+
* Delete conditional, pass the last-read value in that request's `etag`
|
|
150
|
+
* field. In REST responses, this value is a base64 string; URL-encode it when
|
|
151
|
+
* setting the `etag` query parameter
|
|
138
152
|
*/
|
|
139
153
|
etag?: pulumi.Input<string | undefined>;
|
|
140
154
|
/**
|
|
@@ -153,10 +167,6 @@ export interface AiGatewayMcpServiceState {
|
|
|
153
167
|
* `mcpServiceId`; required and immutable on Update/Get/Delete
|
|
154
168
|
*/
|
|
155
169
|
name?: pulumi.Input<string | undefined>;
|
|
156
|
-
/**
|
|
157
|
-
* The owner of the MCP service. Write-only; read owner via effective_owner
|
|
158
|
-
*/
|
|
159
|
-
owner?: pulumi.Input<string | undefined>;
|
|
160
170
|
/**
|
|
161
171
|
* Name of the parent schema.
|
|
162
172
|
* Format: `schemas/{catalog}.{schema}`.
|
|
@@ -168,7 +178,7 @@ export interface AiGatewayMcpServiceState {
|
|
|
168
178
|
*/
|
|
169
179
|
providerConfig?: pulumi.Input<inputs.AiGatewayMcpServiceProviderConfig | undefined>;
|
|
170
180
|
/**
|
|
171
|
-
* (string) -
|
|
181
|
+
* (string) - Time the MCP service was last modified
|
|
172
182
|
*/
|
|
173
183
|
updateTime?: pulumi.Input<string | undefined>;
|
|
174
184
|
/**
|
|
@@ -185,20 +195,15 @@ export interface AiGatewayMcpServiceArgs {
|
|
|
185
195
|
*/
|
|
186
196
|
comment?: pulumi.Input<string | undefined>;
|
|
187
197
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* subpath) appears in `updateMask`
|
|
198
|
+
* Connection, tool selectors, and rate limits. Required on Create. On Update,
|
|
199
|
+
* provide this field when `updateMask` contains `config` or one of its
|
|
200
|
+
* subpaths
|
|
192
201
|
*/
|
|
193
202
|
config?: pulumi.Input<inputs.AiGatewayMcpServiceConfig | undefined>;
|
|
194
203
|
/**
|
|
195
204
|
* Name for the MCP service, e.g. "myMcpService"
|
|
196
205
|
*/
|
|
197
206
|
mcpServiceId: pulumi.Input<string>;
|
|
198
|
-
/**
|
|
199
|
-
* The owner of the MCP service. Write-only; read owner via effective_owner
|
|
200
|
-
*/
|
|
201
|
-
owner?: pulumi.Input<string | undefined>;
|
|
202
207
|
/**
|
|
203
208
|
* Name of the parent schema.
|
|
204
209
|
* Format: `schemas/{catalog}.{schema}`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiGatewayMcpService.d.ts","sourceRoot":"","sources":["../aiGatewayMcpService.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"aiGatewayMcpService.d.ts","sourceRoot":"","sources":["../aiGatewayMcpService.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,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CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,iCAAiC,GAAG,SAAS,CAAC,CAAC;IACpF;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;IACpE;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,iCAAiC,GAAG,SAAS,CAAC,CAAC;CACvF"}
|
package/aiGatewayMcpService.js
CHANGED
|
@@ -29,9 +29,33 @@ exports.AiGatewayMcpService = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
33
33
|
*
|
|
34
34
|
* [API Documentation](https://docs.databricks.com/api/workspace/aigateway)
|
|
35
|
+
*
|
|
36
|
+
* Manages an MCP service in Unity Catalog. An MCP service governs access to an MCP server hosted through a Unity Catalog connection.
|
|
37
|
+
*
|
|
38
|
+
* The Unity Catalog connection must exist before you create the MCP service. MCP services are contained in a Unity Catalog schema and governed by Unity Catalog permissions.
|
|
39
|
+
*
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* The following example registers an MCP service backed by a Unity Catalog connection:
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as databricks from "@pulumi/databricks";
|
|
47
|
+
*
|
|
48
|
+
* const example = new databricks.AiGatewayMcpService("example", {
|
|
49
|
+
* parent: "schemas/main.default",
|
|
50
|
+
* mcpServiceId: "knowledge_tools",
|
|
51
|
+
* comment: "Provides governed access to knowledge tools",
|
|
52
|
+
* config: {
|
|
53
|
+
* sourceConnection: {
|
|
54
|
+
* name: "connections/main.default.mcp_connection",
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
35
59
|
*/
|
|
36
60
|
class AiGatewayMcpService extends pulumi.CustomResource {
|
|
37
61
|
/**
|
|
@@ -72,7 +96,6 @@ class AiGatewayMcpService extends pulumi.CustomResource {
|
|
|
72
96
|
resourceInputs["mcpServiceId"] = state?.mcpServiceId;
|
|
73
97
|
resourceInputs["metastoreId"] = state?.metastoreId;
|
|
74
98
|
resourceInputs["name"] = state?.name;
|
|
75
|
-
resourceInputs["owner"] = state?.owner;
|
|
76
99
|
resourceInputs["parent"] = state?.parent;
|
|
77
100
|
resourceInputs["providerConfig"] = state?.providerConfig;
|
|
78
101
|
resourceInputs["updateTime"] = state?.updateTime;
|
|
@@ -89,7 +112,6 @@ class AiGatewayMcpService extends pulumi.CustomResource {
|
|
|
89
112
|
resourceInputs["comment"] = args?.comment;
|
|
90
113
|
resourceInputs["config"] = args?.config;
|
|
91
114
|
resourceInputs["mcpServiceId"] = args?.mcpServiceId;
|
|
92
|
-
resourceInputs["owner"] = args?.owner;
|
|
93
115
|
resourceInputs["parent"] = args?.parent;
|
|
94
116
|
resourceInputs["providerConfig"] = args?.providerConfig;
|
|
95
117
|
resourceInputs["createTime"] = undefined /*out*/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiGatewayMcpService.js","sourceRoot":"","sources":["../aiGatewayMcpService.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"aiGatewayMcpService.js","sourceRoot":"","sources":["../aiGatewayMcpService.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0DAA0D,CAAC;IAEjG;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA0ED,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,C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YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA9IL,kDA+IC"}
|
|
@@ -2,9 +2,45 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
6
6
|
*
|
|
7
7
|
* [API Documentation](https://docs.databricks.com/api/workspace/aigateway)
|
|
8
|
+
*
|
|
9
|
+
* Manages a Unity Catalog model provider service. A model provider service defines how model services connect to an external model provider and which provider models they can access.
|
|
10
|
+
*
|
|
11
|
+
* Model provider services are contained in a Unity Catalog schema and governed by Unity Catalog permissions. Supply provider credentials through a sensitive variable or another secure input instead of hardcoding them in your configuration.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* The following example creates a model provider service for a custom OpenAI-compatible provider. Pass `providerApiKey` through a secure input, such as the `TF_VAR_provider_api_key` environment variable.
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as databricks from "@pulumi/databricks";
|
|
20
|
+
*
|
|
21
|
+
* const config = new pulumi.Config();
|
|
22
|
+
* const providerApiKey = config.require("providerApiKey");
|
|
23
|
+
* const example = new databricks.AiGatewayModelProviderService("example", {
|
|
24
|
+
* parent: "schemas/main.default",
|
|
25
|
+
* modelProviderServiceId: "custom_provider",
|
|
26
|
+
* comment: "Connects to a custom model provider",
|
|
27
|
+
* config: {
|
|
28
|
+
* providerType: "EXTERNAL_MODEL_PROVIDER_TYPE_CUSTOM",
|
|
29
|
+
* targets: [{
|
|
30
|
+
* model: "chat-model",
|
|
31
|
+
* nativeApiTypes: ["openai/v1/chat/completions"],
|
|
32
|
+
* }],
|
|
33
|
+
* custom: {
|
|
34
|
+
* direct: {
|
|
35
|
+
* baseUrl: "https://api.example.com/v1",
|
|
36
|
+
* apiKey: {
|
|
37
|
+
* plaintext: providerApiKey,
|
|
38
|
+
* },
|
|
39
|
+
* },
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
8
44
|
*/
|
|
9
45
|
export declare class AiGatewayModelProviderService extends pulumi.CustomResource {
|
|
10
46
|
/**
|
|
@@ -27,14 +63,13 @@ export declare class AiGatewayModelProviderService extends pulumi.CustomResource
|
|
|
27
63
|
*/
|
|
28
64
|
readonly comment: pulumi.Output<string | undefined>;
|
|
29
65
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* only when `config` (or a `config.*` subpath) appears in `updateMask`
|
|
66
|
+
* Provider authentication, exposed models, request-forwarding controls, rate
|
|
67
|
+
* limits, and payload logging. Required on Create. On Update, it is required
|
|
68
|
+
* only when `config` or one of its subpaths appears in `updateMask`
|
|
34
69
|
*/
|
|
35
70
|
readonly config: pulumi.Output<outputs.AiGatewayModelProviderServiceConfig | undefined>;
|
|
36
71
|
/**
|
|
37
|
-
* (string) -
|
|
72
|
+
* (string) - Time the provider service was created
|
|
38
73
|
*/
|
|
39
74
|
readonly createTime: pulumi.Output<string>;
|
|
40
75
|
/**
|
|
@@ -42,16 +77,14 @@ export declare class AiGatewayModelProviderService extends pulumi.CustomResource
|
|
|
42
77
|
*/
|
|
43
78
|
readonly createdBy: pulumi.Output<string>;
|
|
44
79
|
/**
|
|
45
|
-
* (string) -
|
|
46
|
-
* caller's identity when `owner` is not explicitly set on creation
|
|
80
|
+
* (string) - Owner of the model provider service
|
|
47
81
|
*/
|
|
48
82
|
readonly effectiveOwner: pulumi.Output<string>;
|
|
49
83
|
/**
|
|
50
|
-
* (string) - Optimistic concurrency
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* `etag`
|
|
54
|
-
* if the stored etag differs
|
|
84
|
+
* (string) - Optimistic concurrency token returned on every read. To make an Update or
|
|
85
|
+
* Delete conditional, pass the last-read value in that request's `etag`
|
|
86
|
+
* field. In REST responses, this value is a base64 string; URL-encode it when
|
|
87
|
+
* setting the `etag` query parameter
|
|
55
88
|
*/
|
|
56
89
|
readonly etag: pulumi.Output<string>;
|
|
57
90
|
/**
|
|
@@ -70,11 +103,6 @@ export declare class AiGatewayModelProviderService extends pulumi.CustomResource
|
|
|
70
103
|
* `modelProviderServiceId`; required and immutable on Update/Get/Delete
|
|
71
104
|
*/
|
|
72
105
|
readonly name: pulumi.Output<string>;
|
|
73
|
-
/**
|
|
74
|
-
* The owner of the model provider service. Write-only; read owner via
|
|
75
|
-
* effective_owner
|
|
76
|
-
*/
|
|
77
|
-
readonly owner: pulumi.Output<string>;
|
|
78
106
|
/**
|
|
79
107
|
* Name of the parent schema.
|
|
80
108
|
* Format: `schemas/{catalog}.{schema}`.
|
|
@@ -86,7 +114,7 @@ export declare class AiGatewayModelProviderService extends pulumi.CustomResource
|
|
|
86
114
|
*/
|
|
87
115
|
readonly providerConfig: pulumi.Output<outputs.AiGatewayModelProviderServiceProviderConfig>;
|
|
88
116
|
/**
|
|
89
|
-
* (string) -
|
|
117
|
+
* (string) - Time the provider service was last modified
|
|
90
118
|
*/
|
|
91
119
|
readonly updateTime: pulumi.Output<string>;
|
|
92
120
|
/**
|
|
@@ -111,14 +139,13 @@ export interface AiGatewayModelProviderServiceState {
|
|
|
111
139
|
*/
|
|
112
140
|
comment?: pulumi.Input<string | undefined>;
|
|
113
141
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* only when `config` (or a `config.*` subpath) appears in `updateMask`
|
|
142
|
+
* Provider authentication, exposed models, request-forwarding controls, rate
|
|
143
|
+
* limits, and payload logging. Required on Create. On Update, it is required
|
|
144
|
+
* only when `config` or one of its subpaths appears in `updateMask`
|
|
118
145
|
*/
|
|
119
146
|
config?: pulumi.Input<inputs.AiGatewayModelProviderServiceConfig | undefined>;
|
|
120
147
|
/**
|
|
121
|
-
* (string) -
|
|
148
|
+
* (string) - Time the provider service was created
|
|
122
149
|
*/
|
|
123
150
|
createTime?: pulumi.Input<string | undefined>;
|
|
124
151
|
/**
|
|
@@ -126,16 +153,14 @@ export interface AiGatewayModelProviderServiceState {
|
|
|
126
153
|
*/
|
|
127
154
|
createdBy?: pulumi.Input<string | undefined>;
|
|
128
155
|
/**
|
|
129
|
-
* (string) -
|
|
130
|
-
* caller's identity when `owner` is not explicitly set on creation
|
|
156
|
+
* (string) - Owner of the model provider service
|
|
131
157
|
*/
|
|
132
158
|
effectiveOwner?: pulumi.Input<string | undefined>;
|
|
133
159
|
/**
|
|
134
|
-
* (string) - Optimistic concurrency
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* `etag`
|
|
138
|
-
* if the stored etag differs
|
|
160
|
+
* (string) - Optimistic concurrency token returned on every read. To make an Update or
|
|
161
|
+
* Delete conditional, pass the last-read value in that request's `etag`
|
|
162
|
+
* field. In REST responses, this value is a base64 string; URL-encode it when
|
|
163
|
+
* setting the `etag` query parameter
|
|
139
164
|
*/
|
|
140
165
|
etag?: pulumi.Input<string | undefined>;
|
|
141
166
|
/**
|
|
@@ -154,11 +179,6 @@ export interface AiGatewayModelProviderServiceState {
|
|
|
154
179
|
* `modelProviderServiceId`; required and immutable on Update/Get/Delete
|
|
155
180
|
*/
|
|
156
181
|
name?: pulumi.Input<string | undefined>;
|
|
157
|
-
/**
|
|
158
|
-
* The owner of the model provider service. Write-only; read owner via
|
|
159
|
-
* effective_owner
|
|
160
|
-
*/
|
|
161
|
-
owner?: pulumi.Input<string | undefined>;
|
|
162
182
|
/**
|
|
163
183
|
* Name of the parent schema.
|
|
164
184
|
* Format: `schemas/{catalog}.{schema}`.
|
|
@@ -170,7 +190,7 @@ export interface AiGatewayModelProviderServiceState {
|
|
|
170
190
|
*/
|
|
171
191
|
providerConfig?: pulumi.Input<inputs.AiGatewayModelProviderServiceProviderConfig | undefined>;
|
|
172
192
|
/**
|
|
173
|
-
* (string) -
|
|
193
|
+
* (string) - Time the provider service was last modified
|
|
174
194
|
*/
|
|
175
195
|
updateTime?: pulumi.Input<string | undefined>;
|
|
176
196
|
/**
|
|
@@ -187,21 +207,15 @@ export interface AiGatewayModelProviderServiceArgs {
|
|
|
187
207
|
*/
|
|
188
208
|
comment?: pulumi.Input<string | undefined>;
|
|
189
209
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* only when `config` (or a `config.*` subpath) appears in `updateMask`
|
|
210
|
+
* Provider authentication, exposed models, request-forwarding controls, rate
|
|
211
|
+
* limits, and payload logging. Required on Create. On Update, it is required
|
|
212
|
+
* only when `config` or one of its subpaths appears in `updateMask`
|
|
194
213
|
*/
|
|
195
214
|
config?: pulumi.Input<inputs.AiGatewayModelProviderServiceConfig | undefined>;
|
|
196
215
|
/**
|
|
197
216
|
* Name for the model provider service, e.g. "openaiProd"
|
|
198
217
|
*/
|
|
199
218
|
modelProviderServiceId: pulumi.Input<string>;
|
|
200
|
-
/**
|
|
201
|
-
* The owner of the model provider service. Write-only; read owner via
|
|
202
|
-
* effective_owner
|
|
203
|
-
*/
|
|
204
|
-
owner?: pulumi.Input<string | undefined>;
|
|
205
219
|
/**
|
|
206
220
|
* Name of the parent schema.
|
|
207
221
|
* Format: `schemas/{catalog}.{schema}`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiGatewayModelProviderService.d.ts","sourceRoot":"","sources":["../aiGatewayModelProviderService.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"aiGatewayModelProviderService.d.ts","sourceRoot":"","sources":["../aiGatewayModelProviderService.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,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AAS,CAAC,CAAC;IAC9F;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,2CAA2C,GAAG,SAAS,CAAC,CAAC;CACjG"}
|
|
@@ -29,9 +29,45 @@ exports.AiGatewayModelProviderService = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
33
33
|
*
|
|
34
34
|
* [API Documentation](https://docs.databricks.com/api/workspace/aigateway)
|
|
35
|
+
*
|
|
36
|
+
* Manages a Unity Catalog model provider service. A model provider service defines how model services connect to an external model provider and which provider models they can access.
|
|
37
|
+
*
|
|
38
|
+
* Model provider services are contained in a Unity Catalog schema and governed by Unity Catalog permissions. Supply provider credentials through a sensitive variable or another secure input instead of hardcoding them in your configuration.
|
|
39
|
+
*
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* The following example creates a model provider service for a custom OpenAI-compatible provider. Pass `providerApiKey` through a secure input, such as the `TF_VAR_provider_api_key` environment variable.
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as databricks from "@pulumi/databricks";
|
|
47
|
+
*
|
|
48
|
+
* const config = new pulumi.Config();
|
|
49
|
+
* const providerApiKey = config.require("providerApiKey");
|
|
50
|
+
* const example = new databricks.AiGatewayModelProviderService("example", {
|
|
51
|
+
* parent: "schemas/main.default",
|
|
52
|
+
* modelProviderServiceId: "custom_provider",
|
|
53
|
+
* comment: "Connects to a custom model provider",
|
|
54
|
+
* config: {
|
|
55
|
+
* providerType: "EXTERNAL_MODEL_PROVIDER_TYPE_CUSTOM",
|
|
56
|
+
* targets: [{
|
|
57
|
+
* model: "chat-model",
|
|
58
|
+
* nativeApiTypes: ["openai/v1/chat/completions"],
|
|
59
|
+
* }],
|
|
60
|
+
* custom: {
|
|
61
|
+
* direct: {
|
|
62
|
+
* baseUrl: "https://api.example.com/v1",
|
|
63
|
+
* apiKey: {
|
|
64
|
+
* plaintext: providerApiKey,
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
35
71
|
*/
|
|
36
72
|
class AiGatewayModelProviderService extends pulumi.CustomResource {
|
|
37
73
|
/**
|
|
@@ -72,7 +108,6 @@ class AiGatewayModelProviderService extends pulumi.CustomResource {
|
|
|
72
108
|
resourceInputs["metastoreId"] = state?.metastoreId;
|
|
73
109
|
resourceInputs["modelProviderServiceId"] = state?.modelProviderServiceId;
|
|
74
110
|
resourceInputs["name"] = state?.name;
|
|
75
|
-
resourceInputs["owner"] = state?.owner;
|
|
76
111
|
resourceInputs["parent"] = state?.parent;
|
|
77
112
|
resourceInputs["providerConfig"] = state?.providerConfig;
|
|
78
113
|
resourceInputs["updateTime"] = state?.updateTime;
|
|
@@ -89,7 +124,6 @@ class AiGatewayModelProviderService extends pulumi.CustomResource {
|
|
|
89
124
|
resourceInputs["comment"] = args?.comment;
|
|
90
125
|
resourceInputs["config"] = args?.config;
|
|
91
126
|
resourceInputs["modelProviderServiceId"] = args?.modelProviderServiceId;
|
|
92
|
-
resourceInputs["owner"] = args?.owner;
|
|
93
127
|
resourceInputs["parent"] = args?.parent;
|
|
94
128
|
resourceInputs["providerConfig"] = args?.providerConfig;
|
|
95
129
|
resourceInputs["createTime"] = undefined /*out*/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiGatewayModelProviderService.js","sourceRoot":"","sources":["../aiGatewayModelProviderService.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"aiGatewayModelProviderService.js","sourceRoot":"","sources":["../aiGatewayModelProviderService.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8EAA8E,CAAC;IAErH;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;S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