detach_image_watermark
async
¶
detach_image_watermark(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
image_id: Optional[ImageId] = None,
watermark_key: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DetachImageWatermarkResult
Removes a watermark from the specified AMI. This is an idempotent operation. It succeeds even if the watermark does not exist on the image.
Removing a watermark from an image does not affect derivative images that already carry the watermark.
Only the AMI owner can detach watermarks.
Parameters:
-
image_id(Optional[ImageId], default:None) –The ID of the AMI.
-
watermark_key(Optional[String], default:None) –The watermark key to remove, in
accountId:watermarkNameformat (for example,123456789012:approvedAmi). -
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
38735 38736 38737 38738 38739 38740 38741 38742 38743 38744 38745 38746 38747 38748 38749 38750 38751 38752 38753 38754 38755 38756 38757 38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 38769 38770 38771 38772 38773 38774 38775 38776 38777 38778 38779 38780 38781 38782 38783 38784 38785 38786 | |