tag_resource
async
¶
tag_resource(
resource_arn: ComprehendArn,
tags: TagList,
*,
config_overrides: Optional[AsyncComprehendClientConfig] = None,
) -> TagResourceResponse
Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
Parameters:
-
resource_arn(ComprehendArn) –The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
-
tags(TagList) –Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
Raises:
-
ConcurrentModificationException–Concurrent modification of the tags associated with an Amazon Comprehend resource is not supported.
-
InternalServerException–An internal server error occurred. Retry your request.
-
InvalidRequestException–The request is invalid.
-
ResourceNotFoundException–The specified resource ARN was not found. Check the ARN and try your request again.
-
TooManyTagsException–The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_comprehend/_services/async_comprehend.py
6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 | |