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.ResetInstanceAttribute
Description
Resets an attribute of an instance to its default value. To reset the
kernel
or ramdisk
, the instance must be in a stopped state. To reset
the sourceDestCheck
, the instance can be either running or stopped.
The sourceDestCheck
attribute controls whether source/destination
checking is enabled. The default value is true
, which means checking
is enabled. This value must be false
for a NAT instance to perform
NAT. For more information, see
NAT Instances
in the Amazon VPC User Guide.
Synopsis
- data ResetInstanceAttribute = ResetInstanceAttribute' {}
- newResetInstanceAttribute :: InstanceAttributeName -> Text -> ResetInstanceAttribute
- resetInstanceAttribute_dryRun :: Lens' ResetInstanceAttribute (Maybe Bool)
- resetInstanceAttribute_attribute :: Lens' ResetInstanceAttribute InstanceAttributeName
- resetInstanceAttribute_instanceId :: Lens' ResetInstanceAttribute Text
- data ResetInstanceAttributeResponse = ResetInstanceAttributeResponse' {
- newResetInstanceAttributeResponse :: ResetInstanceAttributeResponse
Creating a Request
data ResetInstanceAttribute Source #
See: newResetInstanceAttribute
smart constructor.
Constructors
ResetInstanceAttribute' | |
Fields
|
Instances
newResetInstanceAttribute Source #
Arguments
:: InstanceAttributeName | |
-> Text | |
-> ResetInstanceAttribute |
Create a value of ResetInstanceAttribute
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:ResetInstanceAttribute'
, resetInstanceAttribute_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:ResetInstanceAttribute'
, resetInstanceAttribute_attribute
- The attribute to reset.
You can only reset the following attributes: kernel
| ramdisk
|
sourceDestCheck
.
ResetInstanceAttribute
, resetInstanceAttribute_instanceId
- The ID of the instance.
Request Lenses
resetInstanceAttribute_dryRun :: Lens' ResetInstanceAttribute (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
.
resetInstanceAttribute_attribute :: Lens' ResetInstanceAttribute InstanceAttributeName Source #
The attribute to reset.
You can only reset the following attributes: kernel
| ramdisk
|
sourceDestCheck
.
resetInstanceAttribute_instanceId :: Lens' ResetInstanceAttribute Text Source #
The ID of the instance.
Destructuring the Response
data ResetInstanceAttributeResponse Source #
See: newResetInstanceAttributeResponse
smart constructor.
Constructors
ResetInstanceAttributeResponse' | |
Instances
Generic ResetInstanceAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetInstanceAttribute Associated Types type Rep ResetInstanceAttributeResponse :: Type -> Type # | |
Read ResetInstanceAttributeResponse Source # | |
Show ResetInstanceAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetInstanceAttribute Methods showsPrec :: Int -> ResetInstanceAttributeResponse -> ShowS # show :: ResetInstanceAttributeResponse -> String # showList :: [ResetInstanceAttributeResponse] -> ShowS # | |
NFData ResetInstanceAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetInstanceAttribute Methods rnf :: ResetInstanceAttributeResponse -> () # | |
Eq ResetInstanceAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetInstanceAttribute | |
type Rep ResetInstanceAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetInstanceAttribute |
newResetInstanceAttributeResponse :: ResetInstanceAttributeResponse Source #
Create a value of ResetInstanceAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.