Skip to content

Data Source: azurermDatabricksWorkspacePrivateEndpointConnection

Use this data source to access information on an existing Databricks Workspace private endpoint connection state.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermDatabricksWorkspacePrivateEndpointConnectionExample =
  new azurerm.dataAzurermDatabricksWorkspacePrivateEndpointConnection.DataAzurermDatabricksWorkspacePrivateEndpointConnection(
    this,
    "example",
    {
      private_endpoint_id: "${azurerm_private_endpoint.example.id}",
      workspace_id: "${azurerm_databricks_workspace.example.id}",
    }
  );
new cdktf.TerraformOutput(
  this,
  "databricks_workspace_private_endpoint_connection_status",
  {
    value: `\${${dataAzurermDatabricksWorkspacePrivateEndpointConnectionExample.connections}.0.status}`,
  }
);

Argument Reference

  • name - The name of the Databricks Workspace.
  • resourceGroupName - The Name of the Resource Group where the Databricks Workspace exists.

Attributes Reference

  • workspaceId - The resource ID of the Databricks Workspace.

  • privateEndpointId - The resource ID of the Private Endpoint.

  • connections - A connections block as documented below.


A connections block exports the following:

  • workspacePrivateEndpointId - The Databricks Workspace resource ID for the private link endpoint.

  • name - The name of the private endpoint connection.

  • status - The status of a private endpoint connection. Possible values are pending, approved, rejected or disconnected.

  • description - The description for the current state of a private endpoint connection.

  • actionRequired - Actions required for a private endpoint connection.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Databricks Workspace Private Endpoint Connection.