detach_image_watermark
¶
detach_image_watermark(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
38233 38234 38235 38236 38237 38238 38239 38240 38241 38242 38243 38244 38245 38246 38247 38248 38249 38250 38251 38252 38253 38254 38255 38256 38257 38258 38259 38260 38261 38262 38263 38264 38265 38266 38267 38268 38269 38270 38271 38272 38273 38274 38275 38276 38277 38278 38279 38280 38281 38282 38283 | |