describe_locked_snapshots
¶
describe_locked_snapshots(
*,
config_overrides: Optional[EC2ClientConfig] = None,
filters: Optional[FilterList] = None,
max_results: Optional[DescribeLockedSnapshotsMaxResults] = None,
next_token: Optional[String] = None,
snapshot_ids: Optional[SnapshotIdStringList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeLockedSnapshotsResult
Describes the lock status for a snapshot.
Parameters:
-
filters(Optional[FilterList], default:None) –The filters.
-
lock-state- The state of the snapshot lock (compliance-cooloff|governance|compliance|expired).
-
-
max_results(Optional[DescribeLockedSnapshotsMaxResults], 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 for which to view the lock status.
-
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/ec2.py
29527 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 29539 29540 29541 29542 29543 29544 29545 29546 29547 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 29564 29565 29566 29567 29568 29569 29570 29571 29572 29573 29574 29575 29576 29577 29578 29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 | |