Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Manually starts server maintenance. This command can be useful if an earlier maintenance attempt failed, and the underlying cause of maintenance failure has been resolved. The server will switch to UNDER_MAINTENANCE
state, while maintenace is in progress.
Maintenace can only be started for HEALTHY
and UNHEALTHY
servers. A InvalidStateException
is thrown otherwise. A ResourceNotFoundException
is thrown when the server does not exist. A ValidationException
is raised when parameters of the request are invalid.
- startMaintenance :: Text -> StartMaintenance
- data StartMaintenance
- smServerName :: Lens' StartMaintenance Text
- startMaintenanceResponse :: Int -> StartMaintenanceResponse
- data StartMaintenanceResponse
- smrsServer :: Lens' StartMaintenanceResponse (Maybe Server)
- smrsResponseStatus :: Lens' StartMaintenanceResponse Int
Creating a Request
Creates a value of StartMaintenance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
smServerName
- The name of the server on which to run maintenance.
data StartMaintenance Source #
See: startMaintenance
smart constructor.
Request Lenses
smServerName :: Lens' StartMaintenance Text Source #
The name of the server on which to run maintenance.
Destructuring the Response
startMaintenanceResponse Source #
Creates a value of StartMaintenanceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
smrsServer
- Contains the response to aStartMaintenance
request.smrsResponseStatus
- -- | The response status code.
data StartMaintenanceResponse Source #
See: startMaintenanceResponse
smart constructor.
Response Lenses
smrsServer :: Lens' StartMaintenanceResponse (Maybe Server) Source #
Contains the response to a StartMaintenance
request.
smrsResponseStatus :: Lens' StartMaintenanceResponse Int Source #
- - | The response status code.