databricks.getZones
Explore with Pulumi AI
Note If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent default auth: cannot configure default credentials errors.
This data source allows you to fetch all available AWS availability zones on your workspace on AWS.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const zones = databricks.getZones({});
import pulumi
import pulumi_databricks as databricks
zones = databricks.get_zones()
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.GetZones(ctx, &databricks.GetZonesArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var zones = Databricks.GetZones.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetZonesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var zones = DatabricksFunctions.getZones();
}
}
variables:
zones:
fn::invoke:
Function: databricks:getZones
Arguments: {}
Using getZones
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function getZonesOutput(args: GetZonesOutputArgs, opts?: InvokeOptions): Output<GetZonesResult>
def get_zones(default_zone: Optional[str] = None,
id: Optional[str] = None,
zones: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(default_zone: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput
> Note: This function is named GetZones
in the Go SDK.
public static class GetZones
{
public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
public static Output<GetZonesResult> Invoke(GetZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: databricks:index/getZones:getZones
arguments:
# arguments dictionary
The following arguments are supported:
- Default
Zone string - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- Id string
- The id for the zone object.
- Zones List<string>
- This is a list of all the zones available for your subnets in your Databricks workspace.
- Default
Zone string - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- Id string
- The id for the zone object.
- Zones []string
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default
Zone String - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id String
- The id for the zone object.
- zones List<String>
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default
Zone string - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id string
- The id for the zone object.
- zones string[]
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default_
zone str - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id str
- The id for the zone object.
- zones Sequence[str]
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default
Zone String - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id String
- The id for the zone object.
- zones List<String>
- This is a list of all the zones available for your subnets in your Databricks workspace.
getZones Result
The following output properties are available:
- Default
Zone string - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- Id string
- The id for the zone object.
- Zones List<string>
- This is a list of all the zones available for your subnets in your Databricks workspace.
- Default
Zone string - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- Id string
- The id for the zone object.
- Zones []string
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default
Zone String - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id String
- The id for the zone object.
- zones List<String>
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default
Zone string - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id string
- The id for the zone object.
- zones string[]
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default_
zone str - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id str
- The id for the zone object.
- zones Sequence[str]
- This is a list of all the zones available for your subnets in your Databricks workspace.
- default
Zone String - This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
- id String
- The id for the zone object.
- zones List<String>
- This is a list of all the zones available for your subnets in your Databricks workspace.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.