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 the maintenance windows in an Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data DescribeMaintenanceWindows = DescribeMaintenanceWindows' {}
- newDescribeMaintenanceWindows :: DescribeMaintenanceWindows
- describeMaintenanceWindows_filters :: Lens' DescribeMaintenanceWindows (Maybe [MaintenanceWindowFilter])
- describeMaintenanceWindows_nextToken :: Lens' DescribeMaintenanceWindows (Maybe Text)
- describeMaintenanceWindows_maxResults :: Lens' DescribeMaintenanceWindows (Maybe Natural)
- data DescribeMaintenanceWindowsResponse = DescribeMaintenanceWindowsResponse' {}
- newDescribeMaintenanceWindowsResponse :: Int -> DescribeMaintenanceWindowsResponse
- describeMaintenanceWindowsResponse_windowIdentities :: Lens' DescribeMaintenanceWindowsResponse (Maybe [MaintenanceWindowIdentity])
- describeMaintenanceWindowsResponse_nextToken :: Lens' DescribeMaintenanceWindowsResponse (Maybe Text)
- describeMaintenanceWindowsResponse_httpStatus :: Lens' DescribeMaintenanceWindowsResponse Int
Creating a Request
data DescribeMaintenanceWindows Source #
See: newDescribeMaintenanceWindows
smart constructor.
DescribeMaintenanceWindows' | |
|
Instances
newDescribeMaintenanceWindows :: DescribeMaintenanceWindows Source #
Create a value of DescribeMaintenanceWindows
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:filters:DescribeMaintenanceWindows'
, describeMaintenanceWindows_filters
- Optional filters used to narrow down the scope of the returned
maintenance windows. Supported filter keys are Name
and Enabled
. For
example, Name=MyMaintenanceWindow
and Enabled=True
.
$sel:nextToken:DescribeMaintenanceWindows'
, describeMaintenanceWindows_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxResults:DescribeMaintenanceWindows'
, describeMaintenanceWindows_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
Request Lenses
describeMaintenanceWindows_filters :: Lens' DescribeMaintenanceWindows (Maybe [MaintenanceWindowFilter]) Source #
Optional filters used to narrow down the scope of the returned
maintenance windows. Supported filter keys are Name
and Enabled
. For
example, Name=MyMaintenanceWindow
and Enabled=True
.
describeMaintenanceWindows_nextToken :: Lens' DescribeMaintenanceWindows (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeMaintenanceWindows_maxResults :: Lens' DescribeMaintenanceWindows (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
Destructuring the Response
data DescribeMaintenanceWindowsResponse Source #
See: newDescribeMaintenanceWindowsResponse
smart constructor.
DescribeMaintenanceWindowsResponse' | |
|
Instances
newDescribeMaintenanceWindowsResponse Source #
Create a value of DescribeMaintenanceWindowsResponse
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:windowIdentities:DescribeMaintenanceWindowsResponse'
, describeMaintenanceWindowsResponse_windowIdentities
- Information about the maintenance windows.
$sel:nextToken:DescribeMaintenanceWindows'
, describeMaintenanceWindowsResponse_nextToken
- The token to use when requesting the next set of items. If there are no
additional items to return, the string is empty.
$sel:httpStatus:DescribeMaintenanceWindowsResponse'
, describeMaintenanceWindowsResponse_httpStatus
- The response's http status code.
Response Lenses
describeMaintenanceWindowsResponse_windowIdentities :: Lens' DescribeMaintenanceWindowsResponse (Maybe [MaintenanceWindowIdentity]) Source #
Information about the maintenance windows.
describeMaintenanceWindowsResponse_nextToken :: Lens' DescribeMaintenanceWindowsResponse (Maybe Text) Source #
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
describeMaintenanceWindowsResponse_httpStatus :: Lens' DescribeMaintenanceWindowsResponse Int Source #
The response's http status code.