@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
92 lines (91 loc) • 3.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This data source can be used to get a single workspace network option.
*
* > **Note** This data source can only be used with an account-level provider!
*
* ## Example Usage
*
* Referring to a network policy by id:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getWorkspaceNetworkOption({
* workspaceId: "9999999999999999",
* });
* ```
*/
export declare function getWorkspaceNetworkOption(args?: GetWorkspaceNetworkOptionArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspaceNetworkOptionResult>;
/**
* A collection of arguments for invoking getWorkspaceNetworkOption.
*/
export interface GetWorkspaceNetworkOptionArgs {
/**
* (string) - The network policy ID to apply to the workspace. This controls the network access rules
* for all serverless compute resources in the workspace. Each workspace can only be
* linked to one policy at a time. If no policy is explicitly assigned,
* the workspace will use 'default-policy'
*/
networkPolicyId?: string;
/**
* The workspace ID
*/
workspaceId?: string;
}
/**
* A collection of values returned by getWorkspaceNetworkOption.
*/
export interface GetWorkspaceNetworkOptionResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* (string) - The network policy ID to apply to the workspace. This controls the network access rules
* for all serverless compute resources in the workspace. Each workspace can only be
* linked to one policy at a time. If no policy is explicitly assigned,
* the workspace will use 'default-policy'
*/
readonly networkPolicyId?: string;
/**
* (integer) - The workspace ID
*/
readonly workspaceId?: string;
}
/**
* This data source can be used to get a single workspace network option.
*
* > **Note** This data source can only be used with an account-level provider!
*
* ## Example Usage
*
* Referring to a network policy by id:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getWorkspaceNetworkOption({
* workspaceId: "9999999999999999",
* });
* ```
*/
export declare function getWorkspaceNetworkOptionOutput(args?: GetWorkspaceNetworkOptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkspaceNetworkOptionResult>;
/**
* A collection of arguments for invoking getWorkspaceNetworkOption.
*/
export interface GetWorkspaceNetworkOptionOutputArgs {
/**
* (string) - The network policy ID to apply to the workspace. This controls the network access rules
* for all serverless compute resources in the workspace. Each workspace can only be
* linked to one policy at a time. If no policy is explicitly assigned,
* the workspace will use 'default-policy'
*/
networkPolicyId?: pulumi.Input<string>;
/**
* The workspace ID
*/
workspaceId?: pulumi.Input<string>;
}