@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
|
@@ -0,0 +1,81 @@
|
|
|
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.MetastoreAssignment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > **Private Preview** This feature is in [Private Preview](https://docs.databricks.com/release-notes/release-types.html). Contact your Databricks representative to request access.
|
|
10
|
+
*
|
|
11
|
+
* A single databricks.Metastore can be shared across Databricks workspaces, and each linked workspace has a consistent view of the data and a single set of access policies. It is only recommended to have multiple metastores when organizations wish to have hard isolation boundaries between data (note that data cannot be easily joined/queried across metastores).
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as databricks from "@pulumi/databricks";
|
|
18
|
+
*
|
|
19
|
+
* const thisMetastore = new databricks.Metastore("thisMetastore", {
|
|
20
|
+
* storageRoot: `s3://${aws_s3_bucket.metastore.id}/metastore`,
|
|
21
|
+
* owner: "uc admins",
|
|
22
|
+
* forceDestroy: true,
|
|
23
|
+
* });
|
|
24
|
+
* const thisMetastoreAssignment = new databricks.MetastoreAssignment("thisMetastoreAssignment", {
|
|
25
|
+
* metastoreId: thisMetastore.id,
|
|
26
|
+
* workspaceId: local.workspace_id,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class MetastoreAssignment extends pulumi.CustomResource {
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["defaultCatalogName"] = state ? state.defaultCatalogName : undefined;
|
|
37
|
+
resourceInputs["metastoreId"] = state ? state.metastoreId : undefined;
|
|
38
|
+
resourceInputs["workspaceId"] = state ? state.workspaceId : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.metastoreId === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'metastoreId'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.workspaceId === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'workspaceId'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["defaultCatalogName"] = args ? args.defaultCatalogName : undefined;
|
|
49
|
+
resourceInputs["metastoreId"] = args ? args.metastoreId : undefined;
|
|
50
|
+
resourceInputs["workspaceId"] = args ? args.workspaceId : undefined;
|
|
51
|
+
}
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
53
|
+
super(MetastoreAssignment.__pulumiType, name, resourceInputs, opts);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing MetastoreAssignment resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new MetastoreAssignment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of MetastoreAssignment. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj) {
|
|
72
|
+
if (obj === undefined || obj === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return obj['__pulumiType'] === MetastoreAssignment.__pulumiType;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.MetastoreAssignment = MetastoreAssignment;
|
|
79
|
+
/** @internal */
|
|
80
|
+
MetastoreAssignment.__pulumiType = 'databricks:index/metastoreAssignment:MetastoreAssignment';
|
|
81
|
+
//# sourceMappingURL=metastoreAssignment.js.map
|
|
@@ -0,0 +1 @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AAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;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;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAwEC;AA1DG,gBAAgB;AACO,gCAAY,GAAG,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* > **Private Preview** This feature is in [Private Preview](https://docs.databricks.com/release-notes/release-types.html). Contact your Databricks representative to request access.
|
|
5
|
+
*
|
|
6
|
+
* Each databricks.Metastore requires an IAM role that will be assumed by Unity Catalog to access data. `databricks.MetastoreDataAccess` defines this
|
|
7
|
+
*
|
|
8
|
+
* ## Import
|
|
9
|
+
*
|
|
10
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MetastoreDataAccess extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing MetastoreDataAccess resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param state Any extra arguments used during the lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MetastoreDataAccessState, opts?: pulumi.CustomResourceOptions): MetastoreDataAccess;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of MetastoreDataAccess. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj: any): obj is MetastoreDataAccess;
|
|
28
|
+
readonly awsIamRole: pulumi.Output<outputs.MetastoreDataAccessAwsIamRole | undefined>;
|
|
29
|
+
readonly azureServicePrincipal: pulumi.Output<outputs.MetastoreDataAccessAzureServicePrincipal | undefined>;
|
|
30
|
+
readonly configurationType: pulumi.Output<string>;
|
|
31
|
+
readonly id: pulumi.Output<string>;
|
|
32
|
+
readonly isDefault: pulumi.Output<boolean | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Unique identifier of the parent Metastore
|
|
35
|
+
*/
|
|
36
|
+
readonly metastoreId: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
|
|
39
|
+
*/
|
|
40
|
+
readonly name: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a MetastoreDataAccess 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: MetastoreDataAccessArgs, opts?: pulumi.CustomResourceOptions);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Input properties used for looking up and filtering MetastoreDataAccess resources.
|
|
52
|
+
*/
|
|
53
|
+
export interface MetastoreDataAccessState {
|
|
54
|
+
awsIamRole?: pulumi.Input<inputs.MetastoreDataAccessAwsIamRole>;
|
|
55
|
+
azureServicePrincipal?: pulumi.Input<inputs.MetastoreDataAccessAzureServicePrincipal>;
|
|
56
|
+
configurationType?: pulumi.Input<string>;
|
|
57
|
+
id?: pulumi.Input<string>;
|
|
58
|
+
isDefault?: pulumi.Input<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier of the parent Metastore
|
|
61
|
+
*/
|
|
62
|
+
metastoreId?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
|
|
65
|
+
*/
|
|
66
|
+
name?: pulumi.Input<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The set of arguments for constructing a MetastoreDataAccess resource.
|
|
70
|
+
*/
|
|
71
|
+
export interface MetastoreDataAccessArgs {
|
|
72
|
+
awsIamRole?: pulumi.Input<inputs.MetastoreDataAccessAwsIamRole>;
|
|
73
|
+
azureServicePrincipal?: pulumi.Input<inputs.MetastoreDataAccessAzureServicePrincipal>;
|
|
74
|
+
configurationType?: pulumi.Input<string>;
|
|
75
|
+
id?: pulumi.Input<string>;
|
|
76
|
+
isDefault?: pulumi.Input<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* Unique identifier of the parent Metastore
|
|
79
|
+
*/
|
|
80
|
+
metastoreId: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
|
|
83
|
+
*/
|
|
84
|
+
name?: pulumi.Input<string>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.MetastoreDataAccess = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > **Private Preview** This feature is in [Private Preview](https://docs.databricks.com/release-notes/release-types.html). Contact your Databricks representative to request access.
|
|
10
|
+
*
|
|
11
|
+
* Each databricks.Metastore requires an IAM role that will be assumed by Unity Catalog to access data. `databricks.MetastoreDataAccess` defines this
|
|
12
|
+
*
|
|
13
|
+
* ## Import
|
|
14
|
+
*
|
|
15
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
16
|
+
*/
|
|
17
|
+
class MetastoreDataAccess extends pulumi.CustomResource {
|
|
18
|
+
constructor(name, argsOrState, opts) {
|
|
19
|
+
let resourceInputs = {};
|
|
20
|
+
opts = opts || {};
|
|
21
|
+
if (opts.id) {
|
|
22
|
+
const state = argsOrState;
|
|
23
|
+
resourceInputs["awsIamRole"] = state ? state.awsIamRole : undefined;
|
|
24
|
+
resourceInputs["azureServicePrincipal"] = state ? state.azureServicePrincipal : undefined;
|
|
25
|
+
resourceInputs["configurationType"] = state ? state.configurationType : undefined;
|
|
26
|
+
resourceInputs["id"] = state ? state.id : undefined;
|
|
27
|
+
resourceInputs["isDefault"] = state ? state.isDefault : undefined;
|
|
28
|
+
resourceInputs["metastoreId"] = state ? state.metastoreId : undefined;
|
|
29
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
const args = argsOrState;
|
|
33
|
+
if ((!args || args.metastoreId === undefined) && !opts.urn) {
|
|
34
|
+
throw new Error("Missing required property 'metastoreId'");
|
|
35
|
+
}
|
|
36
|
+
resourceInputs["awsIamRole"] = args ? args.awsIamRole : undefined;
|
|
37
|
+
resourceInputs["azureServicePrincipal"] = args ? args.azureServicePrincipal : undefined;
|
|
38
|
+
resourceInputs["configurationType"] = args ? args.configurationType : undefined;
|
|
39
|
+
resourceInputs["id"] = args ? args.id : undefined;
|
|
40
|
+
resourceInputs["isDefault"] = args ? args.isDefault : undefined;
|
|
41
|
+
resourceInputs["metastoreId"] = args ? args.metastoreId : undefined;
|
|
42
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
43
|
+
}
|
|
44
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
45
|
+
super(MetastoreDataAccess.__pulumiType, name, resourceInputs, opts);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing MetastoreDataAccess 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 MetastoreDataAccess(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of MetastoreDataAccess. 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'] === MetastoreDataAccess.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.MetastoreDataAccess = MetastoreDataAccess;
|
|
71
|
+
/** @internal */
|
|
72
|
+
MetastoreDataAccess.__pulumiType = 'databricks:index/metastoreDataAccess:MetastoreDataAccess';
|
|
73
|
+
//# sourceMappingURL=metastoreDataAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metastoreDataAccess.js","sourceRoot":"","sources":["../metastoreDataAccess.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAkD1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,C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,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDA8EC;AAhEG,gBAAgB;AACO,gCAAY,GAAG,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.html) in Databricks.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as databricks from "@pulumi/databricks";
|
|
10
|
+
*
|
|
11
|
+
* const me = pulumi.output(databricks.getCurrentUser());
|
|
12
|
+
* const thisMlflowExperiment = new databricks.MlflowExperiment("this", {
|
|
13
|
+
* artifactLocation: "dbfs:/tmp/my-experiment",
|
|
14
|
+
* description: "My MLflow experiment description",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
* ## Access Control
|
|
18
|
+
*
|
|
19
|
+
* * databricks.Permissions can control which groups or individual users can *Read*, *Edit*, or *Manage* individual experiments.
|
|
20
|
+
*
|
|
21
|
+
* ## Related Resources
|
|
22
|
+
*
|
|
23
|
+
* The following resources are often used in the same context:
|
|
24
|
+
*
|
|
25
|
+
* * End to end workspace management guide.
|
|
26
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
27
|
+
* * databricks.MlflowModel to create [MLflow models](https://docs.databricks.com/applications/mlflow/models.html) in Databricks.
|
|
28
|
+
* * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
29
|
+
* * databricks.Notebook data to export a notebook from Databricks Workspace.
|
|
30
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* The experiment resource can be imported using the id of the experiment bash
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import databricks:index/mlflowExperiment:MlflowExperiment this <experiment-id>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare class MlflowExperiment extends pulumi.CustomResource {
|
|
41
|
+
/**
|
|
42
|
+
* Get an existing MlflowExperiment resource's state with the given name, ID, and optional extra
|
|
43
|
+
* properties used to qualify the lookup.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resulting resource.
|
|
46
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
+
* @param state Any extra arguments used during the lookup.
|
|
48
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
+
*/
|
|
50
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MlflowExperimentState, opts?: pulumi.CustomResourceOptions): MlflowExperiment;
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of MlflowExperiment. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj: any): obj is MlflowExperiment;
|
|
56
|
+
/**
|
|
57
|
+
* Path to dbfs:/ or s3:// artifact location of the MLflow experiment.
|
|
58
|
+
*/
|
|
59
|
+
readonly artifactLocation: pulumi.Output<string | undefined>;
|
|
60
|
+
readonly creationTime: pulumi.Output<number>;
|
|
61
|
+
/**
|
|
62
|
+
* The description of the MLflow experiment.
|
|
63
|
+
*/
|
|
64
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
65
|
+
readonly experimentId: pulumi.Output<string>;
|
|
66
|
+
readonly lastUpdateTime: pulumi.Output<number>;
|
|
67
|
+
readonly lifecycleStage: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Name of MLflow experiment. It must be an absolute path within the Databricks workspace, e.g. `/Users/<some-username>/my-experiment`. For more information about changes to experiment naming conventions, see [mlflow docs](https://docs.databricks.com/applications/mlflow/experiments.html#experiment-migration).
|
|
70
|
+
*/
|
|
71
|
+
readonly name: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a MlflowExperiment resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args?: MlflowExperimentArgs, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Input properties used for looking up and filtering MlflowExperiment resources.
|
|
83
|
+
*/
|
|
84
|
+
export interface MlflowExperimentState {
|
|
85
|
+
/**
|
|
86
|
+
* Path to dbfs:/ or s3:// artifact location of the MLflow experiment.
|
|
87
|
+
*/
|
|
88
|
+
artifactLocation?: pulumi.Input<string>;
|
|
89
|
+
creationTime?: pulumi.Input<number>;
|
|
90
|
+
/**
|
|
91
|
+
* The description of the MLflow experiment.
|
|
92
|
+
*/
|
|
93
|
+
description?: pulumi.Input<string>;
|
|
94
|
+
experimentId?: pulumi.Input<string>;
|
|
95
|
+
lastUpdateTime?: pulumi.Input<number>;
|
|
96
|
+
lifecycleStage?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Name of MLflow experiment. It must be an absolute path within the Databricks workspace, e.g. `/Users/<some-username>/my-experiment`. For more information about changes to experiment naming conventions, see [mlflow docs](https://docs.databricks.com/applications/mlflow/experiments.html#experiment-migration).
|
|
99
|
+
*/
|
|
100
|
+
name?: pulumi.Input<string>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The set of arguments for constructing a MlflowExperiment resource.
|
|
104
|
+
*/
|
|
105
|
+
export interface MlflowExperimentArgs {
|
|
106
|
+
/**
|
|
107
|
+
* Path to dbfs:/ or s3:// artifact location of the MLflow experiment.
|
|
108
|
+
*/
|
|
109
|
+
artifactLocation?: pulumi.Input<string>;
|
|
110
|
+
creationTime?: pulumi.Input<number>;
|
|
111
|
+
/**
|
|
112
|
+
* The description of the MLflow experiment.
|
|
113
|
+
*/
|
|
114
|
+
description?: pulumi.Input<string>;
|
|
115
|
+
experimentId?: pulumi.Input<string>;
|
|
116
|
+
lastUpdateTime?: pulumi.Input<number>;
|
|
117
|
+
lifecycleStage?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Name of MLflow experiment. It must be an absolute path within the Databricks workspace, e.g. `/Users/<some-username>/my-experiment`. For more information about changes to experiment naming conventions, see [mlflow docs](https://docs.databricks.com/applications/mlflow/experiments.html#experiment-migration).
|
|
120
|
+
*/
|
|
121
|
+
name?: pulumi.Input<string>;
|
|
122
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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.MlflowExperiment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage [MLflow experiments](https://docs.databricks.com/data/data-sources/mlflow-experiment.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 me = pulumi.output(databricks.getCurrentUser());
|
|
18
|
+
* const thisMlflowExperiment = new databricks.MlflowExperiment("this", {
|
|
19
|
+
* artifactLocation: "dbfs:/tmp/my-experiment",
|
|
20
|
+
* description: "My MLflow experiment description",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
* ## Access Control
|
|
24
|
+
*
|
|
25
|
+
* * databricks.Permissions can control which groups or individual users can *Read*, *Edit*, or *Manage* individual experiments.
|
|
26
|
+
*
|
|
27
|
+
* ## Related Resources
|
|
28
|
+
*
|
|
29
|
+
* The following resources are often used in the same context:
|
|
30
|
+
*
|
|
31
|
+
* * End to end workspace management guide.
|
|
32
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
33
|
+
* * databricks.MlflowModel to create [MLflow models](https://docs.databricks.com/applications/mlflow/models.html) in Databricks.
|
|
34
|
+
* * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
35
|
+
* * databricks.Notebook data to export a notebook from Databricks Workspace.
|
|
36
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* The experiment resource can be imported using the id of the experiment bash
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import databricks:index/mlflowExperiment:MlflowExperiment this <experiment-id>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class MlflowExperiment extends pulumi.CustomResource {
|
|
47
|
+
constructor(name, argsOrState, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (opts.id) {
|
|
51
|
+
const state = argsOrState;
|
|
52
|
+
resourceInputs["artifactLocation"] = state ? state.artifactLocation : undefined;
|
|
53
|
+
resourceInputs["creationTime"] = state ? state.creationTime : undefined;
|
|
54
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
55
|
+
resourceInputs["experimentId"] = state ? state.experimentId : undefined;
|
|
56
|
+
resourceInputs["lastUpdateTime"] = state ? state.lastUpdateTime : undefined;
|
|
57
|
+
resourceInputs["lifecycleStage"] = state ? state.lifecycleStage : undefined;
|
|
58
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const args = argsOrState;
|
|
62
|
+
resourceInputs["artifactLocation"] = args ? args.artifactLocation : undefined;
|
|
63
|
+
resourceInputs["creationTime"] = args ? args.creationTime : undefined;
|
|
64
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
65
|
+
resourceInputs["experimentId"] = args ? args.experimentId : undefined;
|
|
66
|
+
resourceInputs["lastUpdateTime"] = args ? args.lastUpdateTime : undefined;
|
|
67
|
+
resourceInputs["lifecycleStage"] = args ? args.lifecycleStage : undefined;
|
|
68
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
69
|
+
}
|
|
70
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
71
|
+
super(MlflowExperiment.__pulumiType, name, resourceInputs, opts);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get an existing MlflowExperiment resource's state with the given name, ID, and optional extra
|
|
75
|
+
* properties used to qualify the lookup.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resulting resource.
|
|
78
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
79
|
+
* @param state Any extra arguments used during the lookup.
|
|
80
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
81
|
+
*/
|
|
82
|
+
static get(name, id, state, opts) {
|
|
83
|
+
return new MlflowExperiment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of MlflowExperiment. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj) {
|
|
90
|
+
if (obj === undefined || obj === null) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return obj['__pulumiType'] === MlflowExperiment.__pulumiType;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.MlflowExperiment = MlflowExperiment;
|
|
97
|
+
/** @internal */
|
|
98
|
+
MlflowExperiment.__pulumiType = 'databricks:index/mlflowExperiment:MlflowExperiment';
|
|
99
|
+
//# sourceMappingURL=mlflowExperiment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mlflowExperiment.js","sourceRoot":"","sources":["../mlflowExperiment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAqDvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CA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AAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CA8EC;AAhEG,gBAAgB;AACO,6BAAY,GAAG,oDAAoD,CAAC"}
|
package/mlflowModel.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
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 models](https://docs.databricks.com/applications/mlflow/models.html) in Databricks.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as databricks from "@pulumi/databricks";
|
|
11
|
+
*
|
|
12
|
+
* const test = new databricks.MlflowModel("test", {
|
|
13
|
+
* description: "My MLflow model description",
|
|
14
|
+
* tags: [
|
|
15
|
+
* {
|
|
16
|
+
* key: "key1",
|
|
17
|
+
* value: "value1",
|
|
18
|
+
* },
|
|
19
|
+
* {
|
|
20
|
+
* key: "key2",
|
|
21
|
+
* value: "value2",
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
* ## Access Control
|
|
27
|
+
*
|
|
28
|
+
* * databricks.Permissions can control which groups or individual users can *Read*, *Edit*, *Manage Staging Versions*, *Manage Production Versions*, and *Manage* individual models.
|
|
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.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
38
|
+
* * databricks.Notebook data to export a notebook from Databricks Workspace.
|
|
39
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* The model resource can be imported using the name bash
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import databricks:index/mlflowModel:MlflowModel this <name>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class MlflowModel extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing MlflowModel 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?: MlflowModelState, opts?: pulumi.CustomResourceOptions): MlflowModel;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of MlflowModel. 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 MlflowModel;
|
|
65
|
+
readonly creationTimestamp: pulumi.Output<number>;
|
|
66
|
+
/**
|
|
67
|
+
* The description of the MLflow model.
|
|
68
|
+
*/
|
|
69
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
70
|
+
readonly lastUpdatedTimestamp: pulumi.Output<number>;
|
|
71
|
+
/**
|
|
72
|
+
* Name of MLflow model. Change of name triggers new resource.
|
|
73
|
+
*/
|
|
74
|
+
readonly name: pulumi.Output<string>;
|
|
75
|
+
readonly registeredModelId: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Tags for the MLflow model.
|
|
78
|
+
*/
|
|
79
|
+
readonly tags: pulumi.Output<outputs.MlflowModelTag[] | undefined>;
|
|
80
|
+
readonly userId: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Create a MlflowModel resource with the given unique name, arguments, and options.
|
|
83
|
+
*
|
|
84
|
+
* @param name The _unique_ name of the resource.
|
|
85
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
86
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
87
|
+
*/
|
|
88
|
+
constructor(name: string, args?: MlflowModelArgs, opts?: pulumi.CustomResourceOptions);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Input properties used for looking up and filtering MlflowModel resources.
|
|
92
|
+
*/
|
|
93
|
+
export interface MlflowModelState {
|
|
94
|
+
creationTimestamp?: pulumi.Input<number>;
|
|
95
|
+
/**
|
|
96
|
+
* The description of the MLflow model.
|
|
97
|
+
*/
|
|
98
|
+
description?: pulumi.Input<string>;
|
|
99
|
+
lastUpdatedTimestamp?: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Name of MLflow model. Change of name triggers new resource.
|
|
102
|
+
*/
|
|
103
|
+
name?: pulumi.Input<string>;
|
|
104
|
+
registeredModelId?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Tags for the MLflow model.
|
|
107
|
+
*/
|
|
108
|
+
tags?: pulumi.Input<pulumi.Input<inputs.MlflowModelTag>[]>;
|
|
109
|
+
userId?: pulumi.Input<string>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The set of arguments for constructing a MlflowModel resource.
|
|
113
|
+
*/
|
|
114
|
+
export interface MlflowModelArgs {
|
|
115
|
+
creationTimestamp?: pulumi.Input<number>;
|
|
116
|
+
/**
|
|
117
|
+
* The description of the MLflow model.
|
|
118
|
+
*/
|
|
119
|
+
description?: pulumi.Input<string>;
|
|
120
|
+
lastUpdatedTimestamp?: pulumi.Input<number>;
|
|
121
|
+
/**
|
|
122
|
+
* Name of MLflow model. Change of name triggers new resource.
|
|
123
|
+
*/
|
|
124
|
+
name?: pulumi.Input<string>;
|
|
125
|
+
registeredModelId?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Tags for the MLflow model.
|
|
128
|
+
*/
|
|
129
|
+
tags?: pulumi.Input<pulumi.Input<inputs.MlflowModelTag>[]>;
|
|
130
|
+
userId?: pulumi.Input<string>;
|
|
131
|
+
}
|