EC2.Client.
restore_image_from_recycle_bin
(**kwargs)¶Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide .
See also: AWS API Documentation
Request Syntax
response = client.restore_image_from_recycle_bin(
ImageId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the AMI to restore.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.dict
Response Syntax
{
'Return': True|False
}
Response Structure
(dict) --
Return (boolean) --
Returns true
if the request succeeds; otherwise, it returns an error.