reset_image_attribute
async
¶
reset_image_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
attribute: Optional[ResetImageAttributeName] = None,
image_id: Optional[ImageId] = None,
dry_run: Optional[Boolean] = None,
) -> None
Resets an attribute of an AMI to its default value.
Parameters:
-
attribute(Optional[ResetImageAttributeName], default:None) –The attribute to reset (currently you can only reset the launch permission attribute).
-
image_id(Optional[ImageId], default:None) –The ID of the AMI.
-
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.
Examples:
To reset the launchPermission attribute This example resets the launchPermission attribute for the specified AMI. By default, AMIs are private.
Source code in docs_src/capo_ec2/_services/async_ec2.py
58700 58701 58702 58703 58704 58705 58706 58707 58708 58709 58710 58711 58712 58713 58714 58715 58716 58717 58718 58719 58720 58721 58722 58723 58724 58725 58726 58727 58728 58729 58730 58731 58732 58733 58734 58735 58736 58737 58738 58739 58740 58741 58742 58743 58744 58745 58746 58747 58748 58749 58750 58751 58752 58753 58754 58755 58756 58757 | |