| Copyright | (c) 2013-2018 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.UpdateServer
Description
Updates settings for a server.
This operation is synchronous.
Synopsis
- 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
Arguments
| :: Text | |
| -> UpdateServer |
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 totruedisables 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.
Instances
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
Arguments
| :: Int | |
| -> UpdateServerResponse |
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 aUpdateServerrequest.usrsResponseStatus- -- | The response status code.
data UpdateServerResponse Source #
See: updateServerResponse smart constructor.
Instances
Response Lenses
usrsServer :: Lens' UpdateServerResponse (Maybe Server) Source #
Contains the response to a UpdateServer request.
usrsResponseStatus :: Lens' UpdateServerResponse Int Source #
- - | The response status code.