tag_resource
async
¶
tag_resource(
resource_arn: TagrisArn,
resource_tags: ResourceTagList,
*,
config_overrides: Optional[AsyncInvoicingClientConfig] = None,
) -> TagResourceResponse
Adds a tag to a resource.
Parameters:
-
resource_arn(TagrisArn) –The Amazon Resource Name (ARN) of the tags.
-
resource_tags(ResourceTagList) –Adds a tag to a resource.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The processing request failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceQuotaExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
TagResource
>>> await client.tag_resource(resource_arn='arn:aws:invoicing::000000000000:invoice-unit/12345678', resource_tags=[{'Key': 'TagKey', 'Value': 'TagValue'}])