associate_library_item_review
async
¶
associate_library_item_review(
instance_id: InstanceId,
library_item_id: UUID,
*,
config_overrides: Optional[AsyncQAppsClientConfig] = None,
) -> None
Associates a rating or review for a library item with the user submitting the request. This increments the rating count for the specified library item.
Parameters:
-
instance_id(InstanceId) –The unique identifier for the Amazon Q Business application environment instance.
-
library_item_id(UUID) –The unique identifier of the library item to associate the review with.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
ConflictException–The requested operation could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The requested operation could not be completed because it would exceed the service's quota or limit.
-
ThrottlingException–The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
-
UnauthorizedException–The client is not authenticated or authorized to perform the requested operation.
-
ValidationException–The input failed to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Increase the rating counter by 1 for the related app for this user
>>> await client.associate_library_item_review(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', library_item_id='cb9ecf72-8563-450d-9db9-994f98297316')