| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpsWorksCM.UpdateServer
Description
Updates settings for a server.
This operation is synchronous.
Synopsis
- data UpdateServer = UpdateServer' {}
- newUpdateServer :: Text -> UpdateServer
- updateServer_backupRetentionCount :: Lens' UpdateServer (Maybe Int)
- updateServer_disableAutomatedBackup :: Lens' UpdateServer (Maybe Bool)
- updateServer_preferredBackupWindow :: Lens' UpdateServer (Maybe Text)
- updateServer_preferredMaintenanceWindow :: Lens' UpdateServer (Maybe Text)
- 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.
Constructors
| UpdateServer' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateServer |
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:
UpdateServer, updateServer_backupRetentionCount - Sets the number of automated backups that you want to keep.
UpdateServer, updateServer_disableAutomatedBackup - Setting DisableAutomatedBackup to true disables automated or scheduled
backups. Automated backups are enabled by default.
UpdateServer, updateServer_preferredBackupWindow - Undocumented member.
UpdateServer, updateServer_preferredMaintenanceWindow - Undocumented member.
UpdateServer, updateServer_serverName - The name of the server to update.
Request Lenses
updateServer_backupRetentionCount :: Lens' UpdateServer (Maybe Int) Source #
Sets the number of automated backups that you want to keep.
updateServer_disableAutomatedBackup :: Lens' UpdateServer (Maybe Bool) Source #
Setting DisableAutomatedBackup to true disables automated or scheduled
backups. Automated backups are enabled by default.
updateServer_preferredBackupWindow :: Lens' UpdateServer (Maybe Text) Source #
Undocumented member.
updateServer_preferredMaintenanceWindow :: Lens' UpdateServer (Maybe Text) Source #
Undocumented member.
updateServer_serverName :: Lens' UpdateServer Text Source #
The name of the server to update.
Destructuring the Response
data UpdateServerResponse Source #
See: newUpdateServerResponse smart constructor.
Constructors
| UpdateServerResponse' | |
Fields
| |
Instances
newUpdateServerResponse Source #
Arguments
| :: Int | |
| -> UpdateServerResponse |
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.