aws ec2 lock-snapshot
Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--cool-off-periodThe cooling-off period during which you can unlock the snapshot or modify the lock settings after locking the snapshot in compliance mode, in hours.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--expiration-dateThe date and time at which the snapshot lock is to automatically expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).--lock-durationThe period of time for which to lock the snapshot, in days.--lock-modeThe mode in which to lock the snapshot.--snapshot-idThe ID of the snapshot to lock.