tag_resource
async
¶
tag_resource(
resource_arn: AmazonResourceName,
tags: TagList,
*,
config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
) -> TagResourceResponse
Adds a tag to a resource.
Parameters:
-
resource_arn(AmazonResourceName) –The ARN of the resource to add tags to.
-
tags(TagList) –Adds to or modifies the tags of the given resource. Tags are metadata that you can use to manage a resource.
Raises:
-
ConflictException–Adding, updating, or deleting the resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing a request.
-
ResourceNotFoundException–Resource does not exist.
-
ThrottlingException–The request was denied because it exceeded the allowed API request rate.
-
TooManyTagsException–The request was denied because the resource can't have any more tags.
-
ValidationException–The input did not meet the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.