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'
},
]
)
[REQUIRED]
A descriptive name for the custom location.
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 .
A label that can be assigned to a GameLift resource.
Learn moreTagging Amazon Web Services Resources in the Amazon Web Services General Reference
Amazon Web Services Tagging Strategies
Related actions
The key for a developer-defined key:value pair for tagging an Amazon Web Services resource.
The value for a developer-defined key:value pair for tagging an Amazon Web Services resource.
dict
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 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
GameLift.Client.exceptions.UnauthorizedException
GameLift.Client.exceptions.InvalidRequestException
GameLift.Client.exceptions.LimitExceededException
GameLift.Client.exceptions.ConflictException
GameLift.Client.exceptions.TaggingFailedException
GameLift.Client.exceptions.InternalServiceException