IoTSiteWise / Client / tag_resource
tag_resource¶
- 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' } )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the resource to tag.
tags (dict) –
[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.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
IoTSiteWise.Client.exceptions.InvalidRequestExceptionIoTSiteWise.Client.exceptions.InternalFailureExceptionIoTSiteWise.Client.exceptions.ThrottlingExceptionIoTSiteWise.Client.exceptions.ResourceNotFoundExceptionIoTSiteWise.Client.exceptions.ConflictingOperationExceptionIoTSiteWise.Client.exceptions.LimitExceededExceptionIoTSiteWise.Client.exceptions.UnauthorizedExceptionIoTSiteWise.Client.exceptions.TooManyTagsException