GameLift / Client / list_tags_for_resource
list_tags_for_resource¶
- GameLift.Client.list_tags_for_resource(**kwargs)¶
This API works with the following fleet types: EC2, Anywhere, Container
Retrieves all tags assigned to a Amazon GameLift Servers resource. Use resource tags to organize Amazon Web Services resources for a range of purposes. This operation handles the permissions necessary to manage tags for Amazon GameLift Servers resources that support tagging.
To list tags for a resource, specify the unique ARN value for the resource.
Learn more
Tagging Amazon Web Services Resources in the Amazon Web Services General Reference
Amazon Web Services Tagging Strategies
Related actions
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( ResourceARN='string' )
- Parameters:
ResourceARN (string) –
[REQUIRED]
The Amazon Resource Name ( ARN) that uniquely identifies the Amazon GameLift Servers resource that you want to retrieve tags for. Amazon GameLift Servers includes resource ARNs in the data object for the resource. You can retrieve the ARN by calling a
ListorDescribeoperation for the resource type.- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) –
Tags (list) –
The collection of tags assigned to the resource.
(dict) –
A label that you can assign to a Amazon GameLift Servers resource.
Learn more
Tagging Amazon Web Services Resources in the Amazon Web Services General Reference
Amazon Web Services Tagging Strategies
Related actions
Key (string) –
The key for a developer-defined key value pair for tagging an Amazon Web Services resource.
Value (string) –
The value for a developer-defined key value pair for tagging an Amazon Web Services resource.
Exceptions
GameLift.Client.exceptions.NotFoundExceptionGameLift.Client.exceptions.InvalidRequestExceptionGameLift.Client.exceptions.TaggingFailedExceptionGameLift.Client.exceptions.InternalServiceExceptionGameLift.Client.exceptions.UnsupportedRegionException