@pulumi/databricks 1.48.0-alpha.1721971593 → 1.48.0-alpha.1722058383
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/artifactAllowlist.d.ts +7 -0
- package/artifactAllowlist.js +7 -0
- package/artifactAllowlist.js.map +1 -1
- package/catalog.d.ts +6 -0
- package/catalog.js +6 -0
- package/catalog.js.map +1 -1
- package/catalogWorkspaceBinding.d.ts +12 -0
- package/catalogWorkspaceBinding.js +12 -0
- package/catalogWorkspaceBinding.js.map +1 -1
- package/cluster.d.ts +9 -0
- package/cluster.js.map +1 -1
- package/dashboard.d.ts +24 -0
- package/dashboard.js +24 -0
- package/dashboard.js.map +1 -1
- package/dbfsFile.d.ts +11 -0
- package/dbfsFile.js +2 -0
- package/dbfsFile.js.map +1 -1
- package/directory.d.ts +38 -0
- package/directory.js +29 -0
- package/directory.js.map +1 -1
- package/file.d.ts +69 -0
- package/file.js +69 -0
- package/file.js.map +1 -1
- package/getCatalog.d.ts +12 -0
- package/getCatalog.js +12 -0
- package/getCatalog.js.map +1 -1
- package/getCatalogs.d.ts +12 -0
- package/getCatalogs.js +12 -0
- package/getCatalogs.js.map +1 -1
- package/getClusters.d.ts +8 -0
- package/getClusters.js +8 -0
- package/getClusters.js.map +1 -1
- package/getCurrentUser.d.ts +4 -4
- package/getCurrentUser.js +4 -4
- package/getExternalLocation.d.ts +8 -0
- package/getExternalLocation.js +8 -0
- package/getExternalLocation.js.map +1 -1
- package/getExternalLocations.d.ts +8 -0
- package/getExternalLocations.js +8 -0
- package/getExternalLocations.js.map +1 -1
- package/getJobs.d.ts +12 -0
- package/getJobs.js +12 -0
- package/getJobs.js.map +1 -1
- package/getMetastore.d.ts +12 -0
- package/getMetastore.js +12 -0
- package/getMetastore.js.map +1 -1
- package/getMetastores.d.ts +12 -0
- package/getMetastores.js +12 -0
- package/getMetastores.js.map +1 -1
- package/getSchema.d.ts +4 -6
- package/getSchema.js +4 -6
- package/getSchema.js.map +1 -1
- package/getSchemas.d.ts +12 -0
- package/getSchemas.js +12 -0
- package/getSchemas.js.map +1 -1
- package/getShare.d.ts +4 -0
- package/getShare.js +4 -0
- package/getShare.js.map +1 -1
- package/getShares.d.ts +4 -0
- package/getShares.js +4 -0
- package/getShares.js.map +1 -1
- package/getSqlWarehouses.d.ts +8 -0
- package/getSqlWarehouses.js +8 -0
- package/getSqlWarehouses.js.map +1 -1
- package/getStorageCredential.d.ts +8 -0
- package/getStorageCredential.js +8 -0
- package/getStorageCredential.js.map +1 -1
- package/getStorageCredentials.d.ts +8 -0
- package/getStorageCredentials.js +8 -0
- package/getStorageCredentials.js.map +1 -1
- package/getTable.d.ts +12 -0
- package/getTable.js +12 -0
- package/getTable.js.map +1 -1
- package/getTables.d.ts +12 -0
- package/getTables.js +12 -0
- package/getTables.js.map +1 -1
- package/getViews.d.ts +4 -4
- package/getViews.js +4 -4
- package/getVolume.d.ts +4 -6
- package/getVolume.js +4 -6
- package/getVolume.js.map +1 -1
- package/getVolumes.d.ts +8 -0
- package/getVolumes.js +8 -0
- package/getVolumes.js.map +1 -1
- package/gitCredential.d.ts +23 -0
- package/gitCredential.js +23 -0
- package/gitCredential.js.map +1 -1
- package/globalInitScript.d.ts +11 -0
- package/globalInitScript.js +2 -0
- package/globalInitScript.js.map +1 -1
- package/grant.d.ts +396 -0
- package/grant.js +396 -0
- package/grant.js.map +1 -1
- package/grants.d.ts +433 -0
- package/grants.js +433 -0
- package/grants.js.map +1 -1
- package/group.d.ts +9 -0
- package/group.js.map +1 -1
- package/job.d.ts +69 -0
- package/job.js +69 -0
- package/job.js.map +1 -1
- package/mlflowWebhook.d.ts +1 -1
- package/mlflowWebhook.js +1 -1
- package/mwsCustomerManagedKeys.d.ts +9 -0
- package/mwsCustomerManagedKeys.js +9 -0
- package/mwsCustomerManagedKeys.js.map +1 -1
- package/mwsVpcEndpoint.d.ts +192 -0
- package/mwsVpcEndpoint.js +192 -0
- package/mwsVpcEndpoint.js.map +1 -1
- package/notebook.d.ts +11 -0
- package/notebook.js +2 -0
- package/notebook.js.map +1 -1
- package/oboToken.d.ts +64 -0
- package/oboToken.js +64 -0
- package/oboToken.js.map +1 -1
- package/package.json +2 -2
- package/permissionAssignment.d.ts +9 -0
- package/permissionAssignment.js.map +1 -1
- package/permissions.d.ts +684 -18
- package/permissions.js +684 -18
- package/permissions.js.map +1 -1
- package/repo.d.ts +32 -0
- package/repo.js +32 -0
- package/repo.js.map +1 -1
- package/servicePrincipal.d.ts +9 -0
- package/servicePrincipal.js.map +1 -1
- package/servicePrincipalSecret.d.ts +8 -0
- package/servicePrincipalSecret.js +8 -0
- package/servicePrincipalSecret.js.map +1 -1
- package/share.d.ts +93 -0
- package/share.js +93 -0
- package/share.js.map +1 -1
- package/sqlPermissions.d.ts +15 -3
- package/sqlPermissions.js +15 -3
- package/sqlPermissions.js.map +1 -1
- package/token.d.ts +2 -2
- package/token.js +2 -2
- package/types/input.d.ts +16 -0
- package/types/output.d.ts +16 -0
- package/user.d.ts +9 -0
- package/user.js.map +1 -1
- package/workspaceBinding.d.ts +12 -0
- package/workspaceBinding.js +12 -0
- package/workspaceBinding.js.map +1 -1
- package/workspaceConf.d.ts +4 -0
- package/workspaceConf.js +4 -0
- package/workspaceConf.js.map +1 -1
- package/workspaceFile.d.ts +11 -0
- package/workspaceFile.js +2 -0
- package/workspaceFile.js.map +1 -1
package/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AA7QL,kBA8QC;AAhQG,gBAAgB;AACO,gBAAY,GAAG,0BAA0B,CAAC"}
|
package/mlflowWebhook.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ import * as outputs from "./types/output";
|
|
|
31
31
|
* }).then(invoke => invoke.result),
|
|
32
32
|
* });
|
|
33
33
|
* const thisJob = new databricks.Job("this", {
|
|
34
|
-
* name: me.then(me => `
|
|
34
|
+
* name: me.then(me => `Pulumi MLflowWebhook Demo (${me.alphanumeric})`),
|
|
35
35
|
* tasks: [{
|
|
36
36
|
* taskKey: "task1",
|
|
37
37
|
* newCluster: {
|
package/mlflowWebhook.js
CHANGED
|
@@ -35,7 +35,7 @@ const utilities = require("./utilities");
|
|
|
35
35
|
* }).then(invoke => invoke.result),
|
|
36
36
|
* });
|
|
37
37
|
* const thisJob = new databricks.Job("this", {
|
|
38
|
-
* name: me.then(me => `
|
|
38
|
+
* name: me.then(me => `Pulumi MLflowWebhook Demo (${me.alphanumeric})`),
|
|
39
39
|
* tasks: [{
|
|
40
40
|
* taskKey: "task1",
|
|
41
41
|
* newCluster: {
|
|
@@ -2,6 +2,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* > **Note** Initialize provider with `alias = "mws"`, `host = "https://accounts.cloud.databricks.com"` and use `provider = databricks.mws`
|
|
6
|
+
*
|
|
7
|
+
* This resource to configure KMS keys for new workspaces within AWS or GCP. This is to support the following features:
|
|
8
|
+
*
|
|
9
|
+
* * [Customer-managed keys for managed services](https://docs.databricks.com/security/keys/customer-managed-keys-managed-services-aws.html): Encrypt the workspace’s managed services data in the control plane, including notebooks, secrets, Databricks SQL queries, and Databricks SQL query history with a CMK.
|
|
10
|
+
* * [Customer-managed keys for workspace storage](https://docs.databricks.com/security/keys/customer-managed-keys-storage-aws.html): Encrypt the workspace's root S3 bucket and clusters' EBS volumes with a CMK.
|
|
11
|
+
*
|
|
12
|
+
* Please follow this complete runnable example, you should use the provider aliasing feature of Pulumi. We strongly recommend having one Pulumi module for creation of workspace + PAT token and the rest in different modules.
|
|
13
|
+
*
|
|
5
14
|
* ## Example Usage
|
|
6
15
|
*
|
|
7
16
|
* > **Note** If you've used the resource before, please add `useCases = ["MANAGED_SERVICES"]` to keep the previous behaviour.
|
|
@@ -6,6 +6,15 @@ exports.MwsCustomerManagedKeys = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* > **Note** Initialize provider with `alias = "mws"`, `host = "https://accounts.cloud.databricks.com"` and use `provider = databricks.mws`
|
|
10
|
+
*
|
|
11
|
+
* This resource to configure KMS keys for new workspaces within AWS or GCP. This is to support the following features:
|
|
12
|
+
*
|
|
13
|
+
* * [Customer-managed keys for managed services](https://docs.databricks.com/security/keys/customer-managed-keys-managed-services-aws.html): Encrypt the workspace’s managed services data in the control plane, including notebooks, secrets, Databricks SQL queries, and Databricks SQL query history with a CMK.
|
|
14
|
+
* * [Customer-managed keys for workspace storage](https://docs.databricks.com/security/keys/customer-managed-keys-storage-aws.html): Encrypt the workspace's root S3 bucket and clusters' EBS volumes with a CMK.
|
|
15
|
+
*
|
|
16
|
+
* Please follow this complete runnable example, you should use the provider aliasing feature of Pulumi. We strongly recommend having one Pulumi module for creation of workspace + PAT token and the rest in different modules.
|
|
17
|
+
*
|
|
9
18
|
* ## Example Usage
|
|
10
19
|
*
|
|
11
20
|
* > **Note** If you've used the resource before, please add `useCases = ["MANAGED_SERVICES"]` to keep the previous behaviour.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mwsCustomerManagedKeys.js","sourceRoot":"","sources":["../mwsCustomerManagedKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"mwsCustomerManagedKeys.js","sourceRoot":"","sources":["../mwsCustomerManagedKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA3FL,wDA4FC;AA9EG,gBAAgB;AACO,mCAAY,GAAG,gEAAgE,CAAC"}
|
package/mwsVpcEndpoint.d.ts
CHANGED
|
@@ -2,6 +2,198 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* > **Note** Initialize provider with `alias = "mws"`, `host = "https://accounts.cloud.databricks.com"` and use `provider = databricks.mws`
|
|
6
|
+
*
|
|
7
|
+
* Enables you to register awsVpcEndpoint resources or gcp vpcEndpoint resources with Databricks such that they can be used as part of a databricks.MwsNetworks configuration.
|
|
8
|
+
*
|
|
9
|
+
* It is strongly recommended that customers read the [Enable AWS Private Link](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html) or the [Enable GCP Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) documentation before trying to leverage this resource.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Databricks on AWS usage
|
|
14
|
+
*
|
|
15
|
+
* Before using this resource, you will need to create the necessary VPC Endpoints as per your VPC endpoint requirements resource for this, for example:
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
*
|
|
21
|
+
* const workspace = new aws.ec2.VpcEndpoint("workspace", {
|
|
22
|
+
* vpcId: vpc.vpcId,
|
|
23
|
+
* serviceName: privateLink.workspaceService,
|
|
24
|
+
* vpcEndpointType: "Interface",
|
|
25
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
26
|
+
* subnetIds: [plSubnet.id],
|
|
27
|
+
* privateDnsEnabled: true,
|
|
28
|
+
* }, {
|
|
29
|
+
* dependsOn: [plSubnet],
|
|
30
|
+
* });
|
|
31
|
+
* const relay = new aws.ec2.VpcEndpoint("relay", {
|
|
32
|
+
* vpcId: vpc.vpcId,
|
|
33
|
+
* serviceName: privateLink.relayService,
|
|
34
|
+
* vpcEndpointType: "Interface",
|
|
35
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
36
|
+
* subnetIds: [plSubnet.id],
|
|
37
|
+
* privateDnsEnabled: true,
|
|
38
|
+
* }, {
|
|
39
|
+
* dependsOn: [plSubnet],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* Depending on your use case, you may need or choose to add VPC Endpoints for the AWS Services Databricks uses. See [Add VPC endpoints for other AWS services (recommended but optional)
|
|
44
|
+
* ](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#step-9-add-vpc-endpoints-for-other-aws-services-recommended-but-optional) for more information. For example:
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as aws from "@pulumi/aws";
|
|
49
|
+
*
|
|
50
|
+
* const s3 = new aws.ec2.VpcEndpoint("s3", {
|
|
51
|
+
* vpcId: vpc.vpcId,
|
|
52
|
+
* routeTableIds: vpc.privateRouteTableIds,
|
|
53
|
+
* serviceName: `com.amazonaws.${region}.s3`,
|
|
54
|
+
* }, {
|
|
55
|
+
* dependsOn: [vpc],
|
|
56
|
+
* });
|
|
57
|
+
* const sts = new aws.ec2.VpcEndpoint("sts", {
|
|
58
|
+
* vpcId: vpc.vpcId,
|
|
59
|
+
* serviceName: `com.amazonaws.${region}.sts`,
|
|
60
|
+
* vpcEndpointType: "Interface",
|
|
61
|
+
* subnetIds: vpc.privateSubnets,
|
|
62
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
63
|
+
* privateDnsEnabled: true,
|
|
64
|
+
* }, {
|
|
65
|
+
* dependsOn: [vpc],
|
|
66
|
+
* });
|
|
67
|
+
* const kinesis_streams = new aws.ec2.VpcEndpoint("kinesis-streams", {
|
|
68
|
+
* vpcId: vpc.vpcId,
|
|
69
|
+
* serviceName: `com.amazonaws.${region}.kinesis-streams`,
|
|
70
|
+
* vpcEndpointType: "Interface",
|
|
71
|
+
* subnetIds: vpc.privateSubnets,
|
|
72
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
73
|
+
* }, {
|
|
74
|
+
* dependsOn: [vpc],
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* Once you have created the necessary endpoints, you need to register each of them via *this* Pulumi resource, which calls out to the [Databricks Account API](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#step-3-register-your-vpc-endpoint-ids-with-the-account-api)):
|
|
79
|
+
*
|
|
80
|
+
* ```typescript
|
|
81
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
82
|
+
* import * as databricks from "@pulumi/databricks";
|
|
83
|
+
*
|
|
84
|
+
* const workspace = new databricks.MwsVpcEndpoint("workspace", {
|
|
85
|
+
* accountId: databricksAccountId,
|
|
86
|
+
* awsVpcEndpointId: workspaceAwsVpcEndpoint.id,
|
|
87
|
+
* vpcEndpointName: `VPC Relay for ${vpc.vpcId}`,
|
|
88
|
+
* region: region,
|
|
89
|
+
* }, {
|
|
90
|
+
* dependsOn: [workspaceAwsVpcEndpoint],
|
|
91
|
+
* });
|
|
92
|
+
* const relay = new databricks.MwsVpcEndpoint("relay", {
|
|
93
|
+
* accountId: databricksAccountId,
|
|
94
|
+
* awsVpcEndpointId: relayAwsVpcEndpoint.id,
|
|
95
|
+
* vpcEndpointName: `VPC Relay for ${vpc.vpcId}`,
|
|
96
|
+
* region: region,
|
|
97
|
+
* }, {
|
|
98
|
+
* dependsOn: [relayAwsVpcEndpoint],
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* Typically the next steps after this would be to create a databricks.MwsPrivateAccessSettings and databricks.MwsNetworks configuration, before passing the `databricks_mws_private_access_settings.pas.private_access_settings_id` and `databricks_mws_networks.this.network_id` into a databricks.MwsWorkspaces resource:
|
|
103
|
+
*
|
|
104
|
+
* ```typescript
|
|
105
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
106
|
+
* import * as databricks from "@pulumi/databricks";
|
|
107
|
+
*
|
|
108
|
+
* const _this = new databricks.MwsWorkspaces("this", {
|
|
109
|
+
* accountId: databricksAccountId,
|
|
110
|
+
* awsRegion: region,
|
|
111
|
+
* workspaceName: prefix,
|
|
112
|
+
* credentialsId: thisDatabricksMwsCredentials.credentialsId,
|
|
113
|
+
* storageConfigurationId: thisDatabricksMwsStorageConfigurations.storageConfigurationId,
|
|
114
|
+
* networkId: thisDatabricksMwsNetworks.networkId,
|
|
115
|
+
* privateAccessSettingsId: pas.privateAccessSettingsId,
|
|
116
|
+
* pricingTier: "ENTERPRISE",
|
|
117
|
+
* }, {
|
|
118
|
+
* dependsOn: [thisDatabricksMwsNetworks],
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* ### Databricks on GCP usage
|
|
123
|
+
*
|
|
124
|
+
* Before using this resource, you will need to create the necessary Private Service Connect (PSC) connections on your Google Cloud VPC networks. You can see [Enable Private Service Connect for your workspace](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) for more details.
|
|
125
|
+
*
|
|
126
|
+
* Once you have created the necessary PSC connections, you need to register each of them via *this* Pulumi resource, which calls out to the Databricks Account API.
|
|
127
|
+
*
|
|
128
|
+
* ```typescript
|
|
129
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
130
|
+
* import * as databricks from "@pulumi/databricks";
|
|
131
|
+
*
|
|
132
|
+
* const config = new pulumi.Config();
|
|
133
|
+
* // Account Id that could be found in https://accounts.gcp.databricks.com/
|
|
134
|
+
* const databricksAccountId = config.requireObject("databricksAccountId");
|
|
135
|
+
* const databricksGoogleServiceAccount = config.requireObject("databricksGoogleServiceAccount");
|
|
136
|
+
* const googleProject = config.requireObject("googleProject");
|
|
137
|
+
* const subnetRegion = config.requireObject("subnetRegion");
|
|
138
|
+
* const workspace = new databricks.MwsVpcEndpoint("workspace", {
|
|
139
|
+
* accountId: databricksAccountId,
|
|
140
|
+
* vpcEndpointName: "PSC Rest API endpoint",
|
|
141
|
+
* gcpVpcEndpointInfo: {
|
|
142
|
+
* projectId: googleProject,
|
|
143
|
+
* pscEndpointName: "PSC Rest API endpoint",
|
|
144
|
+
* endpointRegion: subnetRegion,
|
|
145
|
+
* },
|
|
146
|
+
* });
|
|
147
|
+
* const relay = new databricks.MwsVpcEndpoint("relay", {
|
|
148
|
+
* accountId: databricksAccountId,
|
|
149
|
+
* vpcEndpointName: "PSC Relay endpoint",
|
|
150
|
+
* gcpVpcEndpointInfo: {
|
|
151
|
+
* projectId: googleProject,
|
|
152
|
+
* pscEndpointName: "PSC Relay endpoint",
|
|
153
|
+
* endpointRegion: subnetRegion,
|
|
154
|
+
* },
|
|
155
|
+
* });
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* Typically the next steps after this would be to create a databricks.MwsPrivateAccessSettings and databricks.MwsNetworks configuration, before passing the `databricks_mws_private_access_settings.pas.private_access_settings_id` and `databricks_mws_networks.this.network_id` into a databricks.MwsWorkspaces resource:
|
|
159
|
+
*
|
|
160
|
+
* ```typescript
|
|
161
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
162
|
+
* import * as databricks from "@pulumi/databricks";
|
|
163
|
+
*
|
|
164
|
+
* const _this = new databricks.MwsWorkspaces("this", {
|
|
165
|
+
* accountId: databricksAccountId,
|
|
166
|
+
* workspaceName: "gcp workspace",
|
|
167
|
+
* location: subnetRegion,
|
|
168
|
+
* cloudResourceContainer: {
|
|
169
|
+
* gcp: {
|
|
170
|
+
* projectId: googleProject,
|
|
171
|
+
* },
|
|
172
|
+
* },
|
|
173
|
+
* gkeConfig: {
|
|
174
|
+
* connectivityType: "PRIVATE_NODE_PUBLIC_MASTER",
|
|
175
|
+
* masterIpRange: "10.3.0.0/28",
|
|
176
|
+
* },
|
|
177
|
+
* networkId: thisDatabricksMwsNetworks.networkId,
|
|
178
|
+
* privateAccessSettingsId: pas.privateAccessSettingsId,
|
|
179
|
+
* pricingTier: "PREMIUM",
|
|
180
|
+
* }, {
|
|
181
|
+
* dependsOn: [thisDatabricksMwsNetworks],
|
|
182
|
+
* });
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* ## Related Resources
|
|
186
|
+
*
|
|
187
|
+
* The following resources are used in the same context:
|
|
188
|
+
*
|
|
189
|
+
* * Provisioning Databricks on AWS guide.
|
|
190
|
+
* * Provisioning Databricks on AWS with Private Link guide.
|
|
191
|
+
* * Provisioning AWS Databricks workspaces with a Hub & Spoke firewall for data exfiltration protection guide.
|
|
192
|
+
* * Provisioning Databricks workspaces on GCP with Private Service Connect guide.
|
|
193
|
+
* * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
|
|
194
|
+
* * 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 Private Link](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html).
|
|
195
|
+
* * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
|
|
196
|
+
*
|
|
5
197
|
* ## Import
|
|
6
198
|
*
|
|
7
199
|
* -> **Note** Importing this resource is not currently supported.
|
package/mwsVpcEndpoint.js
CHANGED
|
@@ -6,6 +6,198 @@ exports.MwsVpcEndpoint = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* > **Note** Initialize provider with `alias = "mws"`, `host = "https://accounts.cloud.databricks.com"` and use `provider = databricks.mws`
|
|
10
|
+
*
|
|
11
|
+
* Enables you to register awsVpcEndpoint resources or gcp vpcEndpoint resources with Databricks such that they can be used as part of a databricks.MwsNetworks configuration.
|
|
12
|
+
*
|
|
13
|
+
* It is strongly recommended that customers read the [Enable AWS Private Link](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html) or the [Enable GCP Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) documentation before trying to leverage this resource.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ### Databricks on AWS usage
|
|
18
|
+
*
|
|
19
|
+
* Before using this resource, you will need to create the necessary VPC Endpoints as per your VPC endpoint requirements resource for this, for example:
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as aws from "@pulumi/aws";
|
|
24
|
+
*
|
|
25
|
+
* const workspace = new aws.ec2.VpcEndpoint("workspace", {
|
|
26
|
+
* vpcId: vpc.vpcId,
|
|
27
|
+
* serviceName: privateLink.workspaceService,
|
|
28
|
+
* vpcEndpointType: "Interface",
|
|
29
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
30
|
+
* subnetIds: [plSubnet.id],
|
|
31
|
+
* privateDnsEnabled: true,
|
|
32
|
+
* }, {
|
|
33
|
+
* dependsOn: [plSubnet],
|
|
34
|
+
* });
|
|
35
|
+
* const relay = new aws.ec2.VpcEndpoint("relay", {
|
|
36
|
+
* vpcId: vpc.vpcId,
|
|
37
|
+
* serviceName: privateLink.relayService,
|
|
38
|
+
* vpcEndpointType: "Interface",
|
|
39
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
40
|
+
* subnetIds: [plSubnet.id],
|
|
41
|
+
* privateDnsEnabled: true,
|
|
42
|
+
* }, {
|
|
43
|
+
* dependsOn: [plSubnet],
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* Depending on your use case, you may need or choose to add VPC Endpoints for the AWS Services Databricks uses. See [Add VPC endpoints for other AWS services (recommended but optional)
|
|
48
|
+
* ](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#step-9-add-vpc-endpoints-for-other-aws-services-recommended-but-optional) for more information. For example:
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as aws from "@pulumi/aws";
|
|
53
|
+
*
|
|
54
|
+
* const s3 = new aws.ec2.VpcEndpoint("s3", {
|
|
55
|
+
* vpcId: vpc.vpcId,
|
|
56
|
+
* routeTableIds: vpc.privateRouteTableIds,
|
|
57
|
+
* serviceName: `com.amazonaws.${region}.s3`,
|
|
58
|
+
* }, {
|
|
59
|
+
* dependsOn: [vpc],
|
|
60
|
+
* });
|
|
61
|
+
* const sts = new aws.ec2.VpcEndpoint("sts", {
|
|
62
|
+
* vpcId: vpc.vpcId,
|
|
63
|
+
* serviceName: `com.amazonaws.${region}.sts`,
|
|
64
|
+
* vpcEndpointType: "Interface",
|
|
65
|
+
* subnetIds: vpc.privateSubnets,
|
|
66
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
67
|
+
* privateDnsEnabled: true,
|
|
68
|
+
* }, {
|
|
69
|
+
* dependsOn: [vpc],
|
|
70
|
+
* });
|
|
71
|
+
* const kinesis_streams = new aws.ec2.VpcEndpoint("kinesis-streams", {
|
|
72
|
+
* vpcId: vpc.vpcId,
|
|
73
|
+
* serviceName: `com.amazonaws.${region}.kinesis-streams`,
|
|
74
|
+
* vpcEndpointType: "Interface",
|
|
75
|
+
* subnetIds: vpc.privateSubnets,
|
|
76
|
+
* securityGroupIds: [vpc.defaultSecurityGroupId],
|
|
77
|
+
* }, {
|
|
78
|
+
* dependsOn: [vpc],
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* Once you have created the necessary endpoints, you need to register each of them via *this* Pulumi resource, which calls out to the [Databricks Account API](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#step-3-register-your-vpc-endpoint-ids-with-the-account-api)):
|
|
83
|
+
*
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
86
|
+
* import * as databricks from "@pulumi/databricks";
|
|
87
|
+
*
|
|
88
|
+
* const workspace = new databricks.MwsVpcEndpoint("workspace", {
|
|
89
|
+
* accountId: databricksAccountId,
|
|
90
|
+
* awsVpcEndpointId: workspaceAwsVpcEndpoint.id,
|
|
91
|
+
* vpcEndpointName: `VPC Relay for ${vpc.vpcId}`,
|
|
92
|
+
* region: region,
|
|
93
|
+
* }, {
|
|
94
|
+
* dependsOn: [workspaceAwsVpcEndpoint],
|
|
95
|
+
* });
|
|
96
|
+
* const relay = new databricks.MwsVpcEndpoint("relay", {
|
|
97
|
+
* accountId: databricksAccountId,
|
|
98
|
+
* awsVpcEndpointId: relayAwsVpcEndpoint.id,
|
|
99
|
+
* vpcEndpointName: `VPC Relay for ${vpc.vpcId}`,
|
|
100
|
+
* region: region,
|
|
101
|
+
* }, {
|
|
102
|
+
* dependsOn: [relayAwsVpcEndpoint],
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* Typically the next steps after this would be to create a databricks.MwsPrivateAccessSettings and databricks.MwsNetworks configuration, before passing the `databricks_mws_private_access_settings.pas.private_access_settings_id` and `databricks_mws_networks.this.network_id` into a databricks.MwsWorkspaces resource:
|
|
107
|
+
*
|
|
108
|
+
* ```typescript
|
|
109
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
110
|
+
* import * as databricks from "@pulumi/databricks";
|
|
111
|
+
*
|
|
112
|
+
* const _this = new databricks.MwsWorkspaces("this", {
|
|
113
|
+
* accountId: databricksAccountId,
|
|
114
|
+
* awsRegion: region,
|
|
115
|
+
* workspaceName: prefix,
|
|
116
|
+
* credentialsId: thisDatabricksMwsCredentials.credentialsId,
|
|
117
|
+
* storageConfigurationId: thisDatabricksMwsStorageConfigurations.storageConfigurationId,
|
|
118
|
+
* networkId: thisDatabricksMwsNetworks.networkId,
|
|
119
|
+
* privateAccessSettingsId: pas.privateAccessSettingsId,
|
|
120
|
+
* pricingTier: "ENTERPRISE",
|
|
121
|
+
* }, {
|
|
122
|
+
* dependsOn: [thisDatabricksMwsNetworks],
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* ### Databricks on GCP usage
|
|
127
|
+
*
|
|
128
|
+
* Before using this resource, you will need to create the necessary Private Service Connect (PSC) connections on your Google Cloud VPC networks. You can see [Enable Private Service Connect for your workspace](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) for more details.
|
|
129
|
+
*
|
|
130
|
+
* Once you have created the necessary PSC connections, you need to register each of them via *this* Pulumi resource, which calls out to the Databricks Account API.
|
|
131
|
+
*
|
|
132
|
+
* ```typescript
|
|
133
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
134
|
+
* import * as databricks from "@pulumi/databricks";
|
|
135
|
+
*
|
|
136
|
+
* const config = new pulumi.Config();
|
|
137
|
+
* // Account Id that could be found in https://accounts.gcp.databricks.com/
|
|
138
|
+
* const databricksAccountId = config.requireObject("databricksAccountId");
|
|
139
|
+
* const databricksGoogleServiceAccount = config.requireObject("databricksGoogleServiceAccount");
|
|
140
|
+
* const googleProject = config.requireObject("googleProject");
|
|
141
|
+
* const subnetRegion = config.requireObject("subnetRegion");
|
|
142
|
+
* const workspace = new databricks.MwsVpcEndpoint("workspace", {
|
|
143
|
+
* accountId: databricksAccountId,
|
|
144
|
+
* vpcEndpointName: "PSC Rest API endpoint",
|
|
145
|
+
* gcpVpcEndpointInfo: {
|
|
146
|
+
* projectId: googleProject,
|
|
147
|
+
* pscEndpointName: "PSC Rest API endpoint",
|
|
148
|
+
* endpointRegion: subnetRegion,
|
|
149
|
+
* },
|
|
150
|
+
* });
|
|
151
|
+
* const relay = new databricks.MwsVpcEndpoint("relay", {
|
|
152
|
+
* accountId: databricksAccountId,
|
|
153
|
+
* vpcEndpointName: "PSC Relay endpoint",
|
|
154
|
+
* gcpVpcEndpointInfo: {
|
|
155
|
+
* projectId: googleProject,
|
|
156
|
+
* pscEndpointName: "PSC Relay endpoint",
|
|
157
|
+
* endpointRegion: subnetRegion,
|
|
158
|
+
* },
|
|
159
|
+
* });
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* Typically the next steps after this would be to create a databricks.MwsPrivateAccessSettings and databricks.MwsNetworks configuration, before passing the `databricks_mws_private_access_settings.pas.private_access_settings_id` and `databricks_mws_networks.this.network_id` into a databricks.MwsWorkspaces resource:
|
|
163
|
+
*
|
|
164
|
+
* ```typescript
|
|
165
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
166
|
+
* import * as databricks from "@pulumi/databricks";
|
|
167
|
+
*
|
|
168
|
+
* const _this = new databricks.MwsWorkspaces("this", {
|
|
169
|
+
* accountId: databricksAccountId,
|
|
170
|
+
* workspaceName: "gcp workspace",
|
|
171
|
+
* location: subnetRegion,
|
|
172
|
+
* cloudResourceContainer: {
|
|
173
|
+
* gcp: {
|
|
174
|
+
* projectId: googleProject,
|
|
175
|
+
* },
|
|
176
|
+
* },
|
|
177
|
+
* gkeConfig: {
|
|
178
|
+
* connectivityType: "PRIVATE_NODE_PUBLIC_MASTER",
|
|
179
|
+
* masterIpRange: "10.3.0.0/28",
|
|
180
|
+
* },
|
|
181
|
+
* networkId: thisDatabricksMwsNetworks.networkId,
|
|
182
|
+
* privateAccessSettingsId: pas.privateAccessSettingsId,
|
|
183
|
+
* pricingTier: "PREMIUM",
|
|
184
|
+
* }, {
|
|
185
|
+
* dependsOn: [thisDatabricksMwsNetworks],
|
|
186
|
+
* });
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* ## Related Resources
|
|
190
|
+
*
|
|
191
|
+
* The following resources are used in the same context:
|
|
192
|
+
*
|
|
193
|
+
* * Provisioning Databricks on AWS guide.
|
|
194
|
+
* * Provisioning Databricks on AWS with Private Link guide.
|
|
195
|
+
* * Provisioning AWS Databricks workspaces with a Hub & Spoke firewall for data exfiltration protection guide.
|
|
196
|
+
* * Provisioning Databricks workspaces on GCP with Private Service Connect guide.
|
|
197
|
+
* * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
|
|
198
|
+
* * 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 Private Link](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html).
|
|
199
|
+
* * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
|
|
200
|
+
*
|
|
9
201
|
* ## Import
|
|
10
202
|
*
|
|
11
203
|
* -> **Note** Importing this resource is not currently supported.
|
package/mwsVpcEndpoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mwsVpcEndpoint.js","sourceRoot":"","sources":["../mwsVpcEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"mwsVpcEndpoint.js","sourceRoot":"","sources":["../mwsVpcEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;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databricks Notebooks](https://docs.databricks.com/notebooks/index.html). You can also work with databricks.Notebook and databricks.getNotebookPaths data sources.
|
|
4
|
+
*
|
|
3
5
|
* ## Import
|
|
4
6
|
*
|
|
5
7
|
* The resource notebook can be imported using notebook path
|
|
@@ -26,6 +28,9 @@ export declare class Notebook extends pulumi.CustomResource {
|
|
|
26
28
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
29
|
*/
|
|
28
30
|
static isInstance(obj: any): obj is Notebook;
|
|
31
|
+
/**
|
|
32
|
+
* The base64-encoded notebook source code. Conflicts with `source`. Use of `contentBase64` is discouraged, as it's increasing memory footprint of Pulumi state and should only be used in exceptional circumstances, like creating a notebook with configuration properties for a data pipeline.
|
|
33
|
+
*/
|
|
29
34
|
readonly contentBase64: pulumi.Output<string | undefined>;
|
|
30
35
|
readonly format: pulumi.Output<string | undefined>;
|
|
31
36
|
/**
|
|
@@ -66,6 +71,9 @@ export declare class Notebook extends pulumi.CustomResource {
|
|
|
66
71
|
* Input properties used for looking up and filtering Notebook resources.
|
|
67
72
|
*/
|
|
68
73
|
export interface NotebookState {
|
|
74
|
+
/**
|
|
75
|
+
* The base64-encoded notebook source code. Conflicts with `source`. Use of `contentBase64` is discouraged, as it's increasing memory footprint of Pulumi state and should only be used in exceptional circumstances, like creating a notebook with configuration properties for a data pipeline.
|
|
76
|
+
*/
|
|
69
77
|
contentBase64?: pulumi.Input<string>;
|
|
70
78
|
format?: pulumi.Input<string>;
|
|
71
79
|
/**
|
|
@@ -98,6 +106,9 @@ export interface NotebookState {
|
|
|
98
106
|
* The set of arguments for constructing a Notebook resource.
|
|
99
107
|
*/
|
|
100
108
|
export interface NotebookArgs {
|
|
109
|
+
/**
|
|
110
|
+
* The base64-encoded notebook source code. Conflicts with `source`. Use of `contentBase64` is discouraged, as it's increasing memory footprint of Pulumi state and should only be used in exceptional circumstances, like creating a notebook with configuration properties for a data pipeline.
|
|
111
|
+
*/
|
|
101
112
|
contentBase64?: pulumi.Input<string>;
|
|
102
113
|
format?: pulumi.Input<string>;
|
|
103
114
|
/**
|
package/notebook.js
CHANGED
|
@@ -6,6 +6,8 @@ exports.Notebook = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* This resource allows you to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html). You can also work with databricks.Notebook and databricks.getNotebookPaths data sources.
|
|
10
|
+
*
|
|
9
11
|
* ## Import
|
|
10
12
|
*
|
|
11
13
|
* The resource notebook can be imported using notebook path
|
package/notebook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notebook.js","sourceRoot":"","sources":["../notebook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"notebook.js","sourceRoot":"","sources":["../notebook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAyCD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI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