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
3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 | |