Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new Maintenance Window.
- createMaintenanceWindow :: Text -> Text -> Natural -> Natural -> Bool -> CreateMaintenanceWindow
- data CreateMaintenanceWindow
- cmwClientToken :: Lens' CreateMaintenanceWindow (Maybe Text)
- cmwName :: Lens' CreateMaintenanceWindow Text
- cmwSchedule :: Lens' CreateMaintenanceWindow Text
- cmwDuration :: Lens' CreateMaintenanceWindow Natural
- cmwCutoff :: Lens' CreateMaintenanceWindow Natural
- cmwAllowUnassociatedTargets :: Lens' CreateMaintenanceWindow Bool
- createMaintenanceWindowResponse :: Int -> CreateMaintenanceWindowResponse
- data CreateMaintenanceWindowResponse
- cmwrsWindowId :: Lens' CreateMaintenanceWindowResponse (Maybe Text)
- cmwrsResponseStatus :: Lens' CreateMaintenanceWindowResponse Int
Creating a Request
createMaintenanceWindow Source #
Creates a value of CreateMaintenanceWindow
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmwClientToken
- User-provided idempotency token.cmwName
- The name of the Maintenance Window.cmwSchedule
- The schedule of the Maintenance Window in the form of a cron or rate expression.cmwDuration
- The duration of the Maintenance Window in hours.cmwCutoff
- The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.cmwAllowUnassociatedTargets
- Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.
data CreateMaintenanceWindow Source #
See: createMaintenanceWindow
smart constructor.
Request Lenses
cmwClientToken :: Lens' CreateMaintenanceWindow (Maybe Text) Source #
User-provided idempotency token.
cmwSchedule :: Lens' CreateMaintenanceWindow Text Source #
The schedule of the Maintenance Window in the form of a cron or rate expression.
cmwDuration :: Lens' CreateMaintenanceWindow Natural Source #
The duration of the Maintenance Window in hours.
cmwCutoff :: Lens' CreateMaintenanceWindow Natural Source #
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
cmwAllowUnassociatedTargets :: Lens' CreateMaintenanceWindow Bool Source #
Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.
Destructuring the Response
createMaintenanceWindowResponse Source #
Creates a value of CreateMaintenanceWindowResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmwrsWindowId
- The ID of the created Maintenance Window.cmwrsResponseStatus
- -- | The response status code.
data CreateMaintenanceWindowResponse Source #
See: createMaintenanceWindowResponse
smart constructor.
Response Lenses
cmwrsWindowId :: Lens' CreateMaintenanceWindowResponse (Maybe Text) Source #
The ID of the created Maintenance Window.
cmwrsResponseStatus :: Lens' CreateMaintenanceWindowResponse Int Source #
- - | The response status code.