AppConfig / Client / tag_resource
tag_resource#
- AppConfig.Client.tag_resource(**kwargs)#
Assigns metadata to an AppConfig resource. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The ARN of the resource for which to retrieve tags.
Tags (dict) –
[REQUIRED]
The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.(string) –
(string) –
- Returns:
None
Exceptions
AppConfig.Client.exceptions.ResourceNotFoundException
AppConfig.Client.exceptions.BadRequestException
AppConfig.Client.exceptions.InternalServerException
Examples
The following tag-resource example tags an application resource.
response = client.tag_resource( ResourceArn='arn:aws:appconfig:us-east-1:111122223333:application/339ohji', Tags={ 'group1': '1', }, ) print(response)
Expected Output:
{ 'ResponseMetadata': { '...': '...', }, }