GreengrassV2.Client.
tag_resource
(**kwargs)¶Adds tags to an IoT Greengrass resource. If a tag already exists for the resource, this operation updates the tag's value.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The ARN of the resource to tag.
[REQUIRED]
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide .
dict
Response Syntax
{}
Response Structure
Exceptions
GreengrassV2.Client.exceptions.InternalServerException
GreengrassV2.Client.exceptions.ValidationException
GreengrassV2.Client.exceptions.ResourceNotFoundException