Proton / Client / tag_resource
tag_resource#
- Proton.Client.tag_resource(**kwargs)#
Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource.
For more information, see Proton resources and tagging in the Proton User Guide.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( resourceArn='string', tags=[ { 'key': 'string', 'value': 'string' }, ] )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Proton resource to apply customer tags to.
tags (list) –
[REQUIRED]
A list of customer tags to apply to the Proton resource.
(dict) –
A description of a resource tag.
key (string) – [REQUIRED]
The key of the resource tag.
value (string) – [REQUIRED]
The value of the resource tag.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Proton.Client.exceptions.ValidationException
Proton.Client.exceptions.AccessDeniedException
Proton.Client.exceptions.ThrottlingException
Proton.Client.exceptions.ConflictException
Proton.Client.exceptions.ResourceNotFoundException
Proton.Client.exceptions.InternalServerException