@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,128 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Security-conscious enterprises that use cloud SaaS applications need to restrict access to their own employees. Authentication helps to prove user identity, but that does not enforce network location of the users. Accessing a cloud service from an unsecured network can pose security risks to an enterprise, especially when the user may have authorized access to sensitive or personal data. Enterprise network perimeters apply security policies and limit access to external services (for example, firewalls, proxies, DLP, and logging), so access beyond these controls are assumed to be untrusted. Please see [IP Access List](https://docs.databricks.com/security/network/ip-access-list.html) for full feature documentation.
|
|
4
|
+
*
|
|
5
|
+
* > **Note** The total number of IP addresses and CIDR scopes provided across all ACL Lists in a workspace can not exceed 1000. Refer to the docs above for specifics.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as databricks from "@pulumi/databricks";
|
|
12
|
+
*
|
|
13
|
+
* const _this = new databricks.WorkspaceConf("this", {customConfig: {
|
|
14
|
+
* enableIpAccessLists: true,
|
|
15
|
+
* }});
|
|
16
|
+
* const allowed_list = new databricks.IpAccessList("allowed-list", {
|
|
17
|
+
* label: "allow_in",
|
|
18
|
+
* listType: "ALLOW",
|
|
19
|
+
* ipAddresses: [
|
|
20
|
+
* "1.2.3.0/24",
|
|
21
|
+
* "1.2.5.0/24",
|
|
22
|
+
* ],
|
|
23
|
+
* }, {
|
|
24
|
+
* dependsOn: [_this],
|
|
25
|
+
* });
|
|
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
|
+
* * Provisioning AWS Databricks E2 with a Hub & Spoke firewall for data exfiltration protection guide.
|
|
33
|
+
* * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
|
|
34
|
+
* * databricks.MwsPrivateAccessSettings to create a [Private Access Setting](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#step-5-create-a-private-access-settings-configuration-using-the-databricks-account-api) that can be used as part of a databricks.MwsWorkspaces resource to create a [Databricks Workspace that leverages AWS PrivateLink](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html).
|
|
35
|
+
* * databricks.Permissions to manage [access control](https://docs.databricks.com/security/access-control/index.html) in Databricks workspace.
|
|
36
|
+
* * databricks.SqlPermissions to manage data object access control lists in Databricks workspaces for things like tables, views, databases, and [more](https://docs.databricks.com/security/access-control/table-acls/object-privileges.html).
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* The databricks_ip_access_list can be imported using idbash
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import databricks:index/ipAccessList:IpAccessList this <list-id>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class IpAccessList extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing IpAccessList 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: string, id: pulumi.Input<pulumi.ID>, state?: IpAccessListState, opts?: pulumi.CustomResourceOptions): IpAccessList;
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of IpAccessList. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj: any): obj is IpAccessList;
|
|
62
|
+
/**
|
|
63
|
+
* Boolean `true` or `false` indicating whether this list should be active. Defaults to `true`
|
|
64
|
+
*/
|
|
65
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* This is a field to allow the group to have instance pool create priviliges.
|
|
68
|
+
*/
|
|
69
|
+
readonly ipAddresses: pulumi.Output<string[]>;
|
|
70
|
+
/**
|
|
71
|
+
* This is the display name for the given IP ACL List.
|
|
72
|
+
*/
|
|
73
|
+
readonly label: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Can only be "ALLOW" or "BLOCK"
|
|
76
|
+
*/
|
|
77
|
+
readonly listType: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a IpAccessList resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args: IpAccessListArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Input properties used for looking up and filtering IpAccessList resources.
|
|
89
|
+
*/
|
|
90
|
+
export interface IpAccessListState {
|
|
91
|
+
/**
|
|
92
|
+
* Boolean `true` or `false` indicating whether this list should be active. Defaults to `true`
|
|
93
|
+
*/
|
|
94
|
+
enabled?: pulumi.Input<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* This is a field to allow the group to have instance pool create priviliges.
|
|
97
|
+
*/
|
|
98
|
+
ipAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
99
|
+
/**
|
|
100
|
+
* This is the display name for the given IP ACL List.
|
|
101
|
+
*/
|
|
102
|
+
label?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Can only be "ALLOW" or "BLOCK"
|
|
105
|
+
*/
|
|
106
|
+
listType?: pulumi.Input<string>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The set of arguments for constructing a IpAccessList resource.
|
|
110
|
+
*/
|
|
111
|
+
export interface IpAccessListArgs {
|
|
112
|
+
/**
|
|
113
|
+
* Boolean `true` or `false` indicating whether this list should be active. Defaults to `true`
|
|
114
|
+
*/
|
|
115
|
+
enabled?: pulumi.Input<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* This is a field to allow the group to have instance pool create priviliges.
|
|
118
|
+
*/
|
|
119
|
+
ipAddresses: pulumi.Input<pulumi.Input<string>[]>;
|
|
120
|
+
/**
|
|
121
|
+
* This is the display name for the given IP ACL List.
|
|
122
|
+
*/
|
|
123
|
+
label: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Can only be "ALLOW" or "BLOCK"
|
|
126
|
+
*/
|
|
127
|
+
listType: pulumi.Input<string>;
|
|
128
|
+
}
|
package/ipAccessList.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
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.IpAccessList = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Security-conscious enterprises that use cloud SaaS applications need to restrict access to their own employees. Authentication helps to prove user identity, but that does not enforce network location of the users. Accessing a cloud service from an unsecured network can pose security risks to an enterprise, especially when the user may have authorized access to sensitive or personal data. Enterprise network perimeters apply security policies and limit access to external services (for example, firewalls, proxies, DLP, and logging), so access beyond these controls are assumed to be untrusted. Please see [IP Access List](https://docs.databricks.com/security/network/ip-access-list.html) for full feature documentation.
|
|
10
|
+
*
|
|
11
|
+
* > **Note** The total number of IP addresses and CIDR scopes provided across all ACL Lists in a workspace can not exceed 1000. Refer to the docs above for specifics.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as databricks from "@pulumi/databricks";
|
|
18
|
+
*
|
|
19
|
+
* const _this = new databricks.WorkspaceConf("this", {customConfig: {
|
|
20
|
+
* enableIpAccessLists: true,
|
|
21
|
+
* }});
|
|
22
|
+
* const allowed_list = new databricks.IpAccessList("allowed-list", {
|
|
23
|
+
* label: "allow_in",
|
|
24
|
+
* listType: "ALLOW",
|
|
25
|
+
* ipAddresses: [
|
|
26
|
+
* "1.2.3.0/24",
|
|
27
|
+
* "1.2.5.0/24",
|
|
28
|
+
* ],
|
|
29
|
+
* }, {
|
|
30
|
+
* dependsOn: [_this],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
* ## Related Resources
|
|
34
|
+
*
|
|
35
|
+
* The following resources are often used in the same context:
|
|
36
|
+
*
|
|
37
|
+
* * End to end workspace management guide.
|
|
38
|
+
* * Provisioning AWS Databricks E2 with a Hub & Spoke firewall for data exfiltration protection guide.
|
|
39
|
+
* * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
|
|
40
|
+
* * databricks.MwsPrivateAccessSettings to create a [Private Access Setting](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#step-5-create-a-private-access-settings-configuration-using-the-databricks-account-api) that can be used as part of a databricks.MwsWorkspaces resource to create a [Databricks Workspace that leverages AWS PrivateLink](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html).
|
|
41
|
+
* * databricks.Permissions to manage [access control](https://docs.databricks.com/security/access-control/index.html) in Databricks workspace.
|
|
42
|
+
* * databricks.SqlPermissions to manage data object access control lists in Databricks workspaces for things like tables, views, databases, and [more](https://docs.databricks.com/security/access-control/table-acls/object-privileges.html).
|
|
43
|
+
*
|
|
44
|
+
* ## Import
|
|
45
|
+
*
|
|
46
|
+
* The databricks_ip_access_list can be imported using idbash
|
|
47
|
+
*
|
|
48
|
+
* ```sh
|
|
49
|
+
* $ pulumi import databricks:index/ipAccessList:IpAccessList this <list-id>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
class IpAccessList extends pulumi.CustomResource {
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
59
|
+
resourceInputs["ipAddresses"] = state ? state.ipAddresses : undefined;
|
|
60
|
+
resourceInputs["label"] = state ? state.label : undefined;
|
|
61
|
+
resourceInputs["listType"] = state ? state.listType : undefined;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if ((!args || args.ipAddresses === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'ipAddresses'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.label === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'label'");
|
|
70
|
+
}
|
|
71
|
+
if ((!args || args.listType === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'listType'");
|
|
73
|
+
}
|
|
74
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
75
|
+
resourceInputs["ipAddresses"] = args ? args.ipAddresses : undefined;
|
|
76
|
+
resourceInputs["label"] = args ? args.label : undefined;
|
|
77
|
+
resourceInputs["listType"] = args ? args.listType : undefined;
|
|
78
|
+
}
|
|
79
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
super(IpAccessList.__pulumiType, name, resourceInputs, opts);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing IpAccessList resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name, id, state, opts) {
|
|
92
|
+
return new IpAccessList(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Returns true if the given object is an instance of IpAccessList. This is designed to work even
|
|
96
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
97
|
+
*/
|
|
98
|
+
static isInstance(obj) {
|
|
99
|
+
if (obj === undefined || obj === null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
return obj['__pulumiType'] === IpAccessList.__pulumiType;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.IpAccessList = IpAccessList;
|
|
106
|
+
/** @internal */
|
|
107
|
+
IpAccessList.__pulumiType = 'databricks:index/ipAccessList:IpAccessList';
|
|
108
|
+
//# sourceMappingURL=ipAccessList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipAccessList.js","sourceRoot":"","sources":["../ipAccessList.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAqDnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,C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Ac,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAiFC;AAnEG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
|
package/job.d.ts
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Import
|
|
5
|
+
*
|
|
6
|
+
* The resource job can be imported using the id of the job bash
|
|
7
|
+
*
|
|
8
|
+
* ```sh
|
|
9
|
+
* $ pulumi import databricks:index/job:Job this <job-id>
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class Job extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing Job 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?: JobState, opts?: pulumi.CustomResourceOptions): Job;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Job. 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 Job;
|
|
28
|
+
/**
|
|
29
|
+
* (Bool) Whenever the job is always running, like a Spark Streaming application, on every update restart the current active run or start it again, if nothing it is not running. False by default. Any job runs are started with `parameters` specified in `sparkJarTask` or `sparkSubmitTask` or `sparkPythonTask` or `notebookTask` blocks.
|
|
30
|
+
*/
|
|
31
|
+
readonly alwaysRunning: pulumi.Output<boolean | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* (List) An optional set of email addresses notified when runs of this job begin and complete and when this job is deleted. The default behavior is to not send any emails. This field is a block and is documented below.
|
|
34
|
+
*/
|
|
35
|
+
readonly emailNotifications: pulumi.Output<outputs.JobEmailNotifications | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* If existing_cluster_id, the ID of an existing cluster that will be used for all runs of this job. When running jobs on an existing cluster, you may need to manually restart the cluster if it stops responding. We strongly suggest to use `newCluster` for greater reliability.
|
|
38
|
+
*/
|
|
39
|
+
readonly existingClusterId: pulumi.Output<string | undefined>;
|
|
40
|
+
readonly format: pulumi.Output<string>;
|
|
41
|
+
readonly gitSource: pulumi.Output<outputs.JobGitSource | undefined>;
|
|
42
|
+
readonly jobClusters: pulumi.Output<outputs.JobJobCluster[] | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* (Set) An optional list of libraries to be installed on the cluster that will execute the job. Please consult libraries section for databricks.Cluster resource.
|
|
45
|
+
*/
|
|
46
|
+
readonly libraries: pulumi.Output<outputs.JobLibrary[] | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* (Integer) An optional maximum allowed number of concurrent runs of the job. Defaults to *1*.
|
|
49
|
+
*/
|
|
50
|
+
readonly maxConcurrentRuns: pulumi.Output<number | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* (Integer) An optional maximum number of times to retry an unsuccessful run. A run is considered to be unsuccessful if it completes with a FAILED resultState or INTERNAL_ERROR life_cycle_state. The value -1 means to retry indefinitely and the value 0 means to never retry. The default behavior is to never retry.
|
|
53
|
+
*/
|
|
54
|
+
readonly maxRetries: pulumi.Output<number | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* (Integer) An optional minimal interval in milliseconds between the start of the failed run and the subsequent retry run. The default behavior is that unsuccessful runs are immediately retried.
|
|
57
|
+
*/
|
|
58
|
+
readonly minRetryIntervalMillis: pulumi.Output<number | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* An optional name for the job. The default value is Untitled.
|
|
61
|
+
*/
|
|
62
|
+
readonly name: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Same set of parameters as for databricks.Cluster resource.
|
|
65
|
+
*/
|
|
66
|
+
readonly newCluster: pulumi.Output<outputs.JobNewCluster | undefined>;
|
|
67
|
+
readonly notebookTask: pulumi.Output<outputs.JobNotebookTask | undefined>;
|
|
68
|
+
readonly pipelineTask: pulumi.Output<outputs.JobPipelineTask | undefined>;
|
|
69
|
+
readonly pythonWheelTask: pulumi.Output<outputs.JobPythonWheelTask | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* (Bool) An optional policy to specify whether to retry a job when it times out. The default behavior is to not retry on timeout.
|
|
72
|
+
*/
|
|
73
|
+
readonly retryOnTimeout: pulumi.Output<boolean | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
|
|
76
|
+
*/
|
|
77
|
+
readonly schedule: pulumi.Output<outputs.JobSchedule | undefined>;
|
|
78
|
+
readonly sparkJarTask: pulumi.Output<outputs.JobSparkJarTask | undefined>;
|
|
79
|
+
readonly sparkPythonTask: pulumi.Output<outputs.JobSparkPythonTask | undefined>;
|
|
80
|
+
readonly sparkSubmitTask: pulumi.Output<outputs.JobSparkSubmitTask | undefined>;
|
|
81
|
+
readonly tasks: pulumi.Output<outputs.JobTask[] | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* (Integer) An optional timeout applied to each run of this job. The default behavior is to have no timeout.
|
|
84
|
+
*/
|
|
85
|
+
readonly timeoutSeconds: pulumi.Output<number | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* URL of the job on the given workspace
|
|
88
|
+
*/
|
|
89
|
+
readonly url: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a Job resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args?: JobArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering Job resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface JobState {
|
|
103
|
+
/**
|
|
104
|
+
* (Bool) Whenever the job is always running, like a Spark Streaming application, on every update restart the current active run or start it again, if nothing it is not running. False by default. Any job runs are started with `parameters` specified in `sparkJarTask` or `sparkSubmitTask` or `sparkPythonTask` or `notebookTask` blocks.
|
|
105
|
+
*/
|
|
106
|
+
alwaysRunning?: pulumi.Input<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* (List) An optional set of email addresses notified when runs of this job begin and complete and when this job is deleted. The default behavior is to not send any emails. This field is a block and is documented below.
|
|
109
|
+
*/
|
|
110
|
+
emailNotifications?: pulumi.Input<inputs.JobEmailNotifications>;
|
|
111
|
+
/**
|
|
112
|
+
* If existing_cluster_id, the ID of an existing cluster that will be used for all runs of this job. When running jobs on an existing cluster, you may need to manually restart the cluster if it stops responding. We strongly suggest to use `newCluster` for greater reliability.
|
|
113
|
+
*/
|
|
114
|
+
existingClusterId?: pulumi.Input<string>;
|
|
115
|
+
format?: pulumi.Input<string>;
|
|
116
|
+
gitSource?: pulumi.Input<inputs.JobGitSource>;
|
|
117
|
+
jobClusters?: pulumi.Input<pulumi.Input<inputs.JobJobCluster>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* (Set) An optional list of libraries to be installed on the cluster that will execute the job. Please consult libraries section for databricks.Cluster resource.
|
|
120
|
+
*/
|
|
121
|
+
libraries?: pulumi.Input<pulumi.Input<inputs.JobLibrary>[]>;
|
|
122
|
+
/**
|
|
123
|
+
* (Integer) An optional maximum allowed number of concurrent runs of the job. Defaults to *1*.
|
|
124
|
+
*/
|
|
125
|
+
maxConcurrentRuns?: pulumi.Input<number>;
|
|
126
|
+
/**
|
|
127
|
+
* (Integer) An optional maximum number of times to retry an unsuccessful run. A run is considered to be unsuccessful if it completes with a FAILED resultState or INTERNAL_ERROR life_cycle_state. The value -1 means to retry indefinitely and the value 0 means to never retry. The default behavior is to never retry.
|
|
128
|
+
*/
|
|
129
|
+
maxRetries?: pulumi.Input<number>;
|
|
130
|
+
/**
|
|
131
|
+
* (Integer) An optional minimal interval in milliseconds between the start of the failed run and the subsequent retry run. The default behavior is that unsuccessful runs are immediately retried.
|
|
132
|
+
*/
|
|
133
|
+
minRetryIntervalMillis?: pulumi.Input<number>;
|
|
134
|
+
/**
|
|
135
|
+
* An optional name for the job. The default value is Untitled.
|
|
136
|
+
*/
|
|
137
|
+
name?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Same set of parameters as for databricks.Cluster resource.
|
|
140
|
+
*/
|
|
141
|
+
newCluster?: pulumi.Input<inputs.JobNewCluster>;
|
|
142
|
+
notebookTask?: pulumi.Input<inputs.JobNotebookTask>;
|
|
143
|
+
pipelineTask?: pulumi.Input<inputs.JobPipelineTask>;
|
|
144
|
+
pythonWheelTask?: pulumi.Input<inputs.JobPythonWheelTask>;
|
|
145
|
+
/**
|
|
146
|
+
* (Bool) An optional policy to specify whether to retry a job when it times out. The default behavior is to not retry on timeout.
|
|
147
|
+
*/
|
|
148
|
+
retryOnTimeout?: pulumi.Input<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
|
|
151
|
+
*/
|
|
152
|
+
schedule?: pulumi.Input<inputs.JobSchedule>;
|
|
153
|
+
sparkJarTask?: pulumi.Input<inputs.JobSparkJarTask>;
|
|
154
|
+
sparkPythonTask?: pulumi.Input<inputs.JobSparkPythonTask>;
|
|
155
|
+
sparkSubmitTask?: pulumi.Input<inputs.JobSparkSubmitTask>;
|
|
156
|
+
tasks?: pulumi.Input<pulumi.Input<inputs.JobTask>[]>;
|
|
157
|
+
/**
|
|
158
|
+
* (Integer) An optional timeout applied to each run of this job. The default behavior is to have no timeout.
|
|
159
|
+
*/
|
|
160
|
+
timeoutSeconds?: pulumi.Input<number>;
|
|
161
|
+
/**
|
|
162
|
+
* URL of the job on the given workspace
|
|
163
|
+
*/
|
|
164
|
+
url?: pulumi.Input<string>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The set of arguments for constructing a Job resource.
|
|
168
|
+
*/
|
|
169
|
+
export interface JobArgs {
|
|
170
|
+
/**
|
|
171
|
+
* (Bool) Whenever the job is always running, like a Spark Streaming application, on every update restart the current active run or start it again, if nothing it is not running. False by default. Any job runs are started with `parameters` specified in `sparkJarTask` or `sparkSubmitTask` or `sparkPythonTask` or `notebookTask` blocks.
|
|
172
|
+
*/
|
|
173
|
+
alwaysRunning?: pulumi.Input<boolean>;
|
|
174
|
+
/**
|
|
175
|
+
* (List) An optional set of email addresses notified when runs of this job begin and complete and when this job is deleted. The default behavior is to not send any emails. This field is a block and is documented below.
|
|
176
|
+
*/
|
|
177
|
+
emailNotifications?: pulumi.Input<inputs.JobEmailNotifications>;
|
|
178
|
+
/**
|
|
179
|
+
* If existing_cluster_id, the ID of an existing cluster that will be used for all runs of this job. When running jobs on an existing cluster, you may need to manually restart the cluster if it stops responding. We strongly suggest to use `newCluster` for greater reliability.
|
|
180
|
+
*/
|
|
181
|
+
existingClusterId?: pulumi.Input<string>;
|
|
182
|
+
format?: pulumi.Input<string>;
|
|
183
|
+
gitSource?: pulumi.Input<inputs.JobGitSource>;
|
|
184
|
+
jobClusters?: pulumi.Input<pulumi.Input<inputs.JobJobCluster>[]>;
|
|
185
|
+
/**
|
|
186
|
+
* (Set) An optional list of libraries to be installed on the cluster that will execute the job. Please consult libraries section for databricks.Cluster resource.
|
|
187
|
+
*/
|
|
188
|
+
libraries?: pulumi.Input<pulumi.Input<inputs.JobLibrary>[]>;
|
|
189
|
+
/**
|
|
190
|
+
* (Integer) An optional maximum allowed number of concurrent runs of the job. Defaults to *1*.
|
|
191
|
+
*/
|
|
192
|
+
maxConcurrentRuns?: pulumi.Input<number>;
|
|
193
|
+
/**
|
|
194
|
+
* (Integer) An optional maximum number of times to retry an unsuccessful run. A run is considered to be unsuccessful if it completes with a FAILED resultState or INTERNAL_ERROR life_cycle_state. The value -1 means to retry indefinitely and the value 0 means to never retry. The default behavior is to never retry.
|
|
195
|
+
*/
|
|
196
|
+
maxRetries?: pulumi.Input<number>;
|
|
197
|
+
/**
|
|
198
|
+
* (Integer) An optional minimal interval in milliseconds between the start of the failed run and the subsequent retry run. The default behavior is that unsuccessful runs are immediately retried.
|
|
199
|
+
*/
|
|
200
|
+
minRetryIntervalMillis?: pulumi.Input<number>;
|
|
201
|
+
/**
|
|
202
|
+
* An optional name for the job. The default value is Untitled.
|
|
203
|
+
*/
|
|
204
|
+
name?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Same set of parameters as for databricks.Cluster resource.
|
|
207
|
+
*/
|
|
208
|
+
newCluster?: pulumi.Input<inputs.JobNewCluster>;
|
|
209
|
+
notebookTask?: pulumi.Input<inputs.JobNotebookTask>;
|
|
210
|
+
pipelineTask?: pulumi.Input<inputs.JobPipelineTask>;
|
|
211
|
+
pythonWheelTask?: pulumi.Input<inputs.JobPythonWheelTask>;
|
|
212
|
+
/**
|
|
213
|
+
* (Bool) An optional policy to specify whether to retry a job when it times out. The default behavior is to not retry on timeout.
|
|
214
|
+
*/
|
|
215
|
+
retryOnTimeout?: pulumi.Input<boolean>;
|
|
216
|
+
/**
|
|
217
|
+
* (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
|
|
218
|
+
*/
|
|
219
|
+
schedule?: pulumi.Input<inputs.JobSchedule>;
|
|
220
|
+
sparkJarTask?: pulumi.Input<inputs.JobSparkJarTask>;
|
|
221
|
+
sparkPythonTask?: pulumi.Input<inputs.JobSparkPythonTask>;
|
|
222
|
+
sparkSubmitTask?: pulumi.Input<inputs.JobSparkSubmitTask>;
|
|
223
|
+
tasks?: pulumi.Input<pulumi.Input<inputs.JobTask>[]>;
|
|
224
|
+
/**
|
|
225
|
+
* (Integer) An optional timeout applied to each run of this job. The default behavior is to have no timeout.
|
|
226
|
+
*/
|
|
227
|
+
timeoutSeconds?: pulumi.Input<number>;
|
|
228
|
+
}
|
package/job.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
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.Job = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* The resource job can be imported using the id of the job bash
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import databricks:index/job:Job this <job-id>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Job extends pulumi.CustomResource {
|
|
18
|
+
constructor(name, argsOrState, opts) {
|
|
19
|
+
let resourceInputs = {};
|
|
20
|
+
opts = opts || {};
|
|
21
|
+
if (opts.id) {
|
|
22
|
+
const state = argsOrState;
|
|
23
|
+
resourceInputs["alwaysRunning"] = state ? state.alwaysRunning : undefined;
|
|
24
|
+
resourceInputs["emailNotifications"] = state ? state.emailNotifications : undefined;
|
|
25
|
+
resourceInputs["existingClusterId"] = state ? state.existingClusterId : undefined;
|
|
26
|
+
resourceInputs["format"] = state ? state.format : undefined;
|
|
27
|
+
resourceInputs["gitSource"] = state ? state.gitSource : undefined;
|
|
28
|
+
resourceInputs["jobClusters"] = state ? state.jobClusters : undefined;
|
|
29
|
+
resourceInputs["libraries"] = state ? state.libraries : undefined;
|
|
30
|
+
resourceInputs["maxConcurrentRuns"] = state ? state.maxConcurrentRuns : undefined;
|
|
31
|
+
resourceInputs["maxRetries"] = state ? state.maxRetries : undefined;
|
|
32
|
+
resourceInputs["minRetryIntervalMillis"] = state ? state.minRetryIntervalMillis : undefined;
|
|
33
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
34
|
+
resourceInputs["newCluster"] = state ? state.newCluster : undefined;
|
|
35
|
+
resourceInputs["notebookTask"] = state ? state.notebookTask : undefined;
|
|
36
|
+
resourceInputs["pipelineTask"] = state ? state.pipelineTask : undefined;
|
|
37
|
+
resourceInputs["pythonWheelTask"] = state ? state.pythonWheelTask : undefined;
|
|
38
|
+
resourceInputs["retryOnTimeout"] = state ? state.retryOnTimeout : undefined;
|
|
39
|
+
resourceInputs["schedule"] = state ? state.schedule : undefined;
|
|
40
|
+
resourceInputs["sparkJarTask"] = state ? state.sparkJarTask : undefined;
|
|
41
|
+
resourceInputs["sparkPythonTask"] = state ? state.sparkPythonTask : undefined;
|
|
42
|
+
resourceInputs["sparkSubmitTask"] = state ? state.sparkSubmitTask : undefined;
|
|
43
|
+
resourceInputs["tasks"] = state ? state.tasks : undefined;
|
|
44
|
+
resourceInputs["timeoutSeconds"] = state ? state.timeoutSeconds : undefined;
|
|
45
|
+
resourceInputs["url"] = state ? state.url : undefined;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const args = argsOrState;
|
|
49
|
+
resourceInputs["alwaysRunning"] = args ? args.alwaysRunning : undefined;
|
|
50
|
+
resourceInputs["emailNotifications"] = args ? args.emailNotifications : undefined;
|
|
51
|
+
resourceInputs["existingClusterId"] = args ? args.existingClusterId : undefined;
|
|
52
|
+
resourceInputs["format"] = args ? args.format : undefined;
|
|
53
|
+
resourceInputs["gitSource"] = args ? args.gitSource : undefined;
|
|
54
|
+
resourceInputs["jobClusters"] = args ? args.jobClusters : undefined;
|
|
55
|
+
resourceInputs["libraries"] = args ? args.libraries : undefined;
|
|
56
|
+
resourceInputs["maxConcurrentRuns"] = args ? args.maxConcurrentRuns : undefined;
|
|
57
|
+
resourceInputs["maxRetries"] = args ? args.maxRetries : undefined;
|
|
58
|
+
resourceInputs["minRetryIntervalMillis"] = args ? args.minRetryIntervalMillis : undefined;
|
|
59
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
60
|
+
resourceInputs["newCluster"] = args ? args.newCluster : undefined;
|
|
61
|
+
resourceInputs["notebookTask"] = args ? args.notebookTask : undefined;
|
|
62
|
+
resourceInputs["pipelineTask"] = args ? args.pipelineTask : undefined;
|
|
63
|
+
resourceInputs["pythonWheelTask"] = args ? args.pythonWheelTask : undefined;
|
|
64
|
+
resourceInputs["retryOnTimeout"] = args ? args.retryOnTimeout : undefined;
|
|
65
|
+
resourceInputs["schedule"] = args ? args.schedule : undefined;
|
|
66
|
+
resourceInputs["sparkJarTask"] = args ? args.sparkJarTask : undefined;
|
|
67
|
+
resourceInputs["sparkPythonTask"] = args ? args.sparkPythonTask : undefined;
|
|
68
|
+
resourceInputs["sparkSubmitTask"] = args ? args.sparkSubmitTask : undefined;
|
|
69
|
+
resourceInputs["tasks"] = args ? args.tasks : undefined;
|
|
70
|
+
resourceInputs["timeoutSeconds"] = args ? args.timeoutSeconds : undefined;
|
|
71
|
+
resourceInputs["url"] = undefined /*out*/;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(Job.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get an existing Job resource's state with the given name, ID, and optional extra
|
|
78
|
+
* properties used to qualify the lookup.
|
|
79
|
+
*
|
|
80
|
+
* @param name The _unique_ name of the resulting resource.
|
|
81
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
82
|
+
* @param state Any extra arguments used during the lookup.
|
|
83
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
84
|
+
*/
|
|
85
|
+
static get(name, id, state, opts) {
|
|
86
|
+
return new Job(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the given object is an instance of Job. This is designed to work even
|
|
90
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
91
|
+
*/
|
|
92
|
+
static isInstance(obj) {
|
|
93
|
+
if (obj === undefined || obj === null) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
return obj['__pulumiType'] === Job.__pulumiType;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.Job = Job;
|
|
100
|
+
/** @internal */
|
|
101
|
+
Job.__pulumiType = 'databricks:index/job:Job';
|
|
102
|
+
//# sourceMappingURL=job.js.map
|
package/job.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAmG1C,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,E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