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.
Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
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.ValidationExceptionProton.Client.exceptions.AccessDeniedExceptionProton.Client.exceptions.ThrottlingExceptionProton.Client.exceptions.ConflictExceptionProton.Client.exceptions.ResourceNotFoundExceptionProton.Client.exceptions.InternalServerException