1. Packages
  2. Temporalcloud Provider
  3. API Docs
  4. getRegions
temporalcloud 0.6.1 published on Friday, Mar 7, 2025 by temporalio

temporalcloud.getRegions

Explore with Pulumi AI

temporalcloud logo
temporalcloud 0.6.1 published on Friday, Mar 7, 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);
    
    import pulumi
    import pulumi_temporalcloud as temporalcloud
    
    regions_regions = temporalcloud.get_regions()
    pulumi.export("regions", regions_regions.regions)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    variables:
      regionsRegions:
        fn::invoke:
          function: temporalcloud:getRegions
          arguments: {}
    outputs:
      regions: ${regionsRegions.regions}
    

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

    > 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)
    }
    public static CompletableFuture<GetRegionsResult> getRegions(InvokeOptions options)
    public static Output<GetRegionsResult> getRegions(InvokeOptions options)
    
    fn::invoke:
      function: temporalcloud:index/getRegions:getRegions
      arguments:
        # arguments dictionary

    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 string
    The name of the Cloud provider for this region, e.g. aws.
    CloudProviderRegion string
    The name of the region within the Cloud provider, e.g. us-east-1.
    Id string
    The unique identifier for the region, e.g. aws-us-east-1.
    Location string
    The physical location of the region, e.g. "US East (N. Virginia)".
    CloudProvider string
    The name of the Cloud provider for this region, e.g. aws.
    CloudProviderRegion string
    The name of the region within the Cloud provider, e.g. us-east-1.
    Id string
    The unique identifier for the region, e.g. aws-us-east-1.
    Location string
    The physical location of the region, e.g. "US East (N. Virginia)".
    cloudProvider String
    The name of the Cloud provider for this region, e.g. aws.
    cloudProviderRegion String
    The name of the region within the Cloud provider, e.g. us-east-1.
    id String
    The unique identifier for the region, e.g. aws-us-east-1.
    location String
    The physical location of the region, e.g. "US East (N. Virginia)".
    cloudProvider string
    The name of the Cloud provider for this region, e.g. aws.
    cloudProviderRegion string
    The name of the region within the Cloud provider, e.g. us-east-1.
    id string
    The unique identifier for the region, e.g. aws-us-east-1.
    location string
    The physical location of the region, e.g. "US East (N. Virginia)".
    cloud_provider str
    The name of the Cloud provider for this region, e.g. aws.
    cloud_provider_region str
    The name of the region within the Cloud provider, e.g. us-east-1.
    id str
    The unique identifier for the region, e.g. aws-us-east-1.
    location str
    The physical location of the region, e.g. "US East (N. Virginia)".
    cloudProvider String
    The name of the Cloud provider for this region, e.g. aws.
    cloudProviderRegion String
    The name of the region within the Cloud provider, e.g. us-east-1.
    id String
    The unique identifier for the region, e.g. aws-us-east-1.
    location 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 logo
    temporalcloud 0.6.1 published on Friday, Mar 7, 2025 by temporalio