EC2 / Client / unlock_snapshot
unlock_snapshot#
- EC2.Client.unlock_snapshot(**kwargs)#
Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. You can’t unlock a snapshot that is locked in compliance mode after the cooling-off period has expired.
See also: AWS API Documentation
Request Syntax
response = client.unlock_snapshot( SnapshotId='string', DryRun=True|False )
- Parameters:
SnapshotId (string) –
[REQUIRED]
The ID of the snapshot to unlock.
DryRun (boolean) – 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
.
- Return type:
dict
- Returns:
Response Syntax
{ 'SnapshotId': 'string' }
Response Structure
(dict) –
SnapshotId (string) –
The ID of the snapshot.