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
3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 | |