tag_resource
(**kwargs)¶Assigns tags to resources. A tag is a label that you assign to an AWS resource. Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize your AWS resources by attributes such as purpose, owner, or environment. When you have many resources of the same type, you can quickly identify a specific resource based on the tags you've assigned to it.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.
[REQUIRED]
The tags to add to the resource. A tag is an array of key-value pairs.
dict
Response Syntax
{}
Response Structure
Exceptions
EMRServerless.Client.exceptions.ValidationException
EMRServerless.Client.exceptions.ResourceNotFoundException
EMRServerless.Client.exceptions.InternalServerException