Databricks v1.46.1 published on Friday, Jun 28, 2024 by Pulumi
databricks.getZones
Explore with Pulumi AI
Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces, 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, nil, 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 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(opts?: InvokeOptions): Promise<GetZonesResult>
function getZonesOutput(opts?: InvokeOptions): Output<GetZonesResult>
def get_zones(opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
func GetZones(ctx *Context, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, opts ...InvokeOption) GetZonesResultOutput
> Note: This function is named GetZones
in the Go SDK.
public static class GetZones
{
public static Task<GetZonesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetZonesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetZonesResult> getZones(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: databricks:index/getZones:getZones
arguments:
# arguments dictionary
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 provider-assigned unique ID for this managed resource.
- 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 provider-assigned unique ID for this managed resource.
- 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 provider-assigned unique ID for this managed resource.
- 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 provider-assigned unique ID for this managed resource.
- 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 provider-assigned unique ID for this managed resource.
- 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 provider-assigned unique ID for this managed resource.
- 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.