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 |
Updates settings for a server.
This operation is synchronous.
- updateServer :: Text -> UpdateServer
- data UpdateServer
- usDisableAutomatedBackup :: Lens' UpdateServer (Maybe Bool)
- usPreferredMaintenanceWindow :: Lens' UpdateServer (Maybe Text)
- usPreferredBackupWindow :: Lens' UpdateServer (Maybe Text)
- usBackupRetentionCount :: Lens' UpdateServer (Maybe Int)
- usServerName :: Lens' UpdateServer Text
- updateServerResponse :: Int -> UpdateServerResponse
- data UpdateServerResponse
- usrsServer :: Lens' UpdateServerResponse (Maybe Server)
- usrsResponseStatus :: Lens' UpdateServerResponse Int
Creating a Request
Creates a value of UpdateServer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
usDisableAutomatedBackup
- Setting DisableAutomatedBackup totrue
disables automated or scheduled backups. Automated backups are enabled by default.usPreferredMaintenanceWindow
- Undocumented member.usPreferredBackupWindow
- Undocumented member.usBackupRetentionCount
- Sets the number of automated backups that you want to keep.usServerName
- The name of the server to update.
data UpdateServer Source #
See: updateServer
smart constructor.
Request Lenses
usDisableAutomatedBackup :: Lens' UpdateServer (Maybe Bool) Source #
Setting DisableAutomatedBackup to true
disables automated or scheduled backups. Automated backups are enabled by default.
usPreferredMaintenanceWindow :: Lens' UpdateServer (Maybe Text) Source #
Undocumented member.
usPreferredBackupWindow :: Lens' UpdateServer (Maybe Text) Source #
Undocumented member.
usBackupRetentionCount :: Lens' UpdateServer (Maybe Int) Source #
Sets the number of automated backups that you want to keep.
usServerName :: Lens' UpdateServer Text Source #
The name of the server to update.
Destructuring the Response
Creates a value of UpdateServerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
usrsServer
- Contains the response to aUpdateServer
request.usrsResponseStatus
- -- | The response status code.
data UpdateServerResponse Source #
See: updateServerResponse
smart constructor.
Response Lenses
usrsServer :: Lens' UpdateServerResponse (Maybe Server) Source #
Contains the response to a UpdateServer
request.
usrsResponseStatus :: Lens' UpdateServerResponse Int Source #
- - | The response status code.