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 |
Lists OTA updates.
Requires permission to access the ListOTAUpdates action.
This operation returns paginated results.
Synopsis
- data ListOTAUpdates = ListOTAUpdates' {}
- newListOTAUpdates :: ListOTAUpdates
- listOTAUpdates_nextToken :: Lens' ListOTAUpdates (Maybe Text)
- listOTAUpdates_otaUpdateStatus :: Lens' ListOTAUpdates (Maybe OTAUpdateStatus)
- listOTAUpdates_maxResults :: Lens' ListOTAUpdates (Maybe Natural)
- data ListOTAUpdatesResponse = ListOTAUpdatesResponse' {
- nextToken :: Maybe Text
- otaUpdates :: Maybe [OTAUpdateSummary]
- httpStatus :: Int
- newListOTAUpdatesResponse :: Int -> ListOTAUpdatesResponse
- listOTAUpdatesResponse_nextToken :: Lens' ListOTAUpdatesResponse (Maybe Text)
- listOTAUpdatesResponse_otaUpdates :: Lens' ListOTAUpdatesResponse (Maybe [OTAUpdateSummary])
- listOTAUpdatesResponse_httpStatus :: Lens' ListOTAUpdatesResponse Int
Creating a Request
data ListOTAUpdates Source #
See: newListOTAUpdates
smart constructor.
ListOTAUpdates' | |
|
Instances
newListOTAUpdates :: ListOTAUpdates Source #
Create a value of ListOTAUpdates
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:nextToken:ListOTAUpdates'
, listOTAUpdates_nextToken
- A token used to retrieve the next set of results.
$sel:otaUpdateStatus:ListOTAUpdates'
, listOTAUpdates_otaUpdateStatus
- The OTA update job status.
$sel:maxResults:ListOTAUpdates'
, listOTAUpdates_maxResults
- The maximum number of results to return at one time.
Request Lenses
listOTAUpdates_nextToken :: Lens' ListOTAUpdates (Maybe Text) Source #
A token used to retrieve the next set of results.
listOTAUpdates_otaUpdateStatus :: Lens' ListOTAUpdates (Maybe OTAUpdateStatus) Source #
The OTA update job status.
listOTAUpdates_maxResults :: Lens' ListOTAUpdates (Maybe Natural) Source #
The maximum number of results to return at one time.
Destructuring the Response
data ListOTAUpdatesResponse Source #
See: newListOTAUpdatesResponse
smart constructor.
ListOTAUpdatesResponse' | |
|
Instances
newListOTAUpdatesResponse Source #
Create a value of ListOTAUpdatesResponse
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:nextToken:ListOTAUpdates'
, listOTAUpdatesResponse_nextToken
- A token to use to get the next set of results.
$sel:otaUpdates:ListOTAUpdatesResponse'
, listOTAUpdatesResponse_otaUpdates
- A list of OTA update jobs.
$sel:httpStatus:ListOTAUpdatesResponse'
, listOTAUpdatesResponse_httpStatus
- The response's http status code.
Response Lenses
listOTAUpdatesResponse_nextToken :: Lens' ListOTAUpdatesResponse (Maybe Text) Source #
A token to use to get the next set of results.
listOTAUpdatesResponse_otaUpdates :: Lens' ListOTAUpdatesResponse (Maybe [OTAUpdateSummary]) Source #
A list of OTA update jobs.
listOTAUpdatesResponse_httpStatus :: Lens' ListOTAUpdatesResponse Int Source #
The response's http status code.