search_certificates
¶
search_certificates(
*,
config_overrides: Optional[ACMClientConfig] = 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/acm.py
2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 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 | |