| 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.SSM.UpdateMaintenanceWindow
Description
Updates an existing Maintenance Window. Only specified parameters are modified.
Synopsis
- updateMaintenanceWindow :: Text -> UpdateMaintenanceWindow
- data UpdateMaintenanceWindow
- umwReplace :: Lens' UpdateMaintenanceWindow (Maybe Bool)
- umwEnabled :: Lens' UpdateMaintenanceWindow (Maybe Bool)
- umwSchedule :: Lens' UpdateMaintenanceWindow (Maybe Text)
- umwName :: Lens' UpdateMaintenanceWindow (Maybe Text)
- umwCutoff :: Lens' UpdateMaintenanceWindow (Maybe Natural)
- umwAllowUnassociatedTargets :: Lens' UpdateMaintenanceWindow (Maybe Bool)
- umwDescription :: Lens' UpdateMaintenanceWindow (Maybe Text)
- umwDuration :: Lens' UpdateMaintenanceWindow (Maybe Natural)
- umwWindowId :: Lens' UpdateMaintenanceWindow Text
- updateMaintenanceWindowResponse :: Int -> UpdateMaintenanceWindowResponse
- data UpdateMaintenanceWindowResponse
- umwrsEnabled :: Lens' UpdateMaintenanceWindowResponse (Maybe Bool)
- umwrsSchedule :: Lens' UpdateMaintenanceWindowResponse (Maybe Text)
- umwrsName :: Lens' UpdateMaintenanceWindowResponse (Maybe Text)
- umwrsCutoff :: Lens' UpdateMaintenanceWindowResponse (Maybe Natural)
- umwrsAllowUnassociatedTargets :: Lens' UpdateMaintenanceWindowResponse (Maybe Bool)
- umwrsDescription :: Lens' UpdateMaintenanceWindowResponse (Maybe Text)
- umwrsDuration :: Lens' UpdateMaintenanceWindowResponse (Maybe Natural)
- umwrsWindowId :: Lens' UpdateMaintenanceWindowResponse (Maybe Text)
- umwrsResponseStatus :: Lens' UpdateMaintenanceWindowResponse Int
Creating a Request
updateMaintenanceWindow Source #
Arguments
| :: Text | |
| -> UpdateMaintenanceWindow |
Creates a value of UpdateMaintenanceWindow with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
umwReplace- If True, then all fields that are required by the CreateMaintenanceWindow action are also required for this API request. Optional fields that are not specified are set to null.umwEnabled- Whether the Maintenance Window is enabled.umwSchedule- The schedule of the Maintenance Window in the form of a cron or rate expression.umwName- The name of the Maintenance Window.umwCutoff- The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.umwAllowUnassociatedTargets- Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.umwDescription- An optional description for the update request.umwDuration- The duration of the Maintenance Window in hours.umwWindowId- The ID of the Maintenance Window to update.
data UpdateMaintenanceWindow Source #
See: updateMaintenanceWindow smart constructor.
Instances
Request Lenses
umwReplace :: Lens' UpdateMaintenanceWindow (Maybe Bool) Source #
If True, then all fields that are required by the CreateMaintenanceWindow action are also required for this API request. Optional fields that are not specified are set to null.
umwEnabled :: Lens' UpdateMaintenanceWindow (Maybe Bool) Source #
Whether the Maintenance Window is enabled.
umwSchedule :: Lens' UpdateMaintenanceWindow (Maybe Text) Source #
The schedule of the Maintenance Window in the form of a cron or rate expression.
umwCutoff :: Lens' UpdateMaintenanceWindow (Maybe Natural) Source #
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
umwAllowUnassociatedTargets :: Lens' UpdateMaintenanceWindow (Maybe Bool) Source #
Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.
umwDescription :: Lens' UpdateMaintenanceWindow (Maybe Text) Source #
An optional description for the update request.
umwDuration :: Lens' UpdateMaintenanceWindow (Maybe Natural) Source #
The duration of the Maintenance Window in hours.
umwWindowId :: Lens' UpdateMaintenanceWindow Text Source #
The ID of the Maintenance Window to update.
Destructuring the Response
updateMaintenanceWindowResponse Source #
Arguments
| :: Int | |
| -> UpdateMaintenanceWindowResponse |
Creates a value of UpdateMaintenanceWindowResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
umwrsEnabled- Whether the Maintenance Window is enabled.umwrsSchedule- The schedule of the Maintenance Window in the form of a cron or rate expression.umwrsName- The name of the Maintenance Window.umwrsCutoff- The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.umwrsAllowUnassociatedTargets- Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.umwrsDescription- An optional description of the update.umwrsDuration- The duration of the Maintenance Window in hours.umwrsWindowId- The ID of the created Maintenance Window.umwrsResponseStatus- -- | The response status code.
data UpdateMaintenanceWindowResponse Source #
See: updateMaintenanceWindowResponse smart constructor.
Instances
Response Lenses
umwrsEnabled :: Lens' UpdateMaintenanceWindowResponse (Maybe Bool) Source #
Whether the Maintenance Window is enabled.
umwrsSchedule :: Lens' UpdateMaintenanceWindowResponse (Maybe Text) Source #
The schedule of the Maintenance Window in the form of a cron or rate expression.
umwrsName :: Lens' UpdateMaintenanceWindowResponse (Maybe Text) Source #
The name of the Maintenance Window.
umwrsCutoff :: Lens' UpdateMaintenanceWindowResponse (Maybe Natural) Source #
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
umwrsAllowUnassociatedTargets :: Lens' UpdateMaintenanceWindowResponse (Maybe Bool) Source #
Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.
umwrsDescription :: Lens' UpdateMaintenanceWindowResponse (Maybe Text) Source #
An optional description of the update.
umwrsDuration :: Lens' UpdateMaintenanceWindowResponse (Maybe Natural) Source #
The duration of the Maintenance Window in hours.
umwrsWindowId :: Lens' UpdateMaintenanceWindowResponse (Maybe Text) Source #
The ID of the created Maintenance Window.
umwrsResponseStatus :: Lens' UpdateMaintenanceWindowResponse Int Source #
- - | The response status code.