UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

168 lines (167 loc) 7.57 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Allows you to create a Network Connectivity Config that can be used as part of a databricks.MwsWorkspaces resource to create a [Databricks Workspace that leverages serverless network connectivity configs](https://learn.microsoft.com/en-us/azure/databricks/security/network/serverless-network-security/serverless-firewall). * * > This resource can only be used with an account-level provider! * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const config = new pulumi.Config(); * const region = config.requireObject<any>("region"); * const prefix = config.requireObject<any>("prefix"); * const ncc = new databricks.MwsNetworkConnectivityConfig("ncc", { * name: `ncc-for-${prefix}`, * region: region, * }); * const nccBinding = new databricks.MwsNccBinding("ncc_binding", { * networkConnectivityConfigId: ncc.networkConnectivityConfigId, * workspaceId: databricksWorkspaceId, * }); * ``` * * ## Related Resources * * The following resources are used in the context: * * * databricks.MwsWorkspaces to set up Databricks workspaces. * * databricks.MwsNccBinding to attach an NCC to a workspace. * * databricks.MwsNccPrivateEndpointRule to create a private endpoint rule. * * ## Import * * This resource can be imported by Databricks account ID and Network Connectivity Config ID. * * hcl * * import { * * to = databricks_mws_network_connectivity_config.this * * id = "<account_id>/<network_connectivity_config_id>" * * } * * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command: * * bash * * ```sh * $ pulumi import databricks:index/mwsNetworkConnectivityConfig:MwsNetworkConnectivityConfig this "<account_id>/<network_connectivity_config_id>" * ``` */ export declare class MwsNetworkConnectivityConfig extends pulumi.CustomResource { /** * Get an existing MwsNetworkConnectivityConfig resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MwsNetworkConnectivityConfigState, opts?: pulumi.CustomResourceOptions): MwsNetworkConnectivityConfig; /** * Returns true if the given object is an instance of MwsNetworkConnectivityConfig. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MwsNetworkConnectivityConfig; readonly accountId: pulumi.Output<string>; /** * time in epoch milliseconds when this object was created. */ readonly creationTime: pulumi.Output<number>; /** * block containing information about network connectivity rules that apply to network traffic from your serverless compute resources. Consists of the following fields: */ readonly egressConfig: pulumi.Output<outputs.MwsNetworkConnectivityConfigEgressConfig>; /** * Name of the network connectivity configuration. The name can contain alphanumeric characters, hyphens, and underscores. The length must be between 3 and 30 characters. The name must match the regular expression `^[0-9a-zA-Z-_]{3,30}$`. Change forces creation of a new resource. */ readonly name: pulumi.Output<string>; /** * Canonical unique identifier of Network Connectivity Config in Databricks Account */ readonly networkConnectivityConfigId: pulumi.Output<string>; /** * Region of the Network Connectivity Config. NCCs can only be referenced by your workspaces in the same region. Change forces creation of a new resource. */ readonly region: pulumi.Output<string>; /** * time in epoch milliseconds when this object was updated. */ readonly updatedTime: pulumi.Output<number>; /** * Create a MwsNetworkConnectivityConfig resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MwsNetworkConnectivityConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MwsNetworkConnectivityConfig resources. */ export interface MwsNetworkConnectivityConfigState { accountId?: pulumi.Input<string>; /** * time in epoch milliseconds when this object was created. */ creationTime?: pulumi.Input<number>; /** * block containing information about network connectivity rules that apply to network traffic from your serverless compute resources. Consists of the following fields: */ egressConfig?: pulumi.Input<inputs.MwsNetworkConnectivityConfigEgressConfig>; /** * Name of the network connectivity configuration. The name can contain alphanumeric characters, hyphens, and underscores. The length must be between 3 and 30 characters. The name must match the regular expression `^[0-9a-zA-Z-_]{3,30}$`. Change forces creation of a new resource. */ name?: pulumi.Input<string>; /** * Canonical unique identifier of Network Connectivity Config in Databricks Account */ networkConnectivityConfigId?: pulumi.Input<string>; /** * Region of the Network Connectivity Config. NCCs can only be referenced by your workspaces in the same region. Change forces creation of a new resource. */ region?: pulumi.Input<string>; /** * time in epoch milliseconds when this object was updated. */ updatedTime?: pulumi.Input<number>; } /** * The set of arguments for constructing a MwsNetworkConnectivityConfig resource. */ export interface MwsNetworkConnectivityConfigArgs { accountId?: pulumi.Input<string>; /** * time in epoch milliseconds when this object was created. */ creationTime?: pulumi.Input<number>; /** * block containing information about network connectivity rules that apply to network traffic from your serverless compute resources. Consists of the following fields: */ egressConfig?: pulumi.Input<inputs.MwsNetworkConnectivityConfigEgressConfig>; /** * Name of the network connectivity configuration. The name can contain alphanumeric characters, hyphens, and underscores. The length must be between 3 and 30 characters. The name must match the regular expression `^[0-9a-zA-Z-_]{3,30}$`. Change forces creation of a new resource. */ name?: pulumi.Input<string>; /** * Canonical unique identifier of Network Connectivity Config in Databricks Account */ networkConnectivityConfigId?: pulumi.Input<string>; /** * Region of the Network Connectivity Config. NCCs can only be referenced by your workspaces in the same region. Change forces creation of a new resource. */ region: pulumi.Input<string>; /** * time in epoch milliseconds when this object was updated. */ updatedTime?: pulumi.Input<number>; }