cancel_image_launch_permission
(**kwargs)¶Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel having an AMI shared with your Amazon Web Services account in the Amazon EC2 User Guide .
See also: AWS API Documentation
Request Syntax
response = client.cancel_image_launch_permission(
ImageId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the AMI that was shared with your Amazon Web Services account.
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.