Documentation
¶
Index ¶
- type Workspace
- type WorkspaceArgs
- type WorkspaceCustomParameters
- type WorkspaceCustomParametersArgs
- func (WorkspaceCustomParametersArgs) ElementType() reflect.Type
- func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersOutput() WorkspaceCustomParametersOutput
- func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersOutputWithContext(ctx context.Context) WorkspaceCustomParametersOutput
- func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput
- func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersPtrOutputWithContext(ctx context.Context) WorkspaceCustomParametersPtrOutput
- type WorkspaceCustomParametersInput
- type WorkspaceCustomParametersOutput
- func (WorkspaceCustomParametersOutput) ElementType() reflect.Type
- func (o WorkspaceCustomParametersOutput) NoPublicIp() pulumi.BoolPtrOutput
- func (o WorkspaceCustomParametersOutput) PrivateSubnetName() pulumi.StringPtrOutput
- func (o WorkspaceCustomParametersOutput) PublicSubnetName() pulumi.StringPtrOutput
- func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersOutput() WorkspaceCustomParametersOutput
- func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersOutputWithContext(ctx context.Context) WorkspaceCustomParametersOutput
- func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput
- func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersPtrOutputWithContext(ctx context.Context) WorkspaceCustomParametersPtrOutput
- func (o WorkspaceCustomParametersOutput) VirtualNetworkId() pulumi.StringPtrOutput
- type WorkspaceCustomParametersPtrInput
- type WorkspaceCustomParametersPtrOutput
- func (o WorkspaceCustomParametersPtrOutput) Elem() WorkspaceCustomParametersOutput
- func (WorkspaceCustomParametersPtrOutput) ElementType() reflect.Type
- func (o WorkspaceCustomParametersPtrOutput) NoPublicIp() pulumi.BoolPtrOutput
- func (o WorkspaceCustomParametersPtrOutput) PrivateSubnetName() pulumi.StringPtrOutput
- func (o WorkspaceCustomParametersPtrOutput) PublicSubnetName() pulumi.StringPtrOutput
- func (o WorkspaceCustomParametersPtrOutput) ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput
- func (o WorkspaceCustomParametersPtrOutput) ToWorkspaceCustomParametersPtrOutputWithContext(ctx context.Context) WorkspaceCustomParametersPtrOutput
- func (o WorkspaceCustomParametersPtrOutput) VirtualNetworkId() pulumi.StringPtrOutput
- type WorkspaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workspace ¶
type Workspace struct { pulumi.CustomResourceState // A `customParameters` block as documented below. CustomParameters WorkspaceCustomParametersOutput `pulumi:"customParameters"` // Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The ID of the Managed Resource Group created by the Databricks Workspace. ManagedResourceGroupId pulumi.StringOutput `pulumi:"managedResourceGroupId"` // The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created. ManagedResourceGroupName pulumi.StringOutput `pulumi:"managedResourceGroupName"` // Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The `sku` to use for the Databricks Workspace. Possible values are `standard`, `premium`, or `trial`. Changing this forces a new resource to be created. Sku pulumi.StringOutput `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The unique identifier of the databricks workspace in Databricks control plane. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` // The workspace URL which is of the format 'adb-{workspaceId}.{random}.azuredatabricks.net' WorkspaceUrl pulumi.StringOutput `pulumi:"workspaceUrl"` }
Manages a Databricks Workspace
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/databricks" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) if err != nil { return err } _, err = databricks.NewWorkspace(ctx, "exampleWorkspace", &databricks.WorkspaceArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Sku: pulumi.String("standard"), Tags: pulumi.Map{ "Environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
func GetWorkspace ¶
func GetWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error)
GetWorkspace gets an existing Workspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkspace ¶
func NewWorkspace(ctx *pulumi.Context, name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error)
NewWorkspace registers a new resource with the given unique name, arguments, and options.
type WorkspaceArgs ¶
type WorkspaceArgs struct { // A `customParameters` block as documented below. CustomParameters WorkspaceCustomParametersPtrInput // Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created. ManagedResourceGroupName pulumi.StringPtrInput // Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The `sku` to use for the Databricks Workspace. Possible values are `standard`, `premium`, or `trial`. Changing this forces a new resource to be created. Sku pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Workspace resource.
func (WorkspaceArgs) ElementType ¶
func (WorkspaceArgs) ElementType() reflect.Type
type WorkspaceCustomParameters ¶
type WorkspaceCustomParameters struct { // Are public IP Addresses not allowed? NoPublicIp *bool `pulumi:"noPublicIp"` // The name of the Private Subnet within the Virtual Network. Required if `virtualNetworkId` is set. PrivateSubnetName *string `pulumi:"privateSubnetName"` // The name of the Public Subnet within the Virtual Network. Required if `virtualNetworkId` is set. PublicSubnetName *string `pulumi:"publicSubnetName"` // The ID of a Virtual Network where this Databricks Cluster should be created. VirtualNetworkId *string `pulumi:"virtualNetworkId"` }
type WorkspaceCustomParametersArgs ¶
type WorkspaceCustomParametersArgs struct { // Are public IP Addresses not allowed? NoPublicIp pulumi.BoolPtrInput `pulumi:"noPublicIp"` // The name of the Private Subnet within the Virtual Network. Required if `virtualNetworkId` is set. PrivateSubnetName pulumi.StringPtrInput `pulumi:"privateSubnetName"` // The name of the Public Subnet within the Virtual Network. Required if `virtualNetworkId` is set. PublicSubnetName pulumi.StringPtrInput `pulumi:"publicSubnetName"` // The ID of a Virtual Network where this Databricks Cluster should be created. VirtualNetworkId pulumi.StringPtrInput `pulumi:"virtualNetworkId"` }
func (WorkspaceCustomParametersArgs) ElementType ¶
func (WorkspaceCustomParametersArgs) ElementType() reflect.Type
func (WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersOutput ¶
func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersOutput() WorkspaceCustomParametersOutput
func (WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersOutputWithContext ¶
func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersOutputWithContext(ctx context.Context) WorkspaceCustomParametersOutput
func (WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersPtrOutput ¶
func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput
func (WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersPtrOutputWithContext ¶
func (i WorkspaceCustomParametersArgs) ToWorkspaceCustomParametersPtrOutputWithContext(ctx context.Context) WorkspaceCustomParametersPtrOutput
type WorkspaceCustomParametersInput ¶
type WorkspaceCustomParametersInput interface { pulumi.Input ToWorkspaceCustomParametersOutput() WorkspaceCustomParametersOutput ToWorkspaceCustomParametersOutputWithContext(context.Context) WorkspaceCustomParametersOutput }
WorkspaceCustomParametersInput is an input type that accepts WorkspaceCustomParametersArgs and WorkspaceCustomParametersOutput values. You can construct a concrete instance of `WorkspaceCustomParametersInput` via:
WorkspaceCustomParametersArgs{...}
type WorkspaceCustomParametersOutput ¶
type WorkspaceCustomParametersOutput struct{ *pulumi.OutputState }
func (WorkspaceCustomParametersOutput) ElementType ¶
func (WorkspaceCustomParametersOutput) ElementType() reflect.Type
func (WorkspaceCustomParametersOutput) NoPublicIp ¶
func (o WorkspaceCustomParametersOutput) NoPublicIp() pulumi.BoolPtrOutput
Are public IP Addresses not allowed?
func (WorkspaceCustomParametersOutput) PrivateSubnetName ¶
func (o WorkspaceCustomParametersOutput) PrivateSubnetName() pulumi.StringPtrOutput
The name of the Private Subnet within the Virtual Network. Required if `virtualNetworkId` is set.
func (WorkspaceCustomParametersOutput) PublicSubnetName ¶
func (o WorkspaceCustomParametersOutput) PublicSubnetName() pulumi.StringPtrOutput
The name of the Public Subnet within the Virtual Network. Required if `virtualNetworkId` is set.
func (WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersOutput ¶
func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersOutput() WorkspaceCustomParametersOutput
func (WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersOutputWithContext ¶
func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersOutputWithContext(ctx context.Context) WorkspaceCustomParametersOutput
func (WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersPtrOutput ¶
func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput
func (WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersPtrOutputWithContext ¶
func (o WorkspaceCustomParametersOutput) ToWorkspaceCustomParametersPtrOutputWithContext(ctx context.Context) WorkspaceCustomParametersPtrOutput
func (WorkspaceCustomParametersOutput) VirtualNetworkId ¶
func (o WorkspaceCustomParametersOutput) VirtualNetworkId() pulumi.StringPtrOutput
The ID of a Virtual Network where this Databricks Cluster should be created.
type WorkspaceCustomParametersPtrInput ¶
type WorkspaceCustomParametersPtrInput interface { pulumi.Input ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput ToWorkspaceCustomParametersPtrOutputWithContext(context.Context) WorkspaceCustomParametersPtrOutput }
WorkspaceCustomParametersPtrInput is an input type that accepts WorkspaceCustomParametersArgs, WorkspaceCustomParametersPtr and WorkspaceCustomParametersPtrOutput values. You can construct a concrete instance of `WorkspaceCustomParametersPtrInput` via:
WorkspaceCustomParametersArgs{...} or: nil
func WorkspaceCustomParametersPtr ¶
func WorkspaceCustomParametersPtr(v *WorkspaceCustomParametersArgs) WorkspaceCustomParametersPtrInput
type WorkspaceCustomParametersPtrOutput ¶
type WorkspaceCustomParametersPtrOutput struct{ *pulumi.OutputState }
func (WorkspaceCustomParametersPtrOutput) Elem ¶
func (o WorkspaceCustomParametersPtrOutput) Elem() WorkspaceCustomParametersOutput
func (WorkspaceCustomParametersPtrOutput) ElementType ¶
func (WorkspaceCustomParametersPtrOutput) ElementType() reflect.Type
func (WorkspaceCustomParametersPtrOutput) NoPublicIp ¶
func (o WorkspaceCustomParametersPtrOutput) NoPublicIp() pulumi.BoolPtrOutput
Are public IP Addresses not allowed?
func (WorkspaceCustomParametersPtrOutput) PrivateSubnetName ¶
func (o WorkspaceCustomParametersPtrOutput) PrivateSubnetName() pulumi.StringPtrOutput
The name of the Private Subnet within the Virtual Network. Required if `virtualNetworkId` is set.
func (WorkspaceCustomParametersPtrOutput) PublicSubnetName ¶
func (o WorkspaceCustomParametersPtrOutput) PublicSubnetName() pulumi.StringPtrOutput
The name of the Public Subnet within the Virtual Network. Required if `virtualNetworkId` is set.
func (WorkspaceCustomParametersPtrOutput) ToWorkspaceCustomParametersPtrOutput ¶
func (o WorkspaceCustomParametersPtrOutput) ToWorkspaceCustomParametersPtrOutput() WorkspaceCustomParametersPtrOutput
func (WorkspaceCustomParametersPtrOutput) ToWorkspaceCustomParametersPtrOutputWithContext ¶
func (o WorkspaceCustomParametersPtrOutput) ToWorkspaceCustomParametersPtrOutputWithContext(ctx context.Context) WorkspaceCustomParametersPtrOutput
func (WorkspaceCustomParametersPtrOutput) VirtualNetworkId ¶
func (o WorkspaceCustomParametersPtrOutput) VirtualNetworkId() pulumi.StringPtrOutput
The ID of a Virtual Network where this Databricks Cluster should be created.
type WorkspaceState ¶
type WorkspaceState struct { // A `customParameters` block as documented below. CustomParameters WorkspaceCustomParametersPtrInput // Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The ID of the Managed Resource Group created by the Databricks Workspace. ManagedResourceGroupId pulumi.StringPtrInput // The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created. ManagedResourceGroupName pulumi.StringPtrInput // Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The `sku` to use for the Databricks Workspace. Possible values are `standard`, `premium`, or `trial`. Changing this forces a new resource to be created. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The unique identifier of the databricks workspace in Databricks control plane. WorkspaceId pulumi.StringPtrInput // The workspace URL which is of the format 'adb-{workspaceId}.{random}.azuredatabricks.net' WorkspaceUrl pulumi.StringPtrInput }
func (WorkspaceState) ElementType ¶
func (WorkspaceState) ElementType() reflect.Type