1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. gamelift
  5. getLocation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.gamelift.getLocation

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

The AWS::GameLift::Location resource creates an Amazon GameLift (GameLift) custom location.

Using getLocation

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 getLocation(args: GetLocationArgs, opts?: InvokeOptions): Promise<GetLocationResult>
function getLocationOutput(args: GetLocationOutputArgs, opts?: InvokeOptions): Output<GetLocationResult>
Copy
def get_location(location_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetLocationResult
def get_location_output(location_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetLocationResult]
Copy
func LookupLocation(ctx *Context, args *LookupLocationArgs, opts ...InvokeOption) (*LookupLocationResult, error)
func LookupLocationOutput(ctx *Context, args *LookupLocationOutputArgs, opts ...InvokeOption) LookupLocationResultOutput
Copy

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

public static class GetLocation 
{
    public static Task<GetLocationResult> InvokeAsync(GetLocationArgs args, InvokeOptions? opts = null)
    public static Output<GetLocationResult> Invoke(GetLocationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLocationResult> getLocation(GetLocationArgs args, InvokeOptions options)
public static Output<GetLocationResult> getLocation(GetLocationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:gamelift:getLocation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LocationName This property is required. string
A descriptive name for the custom location.
LocationName This property is required. string
A descriptive name for the custom location.
locationName This property is required. String
A descriptive name for the custom location.
locationName This property is required. string
A descriptive name for the custom location.
location_name This property is required. str
A descriptive name for the custom location.
locationName This property is required. String
A descriptive name for the custom location.

getLocation Result

The following output properties are available:

LocationArn string
A unique identifier for the custom location. For example, arn:aws:gamelift:[region]::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 .
Tags List<Pulumi.AwsNative.Outputs.Tag>
An array of key-value pairs to apply to this resource.
LocationArn string
A unique identifier for the custom location. For example, arn:aws:gamelift:[region]::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 .
Tags Tag
An array of key-value pairs to apply to this resource.
locationArn String
A unique identifier for the custom location. For example, arn:aws:gamelift:[region]::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 .
tags List<Tag>
An array of key-value pairs to apply to this resource.
locationArn string
A unique identifier for the custom location. For example, arn:aws:gamelift:[region]::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 .
tags Tag[]
An array of key-value pairs to apply to this resource.
location_arn str
A unique identifier for the custom location. For example, arn:aws:gamelift:[region]::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 .
tags Sequence[root_Tag]
An array of key-value pairs to apply to this resource.
locationArn String
A unique identifier for the custom location. For example, arn:aws:gamelift:[region]::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 .
tags List<Property Map>
An array of key-value pairs to apply to this resource.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi