| 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.SSM.GetMaintenanceWindow
Description
Retrieves a maintenance window.
Synopsis
- data GetMaintenanceWindow = GetMaintenanceWindow' {}
- newGetMaintenanceWindow :: Text -> GetMaintenanceWindow
- getMaintenanceWindow_windowId :: Lens' GetMaintenanceWindow Text
- data GetMaintenanceWindowResponse = GetMaintenanceWindowResponse' {
- allowUnassociatedTargets :: Maybe Bool
- createdDate :: Maybe POSIX
- cutoff :: Maybe Natural
- description :: Maybe (Sensitive Text)
- duration :: Maybe Natural
- enabled :: Maybe Bool
- endDate :: Maybe Text
- modifiedDate :: Maybe POSIX
- name :: Maybe Text
- nextExecutionTime :: Maybe Text
- schedule :: Maybe Text
- scheduleOffset :: Maybe Natural
- scheduleTimezone :: Maybe Text
- startDate :: Maybe Text
- windowId :: Maybe Text
- httpStatus :: Int
- newGetMaintenanceWindowResponse :: Int -> GetMaintenanceWindowResponse
- getMaintenanceWindowResponse_allowUnassociatedTargets :: Lens' GetMaintenanceWindowResponse (Maybe Bool)
- getMaintenanceWindowResponse_createdDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime)
- getMaintenanceWindowResponse_cutoff :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- getMaintenanceWindowResponse_description :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_duration :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- getMaintenanceWindowResponse_enabled :: Lens' GetMaintenanceWindowResponse (Maybe Bool)
- getMaintenanceWindowResponse_endDate :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_modifiedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime)
- getMaintenanceWindowResponse_name :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_nextExecutionTime :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_schedule :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_scheduleOffset :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- getMaintenanceWindowResponse_scheduleTimezone :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_startDate :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_windowId :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_httpStatus :: Lens' GetMaintenanceWindowResponse Int
Creating a Request
data GetMaintenanceWindow Source #
See: newGetMaintenanceWindow smart constructor.
Constructors
| GetMaintenanceWindow' | |
Instances
newGetMaintenanceWindow Source #
Arguments
| :: Text | |
| -> GetMaintenanceWindow |
Create a value of GetMaintenanceWindow 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:
GetMaintenanceWindow, getMaintenanceWindow_windowId - The ID of the maintenance window for which you want to retrieve
information.
Request Lenses
getMaintenanceWindow_windowId :: Lens' GetMaintenanceWindow Text Source #
The ID of the maintenance window for which you want to retrieve information.
Destructuring the Response
data GetMaintenanceWindowResponse Source #
See: newGetMaintenanceWindowResponse smart constructor.
Constructors
| GetMaintenanceWindowResponse' | |
Fields
| |
Instances
newGetMaintenanceWindowResponse Source #
Create a value of GetMaintenanceWindowResponse 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:allowUnassociatedTargets:GetMaintenanceWindowResponse', getMaintenanceWindowResponse_allowUnassociatedTargets - Whether targets must be registered with the maintenance window before
tasks can be defined for those targets.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_createdDate - The date the maintenance window was created.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_cutoff - The number of hours before the end of the maintenance window that Amazon
Web Services Systems Manager stops scheduling new tasks for execution.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_description - The description of the maintenance window.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_duration - The duration of the maintenance window in hours.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_enabled - Indicates whether the maintenance window is enabled.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_endDate - The date and time, in ISO-8601 Extended format, for when the maintenance
window is scheduled to become inactive. The maintenance window won't
run after this specified time.
$sel:modifiedDate:GetMaintenanceWindowResponse', getMaintenanceWindowResponse_modifiedDate - The date the maintenance window was last modified.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_name - The name of the maintenance window.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_nextExecutionTime - The next time the maintenance window will actually run, taking into
account any specified times for the maintenance window to become active
or inactive.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_schedule - The schedule of the maintenance window in the form of a cron or rate
expression.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_scheduleOffset - The number of days to wait to run a maintenance window after the
scheduled cron expression date and time.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_scheduleTimezone - The time zone that the scheduled maintenance window executions are based
on, in Internet Assigned Numbers Authority (IANA) format. For example:
"America/Los_Angeles", "UTC", or "Asia/Seoul". For more
information, see the
Time Zone Database on the IANA
website.
GetMaintenanceWindowResponse, getMaintenanceWindowResponse_startDate - The date and time, in ISO-8601 Extended format, for when the maintenance
window is scheduled to become active. The maintenance window won't run
before this specified time.
GetMaintenanceWindow, getMaintenanceWindowResponse_windowId - The ID of the created maintenance window.
$sel:httpStatus:GetMaintenanceWindowResponse', getMaintenanceWindowResponse_httpStatus - The response's http status code.
Response Lenses
getMaintenanceWindowResponse_allowUnassociatedTargets :: Lens' GetMaintenanceWindowResponse (Maybe Bool) Source #
Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
getMaintenanceWindowResponse_createdDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime) Source #
The date the maintenance window was created.
getMaintenanceWindowResponse_cutoff :: Lens' GetMaintenanceWindowResponse (Maybe Natural) Source #
The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
getMaintenanceWindowResponse_description :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The description of the maintenance window.
getMaintenanceWindowResponse_duration :: Lens' GetMaintenanceWindowResponse (Maybe Natural) Source #
The duration of the maintenance window in hours.
getMaintenanceWindowResponse_enabled :: Lens' GetMaintenanceWindowResponse (Maybe Bool) Source #
Indicates whether the maintenance window is enabled.
getMaintenanceWindowResponse_endDate :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.
getMaintenanceWindowResponse_modifiedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime) Source #
The date the maintenance window was last modified.
getMaintenanceWindowResponse_name :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The name of the maintenance window.
getMaintenanceWindowResponse_nextExecutionTime :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.
getMaintenanceWindowResponse_schedule :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The schedule of the maintenance window in the form of a cron or rate expression.
getMaintenanceWindowResponse_scheduleOffset :: Lens' GetMaintenanceWindowResponse (Maybe Natural) Source #
The number of days to wait to run a maintenance window after the scheduled cron expression date and time.
getMaintenanceWindowResponse_scheduleTimezone :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.
getMaintenanceWindowResponse_startDate :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.
getMaintenanceWindowResponse_windowId :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The ID of the created maintenance window.
getMaintenanceWindowResponse_httpStatus :: Lens' GetMaintenanceWindowResponse Int Source #
The response's http status code.