| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.EC2.ResetImageAttribute
Description
Resets an attribute of an AMI to its default value.
Synopsis
- data ResetImageAttribute = ResetImageAttribute' {}
- newResetImageAttribute :: ResetImageAttributeName -> Text -> ResetImageAttribute
- resetImageAttribute_dryRun :: Lens' ResetImageAttribute (Maybe Bool)
- resetImageAttribute_attribute :: Lens' ResetImageAttribute ResetImageAttributeName
- resetImageAttribute_imageId :: Lens' ResetImageAttribute Text
- data ResetImageAttributeResponse = ResetImageAttributeResponse' {
- newResetImageAttributeResponse :: ResetImageAttributeResponse
Creating a Request
data ResetImageAttribute Source #
Contains the parameters for ResetImageAttribute.
See: newResetImageAttribute smart constructor.
Constructors
| ResetImageAttribute' | |
Fields
| |
Instances
newResetImageAttribute Source #
Arguments
| :: ResetImageAttributeName | |
| -> Text | |
| -> ResetImageAttribute |
Create a value of ResetImageAttribute with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:ResetImageAttribute', resetImageAttribute_dryRun - 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 is UnauthorizedOperation.
$sel:attribute:ResetImageAttribute', resetImageAttribute_attribute - The attribute to reset (currently you can only reset the launch
permission attribute).
ResetImageAttribute, resetImageAttribute_imageId - The ID of the AMI.
Request Lenses
resetImageAttribute_dryRun :: Lens' ResetImageAttribute (Maybe Bool) Source #
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 is UnauthorizedOperation.
resetImageAttribute_attribute :: Lens' ResetImageAttribute ResetImageAttributeName Source #
The attribute to reset (currently you can only reset the launch permission attribute).
resetImageAttribute_imageId :: Lens' ResetImageAttribute Text Source #
The ID of the AMI.
Destructuring the Response
data ResetImageAttributeResponse Source #
See: newResetImageAttributeResponse smart constructor.
Constructors
| ResetImageAttributeResponse' | |
Instances
newResetImageAttributeResponse :: ResetImageAttributeResponse Source #
Create a value of ResetImageAttributeResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.