search_certificates
async
¶
search_certificates(
*,
config_overrides: Optional[AsyncACMClientConfig] = None,
filter_statement: Optional[CertificateFilterStatement] = None,
max_results: Optional[SearchMaxResults] = None,
next_token: Optional[NextToken] = None,
sort_by: Optional[SearchCertificatesSortBy] = None,
sort_order: Optional[SearchCertificatesSortOrder] = None,
) -> SearchCertificatesResponse
Retrieves a list of certificates matching search criteria. You can filter certificates by X.509 attributes and ACM specific properties like certificate status, type and renewal eligibility. This operation provides more flexible filtering than ListCertificates by supporting complex filter statements.
Parameters:
-
filter_statement(Optional[CertificateFilterStatement], default:None) –A filter statement that defines the search criteria. You can combine multiple filters using AND, OR, and NOT logical operators to create complex queries.
-
max_results(Optional[SearchMaxResults], default:None) –The maximum number of results to return in the response. Default is 100.
-
next_token(Optional[NextToken], default:None) –Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of
NextTokenfrom the response you just received. -
sort_by(Optional[SearchCertificatesSortBy], default:None) –Specifies the field to sort results by. Valid values are CREATED_AT, NOT_AFTER, STATUS, RENEWAL_STATUS, EXPORTED, IN_USE, NOT_BEFORE, KEY_ALGORITHM, TYPE, CERTIFICATE_ARN, COMMON_NAME, REVOKED_AT, RENEWAL_ELIGIBILITY, ISSUED_AT, MANAGED_BY, EXPORT_OPTION, VALIDATION_METHOD, and IMPORTED_AT.
-
sort_order(Optional[SearchCertificatesSortOrder], default:None) –Specifies the order of sorted results. Valid values are ASCENDING or DESCENDING.
Raises:
-
AccessDeniedException–You do not have access required to perform this action.
-
ThrottlingException–The request was denied because it exceeded a quota.
-
ValidationException–The supplied input failed to satisfy constraints of an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_acm/_services/async_acm.py
2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 | |