describe_locked_snapshots
async
¶
describe_locked_snapshots(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
29931 29932 29933 29934 29935 29936 29937 29938 29939 29940 29941 29942 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 | |