DataSync.Client.
tag_resource
(**kwargs)¶Applies a tag to an Amazon Web Services resource. Tags are key-value pairs that can help you manage, filter, and search for your resources.
These include DataSync resources, such as locations, tasks, and task executions.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
Specifies the Amazon Resource Name (ARN) of the resource to apply the tag to.
[REQUIRED]
Specifies the tags that you want to apply to the resource.
A key-value pair representing a single tag that's been applied to an Amazon Web Services resource.
The key for an Amazon Web Services resource tag.
The value for an Amazon Web Services resource tag.
dict
Response Syntax
{}
Response Structure
Exceptions
DataSync.Client.exceptions.InvalidRequestException
DataSync.Client.exceptions.InternalException