Show / Hide Table of Contents

Class GetRegion

Inheritance
System.Object
GetRegion
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws
Assembly: Pulumi.Aws.dll
Syntax
public static class GetRegion

Methods

View Source

InvokeAsync(GetRegionArgs, InvokeOptions)

aws..getRegion provides details about a specific AWS region.

As well as validating a given region name this resource can be used to discover the name of the region configured within the provider. The latter can be useful in a child module which is inheriting an AWS provider configuration from its parent module.

{{% examples %}}

Example Usage

{{% example %}}

The following example shows how the resource might be used to obtain the name of the AWS region configured on the provider.

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var current = Output.Create(Aws.GetRegion.InvokeAsync());
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetRegionResult> InvokeAsync(GetRegionArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetRegionArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetRegionResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.