Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi
published on Wednesday, Jul 29, 2026 by Pulumi
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi
published on Wednesday, Jul 29, 2026 by Pulumi
Returns a region name derived from a provided zone.
For more information about using provider-defined functions with Terraform see the official documentation.
Example Usage
Signature
region_from_zone(zone string) string
Using regionFromZone
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 regionFromZone(args: RegionFromZoneArgs, opts?: InvokeOptions): Promise<RegionFromZoneResult>
function regionFromZoneOutput(args: RegionFromZoneOutputArgs, opts?: InvokeOptions): Output<RegionFromZoneResult>def region_from_zone(zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RegionFromZoneResult
def region_from_zone_output(zone: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RegionFromZoneResult]func RegionFromZone(ctx *Context, args *RegionFromZoneArgs, opts ...InvokeOption) (*RegionFromZoneResult, error)
func RegionFromZoneOutput(ctx *Context, args *RegionFromZoneOutputArgs, opts ...InvokeOption) RegionFromZoneResultOutput> Note: This function is named RegionFromZone in the Go SDK.
public static class RegionFromZone
{
public static Task<RegionFromZoneResult> InvokeAsync(RegionFromZoneArgs args, InvokeOptions? opts = null)
public static Output<RegionFromZoneResult> Invoke(RegionFromZoneInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<RegionFromZoneResult> regionFromZone(RegionFromZoneArgs args, InvokeOptions options)
public static Output<RegionFromZoneResult> regionFromZone(RegionFromZoneArgs args, InvokeOptions options)
fn::invoke:
function: gcp:index/regionFromZone:regionFromZone
arguments:
# arguments dictionarydata "gcp_region_from_zone" "name" {
# arguments
}The following arguments are supported:
- Zone string
- A string of a resource's zone.
- Zone string
- A string of a resource's zone.
- zone string
- A string of a resource's zone.
- zone String
- A string of a resource's zone.
- zone string
- A string of a resource's zone.
- zone str
- A string of a resource's zone.
- zone String
- A string of a resource's zone.
regionFromZone Result
The following output properties are available:
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi
published on Wednesday, Jul 29, 2026 by Pulumi