IoTSiteWise.Client.
tag_resource
(**kwargs)¶Adds tags to an IoT SiteWise 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 Tagging your IoT SiteWise resources in the IoT SiteWise User Guide .
dict
Response Syntax
{}
Response Structure
Exceptions
IoTSiteWise.Client.exceptions.InvalidRequestException
IoTSiteWise.Client.exceptions.InternalFailureException
IoTSiteWise.Client.exceptions.ThrottlingException
IoTSiteWise.Client.exceptions.ResourceNotFoundException
IoTSiteWise.Client.exceptions.ConflictingOperationException
IoTSiteWise.Client.exceptions.LimitExceededException
IoTSiteWise.Client.exceptions.UnauthorizedException
IoTSiteWise.Client.exceptions.TooManyTagsException