search_cases
async
¶
search_cases(
domain_id: DomainId,
*,
config_overrides: Optional[AsyncConnectCasesClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
search_term: Optional[str] = None,
filter: Optional[CaseFilter] = None,
sorts: Optional[SortList] = None,
fields: Optional[FieldIdentifierList] = None,
) -> SearchCasesResponse
Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents.
For customer_id you must provide the full customer profile ARN in this format: arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID.
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
max_results(Optional[int], default:None) –The maximum number of cases to return. When no value is provided, 25 is the default.
-
next_token(Optional[NextToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
search_term(Optional[str], default:None) –A word or phrase used to perform a quick search.
-
filter(Optional[CaseFilter], default:None) –A list of filter objects.
-
sorts(Optional[SortList], default:None) –A list of sorts where each sort specifies a field and their sort order to be applied to the results.
-
fields(Optional[FieldIdentifierList], default:None) –The list of field identifiers to be returned as part of the response.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–We couldn't process your request because of an issue with the server. Try again later.
-
ResourceNotFoundException–We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.
-
ThrottlingException–The rate has been exceeded for this API. Please try again after a few minutes.
-
ValidationException–The request isn't valid. Check the syntax and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connectcases/_services/async_connect_cases.py
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 | |