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 |
Creates a new Maintenance Window.
- createMaintenanceWindow :: Text -> Text -> Natural -> Natural -> Bool -> CreateMaintenanceWindow
- data CreateMaintenanceWindow
- cmwClientToken :: Lens' CreateMaintenanceWindow (Maybe Text)
- cmwDescription :: 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.cmwDescription
- An optional description for the Maintenance Window. We recommend specifying a description to help you organize your Maintenance Windows.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
- Enables a Maintenance Window task to execute on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
data CreateMaintenanceWindow Source #
See: createMaintenanceWindow
smart constructor.
Request Lenses
cmwClientToken :: Lens' CreateMaintenanceWindow (Maybe Text) Source #
User-provided idempotency token.
cmwDescription :: Lens' CreateMaintenanceWindow (Maybe Text) Source #
An optional description for the Maintenance Window. We recommend specifying a description to help you organize your Maintenance Windows.
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 #
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
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.