@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,99 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* The resource global init script can be imported using script IDbash
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import databricks:index/globalInitScript:GlobalInitScript this script_id
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class GlobalInitScript extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing GlobalInitScript resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GlobalInitScriptState, opts?: pulumi.CustomResourceOptions): GlobalInitScript;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of GlobalInitScript. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is GlobalInitScript;
|
|
27
|
+
readonly contentBase64: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* specifies if the script is enabled for execution, or not
|
|
30
|
+
*/
|
|
31
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
32
|
+
readonly md5: pulumi.Output<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* - the name of the script. It should be unique
|
|
35
|
+
*/
|
|
36
|
+
readonly name: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* - the position of a global init script, where `0` represents the first global init script to run, `1` is the second global init script to run, and so on. When omitted, the script gets the last position.
|
|
39
|
+
*/
|
|
40
|
+
readonly position: pulumi.Output<number>;
|
|
41
|
+
/**
|
|
42
|
+
* Path to script's source code on local filesystem. Conflicts with `contentBase64`
|
|
43
|
+
*/
|
|
44
|
+
readonly source: pulumi.Output<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a GlobalInitScript resource with the given unique name, arguments, and options.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resource.
|
|
49
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
50
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
51
|
+
*/
|
|
52
|
+
constructor(name: string, args?: GlobalInitScriptArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Input properties used for looking up and filtering GlobalInitScript resources.
|
|
56
|
+
*/
|
|
57
|
+
export interface GlobalInitScriptState {
|
|
58
|
+
contentBase64?: pulumi.Input<string>;
|
|
59
|
+
/**
|
|
60
|
+
* specifies if the script is enabled for execution, or not
|
|
61
|
+
*/
|
|
62
|
+
enabled?: pulumi.Input<boolean>;
|
|
63
|
+
md5?: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* - the name of the script. It should be unique
|
|
66
|
+
*/
|
|
67
|
+
name?: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* - the position of a global init script, where `0` represents the first global init script to run, `1` is the second global init script to run, and so on. When omitted, the script gets the last position.
|
|
70
|
+
*/
|
|
71
|
+
position?: pulumi.Input<number>;
|
|
72
|
+
/**
|
|
73
|
+
* Path to script's source code on local filesystem. Conflicts with `contentBase64`
|
|
74
|
+
*/
|
|
75
|
+
source?: pulumi.Input<string>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The set of arguments for constructing a GlobalInitScript resource.
|
|
79
|
+
*/
|
|
80
|
+
export interface GlobalInitScriptArgs {
|
|
81
|
+
contentBase64?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* specifies if the script is enabled for execution, or not
|
|
84
|
+
*/
|
|
85
|
+
enabled?: pulumi.Input<boolean>;
|
|
86
|
+
md5?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* - the name of the script. It should be unique
|
|
89
|
+
*/
|
|
90
|
+
name?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* - the position of a global init script, where `0` represents the first global init script to run, `1` is the second global init script to run, and so on. When omitted, the script gets the last position.
|
|
93
|
+
*/
|
|
94
|
+
position?: pulumi.Input<number>;
|
|
95
|
+
/**
|
|
96
|
+
* Path to script's source code on local filesystem. Conflicts with `contentBase64`
|
|
97
|
+
*/
|
|
98
|
+
source?: pulumi.Input<string>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.GlobalInitScript = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* The resource global init script can be imported using script IDbash
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import databricks:index/globalInitScript:GlobalInitScript this script_id
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class GlobalInitScript extends pulumi.CustomResource {
|
|
18
|
+
constructor(name, argsOrState, opts) {
|
|
19
|
+
let resourceInputs = {};
|
|
20
|
+
opts = opts || {};
|
|
21
|
+
if (opts.id) {
|
|
22
|
+
const state = argsOrState;
|
|
23
|
+
resourceInputs["contentBase64"] = state ? state.contentBase64 : undefined;
|
|
24
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
25
|
+
resourceInputs["md5"] = state ? state.md5 : undefined;
|
|
26
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
27
|
+
resourceInputs["position"] = state ? state.position : undefined;
|
|
28
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const args = argsOrState;
|
|
32
|
+
resourceInputs["contentBase64"] = args ? args.contentBase64 : undefined;
|
|
33
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
34
|
+
resourceInputs["md5"] = args ? args.md5 : undefined;
|
|
35
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
36
|
+
resourceInputs["position"] = args ? args.position : undefined;
|
|
37
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
38
|
+
}
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
super(GlobalInitScript.__pulumiType, name, resourceInputs, opts);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing GlobalInitScript 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, id, state, opts) {
|
|
52
|
+
return new GlobalInitScript(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of GlobalInitScript. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === GlobalInitScript.__pulumiType;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.GlobalInitScript = GlobalInitScript;
|
|
66
|
+
/** @internal */
|
|
67
|
+
GlobalInitScript.__pulumiType = 'databricks:index/globalInitScript:GlobalInitScript';
|
|
68
|
+
//# sourceMappingURL=globalInitScript.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalInitScript.js","sourceRoot":"","sources":["../globalInitScript.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;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from "./types";
|
|
3
|
+
export declare class Grants extends pulumi.CustomResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get an existing Grants resource's state with the given name, ID, and optional extra
|
|
6
|
+
* properties used to qualify the lookup.
|
|
7
|
+
*
|
|
8
|
+
* @param name The _unique_ name of the resulting resource.
|
|
9
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
10
|
+
* @param state Any extra arguments used during the lookup.
|
|
11
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
12
|
+
*/
|
|
13
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GrantsState, opts?: pulumi.CustomResourceOptions): Grants;
|
|
14
|
+
/**
|
|
15
|
+
* Returns true if the given object is an instance of Grants. This is designed to work even
|
|
16
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
|
+
*/
|
|
18
|
+
static isInstance(obj: any): obj is Grants;
|
|
19
|
+
readonly catalog: pulumi.Output<string | undefined>;
|
|
20
|
+
readonly externalLocation: pulumi.Output<string | undefined>;
|
|
21
|
+
readonly grants: pulumi.Output<outputs.GrantsGrant[]>;
|
|
22
|
+
readonly schema: pulumi.Output<string | undefined>;
|
|
23
|
+
readonly storageCredential: pulumi.Output<string | undefined>;
|
|
24
|
+
readonly table: pulumi.Output<string | undefined>;
|
|
25
|
+
readonly view: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Grants resource with the given unique name, arguments, and options.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resource.
|
|
30
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
31
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
32
|
+
*/
|
|
33
|
+
constructor(name: string, args: GrantsArgs, opts?: pulumi.CustomResourceOptions);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Input properties used for looking up and filtering Grants resources.
|
|
37
|
+
*/
|
|
38
|
+
export interface GrantsState {
|
|
39
|
+
catalog?: pulumi.Input<string>;
|
|
40
|
+
externalLocation?: pulumi.Input<string>;
|
|
41
|
+
grants?: pulumi.Input<pulumi.Input<inputs.GrantsGrant>[]>;
|
|
42
|
+
schema?: pulumi.Input<string>;
|
|
43
|
+
storageCredential?: pulumi.Input<string>;
|
|
44
|
+
table?: pulumi.Input<string>;
|
|
45
|
+
view?: pulumi.Input<string>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The set of arguments for constructing a Grants resource.
|
|
49
|
+
*/
|
|
50
|
+
export interface GrantsArgs {
|
|
51
|
+
catalog?: pulumi.Input<string>;
|
|
52
|
+
externalLocation?: pulumi.Input<string>;
|
|
53
|
+
grants: pulumi.Input<pulumi.Input<inputs.GrantsGrant>[]>;
|
|
54
|
+
schema?: pulumi.Input<string>;
|
|
55
|
+
storageCredential?: pulumi.Input<string>;
|
|
56
|
+
table?: pulumi.Input<string>;
|
|
57
|
+
view?: pulumi.Input<string>;
|
|
58
|
+
}
|
package/grants.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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.Grants = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Grants extends pulumi.CustomResource {
|
|
9
|
+
constructor(name, argsOrState, opts) {
|
|
10
|
+
let resourceInputs = {};
|
|
11
|
+
opts = opts || {};
|
|
12
|
+
if (opts.id) {
|
|
13
|
+
const state = argsOrState;
|
|
14
|
+
resourceInputs["catalog"] = state ? state.catalog : undefined;
|
|
15
|
+
resourceInputs["externalLocation"] = state ? state.externalLocation : undefined;
|
|
16
|
+
resourceInputs["grants"] = state ? state.grants : undefined;
|
|
17
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
18
|
+
resourceInputs["storageCredential"] = state ? state.storageCredential : undefined;
|
|
19
|
+
resourceInputs["table"] = state ? state.table : undefined;
|
|
20
|
+
resourceInputs["view"] = state ? state.view : undefined;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
const args = argsOrState;
|
|
24
|
+
if ((!args || args.grants === undefined) && !opts.urn) {
|
|
25
|
+
throw new Error("Missing required property 'grants'");
|
|
26
|
+
}
|
|
27
|
+
resourceInputs["catalog"] = args ? args.catalog : undefined;
|
|
28
|
+
resourceInputs["externalLocation"] = args ? args.externalLocation : undefined;
|
|
29
|
+
resourceInputs["grants"] = args ? args.grants : undefined;
|
|
30
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
31
|
+
resourceInputs["storageCredential"] = args ? args.storageCredential : undefined;
|
|
32
|
+
resourceInputs["table"] = args ? args.table : undefined;
|
|
33
|
+
resourceInputs["view"] = args ? args.view : undefined;
|
|
34
|
+
}
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
36
|
+
super(Grants.__pulumiType, name, resourceInputs, opts);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing Grants resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name, id, state, opts) {
|
|
48
|
+
return new Grants(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of Grants. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj) {
|
|
55
|
+
if (obj === undefined || obj === null) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return obj['__pulumiType'] === Grants.__pulumiType;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.Grants = Grants;
|
|
62
|
+
/** @internal */
|
|
63
|
+
Grants.__pulumiType = 'databricks:index/grants:Grants';
|
|
64
|
+
//# sourceMappingURL=grants.js.map
|
package/grants.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.js","sourceRoot":"","sources":["../grants.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA4C7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,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AC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAwEC;AA1DG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/group.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage [groups in Databricks Workspace](https://docs.databricks.com/administration-guide/users-groups/groups.html) or [Account Console](https://accounts.cloud.databricks.com/) (for AWS deployments). You can also associate Databricks users to groups. This is useful if you are using an application to sync users & groups with SCIM API.
|
|
4
|
+
*
|
|
5
|
+
* Recommended to use along with Identity Provider SCIM provisioning to populate users into those groups:
|
|
6
|
+
*
|
|
7
|
+
* * [Azure Active Directory](https://docs.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/scim/aad)
|
|
8
|
+
* * [Okta](https://docs.databricks.com/administration-guide/users-groups/scim/okta.html)
|
|
9
|
+
* * [OneLogin](https://docs.databricks.com/administration-guide/users-groups/scim/onelogin.html)
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* You can import a `databricks_group` resource with the name `my_group` like the followingbash
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import databricks:index/group:Group my_group <group_id>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class Group extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupState, opts?: pulumi.CustomResourceOptions): Group;
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj: any): obj is Group;
|
|
35
|
+
/**
|
|
36
|
+
* This is a field to allow the group to have cluster create privileges. More fine grained permissions could be assigned with databricks.Permissions and clusterId argument. Everyone without `allowClusterCreate` argument set, but with permission to use Cluster Policy would be able to create clusters, but within boundaries of that specific policy.
|
|
37
|
+
*/
|
|
38
|
+
readonly allowClusterCreate: pulumi.Output<boolean | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* This is a field to allow the group to have instance pool create privileges. More fine grained permissions could be assigned with databricks.Permissions and instancePoolId argument.
|
|
41
|
+
*/
|
|
42
|
+
readonly allowInstancePoolCreate: pulumi.Output<boolean | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* This is a field to allow the group to have access to [Databricks SQL](https://databricks.com/product/databricks-sql) feature in User Interface and through databricks_sql_endpoint.
|
|
45
|
+
*/
|
|
46
|
+
readonly databricksSqlAccess: pulumi.Output<boolean | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* This is the display name for the given group.
|
|
49
|
+
*/
|
|
50
|
+
readonly displayName: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* ID of the group in an external identity provider.
|
|
53
|
+
*/
|
|
54
|
+
readonly externalId: pulumi.Output<string | undefined>;
|
|
55
|
+
readonly force: pulumi.Output<boolean | undefined>;
|
|
56
|
+
readonly url: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* This is a field to allow the group to have access to Databricks Workspace.
|
|
59
|
+
*/
|
|
60
|
+
readonly workspaceAccess: pulumi.Output<boolean | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Create a Group resource with the given unique name, arguments, and options.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resource.
|
|
65
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
66
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
67
|
+
*/
|
|
68
|
+
constructor(name: string, args: GroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Input properties used for looking up and filtering Group resources.
|
|
72
|
+
*/
|
|
73
|
+
export interface GroupState {
|
|
74
|
+
/**
|
|
75
|
+
* This is a field to allow the group to have cluster create privileges. More fine grained permissions could be assigned with databricks.Permissions and clusterId argument. Everyone without `allowClusterCreate` argument set, but with permission to use Cluster Policy would be able to create clusters, but within boundaries of that specific policy.
|
|
76
|
+
*/
|
|
77
|
+
allowClusterCreate?: pulumi.Input<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* This is a field to allow the group to have instance pool create privileges. More fine grained permissions could be assigned with databricks.Permissions and instancePoolId argument.
|
|
80
|
+
*/
|
|
81
|
+
allowInstancePoolCreate?: pulumi.Input<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* This is a field to allow the group to have access to [Databricks SQL](https://databricks.com/product/databricks-sql) feature in User Interface and through databricks_sql_endpoint.
|
|
84
|
+
*/
|
|
85
|
+
databricksSqlAccess?: pulumi.Input<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* This is the display name for the given group.
|
|
88
|
+
*/
|
|
89
|
+
displayName?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* ID of the group in an external identity provider.
|
|
92
|
+
*/
|
|
93
|
+
externalId?: pulumi.Input<string>;
|
|
94
|
+
force?: pulumi.Input<boolean>;
|
|
95
|
+
url?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* This is a field to allow the group to have access to Databricks Workspace.
|
|
98
|
+
*/
|
|
99
|
+
workspaceAccess?: pulumi.Input<boolean>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The set of arguments for constructing a Group resource.
|
|
103
|
+
*/
|
|
104
|
+
export interface GroupArgs {
|
|
105
|
+
/**
|
|
106
|
+
* This is a field to allow the group to have cluster create privileges. More fine grained permissions could be assigned with databricks.Permissions and clusterId argument. Everyone without `allowClusterCreate` argument set, but with permission to use Cluster Policy would be able to create clusters, but within boundaries of that specific policy.
|
|
107
|
+
*/
|
|
108
|
+
allowClusterCreate?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* This is a field to allow the group to have instance pool create privileges. More fine grained permissions could be assigned with databricks.Permissions and instancePoolId argument.
|
|
111
|
+
*/
|
|
112
|
+
allowInstancePoolCreate?: pulumi.Input<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* This is a field to allow the group to have access to [Databricks SQL](https://databricks.com/product/databricks-sql) feature in User Interface and through databricks_sql_endpoint.
|
|
115
|
+
*/
|
|
116
|
+
databricksSqlAccess?: pulumi.Input<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* This is the display name for the given group.
|
|
119
|
+
*/
|
|
120
|
+
displayName: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* ID of the group in an external identity provider.
|
|
123
|
+
*/
|
|
124
|
+
externalId?: pulumi.Input<string>;
|
|
125
|
+
force?: pulumi.Input<boolean>;
|
|
126
|
+
url?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* This is a field to allow the group to have access to Databricks Workspace.
|
|
129
|
+
*/
|
|
130
|
+
workspaceAccess?: pulumi.Input<boolean>;
|
|
131
|
+
}
|
package/group.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
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.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage [groups in Databricks Workspace](https://docs.databricks.com/administration-guide/users-groups/groups.html) or [Account Console](https://accounts.cloud.databricks.com/) (for AWS deployments). You can also associate Databricks users to groups. This is useful if you are using an application to sync users & groups with SCIM API.
|
|
10
|
+
*
|
|
11
|
+
* Recommended to use along with Identity Provider SCIM provisioning to populate users into those groups:
|
|
12
|
+
*
|
|
13
|
+
* * [Azure Active Directory](https://docs.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/scim/aad)
|
|
14
|
+
* * [Okta](https://docs.databricks.com/administration-guide/users-groups/scim/okta.html)
|
|
15
|
+
* * [OneLogin](https://docs.databricks.com/administration-guide/users-groups/scim/onelogin.html)
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* You can import a `databricks_group` resource with the name `my_group` like the followingbash
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import databricks:index/group:Group my_group <group_id>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
class Group extends pulumi.CustomResource {
|
|
26
|
+
constructor(name, argsOrState, opts) {
|
|
27
|
+
let resourceInputs = {};
|
|
28
|
+
opts = opts || {};
|
|
29
|
+
if (opts.id) {
|
|
30
|
+
const state = argsOrState;
|
|
31
|
+
resourceInputs["allowClusterCreate"] = state ? state.allowClusterCreate : undefined;
|
|
32
|
+
resourceInputs["allowInstancePoolCreate"] = state ? state.allowInstancePoolCreate : undefined;
|
|
33
|
+
resourceInputs["databricksSqlAccess"] = state ? state.databricksSqlAccess : undefined;
|
|
34
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
35
|
+
resourceInputs["externalId"] = state ? state.externalId : undefined;
|
|
36
|
+
resourceInputs["force"] = state ? state.force : undefined;
|
|
37
|
+
resourceInputs["url"] = state ? state.url : undefined;
|
|
38
|
+
resourceInputs["workspaceAccess"] = state ? state.workspaceAccess : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.displayName === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'displayName'");
|
|
44
|
+
}
|
|
45
|
+
resourceInputs["allowClusterCreate"] = args ? args.allowClusterCreate : undefined;
|
|
46
|
+
resourceInputs["allowInstancePoolCreate"] = args ? args.allowInstancePoolCreate : undefined;
|
|
47
|
+
resourceInputs["databricksSqlAccess"] = args ? args.databricksSqlAccess : undefined;
|
|
48
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
49
|
+
resourceInputs["externalId"] = args ? args.externalId : undefined;
|
|
50
|
+
resourceInputs["force"] = args ? args.force : undefined;
|
|
51
|
+
resourceInputs["url"] = args ? args.url : undefined;
|
|
52
|
+
resourceInputs["workspaceAccess"] = args ? args.workspaceAccess : undefined;
|
|
53
|
+
}
|
|
54
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
55
|
+
super(Group.__pulumiType, name, resourceInputs, opts);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === Group.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Group = Group;
|
|
81
|
+
/** @internal */
|
|
82
|
+
Group.__pulumiType = 'databricks:index/group:Group';
|
|
83
|
+
//# sourceMappingURL=group.js.map
|
package/group.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IA+D5C,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,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,yBAAyB,CAAC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A1BL,sBA6FC;AA/EG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* > **Note** This resource has an evolving API, which may change in future versions of the provider.
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to attach databricks.InstanceProfile (AWS) to databricks_group.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as databricks from "@pulumi/databricks";
|
|
12
|
+
*
|
|
13
|
+
* const instanceProfile = new databricks.InstanceProfile("instanceProfile", {instanceProfileArn: "my_instance_profile_arn"});
|
|
14
|
+
* const myGroup = new databricks.Group("myGroup", {displayName: "my_group_name"});
|
|
15
|
+
* const myGroupInstanceProfile = new databricks.GroupInstanceProfile("myGroupInstanceProfile", {
|
|
16
|
+
* groupId: myGroup.id,
|
|
17
|
+
* instanceProfileId: instanceProfile.id,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
* ## Related Resources
|
|
21
|
+
*
|
|
22
|
+
* The following resources are often used in the same context:
|
|
23
|
+
*
|
|
24
|
+
* * End to end workspace management guide.
|
|
25
|
+
* * databricks.getAwsBucketPolicy data to configure a simple access policy for AWS S3 buckets, so that Databricks can access data in it.
|
|
26
|
+
* * databricks.ClusterPolicy to create a databricks.Cluster policy, which limits the ability to create clusters based on a set of rules.
|
|
27
|
+
* * databricks.Group to manage [groups in Databricks Workspace](https://docs.databricks.com/administration-guide/users-groups/groups.html) or [Account Console](https://accounts.cloud.databricks.com/) (for AWS deployments).
|
|
28
|
+
* * databricks.Group data to retrieve information about databricks.Group members, entitlements and instance profiles.
|
|
29
|
+
* * databricksGroupMember to attach users and groups as group members.
|
|
30
|
+
* * 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.
|
|
31
|
+
* * databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount.
|
|
32
|
+
* * databricks.UserInstanceProfile to attach databricks.InstanceProfile (AWS) to databricks_user.
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* -> **Note** Importing this resource is not currently supported.
|
|
37
|
+
*/
|
|
38
|
+
export declare class GroupInstanceProfile extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing GroupInstanceProfile resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupInstanceProfileState, opts?: pulumi.CustomResourceOptions): GroupInstanceProfile;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of GroupInstanceProfile. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is GroupInstanceProfile;
|
|
54
|
+
/**
|
|
55
|
+
* This is the id of the group resource.
|
|
56
|
+
*/
|
|
57
|
+
readonly groupId: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* This is the id of the instance profile resource.
|
|
60
|
+
*/
|
|
61
|
+
readonly instanceProfileId: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a GroupInstanceProfile resource with the given unique name, arguments, and options.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resource.
|
|
66
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
67
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
68
|
+
*/
|
|
69
|
+
constructor(name: string, args: GroupInstanceProfileArgs, opts?: pulumi.CustomResourceOptions);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input properties used for looking up and filtering GroupInstanceProfile resources.
|
|
73
|
+
*/
|
|
74
|
+
export interface GroupInstanceProfileState {
|
|
75
|
+
/**
|
|
76
|
+
* This is the id of the group resource.
|
|
77
|
+
*/
|
|
78
|
+
groupId?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* This is the id of the instance profile resource.
|
|
81
|
+
*/
|
|
82
|
+
instanceProfileId?: pulumi.Input<string>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The set of arguments for constructing a GroupInstanceProfile resource.
|
|
86
|
+
*/
|
|
87
|
+
export interface GroupInstanceProfileArgs {
|
|
88
|
+
/**
|
|
89
|
+
* This is the id of the group resource.
|
|
90
|
+
*/
|
|
91
|
+
groupId: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* This is the id of the instance profile resource.
|
|
94
|
+
*/
|
|
95
|
+
instanceProfileId: pulumi.Input<string>;
|
|
96
|
+
}
|