list_snapshots_in_recycle_bin
async
¶
list_snapshots_in_recycle_bin(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
max_results: Optional[ListSnapshotsInRecycleBinMaxResults] = None,
next_token: Optional[String] = None,
snapshot_ids: Optional[SnapshotIdStringList] = None,
dry_run: Optional[Boolean] = None,
) -> ListSnapshotsInRecycleBinResult
Lists one or more snapshots that are currently in the Recycle Bin.
Parameters:
-
max_results(Optional[ListSnapshotsInRecycleBinMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
snapshot_ids(Optional[SnapshotIdStringList], default:None) –The IDs of the snapshots to list. Omit this parameter to list all of the snapshots that are in the Recycle Bin.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
49291 49292 49293 49294 49295 49296 49297 49298 49299 49300 49301 49302 49303 49304 49305 49306 49307 49308 49309 49310 49311 49312 49313 49314 49315 49316 49317 49318 49319 49320 49321 49322 49323 49324 49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 49348 49349 49350 | |