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 |
Updates settings for a server.
This operation is synchronous.
Synopsis
- data UpdateServer = UpdateServer' {}
- newUpdateServer :: Text -> UpdateServer
- updateServer_disableAutomatedBackup :: Lens' UpdateServer (Maybe Bool)
- updateServer_preferredMaintenanceWindow :: Lens' UpdateServer (Maybe Text)
- updateServer_preferredBackupWindow :: Lens' UpdateServer (Maybe Text)
- updateServer_backupRetentionCount :: Lens' UpdateServer (Maybe Int)
- updateServer_serverName :: Lens' UpdateServer Text
- data UpdateServerResponse = UpdateServerResponse' {
- server :: Maybe Server
- httpStatus :: Int
- newUpdateServerResponse :: Int -> UpdateServerResponse
- updateServerResponse_server :: Lens' UpdateServerResponse (Maybe Server)
- updateServerResponse_httpStatus :: Lens' UpdateServerResponse Int
Creating a Request
data UpdateServer Source #
See: newUpdateServer
smart constructor.
UpdateServer' | |
|
Instances
Create a value of UpdateServer
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:disableAutomatedBackup:UpdateServer'
, updateServer_disableAutomatedBackup
- Setting DisableAutomatedBackup to true
disables automated or scheduled
backups. Automated backups are enabled by default.
$sel:preferredMaintenanceWindow:UpdateServer'
, updateServer_preferredMaintenanceWindow
- Undocumented member.
$sel:preferredBackupWindow:UpdateServer'
, updateServer_preferredBackupWindow
- Undocumented member.
$sel:backupRetentionCount:UpdateServer'
, updateServer_backupRetentionCount
- Sets the number of automated backups that you want to keep.
$sel:serverName:UpdateServer'
, updateServer_serverName
- The name of the server to update.
Request Lenses
updateServer_disableAutomatedBackup :: Lens' UpdateServer (Maybe Bool) Source #
Setting DisableAutomatedBackup to true
disables automated or scheduled
backups. Automated backups are enabled by default.
updateServer_preferredMaintenanceWindow :: Lens' UpdateServer (Maybe Text) Source #
Undocumented member.
updateServer_preferredBackupWindow :: Lens' UpdateServer (Maybe Text) Source #
Undocumented member.
updateServer_backupRetentionCount :: Lens' UpdateServer (Maybe Int) Source #
Sets the number of automated backups that you want to keep.
updateServer_serverName :: Lens' UpdateServer Text Source #
The name of the server to update.
Destructuring the Response
data UpdateServerResponse Source #
See: newUpdateServerResponse
smart constructor.
UpdateServerResponse' | |
|
Instances
newUpdateServerResponse Source #
Create a value of UpdateServerResponse
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:UpdateServerResponse'
, updateServerResponse_server
- Contains the response to a UpdateServer
request.
$sel:httpStatus:UpdateServerResponse'
, updateServerResponse_httpStatus
- The response's http status code.
Response Lenses
updateServerResponse_server :: Lens' UpdateServerResponse (Maybe Server) Source #
Contains the response to a UpdateServer
request.
updateServerResponse_httpStatus :: Lens' UpdateServerResponse Int Source #
The response's http status code.