Copyright | (c) 2013-2021 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 |
Retrieves a maintenance window.
Synopsis
- data GetMaintenanceWindow = GetMaintenanceWindow' {}
- newGetMaintenanceWindow :: Text -> GetMaintenanceWindow
- getMaintenanceWindow_windowId :: Lens' GetMaintenanceWindow Text
- data GetMaintenanceWindowResponse = GetMaintenanceWindowResponse' {
- enabled :: Maybe Bool
- schedule :: Maybe Text
- nextExecutionTime :: Maybe Text
- scheduleOffset :: Maybe Natural
- endDate :: Maybe Text
- scheduleTimezone :: Maybe Text
- startDate :: Maybe Text
- createdDate :: Maybe POSIX
- name :: Maybe Text
- modifiedDate :: Maybe POSIX
- cutoff :: Maybe Natural
- allowUnassociatedTargets :: Maybe Bool
- description :: Maybe (Sensitive Text)
- duration :: Maybe Natural
- windowId :: Maybe Text
- httpStatus :: Int
- newGetMaintenanceWindowResponse :: Int -> GetMaintenanceWindowResponse
- getMaintenanceWindowResponse_enabled :: Lens' GetMaintenanceWindowResponse (Maybe Bool)
- getMaintenanceWindowResponse_schedule :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_nextExecutionTime :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_scheduleOffset :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- getMaintenanceWindowResponse_endDate :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_scheduleTimezone :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_startDate :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_createdDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime)
- getMaintenanceWindowResponse_name :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_modifiedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime)
- getMaintenanceWindowResponse_cutoff :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- getMaintenanceWindowResponse_allowUnassociatedTargets :: Lens' GetMaintenanceWindowResponse (Maybe Bool)
- getMaintenanceWindowResponse_description :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_duration :: Lens' GetMaintenanceWindowResponse (Maybe Natural)
- getMaintenanceWindowResponse_windowId :: Lens' GetMaintenanceWindowResponse (Maybe Text)
- getMaintenanceWindowResponse_httpStatus :: Lens' GetMaintenanceWindowResponse Int
Creating a Request
data GetMaintenanceWindow Source #
See: newGetMaintenanceWindow
smart constructor.
Instances
newGetMaintenanceWindow Source #
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:
$sel:windowId: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.
GetMaintenanceWindowResponse' | |
|
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:enabled:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_enabled
- Indicates whether the maintenance window is enabled.
$sel:schedule:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_schedule
- The schedule of the maintenance window in the form of a cron or rate
expression.
$sel:nextExecutionTime: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.
$sel:scheduleOffset:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_scheduleOffset
- The number of days to wait to run a maintenance window after the
scheduled cron expression date and time.
$sel:endDate: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:scheduleTimezone: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.
$sel:startDate: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.
$sel:createdDate:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_createdDate
- The date the maintenance window was created.
$sel:name:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_name
- The name of the maintenance window.
$sel:modifiedDate:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_modifiedDate
- The date the maintenance window was last modified.
$sel:cutoff: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.
$sel:allowUnassociatedTargets:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_allowUnassociatedTargets
- Whether targets must be registered with the maintenance window before
tasks can be defined for those targets.
$sel:description:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_description
- The description of the maintenance window.
$sel:duration:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_duration
- The duration of the maintenance window in hours.
$sel:windowId:GetMaintenanceWindow'
, getMaintenanceWindowResponse_windowId
- The ID of the created maintenance window.
$sel:httpStatus:GetMaintenanceWindowResponse'
, getMaintenanceWindowResponse_httpStatus
- The response's http status code.
Response Lenses
getMaintenanceWindowResponse_enabled :: Lens' GetMaintenanceWindowResponse (Maybe Bool) Source #
Indicates whether the maintenance window is enabled.
getMaintenanceWindowResponse_schedule :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The schedule of the maintenance window in the form of a cron or rate expression.
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_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_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_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_createdDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime) Source #
The date the maintenance window was created.
getMaintenanceWindowResponse_name :: Lens' GetMaintenanceWindowResponse (Maybe Text) Source #
The name of the maintenance window.
getMaintenanceWindowResponse_modifiedDate :: Lens' GetMaintenanceWindowResponse (Maybe UTCTime) Source #
The date the maintenance window was last modified.
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_allowUnassociatedTargets :: Lens' GetMaintenanceWindowResponse (Maybe Bool) Source #
Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
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_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.