@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 @@
|
|
|
1
|
+
{"version":3,"file":"getCatalogs.js","sourceRoot":"","sources":["../getCatalogs.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kCAUC;AA0BD,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
|
package/getClusters.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* Retrieve all clusters on this workspace on AWS or GCP:
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as databricks from "@pulumi/databricks";
|
|
10
|
+
*
|
|
11
|
+
* const all = databricks.getClusters({});
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* Retrieve all clusters with "Shared" in their cluster name on this Azure Databricks workspace:
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as databricks from "@pulumi/databricks";
|
|
19
|
+
*
|
|
20
|
+
* const allShared = databricks.getClusters({
|
|
21
|
+
* clusterNameContains: "shared",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
* ## Related Resources
|
|
25
|
+
*
|
|
26
|
+
* The following resources are used in the same context:
|
|
27
|
+
*
|
|
28
|
+
* * End to end workspace management guide
|
|
29
|
+
* * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
|
|
30
|
+
* * databricks.ClusterPolicy to create a databricks.Cluster policy, which limits the ability to create clusters based on a set of rules.
|
|
31
|
+
* * databricks.InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
|
|
32
|
+
* * databricks.Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a databricks_cluster.
|
|
33
|
+
* * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
|
|
34
|
+
* * databricks.Pipeline to deploy [Delta Live Tables](https://docs.databricks.com/data-engineering/delta-live-tables/index.html).
|
|
35
|
+
*/
|
|
36
|
+
export declare function getClusters(args?: GetClustersArgs, opts?: pulumi.InvokeOptions): Promise<GetClustersResult>;
|
|
37
|
+
/**
|
|
38
|
+
* A collection of arguments for invoking getClusters.
|
|
39
|
+
*/
|
|
40
|
+
export interface GetClustersArgs {
|
|
41
|
+
/**
|
|
42
|
+
* Only return databricks.Cluster ids that match the given name string.
|
|
43
|
+
*/
|
|
44
|
+
clusterNameContains?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A collection of values returned by getClusters.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetClustersResult {
|
|
50
|
+
readonly clusterNameContains?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The provider-assigned unique ID for this managed resource.
|
|
53
|
+
*/
|
|
54
|
+
readonly id: string;
|
|
55
|
+
/**
|
|
56
|
+
* list of databricks.Cluster ids
|
|
57
|
+
*/
|
|
58
|
+
readonly ids: string[];
|
|
59
|
+
}
|
|
60
|
+
export declare function getClustersOutput(args?: GetClustersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClustersResult>;
|
|
61
|
+
/**
|
|
62
|
+
* A collection of arguments for invoking getClusters.
|
|
63
|
+
*/
|
|
64
|
+
export interface GetClustersOutputArgs {
|
|
65
|
+
/**
|
|
66
|
+
* Only return databricks.Cluster ids that match the given name string.
|
|
67
|
+
*/
|
|
68
|
+
clusterNameContains?: pulumi.Input<string>;
|
|
69
|
+
}
|
package/getClusters.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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.getClustersOutput = exports.getClusters = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* Retrieve all clusters on this workspace on AWS or GCP:
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as databricks from "@pulumi/databricks";
|
|
16
|
+
*
|
|
17
|
+
* const all = databricks.getClusters({});
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Retrieve all clusters with "Shared" in their cluster name on this Azure Databricks workspace:
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as databricks from "@pulumi/databricks";
|
|
25
|
+
*
|
|
26
|
+
* const allShared = databricks.getClusters({
|
|
27
|
+
* clusterNameContains: "shared",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
* ## Related Resources
|
|
31
|
+
*
|
|
32
|
+
* The following resources are used in the same context:
|
|
33
|
+
*
|
|
34
|
+
* * End to end workspace management guide
|
|
35
|
+
* * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
|
|
36
|
+
* * databricks.ClusterPolicy to create a databricks.Cluster policy, which limits the ability to create clusters based on a set of rules.
|
|
37
|
+
* * databricks.InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
|
|
38
|
+
* * databricks.Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a databricks_cluster.
|
|
39
|
+
* * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
|
|
40
|
+
* * databricks.Pipeline to deploy [Delta Live Tables](https://docs.databricks.com/data-engineering/delta-live-tables/index.html).
|
|
41
|
+
*/
|
|
42
|
+
function getClusters(args, opts) {
|
|
43
|
+
args = args || {};
|
|
44
|
+
if (!opts) {
|
|
45
|
+
opts = {};
|
|
46
|
+
}
|
|
47
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
48
|
+
return pulumi.runtime.invoke("databricks:index/getClusters:getClusters", {
|
|
49
|
+
"clusterNameContains": args.clusterNameContains,
|
|
50
|
+
}, opts);
|
|
51
|
+
}
|
|
52
|
+
exports.getClusters = getClusters;
|
|
53
|
+
function getClustersOutput(args, opts) {
|
|
54
|
+
return pulumi.output(args).apply(a => getClusters(a, opts));
|
|
55
|
+
}
|
|
56
|
+
exports.getClustersOutput = getClustersOutput;
|
|
57
|
+
//# sourceMappingURL=getClusters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClusters.js","sourceRoot":"","sources":["../getClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;KAClD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kCAUC;AA2BD,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Exported attributes
|
|
4
|
+
*
|
|
5
|
+
* Data source exposes the following attributes:
|
|
6
|
+
*
|
|
7
|
+
* * `id` - The id of the calling user.
|
|
8
|
+
* * `externalId` - ID of the user in an external identity provider.
|
|
9
|
+
* * `userName` - Name of the user, e.g. `mr.foo@example.com`.
|
|
10
|
+
* * `home` - Home folder of the user, e.g. `/Users/mr.foo@example.com`.
|
|
11
|
+
* * `repos` - Personal Repos location of the user, e.g. `/Repos/mr.foo@example.com`.
|
|
12
|
+
* * `alphanumeric` - Alphanumeric representation of user local name. e.g. `mrFoo`.
|
|
13
|
+
* * `workspaceUrl` - URL of the current Databricks workspace.
|
|
14
|
+
*
|
|
15
|
+
* ## Related Resources
|
|
16
|
+
*
|
|
17
|
+
* The following resources are used in the same context:
|
|
18
|
+
*
|
|
19
|
+
* * End to end workspace management guide
|
|
20
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
21
|
+
* * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
22
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
23
|
+
*/
|
|
24
|
+
export declare function getCurrentUser(opts?: pulumi.InvokeOptions): Promise<GetCurrentUserResult>;
|
|
25
|
+
/**
|
|
26
|
+
* A collection of values returned by getCurrentUser.
|
|
27
|
+
*/
|
|
28
|
+
export interface GetCurrentUserResult {
|
|
29
|
+
readonly alphanumeric: string;
|
|
30
|
+
readonly externalId: string;
|
|
31
|
+
readonly home: string;
|
|
32
|
+
/**
|
|
33
|
+
* The provider-assigned unique ID for this managed resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly repos: string;
|
|
37
|
+
readonly userName: string;
|
|
38
|
+
readonly workspaceUrl: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.getCurrentUser = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Exported attributes
|
|
10
|
+
*
|
|
11
|
+
* Data source exposes the following attributes:
|
|
12
|
+
*
|
|
13
|
+
* * `id` - The id of the calling user.
|
|
14
|
+
* * `externalId` - ID of the user in an external identity provider.
|
|
15
|
+
* * `userName` - Name of the user, e.g. `mr.foo@example.com`.
|
|
16
|
+
* * `home` - Home folder of the user, e.g. `/Users/mr.foo@example.com`.
|
|
17
|
+
* * `repos` - Personal Repos location of the user, e.g. `/Repos/mr.foo@example.com`.
|
|
18
|
+
* * `alphanumeric` - Alphanumeric representation of user local name. e.g. `mrFoo`.
|
|
19
|
+
* * `workspaceUrl` - URL of the current Databricks workspace.
|
|
20
|
+
*
|
|
21
|
+
* ## Related Resources
|
|
22
|
+
*
|
|
23
|
+
* The following resources are 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.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html).
|
|
28
|
+
* * databricks.Repo to manage [Databricks Repos](https://docs.databricks.com/repos.html).
|
|
29
|
+
*/
|
|
30
|
+
function getCurrentUser(opts) {
|
|
31
|
+
if (!opts) {
|
|
32
|
+
opts = {};
|
|
33
|
+
}
|
|
34
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
35
|
+
return pulumi.runtime.invoke("databricks:index/getCurrentUser:getCurrentUser", {}, opts);
|
|
36
|
+
}
|
|
37
|
+
exports.getCurrentUser = getCurrentUser;
|
|
38
|
+
//# sourceMappingURL=getCurrentUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../getCurrentUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE,EAC9E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wCAQC"}
|
package/getDbfsFile.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as databricks from "@pulumi/databricks";
|
|
8
|
+
*
|
|
9
|
+
* const report = pulumi.output(databricks.getDbfsFile({
|
|
10
|
+
* limitFileSize: 10240,
|
|
11
|
+
* path: "dbfs:/reports/some.csv",
|
|
12
|
+
* }));
|
|
13
|
+
* ```
|
|
14
|
+
* ## Related Resources
|
|
15
|
+
*
|
|
16
|
+
* The following resources are used in the same context:
|
|
17
|
+
*
|
|
18
|
+
* * End to end workspace management guide
|
|
19
|
+
* * databricks.getDbfsFilePaths data to get list of file names from get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
20
|
+
* * databricks.DbfsFile to manage relatively small files on [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
21
|
+
* * databricks.Mount to [mount your cloud storage](https://docs.databricks.com/data/databricks-file-system.html#mount-object-storage-to-dbfs) on `dbfs:/mnt/name`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getDbfsFile(args: GetDbfsFileArgs, opts?: pulumi.InvokeOptions): Promise<GetDbfsFileResult>;
|
|
24
|
+
/**
|
|
25
|
+
* A collection of arguments for invoking getDbfsFile.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetDbfsFileArgs {
|
|
28
|
+
/**
|
|
29
|
+
* Do lot load content for files smaller than this in bytes
|
|
30
|
+
*/
|
|
31
|
+
limitFileSize: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Path on DBFS for the file to get content of
|
|
34
|
+
*/
|
|
35
|
+
path: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A collection of values returned by getDbfsFile.
|
|
39
|
+
*/
|
|
40
|
+
export interface GetDbfsFileResult {
|
|
41
|
+
/**
|
|
42
|
+
* base64-encoded file contents
|
|
43
|
+
*/
|
|
44
|
+
readonly content: string;
|
|
45
|
+
/**
|
|
46
|
+
* size of the file in bytes
|
|
47
|
+
*/
|
|
48
|
+
readonly fileSize: number;
|
|
49
|
+
/**
|
|
50
|
+
* The provider-assigned unique ID for this managed resource.
|
|
51
|
+
*/
|
|
52
|
+
readonly id: string;
|
|
53
|
+
readonly limitFileSize: boolean;
|
|
54
|
+
readonly path: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function getDbfsFileOutput(args: GetDbfsFileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDbfsFileResult>;
|
|
57
|
+
/**
|
|
58
|
+
* A collection of arguments for invoking getDbfsFile.
|
|
59
|
+
*/
|
|
60
|
+
export interface GetDbfsFileOutputArgs {
|
|
61
|
+
/**
|
|
62
|
+
* Do lot load content for files smaller than this in bytes
|
|
63
|
+
*/
|
|
64
|
+
limitFileSize: pulumi.Input<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Path on DBFS for the file to get content of
|
|
67
|
+
*/
|
|
68
|
+
path: pulumi.Input<string>;
|
|
69
|
+
}
|
package/getDbfsFile.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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.getDbfsFileOutput = exports.getDbfsFile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as databricks from "@pulumi/databricks";
|
|
14
|
+
*
|
|
15
|
+
* const report = pulumi.output(databricks.getDbfsFile({
|
|
16
|
+
* limitFileSize: 10240,
|
|
17
|
+
* path: "dbfs:/reports/some.csv",
|
|
18
|
+
* }));
|
|
19
|
+
* ```
|
|
20
|
+
* ## Related Resources
|
|
21
|
+
*
|
|
22
|
+
* The following resources are used in the same context:
|
|
23
|
+
*
|
|
24
|
+
* * End to end workspace management guide
|
|
25
|
+
* * databricks.getDbfsFilePaths data to get list of file names from get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
26
|
+
* * databricks.DbfsFile to manage relatively small files on [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
27
|
+
* * databricks.Mount to [mount your cloud storage](https://docs.databricks.com/data/databricks-file-system.html#mount-object-storage-to-dbfs) on `dbfs:/mnt/name`.
|
|
28
|
+
*/
|
|
29
|
+
function getDbfsFile(args, opts) {
|
|
30
|
+
if (!opts) {
|
|
31
|
+
opts = {};
|
|
32
|
+
}
|
|
33
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
34
|
+
return pulumi.runtime.invoke("databricks:index/getDbfsFile:getDbfsFile", {
|
|
35
|
+
"limitFileSize": args.limitFileSize,
|
|
36
|
+
"path": args.path,
|
|
37
|
+
}, opts);
|
|
38
|
+
}
|
|
39
|
+
exports.getDbfsFile = getDbfsFile;
|
|
40
|
+
function getDbfsFileOutput(args, opts) {
|
|
41
|
+
return pulumi.output(args).apply(a => getDbfsFile(a, opts));
|
|
42
|
+
}
|
|
43
|
+
exports.getDbfsFileOutput = getDbfsFileOutput;
|
|
44
|
+
//# sourceMappingURL=getDbfsFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDbfsFile.js","sourceRoot":"","sources":["../getDbfsFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kCAUC;AAoCD,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as databricks from "@pulumi/databricks";
|
|
9
|
+
*
|
|
10
|
+
* const partitions = pulumi.output(databricks.getDbfsFilePaths({
|
|
11
|
+
* path: "dbfs:/user/hive/default.db/table",
|
|
12
|
+
* recursive: false,
|
|
13
|
+
* }));
|
|
14
|
+
* ```
|
|
15
|
+
* ## Related Resources
|
|
16
|
+
*
|
|
17
|
+
* The following resources are used in the same context:
|
|
18
|
+
*
|
|
19
|
+
* * End to end workspace management guide
|
|
20
|
+
* * databricks.DbfsFile data to get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
21
|
+
* * databricks.getDbfsFilePaths data to get list of file names from get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
22
|
+
* * databricks.DbfsFile to manage relatively small files on [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
23
|
+
* * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
|
|
24
|
+
* * databricks.Mount to [mount your cloud storage](https://docs.databricks.com/data/databricks-file-system.html#mount-object-storage-to-dbfs) on `dbfs:/mnt/name`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getDbfsFilePaths(args: GetDbfsFilePathsArgs, opts?: pulumi.InvokeOptions): Promise<GetDbfsFilePathsResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getDbfsFilePaths.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetDbfsFilePathsArgs {
|
|
31
|
+
/**
|
|
32
|
+
* Path on DBFS for the file to perform listing
|
|
33
|
+
*/
|
|
34
|
+
path: string;
|
|
35
|
+
/**
|
|
36
|
+
* Either or not recursively list all files
|
|
37
|
+
*/
|
|
38
|
+
recursive: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A collection of values returned by getDbfsFilePaths.
|
|
42
|
+
*/
|
|
43
|
+
export interface GetDbfsFilePathsResult {
|
|
44
|
+
/**
|
|
45
|
+
* The provider-assigned unique ID for this managed resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly path: string;
|
|
49
|
+
/**
|
|
50
|
+
* returns list of objects with `path` and `fileSize` attributes in each
|
|
51
|
+
*/
|
|
52
|
+
readonly pathLists: outputs.GetDbfsFilePathsPathList[];
|
|
53
|
+
readonly recursive: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare function getDbfsFilePathsOutput(args: GetDbfsFilePathsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDbfsFilePathsResult>;
|
|
56
|
+
/**
|
|
57
|
+
* A collection of arguments for invoking getDbfsFilePaths.
|
|
58
|
+
*/
|
|
59
|
+
export interface GetDbfsFilePathsOutputArgs {
|
|
60
|
+
/**
|
|
61
|
+
* Path on DBFS for the file to perform listing
|
|
62
|
+
*/
|
|
63
|
+
path: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Either or not recursively list all files
|
|
66
|
+
*/
|
|
67
|
+
recursive: pulumi.Input<boolean>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.getDbfsFilePathsOutput = exports.getDbfsFilePaths = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as databricks from "@pulumi/databricks";
|
|
14
|
+
*
|
|
15
|
+
* const partitions = pulumi.output(databricks.getDbfsFilePaths({
|
|
16
|
+
* path: "dbfs:/user/hive/default.db/table",
|
|
17
|
+
* recursive: false,
|
|
18
|
+
* }));
|
|
19
|
+
* ```
|
|
20
|
+
* ## Related Resources
|
|
21
|
+
*
|
|
22
|
+
* The following resources are used in the same context:
|
|
23
|
+
*
|
|
24
|
+
* * End to end workspace management guide
|
|
25
|
+
* * databricks.DbfsFile data to get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
26
|
+
* * databricks.getDbfsFilePaths data to get list of file names from get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
27
|
+
* * databricks.DbfsFile to manage relatively small files on [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
|
|
28
|
+
* * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
|
|
29
|
+
* * databricks.Mount to [mount your cloud storage](https://docs.databricks.com/data/databricks-file-system.html#mount-object-storage-to-dbfs) on `dbfs:/mnt/name`.
|
|
30
|
+
*/
|
|
31
|
+
function getDbfsFilePaths(args, opts) {
|
|
32
|
+
if (!opts) {
|
|
33
|
+
opts = {};
|
|
34
|
+
}
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
36
|
+
return pulumi.runtime.invoke("databricks:index/getDbfsFilePaths:getDbfsFilePaths", {
|
|
37
|
+
"path": args.path,
|
|
38
|
+
"recursive": args.recursive,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
exports.getDbfsFilePaths = getDbfsFilePaths;
|
|
42
|
+
function getDbfsFilePathsOutput(args, opts) {
|
|
43
|
+
return pulumi.output(args).apply(a => getDbfsFilePaths(a, opts));
|
|
44
|
+
}
|
|
45
|
+
exports.getDbfsFilePathsOutput = getDbfsFilePathsOutput;
|
|
46
|
+
//# sourceMappingURL=getDbfsFilePaths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDbfsFilePaths.js","sourceRoot":"","sources":["../getDbfsFilePaths.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,4CAUC;AAgCD,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,wDAEC"}
|
package/getGroup.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Related Resources
|
|
4
|
+
*
|
|
5
|
+
* The following resources are used in the same context:
|
|
6
|
+
*
|
|
7
|
+
* * End to end workspace management guide
|
|
8
|
+
* * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
|
|
9
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
10
|
+
* * databricksGroupMember to attach users and groups as group members.
|
|
11
|
+
* * databricks.Permissions to manage [access control](https://docs.databricks.com/security/access-control/index.html) in Databricks workspace.
|
|
12
|
+
* * databricks.User to [manage users](https://docs.databricks.com/administration-guide/users-groups/users.html), that could be added to databricks.Group within the workspace.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getGroup(args: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupResult>;
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getGroup.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetGroupArgs {
|
|
19
|
+
/**
|
|
20
|
+
* True if group members can create clusters
|
|
21
|
+
*/
|
|
22
|
+
allowClusterCreate?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* True if group members can create instance pools
|
|
25
|
+
*/
|
|
26
|
+
allowInstancePoolCreate?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Set of databricks.Group identifiers, that can be modified with databricksGroupMember resource.
|
|
29
|
+
*/
|
|
30
|
+
childGroups?: string[];
|
|
31
|
+
databricksSqlAccess?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Display name of the group. The group must exist before this resource can be planned.
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the group in an external identity provider.
|
|
38
|
+
*/
|
|
39
|
+
externalId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Set of group identifiers, that can be modified with databricksGroupMember resource.
|
|
42
|
+
*/
|
|
43
|
+
groups?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Set of instance profile ARNs, that can be modified by databricks.GroupInstanceProfile resource.
|
|
46
|
+
*/
|
|
47
|
+
instanceProfiles?: string[];
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Please use `users`, `service_principals`, and `child_groups` instead
|
|
50
|
+
*/
|
|
51
|
+
members?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* Collect information for all nested groups. *Defaults to true.*
|
|
54
|
+
*/
|
|
55
|
+
recursive?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Set of databricks.ServicePrincipal identifiers, that can be modified with databricksGroupMember resource.
|
|
58
|
+
*/
|
|
59
|
+
servicePrincipals?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* Set of databricks.User identifiers, that can be modified with databricksGroupMember resource.
|
|
62
|
+
*/
|
|
63
|
+
users?: string[];
|
|
64
|
+
workspaceAccess?: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A collection of values returned by getGroup.
|
|
68
|
+
*/
|
|
69
|
+
export interface GetGroupResult {
|
|
70
|
+
/**
|
|
71
|
+
* True if group members can create clusters
|
|
72
|
+
*/
|
|
73
|
+
readonly allowClusterCreate?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* True if group members can create instance pools
|
|
76
|
+
*/
|
|
77
|
+
readonly allowInstancePoolCreate?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Set of databricks.Group identifiers, that can be modified with databricksGroupMember resource.
|
|
80
|
+
*/
|
|
81
|
+
readonly childGroups: string[];
|
|
82
|
+
readonly databricksSqlAccess?: boolean;
|
|
83
|
+
readonly displayName: string;
|
|
84
|
+
/**
|
|
85
|
+
* ID of the group in an external identity provider.
|
|
86
|
+
*/
|
|
87
|
+
readonly externalId: string;
|
|
88
|
+
/**
|
|
89
|
+
* Set of group identifiers, that can be modified with databricksGroupMember resource.
|
|
90
|
+
*/
|
|
91
|
+
readonly groups: string[];
|
|
92
|
+
/**
|
|
93
|
+
* The provider-assigned unique ID for this managed resource.
|
|
94
|
+
*/
|
|
95
|
+
readonly id: string;
|
|
96
|
+
/**
|
|
97
|
+
* Set of instance profile ARNs, that can be modified by databricks.GroupInstanceProfile resource.
|
|
98
|
+
*/
|
|
99
|
+
readonly instanceProfiles: string[];
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Please use `users`, `service_principals`, and `child_groups` instead
|
|
102
|
+
*/
|
|
103
|
+
readonly members: string[];
|
|
104
|
+
readonly recursive?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Set of databricks.ServicePrincipal identifiers, that can be modified with databricksGroupMember resource.
|
|
107
|
+
*/
|
|
108
|
+
readonly servicePrincipals: string[];
|
|
109
|
+
/**
|
|
110
|
+
* Set of databricks.User identifiers, that can be modified with databricksGroupMember resource.
|
|
111
|
+
*/
|
|
112
|
+
readonly users: string[];
|
|
113
|
+
readonly workspaceAccess?: boolean;
|
|
114
|
+
}
|
|
115
|
+
export declare function getGroupOutput(args: GetGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupResult>;
|
|
116
|
+
/**
|
|
117
|
+
* A collection of arguments for invoking getGroup.
|
|
118
|
+
*/
|
|
119
|
+
export interface GetGroupOutputArgs {
|
|
120
|
+
/**
|
|
121
|
+
* True if group members can create clusters
|
|
122
|
+
*/
|
|
123
|
+
allowClusterCreate?: pulumi.Input<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* True if group members can create instance pools
|
|
126
|
+
*/
|
|
127
|
+
allowInstancePoolCreate?: pulumi.Input<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* Set of databricks.Group identifiers, that can be modified with databricksGroupMember resource.
|
|
130
|
+
*/
|
|
131
|
+
childGroups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
132
|
+
databricksSqlAccess?: pulumi.Input<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* Display name of the group. The group must exist before this resource can be planned.
|
|
135
|
+
*/
|
|
136
|
+
displayName: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* ID of the group in an external identity provider.
|
|
139
|
+
*/
|
|
140
|
+
externalId?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Set of group identifiers, that can be modified with databricksGroupMember resource.
|
|
143
|
+
*/
|
|
144
|
+
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
145
|
+
/**
|
|
146
|
+
* Set of instance profile ARNs, that can be modified by databricks.GroupInstanceProfile resource.
|
|
147
|
+
*/
|
|
148
|
+
instanceProfiles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
149
|
+
/**
|
|
150
|
+
* @deprecated Please use `users`, `service_principals`, and `child_groups` instead
|
|
151
|
+
*/
|
|
152
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Collect information for all nested groups. *Defaults to true.*
|
|
155
|
+
*/
|
|
156
|
+
recursive?: pulumi.Input<boolean>;
|
|
157
|
+
/**
|
|
158
|
+
* Set of databricks.ServicePrincipal identifiers, that can be modified with databricksGroupMember resource.
|
|
159
|
+
*/
|
|
160
|
+
servicePrincipals?: pulumi.Input<pulumi.Input<string>[]>;
|
|
161
|
+
/**
|
|
162
|
+
* Set of databricks.User identifiers, that can be modified with databricksGroupMember resource.
|
|
163
|
+
*/
|
|
164
|
+
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
165
|
+
workspaceAccess?: pulumi.Input<boolean>;
|
|
166
|
+
}
|
package/getGroup.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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.getGroupOutput = exports.getGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Related Resources
|
|
10
|
+
*
|
|
11
|
+
* The following resources are used in the same context:
|
|
12
|
+
*
|
|
13
|
+
* * End to end workspace management guide
|
|
14
|
+
* * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
|
|
15
|
+
* * databricks.Directory to manage directories in [Databricks Workpace](https://docs.databricks.com/workspace/workspace-objects.html).
|
|
16
|
+
* * databricksGroupMember to attach users and groups as group members.
|
|
17
|
+
* * databricks.Permissions to manage [access control](https://docs.databricks.com/security/access-control/index.html) in Databricks workspace.
|
|
18
|
+
* * databricks.User to [manage users](https://docs.databricks.com/administration-guide/users-groups/users.html), that could be added to databricks.Group within the workspace.
|
|
19
|
+
*/
|
|
20
|
+
function getGroup(args, opts) {
|
|
21
|
+
if (!opts) {
|
|
22
|
+
opts = {};
|
|
23
|
+
}
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
25
|
+
return pulumi.runtime.invoke("databricks:index/getGroup:getGroup", {
|
|
26
|
+
"allowClusterCreate": args.allowClusterCreate,
|
|
27
|
+
"allowInstancePoolCreate": args.allowInstancePoolCreate,
|
|
28
|
+
"childGroups": args.childGroups,
|
|
29
|
+
"databricksSqlAccess": args.databricksSqlAccess,
|
|
30
|
+
"displayName": args.displayName,
|
|
31
|
+
"externalId": args.externalId,
|
|
32
|
+
"groups": args.groups,
|
|
33
|
+
"instanceProfiles": args.instanceProfiles,
|
|
34
|
+
"members": args.members,
|
|
35
|
+
"recursive": args.recursive,
|
|
36
|
+
"servicePrincipals": args.servicePrincipals,
|
|
37
|
+
"users": args.users,
|
|
38
|
+
"workspaceAccess": args.workspaceAccess,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
exports.getGroup = getGroup;
|
|
42
|
+
function getGroupOutput(args, opts) {
|
|
43
|
+
return pulumi.output(args).apply(a => getGroup(a, opts));
|
|
44
|
+
}
|
|
45
|
+
exports.getGroupOutput = getGroupOutput;
|
|
46
|
+
//# sourceMappingURL=getGroup.js.map
|