Copyright | (c) 2013-2021 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 |
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.
Synopsis
- data StartMaintenance = StartMaintenance' {}
- newStartMaintenance :: Text -> StartMaintenance
- startMaintenance_engineAttributes :: Lens' StartMaintenance (Maybe [EngineAttribute])
- startMaintenance_serverName :: Lens' StartMaintenance Text
- data StartMaintenanceResponse = StartMaintenanceResponse' {
- server :: Maybe Server
- httpStatus :: Int
- newStartMaintenanceResponse :: Int -> StartMaintenanceResponse
- startMaintenanceResponse_server :: Lens' StartMaintenanceResponse (Maybe Server)
- startMaintenanceResponse_httpStatus :: Lens' StartMaintenanceResponse Int
Creating a Request
data StartMaintenance Source #
See: newStartMaintenance
smart constructor.
StartMaintenance' | |
|
Instances
Create a value of StartMaintenance
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:engineAttributes:StartMaintenance'
, startMaintenance_engineAttributes
- Engine attributes that are specific to the server on which you want to
run maintenance.
Attributes accepted in a StartMaintenance request for Chef
CHEF_MAJOR_UPGRADE
: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenance
request and set the value totrue
to upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
$sel:serverName:StartMaintenance'
, startMaintenance_serverName
- The name of the server on which to run maintenance.
Request Lenses
startMaintenance_engineAttributes :: Lens' StartMaintenance (Maybe [EngineAttribute]) Source #
Engine attributes that are specific to the server on which you want to run maintenance.
Attributes accepted in a StartMaintenance request for Chef
CHEF_MAJOR_UPGRADE
: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenance
request and set the value totrue
to upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
startMaintenance_serverName :: Lens' StartMaintenance Text Source #
The name of the server on which to run maintenance.
Destructuring the Response
data StartMaintenanceResponse Source #
See: newStartMaintenanceResponse
smart constructor.
StartMaintenanceResponse' | |
|
Instances
newStartMaintenanceResponse Source #
Create a value of StartMaintenanceResponse
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:server:StartMaintenanceResponse'
, startMaintenanceResponse_server
- Contains the response to a StartMaintenance
request.
$sel:httpStatus:StartMaintenanceResponse'
, startMaintenanceResponse_httpStatus
- The response's http status code.
Response Lenses
startMaintenanceResponse_server :: Lens' StartMaintenanceResponse (Maybe Server) Source #
Contains the response to a StartMaintenance
request.
startMaintenanceResponse_httpStatus :: Lens' StartMaintenanceResponse Int Source #
The response's http status code.