GameLift / Client / create_location

create_location#

GameLift.Client.create_location(**kwargs)#

Creates a custom location for use in an Anywhere fleet.

See also: AWS API Documentation

Request Syntax

response = client.create_location(
    LocationName='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • LocationName (string) –

    [REQUIRED]

    A descriptive name for the custom location.

  • Tags (list) –

    A list of labels to assign to the new matchmaking configuration resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Rareference.

    • (dict) –

      A label that you can assign to a Amazon GameLift resource.

      Learn more

      Tagging Amazon Web Services Resources in the Amazon Web Services General Reference

      Amazon Web Services Tagging Strategies

      Related actions

      All APIs by task

      • Key (string) – [REQUIRED]

        The key for a developer-defined key value pair for tagging an Amazon Web Services resource.

      • Value (string) – [REQUIRED]

        The value for a developer-defined key value pair for tagging an Amazon Web Services resource.

Return type:

dict

Returns:

Response Syntax

{
    'Location': {
        'LocationName': 'string',
        'LocationArn': 'string'
    }
}

Response Structure

  • (dict) –

    • Location (dict) –

      The details of the custom location you created.

      • LocationName (string) –

        The location’s name.

      • LocationArn (string) –

        The Amazon Resource Name ( ARN) that is assigned to a Amazon GameLift location resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

Exceptions