@pulumi/databricks 0.0.1-alpha.1648473134
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/LICENSE +202 -0
- package/README.md +303 -0
- package/awsS3Mount.d.ts +50 -0
- package/awsS3Mount.js +63 -0
- package/awsS3Mount.js.map +1 -0
- package/azureAdlsGen1Mount.d.ts +65 -0
- package/azureAdlsGen1Mount.js +85 -0
- package/azureAdlsGen1Mount.js.map +1 -0
- package/azureAdlsGen2Mount.d.ts +68 -0
- package/azureAdlsGen2Mount.js +93 -0
- package/azureAdlsGen2Mount.js.map +1 -0
- package/azureBlobMount.d.ts +62 -0
- package/azureBlobMount.js +83 -0
- package/azureBlobMount.js.map +1 -0
- package/catalog.d.ts +124 -0
- package/catalog.js +88 -0
- package/catalog.js.map +1 -0
- package/cluster.d.ts +332 -0
- package/cluster.js +121 -0
- package/cluster.js.map +1 -0
- package/clusterPolicy.d.ts +112 -0
- package/clusterPolicy.js +97 -0
- package/clusterPolicy.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +20 -0
- package/config/vars.js +127 -0
- package/config/vars.js.map +1 -0
- package/dbfsFile.d.ts +91 -0
- package/dbfsFile.js +71 -0
- package/dbfsFile.js.map +1 -0
- package/directory.d.ts +72 -0
- package/directory.js +65 -0
- package/directory.js.map +1 -0
- package/externalLocation.d.ts +114 -0
- package/externalLocation.js +80 -0
- package/externalLocation.js.map +1 -0
- package/getAwsAssumeRolePolicy.d.ts +47 -0
- package/getAwsAssumeRolePolicy.js +24 -0
- package/getAwsAssumeRolePolicy.js.map +1 -0
- package/getAwsBucketPolicy.d.ts +59 -0
- package/getAwsBucketPolicy.js +36 -0
- package/getAwsBucketPolicy.js.map +1 -0
- package/getAwsCrossAccountPolicy.d.ts +59 -0
- package/getAwsCrossAccountPolicy.js +47 -0
- package/getAwsCrossAccountPolicy.js.map +1 -0
- package/getCatalogs.d.ts +54 -0
- package/getCatalogs.js +43 -0
- package/getCatalogs.js.map +1 -0
- package/getClusters.d.ts +69 -0
- package/getClusters.js +57 -0
- package/getClusters.js.map +1 -0
- package/getCurrentUser.d.ts +39 -0
- package/getCurrentUser.js +38 -0
- package/getCurrentUser.js.map +1 -0
- package/getDbfsFile.d.ts +69 -0
- package/getDbfsFile.js +44 -0
- package/getDbfsFile.js.map +1 -0
- package/getDbfsFilePaths.d.ts +68 -0
- package/getDbfsFilePaths.js +46 -0
- package/getDbfsFilePaths.js.map +1 -0
- package/getGroup.d.ts +166 -0
- package/getGroup.js +46 -0
- package/getGroup.js.map +1 -0
- package/getJobs.d.ts +47 -0
- package/getJobs.js +30 -0
- package/getJobs.js.map +1 -0
- package/getNodeType.d.ts +173 -0
- package/getNodeType.js +71 -0
- package/getNodeType.js.map +1 -0
- package/getNotebook.d.ts +93 -0
- package/getNotebook.js +39 -0
- package/getNotebook.js.map +1 -0
- package/getNotebookPaths.d.ts +58 -0
- package/getNotebookPaths.js +36 -0
- package/getNotebookPaths.js.map +1 -0
- package/getSchemas.d.ts +65 -0
- package/getSchemas.js +45 -0
- package/getSchemas.js.map +1 -0
- package/getSparkVersion.d.ts +150 -0
- package/getSparkVersion.js +70 -0
- package/getSparkVersion.js.map +1 -0
- package/getTables.d.ts +75 -0
- package/getTables.js +47 -0
- package/getTables.js.map +1 -0
- package/getUser.d.ts +78 -0
- package/getUser.js +39 -0
- package/getUser.js.map +1 -0
- package/getZones.d.ts +29 -0
- package/getZones.js +26 -0
- package/getZones.js.map +1 -0
- package/gitCredential.d.ts +48 -0
- package/gitCredential.js +64 -0
- package/gitCredential.js.map +1 -0
- package/globalInitScript.d.ts +99 -0
- package/globalInitScript.js +68 -0
- package/globalInitScript.js.map +1 -0
- package/grants.d.ts +58 -0
- package/grants.js +64 -0
- package/grants.js.map +1 -0
- package/group.d.ts +131 -0
- package/group.js +83 -0
- package/group.js.map +1 -0
- package/groupInstanceProfile.d.ts +96 -0
- package/groupInstanceProfile.js +93 -0
- package/groupInstanceProfile.js.map +1 -0
- package/index.d.ts +81 -0
- package/index.js +362 -0
- package/index.js.map +1 -0
- package/instancePool.d.ts +166 -0
- package/instancePool.js +93 -0
- package/instancePool.js.map +1 -0
- package/instanceProfile.d.ts +180 -0
- package/instanceProfile.js +161 -0
- package/instanceProfile.js.map +1 -0
- package/ipAccessList.d.ts +128 -0
- package/ipAccessList.js +108 -0
- package/ipAccessList.js.map +1 -0
- package/job.d.ts +228 -0
- package/job.js +102 -0
- package/job.js.map +1 -0
- package/library.d.ts +183 -0
- package/library.js +189 -0
- package/library.js.map +1 -0
- package/metastore.d.ts +102 -0
- package/metastore.js +75 -0
- package/metastore.js.map +1 -0
- package/metastoreAssignment.d.ts +94 -0
- package/metastoreAssignment.js +81 -0
- package/metastoreAssignment.js.map +1 -0
- package/metastoreDataAccess.d.ts +85 -0
- package/metastoreDataAccess.js +73 -0
- package/metastoreDataAccess.js.map +1 -0
- package/mlflowExperiment.d.ts +122 -0
- package/mlflowExperiment.js +99 -0
- package/mlflowExperiment.js.map +1 -0
- package/mlflowModel.d.ts +131 -0
- package/mlflowModel.js +107 -0
- package/mlflowModel.js.map +1 -0
- package/mlflowWebhook.d.ts +129 -0
- package/mlflowWebhook.js +100 -0
- package/mlflowWebhook.js.map +1 -0
- package/mount.d.ts +89 -0
- package/mount.js +76 -0
- package/mount.js.map +1 -0
- package/mwsCredentials.d.ts +137 -0
- package/mwsCredentials.js +115 -0
- package/mwsCredentials.js.map +1 -0
- package/mwsCustomerManagedKeys.d.ts +257 -0
- package/mwsCustomerManagedKeys.js +226 -0
- package/mwsCustomerManagedKeys.js.map +1 -0
- package/mwsLogDelivery.d.ts +219 -0
- package/mwsLogDelivery.js +144 -0
- package/mwsLogDelivery.js.map +1 -0
- package/mwsNetworks.d.ts +129 -0
- package/mwsNetworks.js +89 -0
- package/mwsNetworks.js.map +1 -0
- package/mwsPrivateAccessSettings.d.ts +137 -0
- package/mwsPrivateAccessSettings.js +74 -0
- package/mwsPrivateAccessSettings.js.map +1 -0
- package/mwsStorageConfigurations.d.ts +122 -0
- package/mwsStorageConfigurations.js +106 -0
- package/mwsStorageConfigurations.js.map +1 -0
- package/mwsVpcEndpoint.d.ts +122 -0
- package/mwsVpcEndpoint.js +79 -0
- package/mwsVpcEndpoint.js.map +1 -0
- package/mwsWorkspaces.d.ts +222 -0
- package/mwsWorkspaces.js +106 -0
- package/mwsWorkspaces.js.map +1 -0
- package/notebook.d.ts +128 -0
- package/notebook.js +77 -0
- package/notebook.js.map +1 -0
- package/oboToken.d.ts +98 -0
- package/oboToken.js +82 -0
- package/oboToken.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +28 -0
- package/package.json.dev +28 -0
- package/permissions.d.ts +211 -0
- package/permissions.js +97 -0
- package/permissions.js.map +1 -0
- package/pipeline.d.ts +200 -0
- package/pipeline.js +134 -0
- package/pipeline.js.map +1 -0
- package/provider.d.ts +61 -0
- package/provider.js +64 -0
- package/provider.js.map +1 -0
- package/repo.d.ts +117 -0
- package/repo.js +71 -0
- package/repo.js.map +1 -0
- package/schema.d.ts +149 -0
- package/schema.js +106 -0
- package/schema.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/secret.d.ts +115 -0
- package/secret.js +99 -0
- package/secret.js.map +1 -0
- package/secretAcl.d.ts +115 -0
- package/secretAcl.js +105 -0
- package/secretAcl.js.map +1 -0
- package/secretScope.d.ts +85 -0
- package/secretScope.js +64 -0
- package/secretScope.js.map +1 -0
- package/servicePrincipal.d.ts +142 -0
- package/servicePrincipal.js +83 -0
- package/servicePrincipal.js.map +1 -0
- package/sqlDashboard.d.ts +90 -0
- package/sqlDashboard.js +99 -0
- package/sqlDashboard.js.map +1 -0
- package/sqlEndpoint.d.ts +249 -0
- package/sqlEndpoint.js +128 -0
- package/sqlEndpoint.js.map +1 -0
- package/sqlGlobalConfig.d.ts +157 -0
- package/sqlGlobalConfig.js +115 -0
- package/sqlGlobalConfig.js.map +1 -0
- package/sqlPermissions.d.ts +191 -0
- package/sqlPermissions.js +139 -0
- package/sqlPermissions.js.map +1 -0
- package/sqlQuery.d.ts +131 -0
- package/sqlQuery.js +139 -0
- package/sqlQuery.js.map +1 -0
- package/sqlVisualization.d.ts +105 -0
- package/sqlVisualization.js +119 -0
- package/sqlVisualization.js.map +1 -0
- package/sqlWidget.d.ts +109 -0
- package/sqlWidget.js +114 -0
- package/sqlWidget.js.map +1 -0
- package/storageCredential.d.ts +122 -0
- package/storageCredential.js +118 -0
- package/storageCredential.js.map +1 -0
- package/table.d.ts +249 -0
- package/table.js +157 -0
- package/table.js.map +1 -0
- package/token.d.ts +102 -0
- package/token.js +84 -0
- package/token.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1209 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +1222 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +149 -0
- package/user.js +91 -0
- package/user.js.map +1 -0
- package/userInstanceProfile.d.ts +93 -0
- package/userInstanceProfile.js +90 -0
- package/userInstanceProfile.js.map +1 -0
- package/userRole.d.ts +106 -0
- package/userRole.js +103 -0
- package/userRole.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +57 -0
- package/utilities.js.map +1 -0
- package/workspaceConf.d.ts +76 -0
- package/workspaceConf.js +71 -0
- package/workspaceConf.js.map +1 -0
package/mlflowModel.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.MlflowModel = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create [MLflow models](https://docs.databricks.com/applications/mlflow/models.html) in Databricks.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as databricks from "@pulumi/databricks";
|
|
16
|
+
*
|
|
17
|
+
* const test = new databricks.MlflowModel("test", {
|
|
18
|
+
* description: "My MLflow model description",
|
|
19
|
+
* tags: [
|
|
20
|
+
* {
|
|
21
|
+
* key: "key1",
|
|
22
|
+
* value: "value1",
|
|
23
|
+
* },
|
|
24
|
+
* {
|
|
25
|
+
* key: "key2",
|
|
26
|
+
* value: "value2",
|
|
27
|
+
* },
|
|
28
|
+
* ],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
* ## Access Control
|
|
32
|
+
*
|
|
33
|
+
* * databricks.Permissions can control which groups or individual users can *Read*, *Edit*, *Manage Staging Versions*, *Manage Production Versions*, and *Manage* individual models.
|
|
34
|
+
*
|
|
35
|
+
* ## Related Resources
|
|
36
|
+
*
|
|
37
|
+
* The following resources are often used in the same context:
|
|
38
|
+
*
|
|
39
|
+
* * End to end workspace management guide.
|
|
40
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
41
|
+
* * databricks.MlflowExperiment to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.html) in Databricks.
|
|
42
|
+
* * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
43
|
+
* * databricks.Notebook data to export a notebook from Databricks Workspace.
|
|
44
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* The model resource can be imported using the name bash
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import databricks:index/mlflowModel:MlflowModel this <name>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
class MlflowModel extends pulumi.CustomResource {
|
|
55
|
+
constructor(name, argsOrState, opts) {
|
|
56
|
+
let resourceInputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (opts.id) {
|
|
59
|
+
const state = argsOrState;
|
|
60
|
+
resourceInputs["creationTimestamp"] = state ? state.creationTimestamp : undefined;
|
|
61
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
62
|
+
resourceInputs["lastUpdatedTimestamp"] = state ? state.lastUpdatedTimestamp : undefined;
|
|
63
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
64
|
+
resourceInputs["registeredModelId"] = state ? state.registeredModelId : undefined;
|
|
65
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
66
|
+
resourceInputs["userId"] = state ? state.userId : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
resourceInputs["creationTimestamp"] = args ? args.creationTimestamp : undefined;
|
|
71
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
72
|
+
resourceInputs["lastUpdatedTimestamp"] = args ? args.lastUpdatedTimestamp : undefined;
|
|
73
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
74
|
+
resourceInputs["registeredModelId"] = args ? args.registeredModelId : undefined;
|
|
75
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
76
|
+
resourceInputs["userId"] = args ? args.userId : undefined;
|
|
77
|
+
}
|
|
78
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
+
super(MlflowModel.__pulumiType, name, resourceInputs, opts);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing MlflowModel resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name, id, state, opts) {
|
|
91
|
+
return new MlflowModel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns true if the given object is an instance of MlflowModel. This is designed to work even
|
|
95
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
96
|
+
*/
|
|
97
|
+
static isInstance(obj) {
|
|
98
|
+
if (obj === undefined || obj === null) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return obj['__pulumiType'] === MlflowModel.__pulumiType;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.MlflowModel = MlflowModel;
|
|
105
|
+
/** @internal */
|
|
106
|
+
MlflowModel.__pulumiType = 'databricks:index/mlflowModel:MlflowModel';
|
|
107
|
+
//# sourceMappingURL=mlflowModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mlflowModel.js","sourceRoot":"","sources":["../mlflowModel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAqDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,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,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA8EC;AAhEG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* This resource allows you to create [MLflow Model Registry Webhooks](https://docs.databricks.com/applications/mlflow/model-registry-webhooks.html) in Databricks. Webhooks enable you to listen for Model Registry events so your integrations can automatically trigger actions. You can use webhooks to automate and integrate your machine learning pipeline with existing CI/CD tools and workflows. Webhooks allow trigger execution of a Databricks job or call a web service on specific event(s) that is generated in the MLflow Registry - stage transitioning, creation of registered model, creation of transition request, etc.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
* ### POSTing to URL
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as databricks from "@pulumi/databricks";
|
|
12
|
+
*
|
|
13
|
+
* const url = new databricks.MlflowWebhook("url", {
|
|
14
|
+
* description: "URL webhook trigger",
|
|
15
|
+
* events: ["TRANSITION_REQUEST_CREATED"],
|
|
16
|
+
* httpUrlSpec: {
|
|
17
|
+
* url: "https://my_cool_host/webhook",
|
|
18
|
+
* },
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
* ## Access Control
|
|
22
|
+
*
|
|
23
|
+
* * MLflow webhooks could be configured only by workspace admins.
|
|
24
|
+
*
|
|
25
|
+
* ## Related Resources
|
|
26
|
+
*
|
|
27
|
+
* The following resources are often used in the same context:
|
|
28
|
+
*
|
|
29
|
+
* * End to end workspace management guide.
|
|
30
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
31
|
+
* * databricks.MlflowExperiment to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.html) in Databricks.
|
|
32
|
+
* * databricks.MlflowModel to create [MLflow models](https://docs.databricks.com/applications/mlflow/models.html) in Databricks.
|
|
33
|
+
* * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
34
|
+
* * databricks.Notebook data to export a notebook from Databricks Workspace.
|
|
35
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
40
|
+
*/
|
|
41
|
+
export declare class MlflowWebhook extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing MlflowWebhook resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MlflowWebhookState, opts?: pulumi.CustomResourceOptions): MlflowWebhook;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of MlflowWebhook. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is MlflowWebhook;
|
|
57
|
+
/**
|
|
58
|
+
* Optional description of the MLflow webhook.
|
|
59
|
+
*/
|
|
60
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* The list of events that will trigger execution of Databricks job or POSTing to an URL, for example, `MODEL_VERSION_CREATED`, `MODEL_VERSION_TRANSITIONED_STAGE`, `TRANSITION_REQUEST_CREATED`, etc. Refer to the [Webhooks API documentation](https://docs.databricks.com/dev-tools/api/latest/mlflow.html#operation/create-registry-webhook) for a full list of supported events.
|
|
63
|
+
*/
|
|
64
|
+
readonly events: pulumi.Output<string[]>;
|
|
65
|
+
readonly httpUrlSpec: pulumi.Output<outputs.MlflowWebhookHttpUrlSpec | undefined>;
|
|
66
|
+
readonly jobSpec: pulumi.Output<outputs.MlflowWebhookJobSpec | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Name of MLflow model for which webhook will be created. If model name is not specified, a registry-wide webhook is created that listens for the specified events across all versions of all registered models.
|
|
69
|
+
*/
|
|
70
|
+
readonly modelName: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Optional status of webhook. Possible values are `ACTIVE`, `TEST_MODE`, `DISABLED`. Default is `ACTIVE`.
|
|
73
|
+
*/
|
|
74
|
+
readonly status: pulumi.Output<string | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a MlflowWebhook resource with the given unique name, arguments, and options.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resource.
|
|
79
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
80
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
81
|
+
*/
|
|
82
|
+
constructor(name: string, args: MlflowWebhookArgs, opts?: pulumi.CustomResourceOptions);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Input properties used for looking up and filtering MlflowWebhook resources.
|
|
86
|
+
*/
|
|
87
|
+
export interface MlflowWebhookState {
|
|
88
|
+
/**
|
|
89
|
+
* Optional description of the MLflow webhook.
|
|
90
|
+
*/
|
|
91
|
+
description?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The list of events that will trigger execution of Databricks job or POSTing to an URL, for example, `MODEL_VERSION_CREATED`, `MODEL_VERSION_TRANSITIONED_STAGE`, `TRANSITION_REQUEST_CREATED`, etc. Refer to the [Webhooks API documentation](https://docs.databricks.com/dev-tools/api/latest/mlflow.html#operation/create-registry-webhook) for a full list of supported events.
|
|
94
|
+
*/
|
|
95
|
+
events?: pulumi.Input<pulumi.Input<string>[]>;
|
|
96
|
+
httpUrlSpec?: pulumi.Input<inputs.MlflowWebhookHttpUrlSpec>;
|
|
97
|
+
jobSpec?: pulumi.Input<inputs.MlflowWebhookJobSpec>;
|
|
98
|
+
/**
|
|
99
|
+
* Name of MLflow model for which webhook will be created. If model name is not specified, a registry-wide webhook is created that listens for the specified events across all versions of all registered models.
|
|
100
|
+
*/
|
|
101
|
+
modelName?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Optional status of webhook. Possible values are `ACTIVE`, `TEST_MODE`, `DISABLED`. Default is `ACTIVE`.
|
|
104
|
+
*/
|
|
105
|
+
status?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a MlflowWebhook resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface MlflowWebhookArgs {
|
|
111
|
+
/**
|
|
112
|
+
* Optional description of the MLflow webhook.
|
|
113
|
+
*/
|
|
114
|
+
description?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The list of events that will trigger execution of Databricks job or POSTing to an URL, for example, `MODEL_VERSION_CREATED`, `MODEL_VERSION_TRANSITIONED_STAGE`, `TRANSITION_REQUEST_CREATED`, etc. Refer to the [Webhooks API documentation](https://docs.databricks.com/dev-tools/api/latest/mlflow.html#operation/create-registry-webhook) for a full list of supported events.
|
|
117
|
+
*/
|
|
118
|
+
events: pulumi.Input<pulumi.Input<string>[]>;
|
|
119
|
+
httpUrlSpec?: pulumi.Input<inputs.MlflowWebhookHttpUrlSpec>;
|
|
120
|
+
jobSpec?: pulumi.Input<inputs.MlflowWebhookJobSpec>;
|
|
121
|
+
/**
|
|
122
|
+
* Name of MLflow model for which webhook will be created. If model name is not specified, a registry-wide webhook is created that listens for the specified events across all versions of all registered models.
|
|
123
|
+
*/
|
|
124
|
+
modelName?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Optional status of webhook. Possible values are `ACTIVE`, `TEST_MODE`, `DISABLED`. Default is `ACTIVE`.
|
|
127
|
+
*/
|
|
128
|
+
status?: pulumi.Input<string>;
|
|
129
|
+
}
|
package/mlflowWebhook.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
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.MlflowWebhook = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create [MLflow Model Registry Webhooks](https://docs.databricks.com/applications/mlflow/model-registry-webhooks.html) in Databricks. Webhooks enable you to listen for Model Registry events so your integrations can automatically trigger actions. You can use webhooks to automate and integrate your machine learning pipeline with existing CI/CD tools and workflows. Webhooks allow trigger execution of a Databricks job or call a web service on specific event(s) that is generated in the MLflow Registry - stage transitioning, creation of registered model, creation of transition request, etc.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
* ### POSTing to URL
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as databricks from "@pulumi/databricks";
|
|
17
|
+
*
|
|
18
|
+
* const url = new databricks.MlflowWebhook("url", {
|
|
19
|
+
* description: "URL webhook trigger",
|
|
20
|
+
* events: ["TRANSITION_REQUEST_CREATED"],
|
|
21
|
+
* httpUrlSpec: {
|
|
22
|
+
* url: "https://my_cool_host/webhook",
|
|
23
|
+
* },
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
* ## Access Control
|
|
27
|
+
*
|
|
28
|
+
* * MLflow webhooks could be configured only by workspace admins.
|
|
29
|
+
*
|
|
30
|
+
* ## Related Resources
|
|
31
|
+
*
|
|
32
|
+
* The following resources are often used in the same context:
|
|
33
|
+
*
|
|
34
|
+
* * End to end workspace management guide.
|
|
35
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
36
|
+
* * databricks.MlflowExperiment to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.html) in Databricks.
|
|
37
|
+
* * databricks.MlflowModel to create [MLflow models](https://docs.databricks.com/applications/mlflow/models.html) in Databricks.
|
|
38
|
+
* * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
39
|
+
* * databricks.Notebook data to export a notebook from Databricks Workspace.
|
|
40
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
45
|
+
*/
|
|
46
|
+
class MlflowWebhook extends pulumi.CustomResource {
|
|
47
|
+
constructor(name, argsOrState, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (opts.id) {
|
|
51
|
+
const state = argsOrState;
|
|
52
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
53
|
+
resourceInputs["events"] = state ? state.events : undefined;
|
|
54
|
+
resourceInputs["httpUrlSpec"] = state ? state.httpUrlSpec : undefined;
|
|
55
|
+
resourceInputs["jobSpec"] = state ? state.jobSpec : undefined;
|
|
56
|
+
resourceInputs["modelName"] = state ? state.modelName : undefined;
|
|
57
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
if ((!args || args.events === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'events'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
65
|
+
resourceInputs["events"] = args ? args.events : undefined;
|
|
66
|
+
resourceInputs["httpUrlSpec"] = args ? args.httpUrlSpec : undefined;
|
|
67
|
+
resourceInputs["jobSpec"] = args ? args.jobSpec : undefined;
|
|
68
|
+
resourceInputs["modelName"] = args ? args.modelName : undefined;
|
|
69
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(MlflowWebhook.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing MlflowWebhook resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new MlflowWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the given object is an instance of MlflowWebhook. This is designed to work even
|
|
88
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
89
|
+
*/
|
|
90
|
+
static isInstance(obj) {
|
|
91
|
+
if (obj === undefined || obj === null) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return obj['__pulumiType'] === MlflowWebhook.__pulumiType;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.MlflowWebhook = MlflowWebhook;
|
|
98
|
+
/** @internal */
|
|
99
|
+
MlflowWebhook.__pulumiType = 'databricks:index/mlflowWebhook:MlflowWebhook';
|
|
100
|
+
//# sourceMappingURL=mlflowWebhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mlflowWebhook.js","sourceRoot":"","sources":["../mlflowWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAuDpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WA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,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AA1BL,sCAiFC;AAnEG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
|
package/mount.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Import
|
|
5
|
+
*
|
|
6
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Mount extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Mount resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MountState, opts?: pulumi.CustomResourceOptions): Mount;
|
|
19
|
+
/**
|
|
20
|
+
* Returns true if the given object is an instance of Mount. This is designed to work even
|
|
21
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
22
|
+
*/
|
|
23
|
+
static isInstance(obj: any): obj is Mount;
|
|
24
|
+
readonly abfs: pulumi.Output<outputs.MountAbfs | undefined>;
|
|
25
|
+
readonly adl: pulumi.Output<outputs.MountAdl | undefined>;
|
|
26
|
+
readonly clusterId: pulumi.Output<string>;
|
|
27
|
+
readonly encryptionType: pulumi.Output<string | undefined>;
|
|
28
|
+
readonly extraConfigs: pulumi.Output<{
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
} | undefined>;
|
|
31
|
+
readonly gs: pulumi.Output<outputs.MountGs | undefined>;
|
|
32
|
+
readonly name: pulumi.Output<string>;
|
|
33
|
+
readonly resourceId: pulumi.Output<string | undefined>;
|
|
34
|
+
readonly s3: pulumi.Output<outputs.MountS3 | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* (String) HDFS-compatible url
|
|
37
|
+
*/
|
|
38
|
+
readonly source: pulumi.Output<string>;
|
|
39
|
+
readonly uri: pulumi.Output<string | undefined>;
|
|
40
|
+
readonly wasb: pulumi.Output<outputs.MountWasb | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a Mount resource with the given unique name, arguments, and options.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resource.
|
|
45
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
46
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
47
|
+
*/
|
|
48
|
+
constructor(name: string, args?: MountArgs, opts?: pulumi.CustomResourceOptions);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Input properties used for looking up and filtering Mount resources.
|
|
52
|
+
*/
|
|
53
|
+
export interface MountState {
|
|
54
|
+
abfs?: pulumi.Input<inputs.MountAbfs>;
|
|
55
|
+
adl?: pulumi.Input<inputs.MountAdl>;
|
|
56
|
+
clusterId?: pulumi.Input<string>;
|
|
57
|
+
encryptionType?: pulumi.Input<string>;
|
|
58
|
+
extraConfigs?: pulumi.Input<{
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}>;
|
|
61
|
+
gs?: pulumi.Input<inputs.MountGs>;
|
|
62
|
+
name?: pulumi.Input<string>;
|
|
63
|
+
resourceId?: pulumi.Input<string>;
|
|
64
|
+
s3?: pulumi.Input<inputs.MountS3>;
|
|
65
|
+
/**
|
|
66
|
+
* (String) HDFS-compatible url
|
|
67
|
+
*/
|
|
68
|
+
source?: pulumi.Input<string>;
|
|
69
|
+
uri?: pulumi.Input<string>;
|
|
70
|
+
wasb?: pulumi.Input<inputs.MountWasb>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a Mount resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface MountArgs {
|
|
76
|
+
abfs?: pulumi.Input<inputs.MountAbfs>;
|
|
77
|
+
adl?: pulumi.Input<inputs.MountAdl>;
|
|
78
|
+
clusterId?: pulumi.Input<string>;
|
|
79
|
+
encryptionType?: pulumi.Input<string>;
|
|
80
|
+
extraConfigs?: pulumi.Input<{
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}>;
|
|
83
|
+
gs?: pulumi.Input<inputs.MountGs>;
|
|
84
|
+
name?: pulumi.Input<string>;
|
|
85
|
+
resourceId?: pulumi.Input<string>;
|
|
86
|
+
s3?: pulumi.Input<inputs.MountS3>;
|
|
87
|
+
uri?: pulumi.Input<string>;
|
|
88
|
+
wasb?: pulumi.Input<inputs.MountWasb>;
|
|
89
|
+
}
|
package/mount.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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.Mount = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
12
|
+
*/
|
|
13
|
+
class Mount extends pulumi.CustomResource {
|
|
14
|
+
constructor(name, argsOrState, opts) {
|
|
15
|
+
let resourceInputs = {};
|
|
16
|
+
opts = opts || {};
|
|
17
|
+
if (opts.id) {
|
|
18
|
+
const state = argsOrState;
|
|
19
|
+
resourceInputs["abfs"] = state ? state.abfs : undefined;
|
|
20
|
+
resourceInputs["adl"] = state ? state.adl : undefined;
|
|
21
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
22
|
+
resourceInputs["encryptionType"] = state ? state.encryptionType : undefined;
|
|
23
|
+
resourceInputs["extraConfigs"] = state ? state.extraConfigs : undefined;
|
|
24
|
+
resourceInputs["gs"] = state ? state.gs : undefined;
|
|
25
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
26
|
+
resourceInputs["resourceId"] = state ? state.resourceId : undefined;
|
|
27
|
+
resourceInputs["s3"] = state ? state.s3 : undefined;
|
|
28
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
29
|
+
resourceInputs["uri"] = state ? state.uri : undefined;
|
|
30
|
+
resourceInputs["wasb"] = state ? state.wasb : undefined;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
const args = argsOrState;
|
|
34
|
+
resourceInputs["abfs"] = args ? args.abfs : undefined;
|
|
35
|
+
resourceInputs["adl"] = args ? args.adl : undefined;
|
|
36
|
+
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
|
|
37
|
+
resourceInputs["encryptionType"] = args ? args.encryptionType : undefined;
|
|
38
|
+
resourceInputs["extraConfigs"] = args ? args.extraConfigs : undefined;
|
|
39
|
+
resourceInputs["gs"] = args ? args.gs : undefined;
|
|
40
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
41
|
+
resourceInputs["resourceId"] = args ? args.resourceId : undefined;
|
|
42
|
+
resourceInputs["s3"] = args ? args.s3 : undefined;
|
|
43
|
+
resourceInputs["uri"] = args ? args.uri : undefined;
|
|
44
|
+
resourceInputs["wasb"] = args ? args.wasb : undefined;
|
|
45
|
+
resourceInputs["source"] = undefined /*out*/;
|
|
46
|
+
}
|
|
47
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
48
|
+
super(Mount.__pulumiType, name, resourceInputs, opts);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing Mount resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name, id, state, opts) {
|
|
60
|
+
return new Mount(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of Mount. This is designed to work even
|
|
64
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
+
*/
|
|
66
|
+
static isInstance(obj) {
|
|
67
|
+
if (obj === undefined || obj === null) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return obj['__pulumiType'] === Mount.__pulumiType;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.Mount = Mount;
|
|
74
|
+
/** @internal */
|
|
75
|
+
Mount.__pulumiType = 'databricks:index/mount:Mount';
|
|
76
|
+
//# sourceMappingURL=mount.js.map
|
package/mount.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mount.js","sourceRoot":"","sources":["../mount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;GAIG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAoD5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,IAA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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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;;AA1BL,sBAuFC;AAzEG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* > **Note** This resource has an evolving API, which may change in future versions of the provider.
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as aws from "@pulumi/aws";
|
|
10
|
+
* import * as databricks from "@pulumi/databricks";
|
|
11
|
+
*
|
|
12
|
+
* const config = new pulumi.Config();
|
|
13
|
+
* const databricksAccountId = config.requireObject("databricksAccountId");
|
|
14
|
+
* const thisAwsAssumeRolePolicy = databricks.getAwsAssumeRolePolicy({
|
|
15
|
+
* externalId: databricksAccountId,
|
|
16
|
+
* });
|
|
17
|
+
* const crossAccountRole = new aws.iam.Role("crossAccountRole", {
|
|
18
|
+
* assumeRolePolicy: thisAwsAssumeRolePolicy.then(thisAwsAssumeRolePolicy => thisAwsAssumeRolePolicy.json),
|
|
19
|
+
* tags: _var.tags,
|
|
20
|
+
* });
|
|
21
|
+
* const thisAwsCrossAccountPolicy = databricks.getAwsCrossAccountPolicy({});
|
|
22
|
+
* const thisRolePolicy = new aws.iam.RolePolicy("thisRolePolicy", {
|
|
23
|
+
* role: crossAccountRole.id,
|
|
24
|
+
* policy: thisAwsCrossAccountPolicy.then(thisAwsCrossAccountPolicy => thisAwsCrossAccountPolicy.json),
|
|
25
|
+
* });
|
|
26
|
+
* const thisMwsCredentials = new databricks.MwsCredentials("thisMwsCredentials", {
|
|
27
|
+
* accountId: databricksAccountId,
|
|
28
|
+
* credentialsName: `${local.prefix}-creds`,
|
|
29
|
+
* roleArn: crossAccountRole.arn,
|
|
30
|
+
* }, {
|
|
31
|
+
* provider: databricks.mws,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
* ## Related Resources
|
|
35
|
+
*
|
|
36
|
+
* The following resources are used in the same context:
|
|
37
|
+
*
|
|
38
|
+
* * Provisioning Databricks on AWS guide.
|
|
39
|
+
* * databricks.MwsCustomerManagedKeys to configure KMS keys for new workspaces within AWS.
|
|
40
|
+
* * databricks.MwsLogDelivery to configure delivery of [billable usage logs](https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html) and [audit logs](https://docs.databricks.com/administration-guide/account-settings/audit-logs.html).
|
|
41
|
+
* * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
|
|
42
|
+
* * databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
|
|
43
|
+
* * databricks.MwsWorkspaces to set up [workspaces in E2 architecture on AWS](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
48
|
+
*/
|
|
49
|
+
export declare class MwsCredentials extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing MwsCredentials resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MwsCredentialsState, opts?: pulumi.CustomResourceOptions): MwsCredentials;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of MwsCredentials. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj: any): obj is MwsCredentials;
|
|
65
|
+
/**
|
|
66
|
+
* Account Id that could be found in the bottom left corner of [Accounts Console](https://accounts.cloud.databricks.com/)
|
|
67
|
+
*/
|
|
68
|
+
readonly accountId: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* (Integer) time of credentials registration
|
|
71
|
+
*/
|
|
72
|
+
readonly creationTime: pulumi.Output<number>;
|
|
73
|
+
/**
|
|
74
|
+
* (String) identifier of credentials
|
|
75
|
+
*/
|
|
76
|
+
readonly credentialsId: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* name of credentials to register
|
|
79
|
+
*/
|
|
80
|
+
readonly credentialsName: pulumi.Output<string>;
|
|
81
|
+
readonly externalId: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* ARN of cross-account role
|
|
84
|
+
*/
|
|
85
|
+
readonly roleArn: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a MwsCredentials resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: MwsCredentialsArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering MwsCredentials resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface MwsCredentialsState {
|
|
99
|
+
/**
|
|
100
|
+
* Account Id that could be found in the bottom left corner of [Accounts Console](https://accounts.cloud.databricks.com/)
|
|
101
|
+
*/
|
|
102
|
+
accountId?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* (Integer) time of credentials registration
|
|
105
|
+
*/
|
|
106
|
+
creationTime?: pulumi.Input<number>;
|
|
107
|
+
/**
|
|
108
|
+
* (String) identifier of credentials
|
|
109
|
+
*/
|
|
110
|
+
credentialsId?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* name of credentials to register
|
|
113
|
+
*/
|
|
114
|
+
credentialsName?: pulumi.Input<string>;
|
|
115
|
+
externalId?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* ARN of cross-account role
|
|
118
|
+
*/
|
|
119
|
+
roleArn?: pulumi.Input<string>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The set of arguments for constructing a MwsCredentials resource.
|
|
123
|
+
*/
|
|
124
|
+
export interface MwsCredentialsArgs {
|
|
125
|
+
/**
|
|
126
|
+
* Account Id that could be found in the bottom left corner of [Accounts Console](https://accounts.cloud.databricks.com/)
|
|
127
|
+
*/
|
|
128
|
+
accountId: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* name of credentials to register
|
|
131
|
+
*/
|
|
132
|
+
credentialsName: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* ARN of cross-account role
|
|
135
|
+
*/
|
|
136
|
+
roleArn: pulumi.Input<string>;
|
|
137
|
+
}
|