1. Packages
  2. Temporalcloud Provider
  3. API Docs
  4. getRegions
temporalcloud 0.7.0 published on Friday, Apr 4, 2025 by temporalio

temporalcloud.getRegions

Explore with Pulumi AI

temporalcloud 0.7.0 published on Friday, Apr 4, 2025 by temporalio

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as temporalcloud from "@pulumi/temporalcloud";

const regionsRegions = temporalcloud.getRegions({});
export const regions = regionsRegions.then(regionsRegions => regionsRegions.regions);
Copy
import pulumi
import pulumi_temporalcloud as temporalcloud

regions_regions = temporalcloud.get_regions()
pulumi.export("regions", regions_regions.regions)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/temporalcloud/temporalcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		regionsRegions, err := temporalcloud.GetRegions(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("regions", regionsRegions.Regions)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Temporalcloud = Pulumi.Temporalcloud;

return await Deployment.RunAsync(() => 
{
    var regionsRegions = Temporalcloud.GetRegions.Invoke();

    return new Dictionary<string, object?>
    {
        ["regions"] = regionsRegions.Apply(getRegionsResult => getRegionsResult.Regions),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.temporalcloud.TemporalcloudFunctions;
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 regionsRegions = TemporalcloudFunctions.getRegions();

        ctx.export("regions", regionsRegions.applyValue(getRegionsResult -> getRegionsResult.regions()));
    }
}
Copy
variables:
  regionsRegions:
    fn::invoke:
      function: temporalcloud:getRegions
      arguments: {}
outputs:
  regions: ${regionsRegions.regions}
Copy

Using getRegions

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 getRegions(opts?: InvokeOptions): Promise<GetRegionsResult>
function getRegionsOutput(opts?: InvokeOptions): Output<GetRegionsResult>
Copy
def get_regions(opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]
Copy
func GetRegions(ctx *Context, opts ...InvokeOption) (*GetRegionsResult, error)
func GetRegionsOutput(ctx *Context, opts ...InvokeOption) GetRegionsResultOutput
Copy

> Note: This function is named GetRegions in the Go SDK.

public static class GetRegions 
{
    public static Task<GetRegionsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetRegionsResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegionsResult> getRegions(InvokeOptions options)
public static Output<GetRegionsResult> getRegions(InvokeOptions options)
Copy
fn::invoke:
  function: temporalcloud:index/getRegions:getRegions
  arguments:
    # arguments dictionary
Copy

getRegions Result

The following output properties are available:

Id string
The ID of this resource.
Regions List<GetRegionsRegion>
Id string
The ID of this resource.
Regions []GetRegionsRegion
id String
The ID of this resource.
regions List<GetRegionsRegion>
id string
The ID of this resource.
regions GetRegionsRegion[]
id str
The ID of this resource.
regions Sequence[GetRegionsRegion]
id String
The ID of this resource.
regions List<Property Map>

Supporting Types

GetRegionsRegion

CloudProvider This property is required. string
The name of the Cloud provider for this region, e.g. aws.
CloudProviderRegion This property is required. string
The name of the region within the Cloud provider, e.g. us-east-1.
Id This property is required. string
The unique identifier for the region, e.g. aws-us-east-1.
Location This property is required. string
The physical location of the region, e.g. "US East (N. Virginia)".
CloudProvider This property is required. string
The name of the Cloud provider for this region, e.g. aws.
CloudProviderRegion This property is required. string
The name of the region within the Cloud provider, e.g. us-east-1.
Id This property is required. string
The unique identifier for the region, e.g. aws-us-east-1.
Location This property is required. string
The physical location of the region, e.g. "US East (N. Virginia)".
cloudProvider This property is required. String
The name of the Cloud provider for this region, e.g. aws.
cloudProviderRegion This property is required. String
The name of the region within the Cloud provider, e.g. us-east-1.
id This property is required. String
The unique identifier for the region, e.g. aws-us-east-1.
location This property is required. String
The physical location of the region, e.g. "US East (N. Virginia)".
cloudProvider This property is required. string
The name of the Cloud provider for this region, e.g. aws.
cloudProviderRegion This property is required. string
The name of the region within the Cloud provider, e.g. us-east-1.
id This property is required. string
The unique identifier for the region, e.g. aws-us-east-1.
location This property is required. string
The physical location of the region, e.g. "US East (N. Virginia)".
cloud_provider This property is required. str
The name of the Cloud provider for this region, e.g. aws.
cloud_provider_region This property is required. str
The name of the region within the Cloud provider, e.g. us-east-1.
id This property is required. str
The unique identifier for the region, e.g. aws-us-east-1.
location This property is required. str
The physical location of the region, e.g. "US East (N. Virginia)".
cloudProvider This property is required. String
The name of the Cloud provider for this region, e.g. aws.
cloudProviderRegion This property is required. String
The name of the region within the Cloud provider, e.g. us-east-1.
id This property is required. String
The unique identifier for the region, e.g. aws-us-east-1.
location This property is required. String
The physical location of the region, e.g. "US East (N. Virginia)".

Package Details

Repository
temporalcloud temporalio/terraform-provider-temporalcloud
License
Notes
This Pulumi package is based on the temporalcloud Terraform Provider.
temporalcloud 0.7.0 published on Friday, Apr 4, 2025 by temporalio