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 |
Retrieves a Maintenance Window.
Synopsis
- getMaintenanceWindow :: Text -> GetMaintenanceWindow
- data GetMaintenanceWindow
- gmwWindowId :: Lens' GetMaintenanceWindow Text
- getMaintenanceWindowResponse :: Int -> GetMaintenanceWindowResponse
- data GetMaintenanceWindowResponse
- gmwrsEnabled :: Lens' GetMaintenanceWindowResponse (Maybe Bool)
- gmwrsSchedule :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- gmwrsCreatedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime)
- gmwrsName :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- gmwrsModifiedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime)
- gmwrsCutoff :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- gmwrsAllowUnassociatedTargets :: Lens' GetMaintenanceWindowResponse (Maybe Bool)
- gmwrsDescription :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- gmwrsDuration :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- gmwrsWindowId :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- gmwrsResponseStatus :: Lens' GetMaintenanceWindowResponse Int
Creating a Request
Creates a value of GetMaintenanceWindow
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gmwWindowId
- The ID of the desired Maintenance Window.
data GetMaintenanceWindow Source #
See: getMaintenanceWindow
smart constructor.
Instances
Request Lenses
gmwWindowId :: Lens' GetMaintenanceWindow Text Source #
The ID of the desired Maintenance Window.
Destructuring the Response
getMaintenanceWindowResponse Source #
Creates a value of GetMaintenanceWindowResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gmwrsEnabled
- Whether the Maintenance Windows is enabled.gmwrsSchedule
- The schedule of the Maintenance Window in the form of a cron or rate expression.gmwrsCreatedDate
- The date the Maintenance Window was created.gmwrsName
- The name of the Maintenance Window.gmwrsModifiedDate
- The date the Maintenance Window was last modified.gmwrsCutoff
- The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.gmwrsAllowUnassociatedTargets
- Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.gmwrsDescription
- The description of the Maintenance Window.gmwrsDuration
- The duration of the Maintenance Window in hours.gmwrsWindowId
- The ID of the created Maintenance Window.gmwrsResponseStatus
- -- | The response status code.
data GetMaintenanceWindowResponse Source #
See: getMaintenanceWindowResponse
smart constructor.
Instances
Response Lenses
gmwrsEnabled :: Lens' GetMaintenanceWindowResponse (Maybe Bool) Source #
Whether the Maintenance Windows is enabled.
gmwrsSchedule :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The schedule of the Maintenance Window in the form of a cron or rate expression.
gmwrsCreatedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime) Source #
The date the Maintenance Window was created.
gmwrsName :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The name of the Maintenance Window.
gmwrsModifiedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime) Source #
The date the Maintenance Window was last modified.
gmwrsCutoff :: Lens' GetMaintenanceWindowResponse (Maybe Natural) Source #
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
gmwrsAllowUnassociatedTargets :: Lens' GetMaintenanceWindowResponse (Maybe Bool) Source #
Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.
gmwrsDescription :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The description of the Maintenance Window.
gmwrsDuration :: Lens' GetMaintenanceWindowResponse (Maybe Natural) Source #
The duration of the Maintenance Window in hours.
gmwrsWindowId :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The ID of the created Maintenance Window.
gmwrsResponseStatus :: Lens' GetMaintenanceWindowResponse Int Source #
- - | The response status code.