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 |
Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.
For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.
Synopsis
- data RebootInstances = RebootInstances' {
- dryRun :: Maybe Bool
- instanceIds :: [Text]
- newRebootInstances :: RebootInstances
- rebootInstances_dryRun :: Lens' RebootInstances (Maybe Bool)
- rebootInstances_instanceIds :: Lens' RebootInstances [Text]
- data RebootInstancesResponse = RebootInstancesResponse' {
- newRebootInstancesResponse :: RebootInstancesResponse
Creating a Request
data RebootInstances Source #
See: newRebootInstances
smart constructor.
RebootInstances' | |
|
Instances
newRebootInstances :: RebootInstances Source #
Create a value of RebootInstances
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:RebootInstances'
, rebootInstances_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
.
RebootInstances
, rebootInstances_instanceIds
- The instance IDs.
Request Lenses
rebootInstances_dryRun :: Lens' RebootInstances (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
.
rebootInstances_instanceIds :: Lens' RebootInstances [Text] Source #
The instance IDs.
Destructuring the Response
data RebootInstancesResponse Source #
See: newRebootInstancesResponse
smart constructor.
Instances
Generic RebootInstancesResponse Source # | |
Defined in Amazonka.EC2.RebootInstances type Rep RebootInstancesResponse :: Type -> Type # | |
Read RebootInstancesResponse Source # | |
Show RebootInstancesResponse Source # | |
Defined in Amazonka.EC2.RebootInstances showsPrec :: Int -> RebootInstancesResponse -> ShowS # show :: RebootInstancesResponse -> String # showList :: [RebootInstancesResponse] -> ShowS # | |
NFData RebootInstancesResponse Source # | |
Defined in Amazonka.EC2.RebootInstances rnf :: RebootInstancesResponse -> () # | |
Eq RebootInstancesResponse Source # | |
Defined in Amazonka.EC2.RebootInstances | |
type Rep RebootInstancesResponse Source # | |
newRebootInstancesResponse :: RebootInstancesResponse Source #
Create a value of RebootInstancesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.