get_library_item
async
¶
get_library_item(
instance_id: InstanceId,
library_item_id: UUID,
*,
config_overrides: Optional[AsyncQAppsClientConfig] = None,
app_id: Optional[UUID] = None,
) -> GetLibraryItemOutput
Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Amazon Q Business application environment instance.
-
library_item_id(UUID) –The unique identifier of the library item to retrieve.
-
app_id(Optional[UUID], default:None) –The unique identifier of the Amazon Q App associated with the library item.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
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:
Retrieve a library item
>>> await client.get_library_item(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', library_item_id='18cbebaa-196a-4aa5-a840-88d548e07f8f')
Source code in docs_src/capo_qapps/_services/async_q_apps.py
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 | |