list_inventory_usages
¶
list_inventory_usages(
certificate_identifier: ContentHashIdentifier,
*,
config_overrides: Optional[ACMClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> ListInventoryUsagesOutput
Lists the places where one certificate was observed in use, such as load balancers and Amazon CloudFront distributions. Returns one page of usages and the total number of usages. Usages are sorted by target, in ascending order. To read the next page, repeat the request with the NextToken from the previous response and the same CertificateIdentifier. A NextToken from a request for a different certificate returns ValidationException. The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition. The operation returns ResourceNotFoundException before the first PutInventoryConfiguration call. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException. It also returns ResourceNotFoundException when the inventory has no certificate with the identifier.
Parameters:
-
certificate_identifier(ContentHashIdentifier) –The identifier of the certificate whose usages to list, as SearchInventory returns it.
-
max_results(Optional[int], default:None) –The maximum number of usages to return, 1 to 100. Defaults to 25.
-
next_token(Optional[str], default:None) –The NextToken from the previous response, to read the next page.
Raises:
-
AccessDeniedException–You do not have access required to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The specified certificate cannot be found in the caller's account or the caller's account cannot be found.
-
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.
Examples:
List where a certificate is used The certificate is attached to an Application Load Balancer and an Amazon CloudFront distribution.
>>> client.list_inventory_usages(certificate_identifier='3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91', max_results=25)
List the usages of a certificate the inventory has not observed
No certificate in the organization's inventory has this identifier.
>>> client.list_inventory_usages(certificate_identifier='9c1e4b7a2d5f8036e9b2c5f8a1d4e7b0c3f6a9d2e5b8c1f4a7d0e3b6c9f2a5d8')
Source code in docs_src/capo_acm/_services/acm.py
2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 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 | |