| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.OpsWorksCM.StartMaintenance
Description
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 is in an UNDER_MAINTENANCE state while maintenance is in progress.
Maintenance can only be started on servers in HEALTHY and UNHEALTHY states. Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.
- startMaintenance :: Text -> StartMaintenance
- data StartMaintenance
- smEngineAttributes :: Lens' StartMaintenance [EngineAttribute]
- smServerName :: Lens' StartMaintenance Text
- startMaintenanceResponse :: Int -> StartMaintenanceResponse
- data StartMaintenanceResponse
- smrsServer :: Lens' StartMaintenanceResponse (Maybe Server)
- smrsResponseStatus :: Lens' StartMaintenanceResponse Int
Creating a Request
Arguments
| :: Text | |
| -> StartMaintenance |
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:
smEngineAttributes- Engine attributes that are specific to the server on which you want to run maintenance.smServerName- The name of the server on which to run maintenance.
data StartMaintenance Source #
See: startMaintenance smart constructor.
Instances
Request Lenses
smEngineAttributes :: Lens' StartMaintenance [EngineAttribute] Source #
Engine attributes that are specific to the server on which you want to run maintenance.
smServerName :: Lens' StartMaintenance Text Source #
The name of the server on which to run maintenance.
Destructuring the Response
startMaintenanceResponse Source #
Arguments
| :: Int | |
| -> StartMaintenanceResponse |
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 aStartMaintenancerequest.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.